TestScales

This tests the gtkD scales and scrollbar widgets

Constructors

this
this()
Undocumented in source.

Members

Functions

createRangeControls
void createRangeControls()
Undocumented in source. Be warned that the author may not have intended to support it.
displayValues
void displayValues(Button checkButton)
Undocumented in source. Be warned that the author may not have intended to support it.
onPositionSelectionChanged
void onPositionSelectionChanged(ComboBoxText comboBoxText)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

hscale
HScale hscale;
Undocumented in source.
vscale
VScale vscale;
Undocumented in source.

Inherited Members

From Table

gtkTable
GtkTable* gtkTable;

the main Gtk struct

getTableStruct
GtkTable* getTableStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

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

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

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

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

getSize
void getSize(uint rows, 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