31 lines
397 B
C
31 lines
397 B
C
|
/*
|
|||
|
* xrandr.h
|
|||
|
*
|
|||
|
* Created on: 11 июл. 2022 г.
|
|||
|
* Author: alexander
|
|||
|
*/
|
|||
|
|
|||
|
#ifndef XRANDR_H_
|
|||
|
#define XRANDR_H_
|
|||
|
|
|||
|
typedef struct
|
|||
|
{
|
|||
|
char name[10];
|
|||
|
char *ptrName;
|
|||
|
char *ptrIndex;
|
|||
|
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();
|
|||
|
|
|||
|
#endif /* XRANDR_H_ */
|