Commit b0ffe16f authored by Kristian Rietveld's avatar Kristian Rietveld

quartz: introduce GdkQuartzWindow (as a subclass of GdkWindow)

parent 3bc60a81
......@@ -63,6 +63,37 @@ static FullscreenSavedGeometry *get_fullscreen_geometry (GdkWindow *window);
GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN && \
GDK_WINDOW_TYPE (window) != GDK_WINDOW_OFFSCREEN)
/*
* GdkQuartzWindow
*/
struct _GdkQuartzWindow
{
GdkWindow parent;
};
struct _GdkQuartzWindowClass
{
GdkWindowClass parent_class;
};
G_DEFINE_TYPE (GdkQuartzWindow, gdk_quartz_window, GDK_TYPE_WINDOW);
static void
gdk_quartz_window_class_init (GdkQuartzWindowClass *quartz_window_class)
{
}
static void
gdk_quartz_window_init (GdkQuartzWindow *quartz_window)
{
}
/*
* GdkQuartzWindowImpl
*/
NSView *
gdk_quartz_window_get_nsview (GdkWindow *window)
{
......
......@@ -27,6 +27,19 @@
G_BEGIN_DECLS
#define GDK_TYPE_QUARTZ_WINDOW (gdk_quartz_window_get_type ())
#define GDK_QUARTZ_WINDOW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_QUARTZ_WINDOW, GdkQuartzWindow))
#define GDK_QUARTZ_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_QUARTZ_WINDOW, GdkQuartzWindowClass))
#define GDK_IS_QUARTZ_WINDOW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_QUARTZ_WINDOW))
#define GDK_IS_QUARTZ_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_QUARTZ_WINDOW))
#define GDK_QUARTZ_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_QUARTZ_WINDOW, GdkQuartzWindowClass))
typedef struct _GdkQuartzWindow GdkQuartzWindow;
typedef struct _GdkQuartzWindowClass GdkQuartzWindowClass;
GType gdk_quartz_window_get_type (void);
/* Window implementation for Quartz
*/
......
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