wx.VideoMode¶
Determines the sizes and locations of displays connected to the system.
Class Hierarchy¶
Methods Summary¶
Constructs this class using the given parameters. |
|
Returns bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known. |
|
Returns the screen height in pixels (e.g. 480), 0 means unspecified. |
|
Returns the screen width in pixels (e.g. 640), 0 means unspecified. |
|
Returns |
|
Returns |
|
Properties Summary¶
See |
|
See |
|
See |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
Class API¶
- class wx.VideoMode(object)¶
Possible constructors:
VideoMode(width=0, height=0, depth=0, freq=0) -> None
Determines the sizes and locations of displays connected to the system.
Methods¶
- __init__(self, width=0, height=0, depth=0, freq=0)¶
Constructs this class using the given parameters.
- Parameters:
width (int)
height (int)
depth (int)
freq (int)
- Return type:
None
- GetDepth(self)¶
Returns bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known.
- Return type:
int
- GetHeight(self)¶
Returns the screen height in pixels (e.g. 480), 0 means unspecified.
- Return type:
int
- GetWidth(self)¶
Returns the screen width in pixels (e.g. 640), 0 means unspecified.
- Return type:
int
- IsOk(self)¶
Returns
True
if the object has been initialized.- Return type:
bool
- Matches(self, other)¶
Returns
True
if this mode matches the other one in the sense that all non zero fields of the other mode have the same value in this one (except for refresh which is allowed to have a greater value).- Parameters:
other (wx.VideoMode)
- Return type:
bool
- __bool__(self)¶
- Return type:
bool
- __nonzero__(self)¶
- Return type:
bool
- __ne__(self, mode)¶
- Parameters:
mode (wx.VideoMode)
- Return type:
bool
- __eq__(self, m)¶
- Parameters:
m (wx.VideoMode)
- Return type:
bool
Properties¶
- bpp¶
A public C++ attribute of type
int
. Bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known.
- h¶
A public C++ attribute of type
int
. The screen height in pixels (e.g. 480), 0 means unspecified.
- refresh¶
A public C++ attribute of type
int
. Refresh frequency in Hz, 0 means unspecified/unknown.
- w¶
A public C++ attribute of type
int
. The screen width in pixels (e.g. 640), 0 means unspecified.