Lines Matching refs:cursor
34 expand_source_and_mask(CursorPtr cursor, CARD32 *data) in expand_source_and_mask() argument
37 CursorBitsPtr bits = cursor->bits; in expand_source_and_mask()
41 fg = ((cursor->foreRed & 0xff00) << 8) | in expand_source_and_mask()
42 (cursor->foreGreen & 0xff00) | (cursor->foreGreen >> 8); in expand_source_and_mask()
43 bg = ((cursor->backRed & 0xff00) << 8) | in expand_source_and_mask()
44 (cursor->backGreen & 0xff00) | (cursor->backGreen >> 8); in expand_source_and_mask()
64 xwl_realize_cursor(DeviceIntPtr device, ScreenPtr screen, CursorPtr cursor) in xwl_realize_cursor() argument
68 pixmap = xwl_shm_create_pixmap(screen, cursor->bits->width, in xwl_realize_cursor()
69 cursor->bits->height, 32, 0); in xwl_realize_cursor()
70 dixSetPrivate(&cursor->devPrivates, &xwl_cursor_private_key, pixmap); in xwl_realize_cursor()
76 xwl_unrealize_cursor(DeviceIntPtr device, ScreenPtr screen, CursorPtr cursor) in xwl_unrealize_cursor() argument
82 pixmap = dixGetPrivate(&cursor->devPrivates, &xwl_cursor_private_key); in xwl_unrealize_cursor()
86 dixSetPrivate(&cursor->devPrivates, &xwl_cursor_private_key, NULL); in xwl_unrealize_cursor()
91 if (cursor == xwl_seat->x_cursor) in xwl_unrealize_cursor()
128 struct xwl_cursor *xwl_cursor = &xwl_seat->cursor; in xwl_seat_set_cursor()
130 CursorPtr cursor; in xwl_seat_set_cursor() local
149 cursor = xwl_seat->x_cursor; in xwl_seat_set_cursor()
150 pixmap = dixGetPrivate(&cursor->devPrivates, &xwl_cursor_private_key); in xwl_seat_set_cursor()
154 stride = cursor->bits->width * 4; in xwl_seat_set_cursor()
155 if (cursor->bits->argb) in xwl_seat_set_cursor()
157 cursor->bits->argb, cursor->bits->height * stride); in xwl_seat_set_cursor()
159 expand_source_and_mask(cursor, pixmap->devPrivate.ptr); in xwl_seat_set_cursor()
182 struct xwl_cursor *xwl_cursor = &xwl_tablet_tool->cursor; in xwl_tablet_tool_set_cursor()
184 CursorPtr cursor; in xwl_tablet_tool_set_cursor() local
201 cursor = xwl_seat->x_cursor; in xwl_tablet_tool_set_cursor()
202 pixmap = dixGetPrivate(&cursor->devPrivates, &xwl_cursor_private_key); in xwl_tablet_tool_set_cursor()
206 stride = cursor->bits->width * 4; in xwl_tablet_tool_set_cursor()
207 if (cursor->bits->argb) in xwl_tablet_tool_set_cursor()
209 cursor->bits->argb, cursor->bits->height * stride); in xwl_tablet_tool_set_cursor()
211 expand_source_and_mask(cursor, pixmap->devPrivate.ptr); in xwl_tablet_tool_set_cursor()
232 ScreenPtr screen, CursorPtr cursor, int x, int y) in xwl_set_cursor() argument
242 cursor_visibility_changed = !!xwl_seat->x_cursor ^ !!cursor; in xwl_set_cursor()
244 xwl_seat->x_cursor = cursor; in xwl_set_cursor()