Home | Trees | Index | Help |
|
---|
Package wx :: Class Display |
|
object
--+
|
Display
Represents a display/monitor attached to the system
Method Summary | |
---|---|
__init__(self, unsigned int index=0) -> Display | |
__del__(self)
| |
__nonzero__(self)
| |
bool |
Changes the video mode of this display to the mode specified in the mode parameter. |
Rect |
Returns the bounding rectangle the client area of the display, i.e., without taskbars and such. |
unsigned int |
Return the number of available displays. (Static method) |
VideoMode |
Get the current video mode. |
int |
Find the display where the given point lies, return wx.NOT_FOUND if it doesn't belong to any display (Static method) |
int |
Find the display where the given window lies, return wx.NOT_FOUND if it is not shown at all. (Static method) |
Rect |
Returns the bounding rectangle of the display whose index was passed to the constructor. |
[videoMode...] |
Enumerate all video modes supported by this display matching the given one (in the sense of VideoMode.Match()). |
String |
Returns the display's name. |
bool |
Return true if the object was initialized successfully |
bool |
Returns True if the display is the primary display. |
Restore the default video mode (just a more readable synonym) |
Property Summary | |
---|---|
ClientArea : See GetClientArea | |
CurrentMode : See GetCurrentMode | |
Geometry : See GetGeometry | |
Modes : See GetModes | |
Name : See GetName | |
thisown : The membership flag |
Instance Method Details |
---|
__init__(self,
*args,
**kwargs)
|
ChangeMode(self, mode=DefaultVideoMode)Changes the video mode of this display to the mode specified in the mode parameter. If wx.DefaultVideoMode is passed in as the mode parameter, the defined behaviour is that wx.Display will reset the video mode to the default mode used by the display. On Windows, the behavior is normal. However, there are differences on other platforms. On Unix variations using X11 extensions it should behave as defined, but some irregularities may occur. On wxMac passing in wx.DefaultVideoMode as the mode parameter does nothing. This happens because Carbon no longer has access to DMUseScreenPrefs, an undocumented function that changed the video mode to the system default by using the system's 'scrn' resource. Returns True if succeeded, False otherwise
|
GetClientArea(self)Returns the bounding rectangle the client area of the display, i.e., without taskbars and such.
|
GetCurrentMode(self)Get the current video mode.
|
GetGeometry(self)Returns the bounding rectangle of the display whose index was passed to the constructor.
|
GetModes(mode=DefaultVideoMode)Enumerate all video modes supported by this display matching the given one (in the sense of VideoMode.Match()). As any mode matches the default value of the argument and there is always at least one video mode supported by display, the returned array is only empty for the default value of the argument if this function is not supported at all on this platform.
|
GetName(self)Returns the display's name. A name is not available on all platforms.
|
IsOk(self)Return true if the object was initialized successfully
|
IsPrimary(self)Returns True if the display is the primary display. The primary display is the one whose index is 0.
|
ResetMode(self)Restore the default video mode (just a more readable synonym) |
Static Method Details |
---|
GetCount()Return the number of available displays.
|
GetFromPoint(pt)Find the display where the given point lies, return wx.NOT_FOUND if it doesn't belong to any display
|
GetFromWindow(window)Find the display where the given window lies, return wx.NOT_FOUND if it is not shown at all.
|
Property Details |
---|
ClientAreaSee
|
CurrentModeSee
|
GeometrySee
|
ModesSee
|
NameSee
|
thisownThe membership flag |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:14:34 2007 | http://epydoc.sf.net |