module Gtk::Root


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

Defined in:



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.

[View source]

Class Method Detail

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

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

def display : Gdk::Display #

[View source]
def focus : Gtk::Widget | Nil #

[View source]
def focus=(focus : Gtk::Widget | Nil) : Nil #

[View source]
abstract def to_unsafe #

[View source]