Top | ![]() |
![]() |
![]() |
![]() |
A GtkCenterLayout is a layout manager that manages up to three children. The start widget is allocated at the start of the layout (left in LRT layouts and right in RTL ones), and the end widget at the end.
The center widget is centered regarding the full width of the layout's.
GtkLayoutManager *
gtk_center_layout_new (void
);
Creates a new GtkCenterLayout.
void gtk_center_layout_set_orientation (GtkCenterLayout *self
,GtkOrientation orientation
);
Sets the orientation of self
.
GtkOrientation
gtk_center_layout_get_orientation (GtkCenterLayout *self
);
Gets the current orienration of the layout manager.
void gtk_center_layout_set_baseline_position (GtkCenterLayout *self
,GtkBaselinePosition baseline_position
);
Sets the new baseline position of self
GtkBaselinePosition
gtk_center_layout_get_baseline_position
(GtkCenterLayout *self
);
Returns the baseline position of the layout.
void gtk_center_layout_set_start_widget (GtkCenterLayout *self
,GtkWidget *widget
);
Sets the new start widget of self
.
GtkWidget *
gtk_center_layout_get_start_widget (GtkCenterLayout *self
);
Returns the start widget fo the layout.
void gtk_center_layout_set_center_widget (GtkCenterLayout *self
,GtkWidget *widget
);
Sets the new center widget of self
GtkWidget *
gtk_center_layout_get_center_widget (GtkCenterLayout *self
);
Returns the center widget of the layout.
void gtk_center_layout_set_end_widget (GtkCenterLayout *self
,GtkWidget *widget
);
Sets the new end widget of self
GtkWidget *
gtk_center_layout_get_end_widget (GtkCenterLayout *self
);
Returns the end widget of the layout.