Gtk.Orientable

const Gtk = imports.gi.Gtk;

let orientable = new Gtk.Orientable({
    orientation: value,
});
  

The Gtk.Orientable 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 Gtk.Box/Gtk.HBox/Gtk.VBox or Gtk.Scale/Gtk.HScale/Gtk.VScale). Gtk.Orientable is more flexible in that it allows the orientation to be changed at runtime, allowing the widgets to 'flip'.

Gtk.Orientable was introduced in GTK+ 2.16.

Hierarchy

  • Gtk.Orientable