| Top |
| GType | gnt_box_get_gtype () |
| #define | gnt_vbox_new() |
| #define | gnt_hbox_new() |
| GntWidget * | gnt_box_new () |
| GList * | gnt_box_get_children () |
| void | gnt_box_add_widget () |
| void | gnt_box_set_title () |
| void | gnt_box_set_pad () |
| void | gnt_box_set_toplevel () |
| void | gnt_box_sync_children () |
| void | gnt_box_set_alignment () |
| void | gnt_box_remove () |
| void | gnt_box_remove_all () |
| void | gnt_box_readjust () |
| void | gnt_box_set_fill () |
| void | gnt_box_move_focus () |
| void | gnt_box_give_focus_to_child () |
GntWidget * gnt_box_new (gboolean homo,gboolean vert);
Create a new GntBox.
GList *
gnt_box_get_children (GntBox *box);
Returns a list of the children of the widget.
Since: 2.14.0
void gnt_box_add_widget (GntBox *box,GntWidget *widget);
Add a widget in the box.
void gnt_box_set_title (GntBox *box,const char *title);
Set a title for the box.
void gnt_box_set_pad (GntBox *box,int pad);
Set the padding to use between the widgets in the box.
void gnt_box_set_toplevel (GntBox *box,gboolean set);
Set whether it's a toplevel box (ie, a window) or not. If a box is toplevel,
then it will show borders, the title (if set) and shadow (if enabled in
.gntrc)
void
gnt_box_sync_children (GntBox *box);
Reposition and refresh the widgets in the box.
void gnt_box_set_alignment (GntBox *box,GntAlignment alignment);
Set the alignment for the widgets in the box.
void gnt_box_remove (GntBox *box,GntWidget *widget);
Remove a widget from the box. Calling this does NOT destroy the removed widget.
void
gnt_box_remove_all (GntBox *box);
Remove all widgets from the box. This DOES destroy all widgets in the box.
void
gnt_box_readjust (GntBox *box);
Readjust the size of each child widget, reposition the child widgets and recalculate the size of the box.
void gnt_box_set_fill (GntBox *box,gboolean fill);
Set whether the widgets in the box should fill the empty spaces.
void gnt_box_move_focus (GntBox *box,int dir);
Move the focus from one widget to the other.
struct GntBox {
GntWidget parent;
gboolean GNTSEAL(vertical);
gboolean GNTSEAL(homogeneous);
gboolean GNTSEAL(fill);
GList *GNTSEAL(list); /* Deprecated. Use gnt_box_get_children. */
GntWidget *GNTSEAL(active);
int GNTSEAL(pad); /* Number of spaces to use between widgets */
GntAlignment GNTSEAL(alignment); /* How are the widgets going to be aligned? */
char *GNTSEAL(title);
GList *GNTSEAL(focus); /* List of widgets to cycle focus (only valid for parent boxes) */
};
Access to any fields is deprecated. See inline comments for replacements.