1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
/*
* ion/ioncore/cursor.c
*
* Copyright (c) Tuomo Valkonen 1999-2007.
*
* See the included file LICENSE for details.
*/
#include "common.h"
#include "event.h"
#include "cursor.h"
#include "global.h"
static Cursor cursors[IONCORE_N_CURSORS];
#define LCURS(TYPE) \
cursors[IONCORE_CURSOR_##TYPE]=XCreateFontCursor(ioncore_g.dpy, CF_CURSOR_##TYPE)
void ioncore_init_cursors()
{
LCURS(DEFAULT);
LCURS(RESIZE);
LCURS(MOVE);
LCURS(DRAG);
LCURS(WAITKEY);
}
Cursor ioncore_xcursor(int cursor)
{
return cursors[cursor];
}
|