Libpointing
An open-source cross-platform library to get raw events from pointing devices and master transfer functions.
winDisplayDevice.h
1 /* -*- mode: c++ -*-
2  *
3  * pointing/output/windows/winDisplayDevice.h --
4  *
5  * Initial software
6  * Authors: Géry Casiez, Nicolas Roussel
7  * Copyright © Inria
8  *
9  * http://libpointing.org/
10  *
11  * This software may be used and distributed according to the terms of
12  * the GNU General Public License version 2 or any later version.
13  *
14  */
15 
16 #ifndef winDisplayDevice_h
17 #define winDisplayDevice_h
18 
19 #include <pointing/output/DisplayDevice.h>
20 #include <pointing/output/windows/winDisplayDeviceManager.h>
21 #include <pointing/output/windows/winDisplayDeviceHelper.h>
22 
23 namespace pointing {
24 
29 
30  std::wstring displayID ;
31  winDisplayInfo dinfo ;
32 
33  friend class winDisplayDeviceManager;
34 
35  public:
36 
37  winDisplayDevice(void) ;
38  winDisplayDevice(URI uri) ;
39 
40  Bounds getBounds(Bounds *defval=0) ;
41  Size getSize(Size *defval=0) ;
42  double getRefreshRate(double *defval=0) ;
43 
44  URI getURI(bool expanded=false) const ;
45 
46  } ;
47 
48 }
49 
50 #endif
Display size in mms.
Definition: DisplayDevice.h:51
URI getURI(bool expanded=false) const
Definition: winDisplayDevice.cpp:126
Display bounds (origin and size) in pixels.
Definition: DisplayDevice.h:60
Stores all the information about the monitor.
Definition: winDisplayDeviceHelper.h:28
Bounds getBounds(Bounds *defval=0)
Definition: winDisplayDevice.cpp:106
double getRefreshRate(double *defval=0)
Definition: winDisplayDevice.cpp:91
A Windows-specific subclass of DisplayDevice.
Definition: winDisplayDevice.h:28
Definition: DummyPointingDevice.cpp:23
Definition: winDisplayDeviceManager.h:25
DisplayDevice class is used to represent the displays connected to the computer.
Definition: DisplayDevice.h:31
Size getSize(Size *defval=0)
Definition: winDisplayDevice.cpp:76