GtkWrapBox

GtkWrapBox

Synopsis

struct              GtkWrapBoxChild;
struct              GtkWrapBox;
#define             GTK_JUSTIFY_TOP
#define             GTK_JUSTIFY_BOTTOM
void                gtk_wrap_box_set_homogeneous        (GtkWrapBox *wbox,
                                                         gboolean homogeneous);
void                gtk_wrap_box_set_hspacing           (GtkWrapBox *wbox,
                                                         guint hspacing);
void                gtk_wrap_box_set_vspacing           (GtkWrapBox *wbox,
                                                         guint vspacing);
void                gtk_wrap_box_set_justify            (GtkWrapBox *wbox,
                                                         GtkJustification justify);
void                gtk_wrap_box_set_line_justify       (GtkWrapBox *wbox,
                                                         GtkJustification line_justify);
void                gtk_wrap_box_set_aspect_ratio       (GtkWrapBox *wbox,
                                                         gfloat aspect_ratio);
void                gtk_wrap_box_pack                   (GtkWrapBox *wbox,
                                                         GtkWidget *child,
                                                         gboolean hexpand,
                                                         gboolean hfill,
                                                         gboolean vexpand,
                                                         gboolean vfill);
void                gtk_wrap_box_pack_wrapped           (GtkWrapBox *wbox,
                                                         GtkWidget *child,
                                                         gboolean hexpand,
                                                         gboolean hfill,
                                                         gboolean vexpand,
                                                         gboolean vfill,
                                                         gboolean wrapped);
void                gtk_wrap_box_reorder_child          (GtkWrapBox *wbox,
                                                         GtkWidget *child,
                                                         gint position);
void                gtk_wrap_box_query_child_packing    (GtkWrapBox *wbox,
                                                         GtkWidget *child,
                                                         gboolean *hexpand,
                                                         gboolean *hfill,
                                                         gboolean *vexpand,
                                                         gboolean *vfill,
                                                         gboolean *wrapped);
void                gtk_wrap_box_set_child_packing      (GtkWrapBox *wbox,
                                                         GtkWidget *child,
                                                         gboolean hexpand,
                                                         gboolean hfill,
                                                         gboolean vexpand,
                                                         gboolean vfill,
                                                         gboolean wrapped);
guint *             gtk_wrap_box_query_line_lengths     (GtkWrapBox *wbox,
                                                         guint *n_lines);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkWrapBox
                                 +----GtkHWrapBox

Implemented Interfaces

GtkWrapBox implements AtkImplementorIface and GtkBuildable.

Properties

  "aspect-ratio"             gfloat                : Read / Write
  "current-ratio"            gfloat                : Read
  "homogeneous"              gboolean              : Read / Write
  "hspacing"                 guint                 : Read / Write
  "justify"                  GtkJustification      : Read / Write
  "line-justify"             GtkJustification      : Read / Write
  "max-children-per-line"    guint                 : Read / Write
  "vspacing"                 guint                 : Read / Write

Child Properties

  "hexpand"                  gboolean              : Read / Write
  "hfill"                    gboolean              : Read / Write
  "position"                 gint                  : Read / Write
  "vexpand"                  gboolean              : Read / Write
  "vfill"                    gboolean              : Read / Write
  "wrapped"                  gboolean              : Read / Write

Description

Details

struct GtkWrapBoxChild

struct GtkWrapBoxChild {
  GtkWidget *widget;
  guint      hexpand : 1;
  guint      hfill : 1;
  guint      vexpand : 1;
  guint      vfill : 1;
  guint      wrapped : 1;

  GtkWrapBoxChild *next;
};


struct GtkWrapBox

struct GtkWrapBox;


GTK_JUSTIFY_TOP

#define GTK_JUSTIFY_TOP    GTK_JUSTIFY_LEFT


GTK_JUSTIFY_BOTTOM

#define GTK_JUSTIFY_BOTTOM GTK_JUSTIFY_RIGHT


gtk_wrap_box_set_homogeneous ()

void                gtk_wrap_box_set_homogeneous        (GtkWrapBox *wbox,
                                                         gboolean homogeneous);


gtk_wrap_box_set_hspacing ()

