]>
Commit | Line | Data |
---|---|---|
e46fcdb4 FM |
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 | @class 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 | class 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 | int GetWidth() const; | |
42 | int GetHeight() const; | |
43 | int GetDepth() const; | |
44 | ||
45 | /** | |
46 | Returns true if the object has been initialized | |
47 | */ | |
48 | bool IsOk() const; | |
49 | }; | |
50 | ||
51 | /** | |
52 | A global wxVideoMode instance used by wxDisplay. | |
53 | */ | |
54 | wxVideoMode wxDefaultVideoMode; |