Root


Object Hierarchy:

Gtk.Root Gtk.Root Gtk.Root Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Root GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.Widget Gtk.Native Gtk.Native Gtk.Native->Gtk.Root

Description:

[ CCode ( type_cname = "GtkRootInterface" , type_id = "gtk_root_get_type ()" ) ]
public interface Root : Widget, Native

`GtkRoot` 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 `GtkRoot` is `GtkWindow`.

To get the display to which a `GtkRoot` belongs, use [[email protected]_display].

`GtkRoot` also maintains the location of keyboard focus inside its widget hierarchy, with [[email protected]_focus] and [ [email protected]_focus].


Namespace: Gtk
Package: gtk4

Content:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Native



2022 vala-language.org