void                gtk_wrap_box_set_hspacing           (GtkWrapBox *wbox,
                                                         guint hspacing);


gtk_wrap_box_set_vspacing ()

void                gtk_wrap_box_set_vspacing           (GtkWrapBox *wbox,
                                                         guint vspacing);


gtk_wrap_box_set_justify ()

void                gtk_wrap_box_set_justify            (GtkWrapBox *wbox,
                                                         GtkJustification justify);


gtk_wrap_box_set_line_justify ()

void                gtk_wrap_box_set_line_justify       (GtkWrapBox *wbox,
                                                         GtkJustification line_justify);


gtk_wrap_box_set_aspect_ratio ()

void                gtk_wrap_box_set_aspect_ratio       (GtkWrapBox *wbox,
                                                         gfloat aspect_ratio);


gtk_wrap_box_pack ()

void                gtk_wrap_box_pack                   (GtkWrapBox *wbox,
                                                         GtkWidget *child,
                                                         gboolean hexpand,
                                                         gboolean hfill,
                                                         gboolean vexpand,
                                                         gboolean vfill);


gtk_wrap_box_pack_wrapped ()

void                gtk_wrap_box_pack_wrapped           (GtkWrapBox *wbox,
                                                         GtkWidget *child,
                                                         gboolean hexpand,
                                                         gboolean hfill,
                                                         gboolean vexpand,
                                                         gboolean vfill,
                                                         gboolean wrapped);


gtk_wrap_box_reorder_child ()

void                gtk_wrap_box_reorder_child          (GtkWrapBox *wbox,
                                                         GtkWidget *child,
                                                         gint position);


gtk_wrap_box_query_child_packing ()

void                gtk_wrap_box_query_child_packing    (GtkWrapBox *wbox,
                                                         GtkWidget *child,
                                                         gboolean *hexpand,
                                                         gboolean *hfill,
                                                         gboolean *vexpand,
                                                         gboolean *vfill,
                                                         gboolean *wrapped);


gtk_wrap_box_set_child_packing ()

void                gtk_wrap_box_set_child_packing      (GtkWrapBox *wbox,
                                                         GtkWidget *child,
                                                         gboolean hexpand,
                                                         gboolean hfill,
                                                         gboolean vexpand,
                                                         gboolean vfill,
                                                         gboolean wrapped);


gtk_wrap_box_query_line_lengths ()

guint *             gtk_wrap_box_query_line_lengths     (GtkWrapBox *wbox,
                                                         guint *n_lines);

Property Details

The "aspect-ratio" property

  "aspect-ratio"             gfloat                : Read / Write

Allowed values: >= 0

Default value: 1


The "current-ratio" property

  "current-ratio"            gfloat                : Read

Allowed values: >= 0

Default value: 1


The "homogeneous" property

  "homogeneous"              gboolean              : Read / Write

Default value: FALSE


The "hspacing" property

  "hspacing"                 guint                 : Read / Write

Allowed values: <= G_MAXINT

Default value: 0


The "justify" property

  "justify"                  GtkJustification      : Read / Write

Default value: GTK_JUSTIFY_LEFT


The "line-justify" property

  "line-justify"             GtkJustification      : Read / Write

Default value: GTK_JUSTIFY_RIGHT


The "max-children-per-line" property

  "max-children-per-line"    guint                 : Read / Write

Allowed values: [1,32767]

Default value: 32767


The "vspacing" property

  "vspacing"                 guint                 : Read / Write

Allowed values: <= G_MAXINT

Default value: 0

Child Property Details

The "hexpand" child property

  "hexpand"                  gboolean              : Read / Write

Default value: FALSE


The "hfill" child property

  "hfill"                    gboolean              : Read / Write

Default value: FALSE


The "position" child property

  "position"                 gint                  : Read / Write

Allowed values: >= -1

Default value: 0


The "vexpand" child property

  "vexpand"                  gboolean              : Read / Write

Default value: FALSE


The "vfill" child property

  "vfill"                    gboolean              : Read / Write

Default value: FALSE


The "wrapped" child property

  "wrapped"                  gboolean              : Read / Write

Default value: FALSE