Compilation Units
Tagged Types
An interface for widgets that have their own [classGdk.Surface].
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 [methodGtk.Widget.get_native].
To get the surface of a GtkNative, use [methodGtk.Native.get_surface]. It is also possible to find the GtkNative to which a surface belongs, with [funcGtk.Native.get_for_surface].
In addition to a [classGdk.Surface], a GtkNative also provides a [classGsk.Renderer] for rendering on that surface. To get the renderer, use [methodGtk.Native.get_renderer].
function "+" (W : Gtk_Native) return Gtk_Native
function Get_Surface (Self : Gtk_Native) return Gdk.Gdk_Surface
Returns the surface of this GtkNative.
the surface of Self. Has transfer-ownership='none'.
procedure Get_Surface_Transform
(Self : Gtk_Native;
X : out Gdouble;
Y : out Gdouble)
Retrieves the surface transform of Self. This is the translation from Self's surface coordinates into Self's widget coordinates.
return location for the x coordinate
return location for the y coordinate
function Get_Type return Glib.GType
type Gtk_Native is new Glib.Types.GType_Interface;
Null_Gtk_Native : constant Gtk_Native;
procedure Realize (Self : Gtk_Native)
Realizes a GtkNative. This should only be used by subclasses.
procedure Unrealize (Self : Gtk_Native)
Unrealizes a GtkNative. This should only be used by subclasses.