quartz: Clean up header files, use same arrangement as X11 backend
This commit is contained in:
@ -22,11 +22,25 @@
|
||||
|
||||
#include "gdkdisplay.h"
|
||||
#include "gdkcursor.h"
|
||||
#include "gdkcursor-quartz.h"
|
||||
#include "gdkcursorprivate.h"
|
||||
#include "gdkquartzcursor.h"
|
||||
#include "gdkprivate-quartz.h"
|
||||
|
||||
#include "xcursors.h"
|
||||
|
||||
struct _GdkQuartzCursor
|
||||
{
|
||||
GdkCursor cursor;
|
||||
|
||||
NSCursor *nscursor;
|
||||
};
|
||||
|
||||
struct _GdkQuartzCursorClass
|
||||
{
|
||||
GdkCursorClass cursor_class;
|
||||
};
|
||||
|
||||
|
||||
static GdkCursor *cached_xcursors[G_N_ELEMENTS (xcursors)];
|
||||
|
||||
static GdkCursor *
|
||||
@ -397,6 +411,21 @@ _gdk_quartz_display_get_maximal_cursor_size (GdkDisplay *display,
|
||||
*height = 65536;
|
||||
}
|
||||
|
||||
NSCursor *
|
||||
_gdk_quartz_cursor_get_ns_cursor (GdkCursor *cursor)
|
||||
{
|
||||
GdkQuartzCursor *cursor_private;
|
||||
|
||||
if (!cursor)
|
||||
return [NSCursor arrowCursor];
|
||||
|
||||
g_return_val_if_fail (GDK_IS_QUARTZ_CURSOR (cursor), NULL);
|
||||
|
||||
cursor_private = GDK_QUARTZ_CURSOR (cursor);
|
||||
|
||||
return cursor_private->nscursor;
|
||||
}
|
||||
|
||||
static GdkPixbuf *
|
||||
gdk_quartz_cursor_get_image (GdkCursor *cursor)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user