Package org.gnome.gtk
Interface Native
- All Superinterfaces:
Proxy
- All Known Subinterfaces:
Root
- All Known Implementing Classes:
AboutDialog,AboutWindow,AppChooserDialog,ApplicationWindow,ApplicationWindow,Assistant,ColorChooserDialog,Dialog,DragIcon,EmojiChooser,FileChooserDialog,FontChooserDialog,MessageDialog,MessageDialog,Native.Native$Impl,PageSetupUnixDialog,Popover,PopoverMenu,PreferencesWindow,PrintUnixDialog,Root.Root$Impl,ShortcutsWindow,Window,Window
An interface for widgets that have their own
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.getNative().
To get the surface of a GtkNative, use getSurface().
It is also possible to find the GtkNative to which a surface
belongs, with getForSurface(org.gnome.gdk.Surface).
In addition to a Surface, a GtkNative also provides
a Renderer for rendering on that surface. To get the
renderer, use getRenderer().
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe Native$Impl type represents a native instance of the Native interface.static class -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable NativegetForSurface(Surface surface) Finds theGtkNativeassociated with the surface.default @Nullable RendererReturns the renderer that is used for thisGtkNative.default @Nullable SurfaceReturns the surface of thisGtkNative.default voidgetSurfaceTransform(Out<Double> x, Out<Double> y) Retrieves the surface transform ofself.static @Nullable TypegetType()Get the GType of the Native classdefault voidrealize()Realizes aGtkNative.default voidUnrealizes aGtkNative.
-
Method Details
-
getType
-
getForSurface
-
getRenderer
Returns the renderer that is used for thisGtkNative.- Returns:
- the renderer for this Native
-
getSurface
Returns the surface of thisGtkNative.- Returns:
- the surface of this Native
-
getSurfaceTransform
-
realize
default void realize()Realizes aGtkNative.This should only be used by subclasses.
-
unrealize
default void unrealize()Unrealizes aGtkNative.This should only be used by subclasses.
-