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