module
Gtk::Root
Overview
Gtk::Root is the interface implemented by all widgets that can act as a toplevel
widget.
The root widget takes care of providing the connection to the windowing system and manages layout, drawing and event delivery for its widget hierarchy.
The obvious example of a Gtk::Root is Gtk::Window.
To get the display to which a Gtk::Root belongs, use
Gtk::Root#display.
Gtk::Root also maintains the location of keyboard focus inside its widget
hierarchy, with Gtk::Root#focus= and Gtk::Root#focus.
Direct including types
- Gtk::AboutDialog
- Gtk::AppChooserDialog
- Gtk::ApplicationWindow
- Gtk::Assistant
- Gtk::ColorChooserDialog
- Gtk::Dialog
- Gtk::DragIcon
- Gtk::FileChooserDialog
- Gtk::FontChooserDialog
- Gtk::MessageDialog
- Gtk::PageSetupUnixDialog
- Gtk::PrintUnixDialog
- Gtk::ShortcutsWindow
- Gtk::Window
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/root.crConstructors
-
.cast(obj : GObject::Object) : self
Cast a
GObject::Objecttoself, throws aTypeCastErrorif the cast can't be made.
Class Method Summary
Instance Method Summary
- #display : Gdk::Display
- #focus : Gtk::Widget | Nil
- #focus=(focus : Gtk::Widget | Nil) : Nil
- #to_unsafe
Constructor Detail
Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.