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()
Undocumented in source. Be warned that the author may not have intended to support it.
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)

If you need to change a table's size after it has been created, this function allows you to do so.

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

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).

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

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)

Changes the space between a given table row and the subsequent row.

setColSpacing
void setColSpacing(uint column, uint spacing)

Alters the amount of space between a given table column and the following column.

setRowSpacings
void setRowSpacings(uint spacing)

Sets the space between every row in table equal to spacing.

setColSpacings
void setColSpacings(uint spacing)

Sets the space between every column in table equal to spacing.

setHomogeneous
void setHomogeneous(int homogeneous)

Changes the homogenous property of table cells, ie. whether all cells are an equal size or not.

getDefaultRowSpacing
uint getDefaultRowSpacing()

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()

Returns whether the table cells are all constrained to the same width and height. (See gtk_table_set_homogenous())

getRowSpacing
uint getRowSpacing(uint row)

Gets the amount of space between row row, and row row + 1. See gtk_table_set_row_spacing().

getColSpacing
uint getColSpacing(uint column)

Gets the amount of space between column col, and column col + 1. See gtk_table_set_col_spacing().

getDefaultColSpacing
uint getDefaultColSpacing()

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())

getSize
void getSize(uint rows, uint columns)

Since 2.22

Meta