plan9port/include/cursor.h
Russ Cox 8581c2b567 libdraw: add Cursor2, a 32x32 high-res cursor
Also add setcursor2, esetcursor2, and draw protocol encoding.
Calls to the old setcursor, esetcursor create a 32x32 by
pixel doubling when needed.
2018-11-15 20:39:35 -05:00

28 lines
371 B
C

#ifndef _CURSOR_H_
#define _CURSOR_H_ 1
#if defined(__cplusplus)
extern "C" {
#endif
typedef struct Cursor Cursor;
struct Cursor
{
Point offset;
uchar clr[2*16];
uchar set[2*16];
};
typedef struct Cursor2 Cursor2;
struct Cursor2
{
Point offset;
uchar clr[4*32];
uchar set[4*32];
};
void scalecursor(Cursor2*, Cursor*);
#if defined(__cplusplus)
}
#endif
#endif