Package org.gnome.gtk
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
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceOrientable.Builder<B extends Builder<B>>static classThe Orientable$Impl type represents a native instance of the Orientable interface.static class -
Method Summary
Modifier and TypeMethodDescriptiondefault OrientationRetrieves the orientation of theorientable.static @Nullable TypegetType()Get the GType of the Orientable classdefault voidsetOrientation(Orientation orientation) Sets the orientation of theorientable.
-
Method Details
-
getType
-
getOrientation
Retrieves the orientation of theorientable.- Returns:
- the orientation of the this Orientable
-
setOrientation
Sets the orientation of theorientable.- Parameters:
orientation- the orientable’s new orientation
-