GtkOrientable — An interface for flippable widgets
GtkOrientation | orientation | Read / Write |
GInterface ╰── GtkOrientable
GtkOrientable requires GObject.
GtkOrientable is implemented by GtkBox, GtkBoxLayout, GtkCellAreaBox, GtkCellRendererProgress, GtkCellView, GtkFlowBox, GtkGrid, GtkGridView, GtkLevelBar, GtkListView, GtkPaned, GtkProgressBar, GtkRange, GtkScale, GtkScaleButton, GtkScrollbar, GtkSeparator, GtkShortcutsGroup, GtkShortcutsSection, GtkSpinButton and GtkVolumeButton.
#include <gtk/gtk.h>
The GtkOrientable interface is implemented by all widgets that can be oriented horizontally or vertically. GtkOrientable is more flexible in that it allows the orientation to be changed at runtime, allowing the widgets to “flip”.
GtkOrientation
gtk_orientable_get_orientation (GtkOrientable *orientable
);
Retrieves the orientation of the orientable
.
orientable |
the orientation of the orientable
.
void gtk_orientable_set_orientation (GtkOrientable *orientable
,GtkOrientation orientation
);
Sets the orientation of the orientable
.
orientable | ||
orientation | the orientable’s new orientation. |
typedef struct _GtkOrientable GtkOrientable;
“orientation”
property“orientation” GtkOrientation
The orientation of the orientable.
Owner: GtkOrientable
Flags: Read / Write
Default value: GTK_ORIENTATION_HORIZONTAL
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk4/4.0/gtk4-Orientable.html