Table Of Contents

Previous topic

VersionInfo

Next topic

VisualAttributes

This Page

phoenix_title VideoMode

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


class_hierarchy Inheritance Diagram

Inheritance diagram for class VideoMode

Inheritance diagram of VideoMode


method_summary Methods Summary

__init__ Constructs this class using the given parameters.
GetDepth Returns bits per pixel (e.g.
GetHeight Returns the screen height in pixels (e.g.
GetWidth Returns the screen width in pixels (e.g.
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

api Class API



class VideoMode(object)

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

Possible constructors:

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

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 (VideoMode) –
Return type:bool


__nonzero__(self)
Return type:int


__ne__(self)
Parameters:mode (VideoMode) –


__eq__(self)
Parameters:m (VideoMode) –

Properties



Depth

See GetDepth



Height

See GetHeight



Width

See GetWidth