gtk.native_mixin
Module for [Native] interface mixin
Templates 2
[gtk.native.Native] is the interface implemented by all widgets that have their own [gdk.surface.Surface].
The obvious example of a [gtk.native.Native] is [gtk.window.Window].
Every widget that is not itself a [gtk.native.Native] is contained in one, and you can get it with [gtk.widget.Widget.getNative].
To get the surface of a [gtk.native.Native], use [gtk.native.Native.getSurface]. It is also possible to find the [gtk.native.Native] to which a surface belongs, with [gtk.native.Native.getForSurface].
In addition to a [gdk.surface.Surface], a [gtk.native.Native] also provides a [gsk.renderer.Renderer] for rendering on that surface. To get the renderer, use [gtk.native.Native.getRenderer].
Returns the renderer that is used for this [gtk.native.Native].
Returns
Returns the surface of this [gtk.native.Native].
Returns
Retrieves the surface transform of self.
This is the translation from self's surface coordinates into self's widget coordinates.
Parameters
x | return location for the x coordinate |
y | return location for the y coordinate |
Realizes a [gtk.native.Native].
This should only be used by subclasses.
Unrealizes a [gtk.native.Native].
This should only be used by subclasses.