FreeRDP
Loading...
Searching...
No Matches
mac_cursor.h
1
19#ifndef FREERDP_SERVER_SHADOW_MAC_CURSOR_H
20#define FREERDP_SERVER_SHADOW_MAC_CURSOR_H
21
22#include <winpr/wtypes.h>
23
24/* The system cursor as AppKit has it: a C interface, so that the rest of the
25 * subsystem stays plain C. Sizes and the hot spot are in points. */
26typedef struct
27{
28 UINT32 width;
29 UINT32 height;
30 UINT32 xHot;
31 UINT32 yHot;
32 BYTE* pixels; /* 32-bit BGRA, alpha premultiplied, width * 4 bytes a row */
34
35#ifdef __cplusplus
36extern "C"
37{
38#endif
39
40 /* The cursor shown now, if it is no larger than maxSize in either
41 * direction. Free the pixels with mac_cursor_image_free. */
42 WINPR_ATTR_NODISCARD
43 BOOL mac_cursor_get(macCursorImage* image, UINT32 maxSize);
44
45 void mac_cursor_image_free(macCursorImage* image);
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif /* FREERDP_SERVER_SHADOW_MAC_CURSOR_H */