summaryrefslogtreecommitdiffstats
path: root/x11vnc/macosxCG.h
blob: 2569496614c7614d8f3f4c5115a57f30e1ac99ec (plain)
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
#ifndef _X11VNC_MACOSXCG_H
#define _X11VNC_MACOSXCG_H

/* -- macosxCG.h -- */

extern void macosxCG_init(void);
extern void macosxCG_fini(void);
extern void macosxCG_event_loop(void);
extern char *macosxCG_get_fb_addr(void);

extern int macosxCG_CGDisplayPixelsWide(void);
extern int macosxCG_CGDisplayPixelsHigh(void);
extern int macosxCG_CGDisplayBitsPerPixel(void);
extern int macosxCG_CGDisplayBitsPerSample(void);
extern int macosxCG_CGDisplaySamplesPerPixel(void);
extern int macosxCG_CGDisplayBytesPerRow(void);

extern void macosxCG_pointer_inject(int mask, int x, int y);
extern int macosxCG_get_cursor_pos(int *x, int *y);
extern int macosxCG_get_cursor(void);
extern void macosxCG_init_key_table(void);
extern void macosxCG_key_inject(int down, unsigned int keysym);

extern void macosxCG_refresh_callback_off(void);
extern void macosxCG_refresh_callback_on(void);



#endif /* _X11VNC_MACOSXCG_H */