Interface Orientable

All Superinterfaces:
Proxy
All Known Implementing Classes:
Box, BoxLayout, Carousel, CarouselIndicatorDots, CarouselIndicatorLines, CellAreaBox, CellRendererProgress, CellView, CenterBox, Clamp, ClampLayout, ClampScrollable, Flap, FlowBox, Grid, GridView, InlineViewSwitcher, Leaflet, LevelBar, ListBase, ListBase.ListBase$Impl, ListView, Orientable.Orientable$Impl, Paned, ProgressBar, Range, Scale, ScaleButton, Scrollbar, Separator, ShortcutsGroup, ShortcutsSection, SpinButton, Squeezer, StackSwitcher, SwipeTracker, ToggleGroup, VolumeButton, WrapBox, WrapLayout

@Generated("org.javagi.JavaGI") public interface Orientable extends Proxy

An interface for 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 Gtk.Orientable:orientation property.

  • Method Details

    • getType

      static @Nullable Type getType()
      Get the GType of the Orientable class.
      Returns:
      the GType
    • getOrientation

      default Orientation getOrientation()
      Retrieves the orientation of the orientable.
      Returns:
      the orientation of the this Orientable
    • setOrientation

      default void setOrientation(Orientation orientation)
      Sets the orientation of the orientable.
      Parameters:
      orientation - the orientable’s new orientation