]> git.saurik.com Git - wxWidgets.git/blame - interface/vidmode.h
fix various Doxygen errors (#9568)
[wxWidgets.git] / interface / vidmode.h
CommitLineData
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/**
077f75a5 10 @struct wxVideoMode
e46fcdb4
FM
11 @wxheader{display.h}
12
13 Determines the sizes and locations of displays connected to the system.
14
15 @library{wxcore}
09ad05fa 16 @category{misc}
e46fcdb4
FM
17
18 @stdobjects
19 ::wxDefaultVideoMode
20
21 @see wxClientDisplayRect(), wxDisplaySize(), wxDisplaySizeMM()
22*/
077f75a5 23struct wxVideoMode
e46fcdb4
FM
24{
25public:
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
077f75a5
VS
41 /**
42 Returns the screen width in pixels (e.g. 640), 0 means unspecified.
43 */
e46fcdb4 44 int GetWidth() const;
077f75a5
VS
45
46 /**
47 Returns the screen height in pixels (e.g. 480), 0 means unspecified.
48 */
e46fcdb4 49 int GetHeight() const;
077f75a5
VS
50
51 /**
52 Returns bits per pixel (e.g. 32), 1 is monochrome and 0 means
53 unspecified/known.
54 */
e46fcdb4
FM
55 int GetDepth() const;
56
57 /**
58 Returns true if the object has been initialized
59 */
60 bool IsOk() const;
077f75a5 61
09ad05fa
BP
62 /**
63 The screen width in pixels (e.g. 640), 0 means unspecified.
64 */
077f75a5
VS
65 int w;
66
09ad05fa
BP
67 /**
68 The screen height in pixels (e.g. 480), 0 means unspecified.
69 */
077f75a5
VS
70 int h;
71
09ad05fa
BP
72 /**
73 Bits per pixel (e.g. 32), 1 is monochrome and 0 means
74 unspecified/known.
75 */
077f75a5
VS
76 int bpp;
77
09ad05fa
BP
78 /**
79 Refresh frequency in Hz, 0 means unspecified/unknown.
80 */
077f75a5 81 int refresh;
e46fcdb4
FM
82};
83
84/**
85 A global wxVideoMode instance used by wxDisplay.
86*/
87wxVideoMode wxDefaultVideoMode;
09ad05fa 88