NbtkGrid

NbtkGrid — a flow layout container

Synopsis

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

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----NbtkWidget
                     +----NbtkGrid
                           +----NbtkItemView

Implemented Interfaces

NbtkGrid implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface, NbtkStylable, ClutterContainer and NbtkScrollable.

Properties

  "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

Description

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.

Details

NbtkGrid

typedef struct _NbtkGrid NbtkGrid;

The contents of the this structure are private and should only be accessed through the public API.


nbtk_grid_new ()

NbtkWidget *        nbtk_grid_new                       (void);

Returns :


nbtk_grid_set_end_align ()

void                nbtk_grid_set_end_align             (NbtkGrid *self,
                                                         gboolean value);

self :

value :


nbtk_grid_get_end_align ()

gboolean            nbtk_grid_get_end_align             (NbtkGrid *self);

self :

Returns :


nbtk_grid_set_homogenous_rows ()

void                nbtk_grid_set_homogenous_rows       (NbtkGrid *self,
                                                         gboolean value);

self :

value :


nbtk_grid_get_homogenous_rows ()

gboolean            nbtk_grid_get_homogenous_rows       (NbtkGrid *self);

self :

Returns :


nbtk_grid_set_homogenous_columns ()

void                nbtk_grid_set_homogenous_columns    (NbtkGrid *self,
                                                         gboolean value);

self :

value :


nbtk_grid_get_homogenous_columns ()

gboolean            nbtk_grid_get_homogenous_columns    (NbtkGrid *self);

self :

Returns :


nbtk_grid_set_column_major ()

void                nbtk_grid_set_column_major          (NbtkGrid *self,
                                                         gboolean value);

self :

value :


nbtk_grid_get_column_major ()

gboolean            nbtk_grid_get_column_major          (NbtkGrid *self);

self :

Returns :


nbtk_grid_set_row_gap ()

void                nbtk_grid_set_row_gap               (NbtkGrid *self,
                                                         gfloat value);

self :

value :


nbtk_grid_get_row_gap ()

gfloat              nbtk_grid_get_row_gap               (NbtkGrid *self);

self :

Returns :


nbtk_grid_set_column_gap ()

void                nbtk_grid_set_column_gap            (NbtkGrid *self,
                                                         gfloat value);

self :

value :


nbtk_grid_get_column_gap ()

gfloat              nbtk_grid_get_column_gap            (NbtkGrid *self);

self :

Returns :


nbtk_grid_set_valign ()

void                nbtk_grid_set_valign                (NbtkGrid *self,
                                                         gdouble value);

self :

value :


nbtk_grid_get_valign ()

gdouble             nbtk_grid_get_valign                (NbtkGrid *self);

self :

Returns :


nbtk_grid_set_halign ()

void                nbtk_grid_set_halign                (NbtkGrid *self,
                                                         gdouble value);

self :

value :


nbtk_grid_get_halign ()

gdouble             nbtk_grid_get_halign                (NbtkGrid *self);

self :

Returns :


nbtk_grid_set_max_stride ()

void                nbtk_grid_set_max_stride            (NbtkGrid *self,
                                                         gint value);

self :

value :


nbtk_grid_get_max_stride ()

gint                nbtk_grid_get_max_stride            (NbtkGrid *self);

self :

Returns :

Property Details

The "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


The "column-gap" property

  "column-gap"               gfloat                : Read / Write / Construct

gap between columns in the layout.

Allowed values: >= 0

Default value: 0


The "column-major" property

  "column-major"             gboolean              : Read / Write / Construct

Do a column filling first instead of row filling first.

Default value: FALSE


The "end-align" property

  "end-align"                gboolean              : Read / Write / Construct

Right/bottom aligned rows/columns.

Default value: FALSE


The "halign" property

  "halign"                   gdouble               : Read / Write / Construct

Horizontal alignment of items within cells.

Allowed values: [0,1]

Default value: 0


The "homogenous-columns" property

  "homogenous-columns"       gboolean              : Read / Write / Construct

Should all columns have the same height?.

Default value: FALSE


The "homogenous-rows" property

  "homogenous-rows"          gboolean              : Read / Write / Construct

Should all rows have the same height?.

Default value: FALSE


The "max-stride" property

  "max-stride"               gint                  : Read / Write / Construct

Maximum number of rows or columns, depending on orientation.

Allowed values: >= 0

Default value: 0


The "row-gap" property

  "row-gap"                  gfloat                : Read / Write / Construct

gap between rows in the layout.

Allowed values: >= 0

Default value: 0


The "valign" property

  "valign"                   gdouble               : Read / Write / Construct

Vertical alignment of items within cells.

Allowed values: [0,1]

Default value: 0