2020-08-13 23:21:05 +00:00
|
|
|
#ifndef __GTK_NATIVE_PRIVATE_H__
|
|
|
|
#define __GTK_NATIVE_PRIVATE_H__
|
|
|
|
|
|
|
|
#include "gtknative.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GtkNativeIface:
|
|
|
|
*
|
2021-05-20 13:17:04 +00:00
|
|
|
* The list of functions that must be implemented for the `GtkNative` interface.
|
2020-08-13 23:21:05 +00:00
|
|
|
*/
|
|
|
|
struct _GtkNativeInterface
|
|
|
|
{
|
|
|
|
/*< private >*/
|
|
|
|
GTypeInterface g_iface;
|
|
|
|
|
|
|
|
/*< public >*/
|
|
|
|
GdkSurface * (* get_surface) (GtkNative *self);
|
|
|
|
GskRenderer * (* get_renderer) (GtkNative *self);
|
|
|
|
|
|
|
|
void (* get_surface_transform) (GtkNative *self,
|
|
|
|
double *x,
|
|
|
|
double *y);
|
|
|
|
|
2020-12-02 10:59:23 +00:00
|
|
|
void (* layout) (GtkNative *self,
|
|
|
|
int width,
|
|
|
|
int height);
|
2020-08-13 23:21:05 +00:00
|
|
|
};
|
|
|
|
|
2020-12-02 10:59:23 +00:00
|
|
|
void gtk_native_queue_relayout (GtkNative *native);
|
2022-02-11 00:21:48 +00:00
|
|
|
void gtk_native_update_opaque_region (GtkNative *native,
|
|
|
|
GtkWidget *contents,
|
|
|
|
gboolean subtract_decoration_corners,
|
|
|
|
gboolean subtract_shadow,
|
|
|
|
int resize_handle_size);
|
2020-12-02 10:59:23 +00:00
|
|
|
|
2020-08-13 23:21:05 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_NATIVE_PRIVATE_H__ */
|