An interface for 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 widget:get-native.
To get the surface of a <GtkNative>, use
native:get-surface. It is also
possible to find the <GtkNative> to which a surface
belongs, with native:get-for-surface.
In addition to a <GdkSurface>, a
<GtkNative> also provides a
<GskRenderer> for rendering on that surface.
To get the renderer, use native:get-renderer.
Finds the <GtkNative> associated with the surface.
Passed: a <GdkSurface>.
Returned: a <GtkNative>, or #f.
the <GtkNative> that is associated with
surface
Returns the renderer that is used for this
<GtkNative>.
Passed: a <GtkNative>.
Returned: a <GskRenderer>, or #f.
the renderer for self
Returns the surface of this <GtkNative>.
Passed: a <GtkNative>.
Returned: a <GdkSurface>, or #f.
the surface of self
Retrieves the surface transform of self.
This is the translation from self’s surface coordinates into self’s widget coordinates.
Passed: a <GtkNative>.
Returned: a real number.
return location for the x coordinate
Returned: a real number.
return location for the y coordinate
Realizes a <GtkNative>.
This should only be used by subclasses.
Passed: a <GtkNative>.
Unrealizes a <GtkNative>.
This should only be used by subclasses.
Passed: a <GtkNative>.