quartz: introduce GdkQuartzWindow (as a subclass of GdkWindow)

This commit is contained in:
Kristian Rietveld 2010-12-22 16:56:44 +01:00
parent 3bc60a8149
commit b0ffe16f90
2 changed files with 44 additions and 0 deletions

View File

@ -63,6 +63,37 @@ static FullscreenSavedGeometry *get_fullscreen_geometry (GdkWindow *window);
GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN && \ GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN && \
GDK_WINDOW_TYPE (window) != GDK_WINDOW_OFFSCREEN) 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 * NSView *
gdk_quartz_window_get_nsview (GdkWindow *window) gdk_quartz_window_get_nsview (GdkWindow *window)
{ {

View File

@ -27,6 +27,19 @@
G_BEGIN_DECLS 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 /* Window implementation for Quartz
*/ */