:right-sidebar: True Orientable =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: Orientable(*args, **kwargs) :no-contents-entry: Implementations: :class:`~gi.repository.Gtk.Box`, :class:`~gi.repository.Gtk.BoxLayout`, :class:`~gi.repository.Gtk.CellAreaBox`, :class:`~gi.repository.Gtk.CellRendererProgress`, :class:`~gi.repository.Gtk.CellView`, :class:`~gi.repository.Gtk.CenterBox`, :class:`~gi.repository.Gtk.FlowBox`, :class:`~gi.repository.Gtk.Grid`, :class:`~gi.repository.Gtk.GridView`, :class:`~gi.repository.Gtk.LevelBar`, :class:`~gi.repository.Gtk.ListBase`, :class:`~gi.repository.Gtk.ListView`, :class:`~gi.repository.Gtk.Paned`, :class:`~gi.repository.Gtk.ProgressBar`, :class:`~gi.repository.Gtk.Range`, :class:`~gi.repository.Gtk.Scale`, :class:`~gi.repository.Gtk.ScaleButton`, :class:`~gi.repository.Gtk.Scrollbar`, :class:`~gi.repository.Gtk.Separator`, :class:`~gi.repository.Gtk.ShortcutsGroup`, :class:`~gi.repository.Gtk.ShortcutsSection`, :class:`~gi.repository.Gtk.SpinButton`, :class:`~gi.repository.Gtk.StackSwitcher`, :class:`~gi.repository.Gtk.VolumeButton` 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”. CSS nodes --------- ``GtkWidget`` types implementing the ``GtkOrientable`` interface will automatically acquire the ``horizontal`` or ``vertical`` CSS class depending on the value of the :obj:`~gi.repository.Gtk.Orientable.props.orientation` property. Methods ------- .. rst-class:: interim-class .. class:: Orientable :no-index: .. method:: get_orientation() -> ~gi.repository.Gtk.Orientation Retrieves the orientation of the ``orientable``. .. method:: set_orientation(orientation: ~gi.repository.Gtk.Orientation) -> None Sets the orientation of the ``orientable``. :param orientation: the orientable’s new orientation Properties ---------- .. rst-class:: interim-class .. class:: Orientable :no-index: .. attribute:: props.orientation :type: ~gi.repository.Gtk.Orientation The orientation of the orientable.