GtkNative — Interface for widgets having surfaces
GtkNative * | gtk_native_get_for_surface () |
GdkSurface * | gtk_native_get_surface () |
GskRenderer * | gtk_native_get_renderer () |
void | gtk_native_get_surface_transform () |
void | gtk_native_realize () |
void | gtk_native_unrealize () |
GInterface ╰── GtkNative
GtkNative requires GtkWidget.
GtkNative is required by GtkRoot.
GtkNative is implemented by GtkAboutDialog, GtkAppChooserDialog, GtkApplicationWindow, GtkAssistant, GtkColorChooserDialog, GtkDialog, GtkDragIcon, GtkEmojiChooser, GtkFileChooserDialog, GtkFontChooserDialog, GtkMessageDialog, GtkPageSetupUnixDialog, GtkPopover, GtkPopoverMenu, GtkPrintUnixDialog, GtkShortcutsWindow and GtkWindow.
#include <gtk/gtk.h>
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.
surface |
GdkSurface *
gtk_native_get_surface (GtkNative *self
);
Returns the surface of this GtkNative.
self |
the surface of self
.
[transfer none]
GskRenderer *
gtk_native_get_renderer (GtkNative *self
);
Returns the renderer that is used for this GtkNative.
self |
the renderer for self
.
[transfer none]
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.
self | a | |
x | return location for the x coordinate. | [out] |
y | return location for the y coordinate. | [out] |
typedef struct _GtkNative GtkNative;
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk4/4.0/GtkNative.html