GTK+ 2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties |
#include <gtk/gtk.h> GtkOrientable; GtkOrientation gtk_orientable_get_orientation (GtkOrientable *orientable
); void gtk_orientable_set_orientation (GtkOrientable *orientable
,GtkOrientation orientation
);
GtkOrientable is implemented by GtkBox, GtkButtonBox, GtkColorSelection, GtkCombo, GtkFileChooserButton, GtkFileChooserWidget, GtkFontSelection, GtkGammaCurve, GtkHBox, GtkHButtonBox, GtkHPaned, GtkHRuler, GtkHScale, GtkHScrollbar, GtkHSeparator, GtkInfoBar, GtkPaned, GtkRange, GtkRecentChooserWidget, GtkRuler, GtkScale, GtkScaleButton, GtkScrollbar, GtkSeparator, GtkStatusbar, GtkToolPalette, GtkToolbar, GtkVBox, GtkVButtonBox, GtkVPaned, GtkVRuler, GtkVScale, GtkVScrollbar, GtkVSeparator and GtkVolumeButton.
The GtkOrientable interface is implemented by all widgets that can be oriented horizontally or vertically. Historically, such widgets have been realized as subclasses of a common base class (e.g GtkBox/GtkHBox/GtkVBox and GtkScale/GtkHScale/GtkVScale). GtkOrientable is more flexible in that it allows the orientation to be changed at runtime, allowing the widgets to 'flip'.
GtkOrientable was introduced in GTK+ 2.16.
GtkOrientation gtk_orientable_get_orientation (GtkOrientable *orientable
);
Retrieves the orientation of the orientable
.
|
a GtkOrientable |
Returns : |
the orientation of the orientable . |
Since 2.16
void gtk_orientable_set_orientation (GtkOrientable *orientable
,GtkOrientation orientation
);
Sets the orientation of the orientable
.
|
a GtkOrientable |
|
the orientable's new orientation. |
Since 2.16
"orientation"
property"orientation" GtkOrientation : Read / Write
The orientation of the orientable.
Default value: GTK_ORIENTATION_HORIZONTAL
Since 2.16