2022-07-11 10:12:29 +00:00
|
|
|
|
/*
|
|
|
|
|
* xrandr.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 11 июл. 2022 г.
|
|
|
|
|
* Author: alexander
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef XRANDR_H_
|
|
|
|
|
#define XRANDR_H_
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
|
{
|
|
|
|
|
char name[10];
|
|
|
|
|
char *ptrName;
|
2022-07-11 17:06:05 +00:00
|
|
|
|
char *ptrIndexItem;
|
|
|
|
|
char *ptrIndexMonitor;
|
2022-07-11 10:12:29 +00:00
|
|
|
|
int width;
|
|
|
|
|
int height;
|
|
|
|
|
int primary;
|
|
|
|
|
} x_monitor;
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
|
{
|
|
|
|
|
int count;
|
|
|
|
|
x_monitor monitor[5];
|
|
|
|
|
} x_info;
|
|
|
|
|
|
|
|
|
|
int XInfo(x_info *info);
|
|
|
|
|
x_info *getXInfo();
|
2022-07-11 17:06:05 +00:00
|
|
|
|
void freeXInfo(x_info *info);
|
2022-07-11 10:12:29 +00:00
|
|
|
|
|
|
|
|
|
#endif /* XRANDR_H_ */
|