2020-11-01 16:09:48 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <X11/XKBlib.h>
|
2021-01-21 20:44:09 +01:00
|
|
|
#include <X11/Xutil.h>
|
2020-11-01 16:09:48 +01:00
|
|
|
#include <X11/extensions/Xrandr.h>
|
|
|
|
#include <X11/extensions/XTest.h>
|
2021-01-09 22:58:18 +01:00
|
|
|
#include <X11/extensions/Xfixes.h>
|
2020-11-01 16:09:48 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
extern void goCreateScreenSize(int index, int width, int height, int mwidth, int mheight);
|
|
|
|
extern void goSetScreenRates(int index, int rate_index, short rate);
|
|
|
|
|
|
|
|
Display *getXDisplay(void);
|
2020-11-04 00:09:52 +01:00
|
|
|
int XDisplayOpen(char *input);
|
|
|
|
void XDisplayClose(void);
|
2020-11-01 16:09:48 +01:00
|
|
|
|
|
|
|
void XMove(int x, int y);
|
2021-02-17 21:55:11 +01:00
|
|
|
void XCursorPosition(int *x, int *y);
|
2020-11-01 16:09:48 +01:00
|
|
|
void XScroll(int x, int y);
|
|
|
|
void XButton(unsigned int button, int down);
|
|
|
|
void XKey(unsigned long key, int down);
|
|
|
|
|
|
|
|
void XGetScreenConfigurations();
|
|
|
|
void XSetScreenConfiguration(int index, short rate);
|
|
|
|
int XGetScreenSize();
|
|
|
|
short XGetScreenRate();
|
|
|
|
|
2021-01-12 22:54:13 +01:00
|
|
|
void XSetKeyboardModifier(int mod, int on);
|
2021-01-12 23:35:11 +01:00
|
|
|
char XGetKeyboardModifiers();
|
2021-01-09 22:58:18 +01:00
|
|
|
XFixesCursorImage *XGetCursorImage(void);
|
2021-01-21 20:44:09 +01:00
|
|
|
|
|
|
|
char *XGetScreenshot(int *w, int *h);
|