GtkBox |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data Structures | |
| struct | _GtkBox |
| GtkBox instance structure. More... | |
| struct | _GtkBoxClass |
| GtkBox instance class structure. More... | |
Functions | |
| void | gtk_box_pack_start (GtkBox *box, GtkWidget *child, gboolean expand, gboolean fill, guint padding) |
| Adds child to box, packed with reference to the start of box. | |
| void | gtk_box_pack_end (GtkBox *box, GtkWidget *child, gboolean expand, gboolean fill, guint padding) |
| Adds child to box, packed with reference to the end of box. | |
| void | gtk_box_pack_start_defaults (GtkBox *box, GtkWidget *widget) |
| Adds widget to box, packed with reference to the start of box. | |
| void | gtk_box_pack_end_defaults (GtkBox *box, GtkWidget *widget) |
| Adds widget to box, packed with reference to the end of box. | |
| void | gtk_box_set_homogeneous (GtkBox *box, gboolean homogeneous) |
| Sets the homogeneous field of GtkBox, controlling whether or not all children of box are given equal space in the box. | |
| gboolean | gtk_box_get_homogeneous (GtkBox *box) |
| Returns whether the box is homogeneous (all children are the same size). | |
| void | gtk_box_set_spacing (GtkBox *box, gint spacing) |
| Sets the spacing field of GtkBox, which is the number of pixels to place between children of box. | |
| gint | gtk_box_get_spacing (GtkBox *box) |
| Gets the value set by gtk_box_set_spacing(). | |
| void | gtk_box_reorder_child (GtkBox *box, GtkWidget *child, gint position) |
| Moves child to a new position in the list of box children.The list is the children field of GtkBox, and contains both widgets packed GTK_PACK_START as well as widgets packed GTK_PACK_END, in the order that these widgets were added to box. | |
| void | gtk_box_query_child_packing (GtkBox *box, GtkWidget *child, gboolean *expand, gboolean *fill, guint *padding, GtkPackType *pack_type) |
| Returns information about how child is packed into box. | |
| void | gtk_box_set_child_packing (GtkBox *box, GtkWidget *child, gboolean expand, gboolean fill, guint padding, GtkPackType pack_type) |
| Sets the way child is packed into box. | |
| gboolean gtk_box_get_homogeneous | ( | GtkBox * | box | ) |
Returns whether the box is homogeneous (all children are the same size).
See gtk_box_set_homogeneous().
| [in] | box | : a GtkBin |
| gint gtk_box_get_spacing | ( | GtkBox * | box | ) |
Gets the value set by gtk_box_set_spacing().
| [in] | box | : a GtkBin |
| void gtk_box_pack_end | ( | GtkBox * | box, | |
| GtkWidget * | child, | |||
| gboolean | expand, | |||
| gboolean | fill, | |||
| guint | padding | |||
| ) |
Adds child to box, packed with reference to the end of box.
The child is packed after any other child packed with reference to the end of box.
| [in] | box | : a GtkBox. |
| [in] | child | : the GtkWidget to be added to box. |
| [in] | expand | : TRUE if the new child is to be given extra space allocated to box. The extra space will be divided evenly between all children of box that use this option. |
| [in] | fill | : TRUE if space given to child by the expand option is actually allocated to child, rather than just padding it. This parameter has no effect if expand is set to FALSE. A child is always allocated the full height of a GtkHBox and the full width of a GtkVBox. This option affects the other dimension. |
| [in] | padding | : extra space in pixels to put between this child and its neighbors, over and above the global amount specified by spacing in GtkBox. If child is a widget at one of the reference ends of box, then padding pixels are also put between child and the reference edge of box. |
Adds widget to box, packed with reference to the end of box.
The child is packed after any other child packed with reference to the end of box. Parameters for how to pack the child widget, expand, fill, and padding in GtkBoxChild, are given their default values, TRUE, TRUE, and 0, respectively.
| [in] | box | : a GtkBin |
| [in] | widget | : a GtkBin |
| void gtk_box_pack_start | ( | GtkBox * | box, | |
| GtkWidget * | child, | |||
| gboolean | expand, | |||
| gboolean | fill, | |||
| guint | padding | |||
| ) |
Adds child to box, packed with reference to the start of box.
The child is packed after any other child packed with reference to the start of box.
| [in] | box | : a GtkBox. |
| [in] | child | : the GtkWidget to be added to box. |
| [in] | expand | : TRUE if the new child is to be given extra space allocated to box. The extra space will be divided evenly between all children of box that use this option. |
| [in] | fill | : TRUE if space given to child by the expand option is actually allocated to child, rather than just padding it. This parameter has no effect if expand is set to FALSE. A child is always allocated the full height of a GtkHBox and the full width of a GtkVBox. This option affects the other dimension. |
| [in] | padding | : extra space in pixels to put between this child and its neighbors, over and above the global amount specified by spacing in GtkBox. If child is a widget at one of the reference ends of box, then padding pixels are also put between child and the reference edge of box. |
Adds widget to box, packed with reference to the start of box.
The child is packed after any other child packed with reference to the start of box. Parameters for how to pack the child widget, expand, fill, and padding in GtkBoxChild, are given their default values, TRUE, TRUE, and 0, respectively.
| [in] | box | : a GtkBin |
| [in] | widget | : the GtkWidget to be added to box. |
| void gtk_box_query_child_packing | ( | GtkBox * | box, | |
| GtkWidget * | child, | |||
| gboolean * | expand, | |||
| gboolean * | fill, | |||
| guint * | padding, | |||
| GtkPackType * | pack_type | |||
| ) |
Returns information about how child is packed into box.
| [in] | box | : a GtkBin |
| [in] | child | : the GtkWidget of the child to query. |
| [out] | expand | : the returned value of the expand field in GtkBoxChild. |
| [out] | fill | : the returned value of the fill field in GtkBoxChild. |
| [out] | padding | : the returned value of the padding field in GtkBoxChild. |
| [outs] | pack_type : the returned value of the pack field in GtkBoxChild. |
Moves child to a new position in the list of box children.The list is the children field of GtkBox, and contains both widgets packed GTK_PACK_START as well as widgets packed GTK_PACK_END, in the order that these widgets were added to box.
A widget's position in the box children list determines where the widget is packed into box. A child widget at some position in the list will be packed just after all other widgets of the same packing type that appear earlier in the list.
| [in] | box | : a GtkBin |
| [in] | child | : the GtkWidget to move. |
| [in] | position | : the new position for child in the children list of GtkBox, starting from 0. If negative, indicates the end of the list. |
| void gtk_box_set_child_packing | ( | GtkBox * | box, | |
| GtkWidget * | child, | |||
| gboolean | expand, | |||
| gboolean | fill, | |||
| guint | padding, | |||
| GtkPackType | pack_type | |||
| ) |
Sets the way child is packed into box.
| [in] | box | : a GtkBin |
| [in] | child | : the GtkWidget of the child to set. |
| [in] | expand | : the new value of the expand field in GtkBoxChild. |
| [in] | fill | : the new value of the fill field in GtkBoxChild. |
| [in] | padding | : the new value of the padding field in GtkBoxChild. |
| [in] | pack_type | : the new value of the pack field in GtkBoxChild. |
| void gtk_box_set_homogeneous | ( | GtkBox * | box, | |
| gboolean | homogeneous | |||
| ) |
Sets the homogeneous field of GtkBox, controlling whether or not all children of box are given equal space in the box.
| [in] | box | : a GtkBin |
| [in] | homogeneous | : a boolean value, TRUE to create equal allotments, FALSE for variable allotments. |
| void gtk_box_set_spacing | ( | GtkBox * | box, | |
| gint | spacing | |||
| ) |
Sets the spacing field of GtkBox, which is the number of pixels to place between children of box.
| [in] | fill | : a GtkBin |
| [in] | spacing | : the number of pixels to put between children. |
1.5.4