16 #ifndef xorgDisplayDevice_h
17 #define xorgDisplayDevice_h
19 #include <pointing/output/DisplayDevice.h>
21 #include <X11/extensions/Xrandr.h>
31 XRRScreenResources *res;
32 XRROutputInfo* output_info;
36 typedef enum {NOTHING=0, BOUNDS=1, SIZE=2, REFRESHRATE=4} cachedinfo ;
40 double cached_refreshrate ;
42 XRRModeInfo* get_mode_info(RRMode mode);
43 bool get_bounds(
int* width,
int* height,
int* x,
int* y);
44 int get_any_display_id();
56 URI
getURI(
bool expanded=
false)
const ;
Size getSize(Size *defval=0)
Definition: xorgDisplayDevice.cpp:149
Display bounds (origin and size) in pixels.
Definition: DisplayDevice.h:60
URI getURI(bool expanded=false) const
Definition: xorgDisplayDevice.cpp:170
DisplayDevice class is used to represent the displays connected to the computer.
Definition: DisplayDevice.h:31
Display size in mms.
Definition: DisplayDevice.h:51
Definition: xorgDisplayDevice.h:26
double getRefreshRate(double *defval=0)
Definition: xorgDisplayDevice.cpp:159
Bounds getBounds(Bounds *defval=0)
Definition: xorgDisplayDevice.cpp:132