| Top |
Known Implementations
GtkNative is implemented by GtkAboutDialog, GtkAppChooserDialog, GtkApplicationWindow, GtkAssistant, GtkColorChooserDialog, GtkDialog, GtkDragIcon, GtkEmojiChooser, GtkFileChooserDialog, GtkFontChooserDialog, GtkMessageDialog, GtkPageSetupUnixDialog, GtkPopover, GtkPopoverMenu, GtkPrintUnixDialog, GtkShortcutsWindow and GtkWindow.
Description
GtkNative is the interface implemented by all widgets that can provide a GdkSurface for widgets to render on.
Functions
gtk_native_get_for_surface ()
GtkWidget *
gtk_native_get_for_surface (GdkSurface *surface);
Finds the GtkNative associated with the surface.
gtk_native_get_surface ()
GdkSurface *
gtk_native_get_surface (GtkNative *self);
Returns the surface of this GtkNative.
gtk_native_get_renderer ()
GskRenderer *
gtk_native_get_renderer (GtkNative *self);
Returns the renderer that is used for this GtkNative.
gtk_native_check_resize ()
void
gtk_native_check_resize (GtkNative *self);
Reposition and resize a GtkNative.
Widgets need to call this function on their attached native widgets when they receive a new size allocation.
gtk_native_get_surface_transform ()
void gtk_native_get_surface_transform (GtkNative *self,double *x,double *y);
Retrieves the surface transform of self
. This is the translation
from self
's surface coordinates into self
's widget coordinates.
