git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53124
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define _WX_VMODE_H_
// ----------------------------------------------------------------------------
#define _WX_VMODE_H_
// ----------------------------------------------------------------------------
-// wxVideoMode: a simple class containing video mode parameters for a display
+// wxVideoMode: a simple struct containing video mode parameters for a display
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxVideoMode
+struct WXDLLIMPEXP_CORE wxVideoMode
wxVideoMode(int width = 0, int height = 0, int depth = 0, int freq = 0)
{
w = width;
wxVideoMode(int width = 0, int height = 0, int depth = 0, int freq = 0)
{
w = width;
bool IsOk() const { return w && h; }
bool IsOk() const { return w && h; }
// the screen size in pixels (e.g. 640*480), 0 means unspecified
int w, h;
// the screen size in pixels (e.g. 640*480), 0 means unspecified
int w, h;
/////////////////////////////////////////////////////////////////////////////
/**
/////////////////////////////////////////////////////////////////////////////
/**
@wxheader{display.h}
Determines the sizes and locations of displays connected to the system.
@wxheader{display.h}
Determines the sizes and locations of displays connected to the system.
@see wxClientDisplayRect(), wxDisplaySize(), wxDisplaySizeMM()
*/
@see wxClientDisplayRect(), wxDisplaySize(), wxDisplaySizeMM()
*/
*/
bool Matches(const wxVideoMode& other) const;
*/
bool Matches(const wxVideoMode& other) const;
+ /**
+ Returns the screen width in pixels (e.g. 640), 0 means unspecified.
+ */
+
+ /**
+ Returns the screen height in pixels (e.g. 480), 0 means unspecified.
+ */
+
+ /**
+ Returns bits per pixel (e.g. 32), 1 is monochrome and 0 means
+ unspecified/known.
+ */
int GetDepth() const;
/**
Returns true if the object has been initialized
*/
bool IsOk() const;
int GetDepth() const;
/**
Returns true if the object has been initialized
*/
bool IsOk() const;
+
+ /// The screen width in pixels (e.g. 640), 0 means unspecified.
+ int w;
+
+ /// The screen height in pixels (e.g. 480), 0 means unspecified.
+ int h;
+
+ /// Bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known.
+ int bpp;
+
+ /// Refresh frequency in Hz, 0 means unspecified/unknown.
+ int refresh;