Top |
GtkWidget * | gnui_flow_new () |
GtkWidget * | gnui_flow_new_with_params () |
GtkWidget * | gnui_flow_new_with_params_and_children () |
void | gnui_flow_append () |
void | gnui_flow_prepend () |
void | gnui_flow_remove () |
void | gnui_flow_insert () |
void | gnui_flow_insert_child_before () |
void | gnui_flow_insert_child_after () |
void | gnui_flow_populate_before () |
void | gnui_flow_populate_after () |
void | gnui_flow_clear () |
gint | gnui_flow_get_spacing () |
void | gnui_flow_set_spacing () |
gint | gnui_flow_get_leading () |
void | gnui_flow_set_leading () |
GtkTextDirection | gnui_flow_get_page_direction () |
void | gnui_flow_set_page_direction () |
GtkJustification | gnui_flow_get_page_justify () |
void | gnui_flow_set_page_justify () |
GtkOrientation | gnui_flow_get_orientation () |
void | gnui_flow_set_orientation () |
GtkTextDirection | gnui_flow_get_line_direction () |
void | gnui_flow_set_line_direction () |
GtkJustification | gnui_flow_get_line_justify () |
void | gnui_flow_set_line_justify () |
int | leading | Read / Write |
GtkTextDirection | line-direction | Read / Write |
GtkJustification | line-justify | Read / Write |
GtkTextDirection | page-direction | Read / Write |
GtkJustification | page-justify | Read / Write |
int | spacing | Read / Write |
GnuiFlow implements GtkAccessible, GtkBuildable, GtkConstraintTarget and GtkOrientable.
GnuiFlow
is a container widget that allocates its children widgets like
words in a text.
Most of the machinery that allows GnuiFlow
to behave the way it behaves
is done by its layout manager, GnuiFlowLayout
(in fact, widgets that
adopt GnuiFlowLayout
as their layout manager will behave like
GnuiFlow
). However GnuiFlow
offers a rich set of convenience functions
for populating its content.
GnuiFlow
does not align its children widgets in columns like GtkFlowBox
does. If you need that kind of table-like look, please refer to
GtkFlowBox
.
GtkWidget * gnui_flow_new_with_params (const GtkOrientation orientation
,const gint spacing
,const gint leading
);
Create a new flow container widget with parameters
GtkWidget * gnui_flow_new_with_params_and_children (const GtkOrientation orientation
,const gint spacing
,const gint leading
,...
);
Create a new flow container widget with parameters and children
Example:
1 2 3 4 5 6 7 8 9 10 |
gnui_flow_new_with_params_and_children( GTK_ORIENTATION_HORIZONTAL, 6, 6, gtk_label_new("Child one"), gtk_label_new("Child two"), gtk_label_new("Child three"), gtk_label_new("etc."), NULL ) |
orientation |
The flow container's orientation |
|
spacing |
The spacing between the children of the flow container in pixels (can be negative for overlapping widgets) |
|
leading |
The leading between the children of the flow container in pixels (can be negative for overlapping widgets) |
|
... |
Zero or more widgets to insert as children in the newly
created flow container, followed by |
void gnui_flow_append (GnuiFlow * const self
,GtkWidget * const widget
);
Append a widget as the last child of a flow container
void gnui_flow_prepend (GnuiFlow * const self
,GtkWidget * const widget
);
Prepend a widget as the first child of a flow container
void gnui_flow_remove (GnuiFlow * const self
,GtkWidget * const child
);
Remove a child from a flow container
void gnui_flow_insert (GnuiFlow * const self
,GtkWidget * const widget
,const gint at_index
);
Insert a widget as the nth child of a flow container
void gnui_flow_insert_child_before (GnuiFlow * const self
,GtkWidget * const widget
,GtkWidget * const next_sibling
);
Insert a widget as the nth child of a flow container
void gnui_flow_insert_child_after (GnuiFlow * const self
,GtkWidget * const widget
,GtkWidget * const previous_sibling
);
Insert a widget in a flow container after an existing child
void gnui_flow_populate_before (GnuiFlow * const self
,GtkWidget * const next_sibling
,GtkWidget * const widget_1
,...
);
Insert a group of widgets in a flow container before an existing child
self |
The flow container. |
[not nullable] |
widget |
The child to insert. |
[not nullable] |
next_sibling |
The flow child before which the widgets must be
inserted; if |
[nullable] |
... |
Zero or more widgets to insert after |
void gnui_flow_populate_after (GnuiFlow * const self
,GtkWidget * const previous_sibling
,GtkWidget * const widget_1
,...
);
Insert a group of widgets in a flow container after an existing child
self |
The flow container. |
[not nullable] |
widget |
The child to insert. |
[not nullable] |
previous_sibling |
The flow child after which the widgets must
be inserted; if |
[nullable] |
... |
Zero or more widgets to insert after |
void
gnui_flow_clear (GnuiFlow * const self
);
Remove all the children nested inside a flow container
gint
gnui_flow_get_spacing (GnuiFlow * const self
);
Get the spacing between the children of a flow container in pixels
[get-property spacing]
void gnui_flow_set_spacing (GnuiFlow * const self
,const gint spacing
);
Set the spacing between the children of a flow container in pixels
[set-property spacing]
gint
gnui_flow_get_leading (GnuiFlow * const self
);
Get the leading between the children of a flow container in pixels
[get-property leading]
void gnui_flow_set_leading (GnuiFlow * const self
,const gint leading
);
Set the leading between the children of the flow container in pixels
[set-property leading]
GtkTextDirection
gnui_flow_get_page_direction (GnuiFlow * const self
);
Get the flow container's page direction
[get-property page-direction]
void gnui_flow_set_page_direction (GnuiFlow * const self
,const GtkTextDirection direction
);
Set the flow container's page direction
[set-property page-direction]
GtkJustification
gnui_flow_get_page_justify (GnuiFlow * const self
);
Get the flow container's page justification
[get-property page-justify]
void gnui_flow_set_page_justify (GnuiFlow * const self
,const GtkJustification justification
);
Set the flow container's page justification
[set-property page-justify]
GtkOrientation
gnui_flow_get_orientation (GnuiFlow * const self
);
Get the flow container's orientation
[get-property orientation]
void gnui_flow_set_orientation (GnuiFlow * const self
,const GtkOrientation orientation
);
Set the flow container's orientation
[set-property orientation]
GtkTextDirection
gnui_flow_get_line_direction (GnuiFlow * const self
);
Get the flow container's line direction
[get-property line-direction]
void gnui_flow_set_line_direction (GnuiFlow * const self
,const GtkTextDirection direction
);
Set the flow container's line direction
[set-property line-direction]
GtkJustification
gnui_flow_get_line_justify (GnuiFlow * const self
);
Get the flow container's line justification
[get-property line-justify]
void gnui_flow_set_line_justify (GnuiFlow * const self
,const GtkJustification justification
);
Set the flow container's line justification
[set-property line-justify]
“leading”
property “leading” int
Space between rows of children perpendicularly to the “orientation” axis.
Owner: GnuiFlow
Flags: Read / Write
Default value: 0
“line-direction”
property “line-direction” GtkTextDirection
The direction of child placement within the given “orientation” axis.
Owner: GnuiFlow
Flags: Read / Write
Default value: GTK_TEXT_DIR_LTR
“line-justify”
property “line-justify” GtkJustification
The alignment of the children relative to each other within each line; this does not affect the alignment of the flow widget within its allocation – see “halign” and “valign” for that.
Owner: GnuiFlow
Flags: Read / Write
Default value: GTK_JUSTIFY_LEFT
“page-direction”
property “page-direction” GtkTextDirection
The direction of child placement perpendicularly to the “orientation” axis.
Owner: GnuiFlow
Flags: Read / Write
Default value: GTK_TEXT_DIR_LTR
“page-justify”
property “page-justify” GtkJustification
The alignment of the lines of children widgets relative to each other; this does not affect the alignment of the flow widget within its allocation – see “halign” and “valign” for that.
Owner: GnuiFlow
Flags: Read / Write
Default value: GTK_JUSTIFY_LEFT