gtk.native_mixin

Module for Native interface mixin

Templates 2

tmplNativeT()

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.

Functions
gsk.renderer.Renderer getRenderer()

Returns the renderer that is used for this gtk.native.Native.

Returns

the renderer for self
gdk.surface.Surface getSurface()

Returns the surface of this gtk.native.Native.

Returns

the surface of self
void getSurfaceTransform(out double x, out double y)

Retrieves the surface transform of self.

This is the translation from self's surface coordinates into self's widget coordinates.

Parameters

xreturn location for the x coordinate
yreturn location for the y coordinate
void realize()

Realizes a gtk.native.Native.

This should only be used by subclasses.

void unrealize()

Unrealizes a gtk.native.Native.

This should only be used by subclasses.

tmplNativeGidBuilderT()

Fluent builder implementation template for gtk.native.Native