| Top |
| GtkLayoutManager * | gnui_flow_layout_new () |
| gint | gnui_flow_layout_get_spacing () |
| void | gnui_flow_layout_set_spacing () |
| gint | gnui_flow_layout_get_leading () |
| void | gnui_flow_layout_set_leading () |
| GtkTextDirection | gnui_flow_layout_get_page_direction () |
| void | gnui_flow_layout_set_page_direction () |
| GtkJustification | gnui_flow_layout_get_page_justify () |
| void | gnui_flow_layout_set_page_justify () |
| GtkOrientation | gnui_flow_layout_get_orientation () |
| void | gnui_flow_layout_set_orientation () |
| GtkTextDirection | gnui_flow_layout_get_line_direction () |
| void | gnui_flow_layout_set_line_direction () |
| GtkJustification | gnui_flow_layout_get_line_justify () |
| void | gnui_flow_layout_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 |
| #define | GNUI_TYPE_FLOW_LAYOUT |
| #define | GNUI_TYPE_FLOW_CHILD_LAYOUT |
| struct | GnuiFlowChildLayoutClass |
| struct | GnuiFlowLayoutClass |
| GnuiFlowChildLayout | |
| GnuiFlowLayout |
GObject ├── GtkLayoutChild │ ╰── GnuiFlowChildLayout ╰── GtkLayoutManager ╰── GnuiFlowLayout
GnuiFlowLayout is a reusable layout manager that allocates widgets like
words in a text (exactly like GnuiFlow does).
You would normally use it in custom widgets derived directly from
GtkWidget, assigning GnuiFlowLayout to them as layout manager:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
static void xyz_foo_bar_class_init ( XyzFooBarClass * const klass ) { // ... GtkWidgetClass * const widget_class = GTK_WIDGET_CLASS(klass); // ... gtk_widget_class_set_layout_manager_type( widget_class, GNUI_TYPE_FLOW_LAYOUT ); // ... } |
GtkLayoutManager *
gnui_flow_layout_new (void);
Create a new flow layout manager
gint
gnui_flow_layout_get_spacing (GnuiFlowLayout * const self);
Get the flow layout manager's spacing between children in pixels
[get-property spacing]
void gnui_flow_layout_set_spacing (GnuiFlowLayout * const self,const gint spacing);
Set the flow layout manager's spacing between children in pixels
[set-property spacing]
gint
gnui_flow_layout_get_leading (GnuiFlowLayout * const self);
Get the flow layout manager's leading between children in pixels
[get-property leading]
void gnui_flow_layout_set_leading (GnuiFlowLayout * const self,const gint leading);
Set the flow layout manager's leading between children in pixels
[set-property leading]
GtkTextDirection
gnui_flow_layout_get_page_direction (GnuiFlowLayout * const self);
Get the flow layout manager's page direction
[get-property page-direction]
void gnui_flow_layout_set_page_direction (GnuiFlowLayout * const self,const GtkTextDirection direction);
Set the flow layout manager's page direction
[set-property page-direction]
GtkJustification
gnui_flow_layout_get_page_justify (GnuiFlowLayout * const self);
Get the flow layout manager's page justification
[get-property page-justify]
void gnui_flow_layout_set_page_justify (GnuiFlowLayout * const self,const GtkJustification justification);
Set the flow layout manager's page justification
[set-property page-justify]
GtkOrientation
gnui_flow_layout_get_orientation (GnuiFlowLayout * const self);
Get the flow layout manager's orientation
[get-property orientation]
void gnui_flow_layout_set_orientation (GnuiFlowLayout * const self,const GtkOrientation orientation);
Set the flow layout manager's orientation
[set-property orientation]
GtkTextDirection
gnui_flow_layout_get_line_direction (GnuiFlowLayout * const self);
Get the flow layout manager's line direction
[get-property line-direction]
void gnui_flow_layout_set_line_direction (GnuiFlowLayout * const self,const GtkTextDirection direction);
Set the flow layout manager's line direction
[set-property line-direction]
GtkJustification
gnui_flow_layout_get_line_justify (GnuiFlowLayout * const self);
Get the flow layout manager's line justification
[get-property line-justify]
void gnui_flow_layout_set_line_justify (GnuiFlowLayout * const self,const GtkJustification justification);
Set the flow layout manager's line justification
[set-property line-justify]
#define GNUI_TYPE_FLOW_LAYOUT (gnui_flow_layout_get_type())
The GType of GnuiFlowLayout
#define GNUI_TYPE_FLOW_CHILD_LAYOUT (gnui_flow_child_layout_get_type())
The GType of GnuiFlowChildLayout
struct GnuiFlowChildLayoutClass {
GtkLayoutChildClass parent_class;
};
The flow child layout's class
struct GnuiFlowLayoutClass {
GtkLayoutManagerClass parent_class;
};
The flow layout manager's class
typedef struct _GnuiFlowChildLayout GnuiFlowChildLayout;
The GnuiFlowChildLayout layout child
“leading” property “leading” int
Space between rows of children perpendicularly to the “orientation” axis.
Owner: GnuiFlowLayout
Flags: Read / Write
Default value: 0
“line-direction” property “line-direction” GtkTextDirection
The direction of child placement within the given “orientation” axis.
Owner: GnuiFlowLayout
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: GnuiFlowLayout
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: GnuiFlowLayout
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: GnuiFlowLayout
Flags: Read / Write
Default value: GTK_JUSTIFY_LEFT