![]() |
![]() |
![]() |
Netbook Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
NbtkGrid; NbtkWidget * nbtk_grid_new (void); void nbtk_grid_set_end_align (NbtkGrid *self, gboolean value); gboolean nbtk_grid_get_end_align (NbtkGrid *self); void nbtk_grid_set_homogenous_rows (NbtkGrid *self, gboolean value); gboolean nbtk_grid_get_homogenous_rows (NbtkGrid *self); void nbtk_grid_set_homogenous_columns (NbtkGrid *self, gboolean value); gboolean nbtk_grid_get_homogenous_columns (NbtkGrid *self); void nbtk_grid_set_column_major (NbtkGrid *self, gboolean value); gboolean nbtk_grid_get_column_major (NbtkGrid *self); void nbtk_grid_set_row_gap (NbtkGrid *self, gfloat value); gfloat nbtk_grid_get_row_gap (NbtkGrid *self); void nbtk_grid_set_column_gap (NbtkGrid *self, gfloat value); gfloat nbtk_grid_get_column_gap (NbtkGrid *self); void nbtk_grid_set_valign (NbtkGrid *self, gdouble value); gdouble nbtk_grid_get_valign (NbtkGrid *self); void nbtk_grid_set_halign (NbtkGrid *self, gdouble value); gdouble nbtk_grid_get_halign (NbtkGrid *self); void nbtk_grid_set_max_stride (NbtkGrid *self, gint value); gint nbtk_grid_get_max_stride (NbtkGrid *self);
GObject +----GInitiallyUnowned +----ClutterActor +----NbtkWidget +----NbtkGrid +----NbtkItemView
NbtkGrid implements ClutterScriptable, NbtkStylable, ClutterContainer and NbtkScrollable.
"allocate-hidden" gboolean : Read / Write / Construct "column-gap" gfloat : Read / Write / Construct "column-major" gboolean : Read / Write / Construct "end-align" gboolean : Read / Write / Construct "halign" gdouble : Read / Write / Construct "homogenous-columns" gboolean : Read / Write / Construct "homogenous-rows" gboolean : Read / Write / Construct "max-stride" gint : Read / Write / Construct "row-gap" gfloat : Read / Write / Construct "valign" gdouble : Read / Write / Construct
NbtkGrid is a layout container that arranges its children by placing them in a single line and wrapping round to a new line when the edge of the container is reached.
typedef struct _NbtkGrid NbtkGrid;
The contents of the this structure are private and should only be accessed through the public API.
void nbtk_grid_set_end_align (NbtkGrid *self, gboolean value);
|
|
|
void nbtk_grid_set_homogenous_rows (NbtkGrid *self, gboolean value);
|
|
|
gboolean nbtk_grid_get_homogenous_rows (NbtkGrid *self);
|
|
Returns : |
void nbtk_grid_set_homogenous_columns (NbtkGrid *self, gboolean value);
|
|
|
gboolean nbtk_grid_get_homogenous_columns (NbtkGrid *self);
|
|
Returns : |
void nbtk_grid_set_column_major (NbtkGrid *self, gboolean value);
|
|
|
gboolean nbtk_grid_get_column_major (NbtkGrid *self);
|
|
Returns : |
void nbtk_grid_set_column_gap (NbtkGrid *self, gfloat value);
|
|
|
void nbtk_grid_set_max_stride (NbtkGrid *self, gint value);
|
|
|
"allocate-hidden"
property"allocate-hidden" gboolean : Read / Write / Construct
This flag determines whether hidden children should be treated allocated or whether they should be skipped from the allocation and treated as if they are not present.
Default value: FALSE
"column-gap"
property"column-gap" gfloat : Read / Write / Construct
gap between columns in the layout.
Allowed values: >= 0
Default value: 0
"column-major"
property"column-major" gboolean : Read / Write / Construct
Do a column filling first instead of row filling first.
Default value: FALSE
"end-align"
property"end-align" gboolean : Read / Write / Construct
Right/bottom aligned rows/columns.
Default value: FALSE
"halign"
property"halign" gdouble : Read / Write / Construct
Horizontal alignment of items within cells.
Allowed values: [0,1]
Default value: 0
"homogenous-columns"
property"homogenous-columns" gboolean : Read / Write / Construct
Should all columns have the same height?.
Default value: FALSE
"homogenous-rows"
property"homogenous-rows" gboolean : Read / Write / Construct
Should all rows have the same height?.
Default value: FALSE
"max-stride"
property"max-stride" gint : Read / Write / Construct
Maximum number of rows or columns, depending on orientation.
Allowed values: >= 0
Default value: 0
"row-gap"
property"row-gap" gfloat : Read / Write / Construct
gap between rows in the layout.
Allowed values: >= 0
Default value: 0
"valign"
property"valign" gdouble : Read / Write / Construct
Vertical alignment of items within cells.
Allowed values: [0,1]
Default value: 0