TestEntries

This tests the GtkD Entry widget

class TestEntries : Table {}

Constructors

this
this()

Creates a new TestEntries

Members

Variables

entry
Entry entry;

Out main widget to test

Inherited Members

From Table

gtkTable
GtkTable* gtkTable;

the main Gtk struct

getTableStruct
GtkTable* getTableStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

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

getType
GType getType()
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 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.

getColSpacing
uint getColSpacing(uint column)

Gets the amount of space between column col, and column col + 1. See Table.setColSpacing.

getDefaultColSpacing
uint getDefaultColSpacing()

Gets the default column spacing for the table. This is the spacing that will be used for newly added columns. (See Table.setColSpacings)

getDefaultRowSpacing
uint getDefaultRowSpacing()

Gets the default row spacing for the table. This is the spacing that will be used for newly added rows. (See Table.setRowSpacings)

getHomogeneous
bool getHomogeneous()

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

getRowSpacing
uint getRowSpacing(uint row)

Gets the amount of space between row row, and row row + 1. See Table.setRowSpacing.

getSize
void getSize(out uint rows, out uint columns)

Gets the number of rows and columns in the table.

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.

setColSpacing
void setColSpacing(uint column, uint spacing)

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

setColSpacings
void setColSpacings(uint spacing)

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

setHomogeneous
void setHomogeneous(bool homogeneous)

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

setRowSpacing
void setRowSpacing(uint row, uint spacing)

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

setRowSpacings
void setRowSpacings(uint spacing)

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

Meta