Commit 5536d9bc authored by Matthias Clasen's avatar Matthias Clasen

gdk: Add private API for rendering mode

This will be used to expose rendering mode in the inspector.
parent 8338b7e4
......@@ -13,6 +13,8 @@ gdk__private__ (void)
gdk_gl_set_flags,
gdk_window_freeze_toplevel_updates,
gdk_window_thaw_toplevel_updates,
gdk_display_get_rendering_mode,
gdk_display_set_rendering_mode
};
return &table;
......
......@@ -23,6 +23,10 @@ void gdk_gl_set_flags (GdkGLFlags flags);
void gdk_window_freeze_toplevel_updates (GdkWindow *window);
void gdk_window_thaw_toplevel_updates (GdkWindow *window);
GdkRenderingMode gdk_display_get_rendering_mode (GdkDisplay *display);
void gdk_display_set_rendering_mode (GdkDisplay *display,
GdkRenderingMode mode);
typedef struct {
/* add all private functions here, initialize them in gdk-private.c */
gboolean (* gdk_device_grab_info) (GdkDisplay *display,
......@@ -34,10 +38,16 @@ typedef struct {
void (* gdk_add_option_entries) (GOptionGroup *group);
void (* gdk_pre_parse) (void);
GdkGLFlags (* gdk_gl_get_flags) (void);
void (* gdk_gl_set_flags) (GdkGLFlags flags);
void (* gdk_gl_set_flags) (GdkGLFlags flags);
void (* gdk_window_freeze_toplevel_updates) (GdkWindow *window);
void (* gdk_window_thaw_toplevel_updates) (GdkWindow *window);
GdkRenderingMode (* gdk_display_get_rendering_mode) (GdkDisplay *display);
void (* gdk_display_set_rendering_mode) (GdkDisplay *display,
GdkRenderingMode mode);
} GdkPrivateVTable;
GDK_AVAILABLE_IN_ALL
......
......@@ -2289,3 +2289,16 @@ gdk_display_make_gl_context_current (GdkDisplay *display,
{
return GDK_DISPLAY_GET_CLASS (display)->make_gl_context_current (display, context);
}
GdkRenderingMode
gdk_display_get_rendering_mode (GdkDisplay *display)
{
return display->rendering_mode;
}
void
gdk_display_set_rendering_mode (GdkDisplay *display,
GdkRenderingMode mode)
{
display->rendering_mode = mode;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment