Native


Object Hierarchy:

Gtk.Native Gtk.Native Gtk.Native Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Native 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

Description:

[ CCode ( type_cname = "GtkNativeInterface" , type_id = "gtk_native_get_type ()" ) ]
public interface Native : Widget

`GtkNative` is the interface implemented by all widgets that have their own `GdkSurface`.

The obvious example of a `GtkNative` is `GtkWindow`.

Every widget that is not itself a `GtkNative` is contained in one, and you can get it with [[email protected]_native].

To get the surface of a `GtkNative`, use [[email protected]_surface]. It is also possible to find the `GtkNative` to which a surface belongs, with [[email protected]_for_surface].

In addition to a [[email protected]], a `GtkNative` also provides a [[email protected]] for rendering on that surface. To get the renderer, use [[email protected]_renderer].

All known sub-interfaces:

Namespace: Gtk
Package: gtk4

Content:

Static methods:

Methods:

Inherited Members:

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



2022 vala-language.org