module Gtk::Orientable

Overview

An interface for widgets that can be oriented horizontally or vertically.

Gtk::Orientable is more flexible in that it allows the orientation to be changed at runtime, allowing the widgets to “flip”.

CSS nodes

Gtk::Widget types implementing the Gtk::Orientable interface will automatically acquire the horizontal or vertical CSS class depending on the value of the Gtk::Orientable#orientation property.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/orientable.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.


Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

def self.g_type : UInt64 #

Instance Method Detail

def orientation : Gtk::Orientation #

def orientation=(orientation : Gtk::Orientation) : Nil #

abstract def to_unsafe #