Revision 254e5950 console.h
b/console.h | ||
---|---|---|
126 | 126 |
struct PixelFormat pf; |
127 | 127 |
}; |
128 | 128 |
|
129 |
/* cursor data format is 32bit RGBA */ |
|
130 |
typedef struct QEMUCursor { |
|
131 |
int width, height; |
|
132 |
int hot_x, hot_y; |
|
133 |
int refcount; |
|
134 |
uint32_t data[]; |
|
135 |
} QEMUCursor; |
|
136 |
|
|
137 |
QEMUCursor *cursor_alloc(int width, int height); |
|
138 |
void cursor_get(QEMUCursor *c); |
|
139 |
void cursor_put(QEMUCursor *c); |
|
140 |
QEMUCursor *cursor_builtin_hidden(void); |
|
141 |
QEMUCursor *cursor_builtin_left_ptr(void); |
|
142 |
void cursor_print_ascii_art(QEMUCursor *c, const char *prefix); |
|
143 |
int cursor_get_mono_bpl(QEMUCursor *c); |
|
144 |
void cursor_set_mono(QEMUCursor *c, |
|
145 |
uint32_t foreground, uint32_t background, uint8_t *image, |
|
146 |
int transparent, uint8_t *mask); |
|
147 |
void cursor_get_mono_image(QEMUCursor *c, int foreground, uint8_t *mask); |
|
148 |
void cursor_get_mono_mask(QEMUCursor *c, int transparent, uint8_t *mask); |
|
149 |
|
|
129 | 150 |
struct DisplayChangeListener { |
130 | 151 |
int idle; |
131 | 152 |
uint64_t gui_timer_interval; |
... | ... | |
158 | 179 |
struct DisplayChangeListener* listeners; |
159 | 180 |
|
160 | 181 |
void (*mouse_set)(int x, int y, int on); |
161 |
void (*cursor_define)(int width, int height, int bpp, int hot_x, int hot_y, |
|
162 |
uint8_t *image, uint8_t *mask); |
|
182 |
void (*cursor_define)(QEMUCursor *cursor); |
|
163 | 183 |
|
164 | 184 |
struct DisplayState *next; |
165 | 185 |
}; |
Also available in: Unified diff