MexGrid

MexGrid

Synopsis

struct              MexGrid;
struct              MexGridClass;
MexModel *          mex_grid_get_model                  (MexGrid *grid);
gint                mex_grid_get_stride                 (MexGrid *grid);
ClutterActor *      mex_grid_new                        (void);
void                mex_grid_set_model                  (MexGrid *grid,
                                                         MexModel *model);
void                mex_grid_set_stride                 (MexGrid *grid,
                                                         gint stride);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----MxWidget
                     +----MexGrid

Implemented Interfaces

MexGrid implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface, MxStylable, MxScrollable, MxFocusable and MexScrollableContainer.

Properties

  "stride"                   gint                  : Read / Write
  "tile-height"              gfloat                : Read
  "tile-ratio"               gfloat                : Read / Write
  "tile-width"               gfloat                : Read

Description

Details

struct MexGrid

struct MexGrid;

struct MexGridClass

struct MexGridClass {
  MxWidgetClass parent_class;
};

mex_grid_get_model ()

MexModel *          mex_grid_get_model                  (MexGrid *grid);

mex_grid_get_stride ()

gint                mex_grid_get_stride                 (MexGrid *grid);

mex_grid_new ()

ClutterActor *      mex_grid_new                        (void);

mex_grid_set_model ()

void                mex_grid_set_model                  (MexGrid *grid,
                                                         MexModel *model);

mex_grid_set_stride ()

void                mex_grid_set_stride                 (MexGrid *grid,
                                                         gint stride);

Property Details

The "stride" property

  "stride"                   gint                  : Read / Write

Amount of widgets to pack horizontally.

Allowed values: >= 1

Default value: 3


The "tile-height" property

  "tile-height"              gfloat                : Read

Convenience property representing the height of a row in the grid.

Allowed values: >= 0

Default value: 0


The "tile-ratio" property

  "tile-ratio"               gfloat                : Read / Write

The aspect ratio of the tile.

Allowed values: >= 0

Default value: 0.5625


The "tile-width" property

  "tile-width"               gfloat                : Read

Convenience property representing the width of a tile in the grid.

Allowed values: >= 0

Default value: 0