Top | ![]() |
![]() |
![]() |
![]() |
GtkNative is implemented by GtkAboutDialog, GtkAppChooserDialog, GtkApplicationWindow, GtkAssistant, GtkColorChooserDialog, GtkDialog, GtkDragIcon, GtkEmojiChooser, GtkFileChooserDialog, GtkFontChooserDialog, GtkMessageDialog, GtkPageSetupUnixDialog, GtkPopover, GtkPopoverMenu, GtkPrintUnixDialog, GtkShortcutsWindow and GtkWindow.
GtkNative is the interface implemented by all widgets that can provide a GdkSurface for widgets to render on.
GtkNative *
gtk_native_get_for_surface (GdkSurface *surface
);
Finds the GtkNative associated with the surface.
GdkSurface *
gtk_native_get_surface (GtkNative *self
);
Returns the surface of this GtkNative.
GskRenderer *
gtk_native_get_renderer (GtkNative *self
);
Returns the renderer that is used for this GtkNative.
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.
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.