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.NativeImpl, PageSetupUnixDialog, Popover, PopoverMenu, PreferencesWindow, PrintUnixDialog, Root.RootImpl, ShortcutsWindow, Window, Window

@Generated("io.github.jwharm.JavaGI") public interface Native extends Proxy
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 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().