Gtk.Native¶
interface
An interface for widgets that have their own Gdk.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 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 Gdk.Surface, a GtkNative also provides
a Gsk.Renderer for rendering on that surface. To get the
renderer, use Native.get_renderer.
Methods¶
get_renderer¶
Returns the renderer that is used for this GtkNative.
get_surface¶
Returns the surface of this GtkNative.
get_surface_transform¶
Retrieves the surface transform of self.
This is the translation from self's surface coordinates into
self's widget coordinates.
realize¶
Realizes a GtkNative.
This should only be used by subclasses.
unrealize¶
Unrealizes a GtkNative.
This should only be used by subclasses.
Static functions¶
get_for_surface¶
Finds the GtkNative associated with the surface.
Parameters:
surface— aGdkSurface