mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
quartz: introduce GdkQuartzWindow (as a subclass of GdkWindow)
This commit is contained in:
parent
3bc60a8149
commit
b0ffe16f90
@ -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
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user