]> git.saurik.com Git - wxWidgets.git/blob - interface/vidmode.h
Reviewed dataobj.h interface header and added wxDataViewCtrl class group.
[wxWidgets.git] / interface / vidmode.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: vidmode.h
3 // Purpose: interface of wxVideoMode
4 // Author: wxWidgets team
5 // RCS-ID: $Id: display.h 52634 2008-03-20 13:45:17Z VS $
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
8
9 /**
10 @struct wxVideoMode
11 @wxheader{display.h}
12
13 Determines the sizes and locations of displays connected to the system.
14
15 @library{wxcore}
16 @category{FIXME}
17
18 @stdobjects
19 ::wxDefaultVideoMode
20
21 @see wxClientDisplayRect(), wxDisplaySize(), wxDisplaySizeMM()
22 */
23 struct wxVideoMode
24 {
25 public:
26 /**
27 Constructs this class using the given parameters.
28 */
29 wxVideoMode(int width = 0, int height = 0, int depth = 0, int freq = 0);
30
31 bool operator==(const wxVideoMode& m) const
32 bool operator!=(const wxVideoMode& mode) const
33
34 /**
35 Returns true if this mode matches the other one in the sense that all
36 non zero fields of the other mode have the same value in this one
37 (except for refresh which is allowed to have a greater value).
38 */
39 bool Matches(const wxVideoMode& other) const;
40
41 /**
42 Returns the screen width in pixels (e.g. 640), 0 means unspecified.
43 */
44 int GetWidth() const;
45
46 /**
47 Returns the screen height in pixels (e.g. 480), 0 means unspecified.
48 */
49 int GetHeight() const;
50
51 /**
52 Returns bits per pixel (e.g. 32), 1 is monochrome and 0 means
53 unspecified/known.
54 */
55 int GetDepth() const;
56
57 /**
58 Returns true if the object has been initialized
59 */
60 bool IsOk() const;
61
62 /// The screen width in pixels (e.g. 640), 0 means unspecified.
63 int w;
64
65 /// The screen height in pixels (e.g. 480), 0 means unspecified.
66 int h;
67
68 /// Bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known.
69 int bpp;
70
71 /// Refresh frequency in Hz, 0 means unspecified/unknown.
72 int refresh;
73 };
74
75 /**
76 A global wxVideoMode instance used by wxDisplay.
77 */
78 wxVideoMode wxDefaultVideoMode;