TestEntries

This tests the GtkD Entry widget

Constructors

this
this()

Creates a new TestEntries

Members

Functions

entryEditable
void entryEditable(CheckButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
entryVisible
void entryVisible(CheckButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
showEntry
void showEntry(Button button)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

entry
Entry entry;

Out main widget to test

Inherited Members

From Table

gtkTable
GtkTable* gtkTable;

the main Gtk struct

getTableStruct
GtkTable* getTableStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
row
int row;
Undocumented in source.
col
int col;
Undocumented in source.
maxRows
int maxRows;
Undocumented in source.
maxCols
int maxCols;
Undocumented in source.
defaultXOption
AttachOptions defaultXOption;
Undocumented in source.
defaultYOption
AttachOptions defaultYOption;
Undocumented in source.
removeAll
void removeAll()

Removes all children and resizes the table to 1,1

attach
void attach(Widget child)

Attach a new widget creating a new row if necessary

resize
void resize(uint rows, uint columns)

Warning gtk_table_resize has been deprecated since version 3.4 and should not be used in newly-written code. GtkGrid resizes automatically. If you need to change a table's size after it has been created, this function allows you to do so.

getSize
void getSize(uint rows, uint columns)

Warning gtk_table_get_size has been deprecated since version 3.4 and should not be used in newly-written code. GtkGrid does not expose the number of columns and rows. Gets the number of rows and columns in the table. Since 2.22

attach
void attach(Widget child, uint leftAttach, uint rightAttach, uint topAttach, uint bottomAttach, GtkAttachOptions xoptions, GtkAttachOptions yoptions, uint xpadding, uint ypadding)

Warning gtk_table_attach has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_grid_attach() with GtkGrid. Note that the attach arguments differ between those two functions. Adds a widget to a table. The number of 'cells' that a widget will occupy is specified by left_attach, right_attach, top_attach and bottom_attach. These each represent the leftmost, rightmost, uppermost and lowest column and row numbers of the table. (Columns and rows are indexed from zero). To make a button occupy the lower right cell of a 2x2 table, use If you want to make the button span the entire bottom row, use left_attach == 0 and right_attach = 2 instead.

attachDefaults
void attachDefaults(Widget widget, uint leftAttach, uint rightAttach, uint topAttach, uint bottomAttach)

Warning gtk_table_attach_defaults has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_grid_attach() with GtkGrid. Note that the attach arguments differ between those two functions. As there are many options associated with gtk_table_attach(), this convenience function provides the programmer with a means to add children to a table with identical padding and expansion options. The values used for the GtkAttachOptions are GTK_EXPAND | GTK_FILL, and the padding is set to 0.

setRowSpacing
void setRowSpacing(uint row, uint spacing)

Warning gtk_table_set_row_spacing has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_widget_set_margin_top() and gtk_widget_set_margin_bottom() on the widgets contained in the row if you need this functionality. GtkGrid does not support per-row spacing. Changes the space between a given table row and the subsequent row.

setColSpacing
void setColSpacing(uint column, uint spacing)

Warning gtk_table_set_col_spacing has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_widget_set_margin_left() and gtk_widget_set_margin_right() on the widgets contained in the row if you need this functionality. GtkGrid does not support per-row spacing. Alters the amount of space between a given table column and the following column.

setRowSpacings
void setRowSpacings(uint spacing)

Warning gtk_table_set_row_spacings has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_grid_set_row_spacing() with GtkGrid. Sets the space between every row in table equal to spacing.

setColSpacings
void setColSpacings(uint spacing)

Warning gtk_table_set_col_spacings has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_grid_set_column_spacing() with GtkGrid. Sets the space between every column in table equal to spacing.

setHomogeneous
void setHomogeneous(int homogeneous)

Warning gtk_table_set_homogeneous has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_grid_set_row_homogeneous() and gtk_grid_set_column_homogeneous() with GtkGrid. Changes the homogenous property of table cells, ie. whether all cells are an equal size or not.

getDefaultRowSpacing
uint getDefaultRowSpacing()

Warning gtk_table_get_default_row_spacing has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_grid_get_row_spacing() with GtkGrid. Gets the default row spacing for the table. This is the spacing that will be used for newly added rows. (See gtk_table_set_row_spacings())

getHomogeneous
int getHomogeneous()

Warning gtk_table_get_homogeneous has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_grid_get_row_homogeneous() and gtk_grid_get_column_homogeneous() with GtkGrid. Returns whether the table cells are all constrained to the same width and height. (See gtk_table_set_homogenous())

getRowSpacing
uint getRowSpacing(uint row)

Warning gtk_table_get_row_spacing has been deprecated since version 3.4 and should not be used in newly-written code. GtkGrid does not offer a replacement for this functionality. Gets the amount of space between row row, and row row + 1. See gtk_table_set_row_spacing().

getColSpacing
uint getColSpacing(uint column)

Warning gtk_table_get_col_spacing has been deprecated since version 3.4 and should not be used in newly-written code. GtkGrid does not offer a replacement for this functionality. Gets the amount of space between column col, and column col + 1. See gtk_table_set_col_spacing().

getDefaultColSpacing
uint getDefaultColSpacing()

Warning gtk_table_get_default_col_spacing has been deprecated since version 3.4 and should not be used in newly-written code. Use gtk_grid_get_column_spacing() with GtkGrid. Gets the default column spacing for the table. This is the spacing that will be used for newly added columns. (See gtk_table_set_col_spacings())

Meta