Gtk.Native¶
- Implementations:
Methods¶
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
None
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gtk.Native¶
- Bases:
- Structure:
GtkNative
is the interface implemented by all widgets that have their ownGdkSurface
.The obvious example of a
GtkNative
isGtkWindow
.Every widget that is not itself a
GtkNative
is contained in one, and you can get it with [method`Gtk`.Widget.get_native].To get the surface of a
GtkNative
, use [method`Gtk`.Native.get_surface]. It is also possible to find theGtkNative
to which a surface belongs, with [func`Gtk`.Native.get_for_surface].In addition to a [class`Gdk`.Surface], a
GtkNative
also provides a [class`Gsk`.Renderer] for rendering on that surface. To get the renderer, use [method`Gtk`.Native.get_renderer].- classmethod get_for_surface(surface)[source]¶
- Parameters:
surface (
Gdk.Surface
) – aGdkSurface
- Returns:
the
GtkNative
that is associated with surface- Return type:
Gtk.Native
orNone
Finds the
GtkNative
associated with the surface.
- get_renderer()[source]¶
- Returns:
the renderer for self
- Return type:
Returns the renderer that is used for this
GtkNative
.
- get_surface()[source]¶
- Returns:
the surface of self
- Return type:
Returns the surface of this
GtkNative
.