Phoenix Logo

phoenix_title wx.VideoMode

Determines the sizes and locations of displays connected to the system.


class_hierarchy Class Hierarchy

Inheritance diagram for class VideoMode:


method_summary Methods Summary

__init__ Constructs this class using the given parameters.
GetDepth Returns bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known.
GetHeight Returns the screen height in pixels (e.g. 480), 0 means unspecified.
GetWidth Returns the screen width in pixels (e.g. 640), 0 means unspecified.
IsOk Returns True if the object has been initialized.
Matches 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).
__nonzero__  
__ne__  
__eq__  

property_summary Properties Summary

Depth See GetDepth
Height See GetHeight
Width See GetWidth
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.

api Class API



class wx.VideoMode(object)

Possible constructors:

VideoMode(width=0, height=0, depth=0, freq=0)

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) –


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


__nonzero__(self)
Return type:int


__ne__(self)
Parameters:mode (wx.VideoMode) –


__eq__(self)
Parameters:m (wx.VideoMode) –

Properties



Depth

See GetDepth



Height

See GetHeight



Width

See GetWidth



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.