Package ch.bailu.gtk.gtk
Class Native
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.Interface
ch.bailu.gtk.gtk.Native
- All Implemented Interfaces:
PointerInterface
`GtkNative` is the interface implemented by all 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 [method@Gtk.Widget.get_native].
To get the surface of a `GtkNative`, use [method@Gtk.Native.get_surface].
It is also possible to find the `GtkNative` 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].
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 [method@Gtk.Widget.get_native].
To get the surface of a `GtkNative`, use [method@Gtk.Native.get_surface].
It is also possible to find the `GtkNative` 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].
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
static Native
getForSurface
(Surface surface) Finds the `GtkNative` associated with the surface.static int
static long
static TypeSystem.TypeSize
Returns the renderer that is used for this `GtkNative`.Returns the surface of this `GtkNative`.static long
static TypeSystem.TypeSize
void
realize()
Realizes a `GtkNative`.void
Unrealizes a `GtkNative`.Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
Native
-
-
Method Details
-
getClassHandler
-
getRenderer
Returns the renderer that is used for this `GtkNative`.- Returns:
- the renderer for @self
-
getSurface
Returns the surface of this `GtkNative`.- Returns:
- the surface of @self
-
realize
public void realize()Realizes a `GtkNative`.
This should only be used by subclasses. -
unrealize
public void unrealize()Unrealizes a `GtkNative`.
This should only be used by subclasses. -
getForSurface
Finds the `GtkNative` associated with the surface.- Parameters:
surface
- a `GdkSurface`- Returns:
- the `GtkNative` that is associated with @surface
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-