Package wx :: Class VideoMode
[frames | no frames]

Type VideoMode

object --+
         |
        VideoMode


A simple struct containing video mode parameters for a display


Method Summary
VideoMode __init__(self, width, height, depth, freq)
A simple struct containing video mode parameters for a display
  __del__(self)
bool __eq__(self, other)
bool __ne__(self, other)
  __nonzero__(self)
  __repr__(self)
int GetDepth(self)
Returns the screen's bits per pixel (e.g.
int GetHeight(self)
Returns the screen width in pixels (e.g.
int GetWidth(self)
Returns the screen width in pixels (e.g.
bool IsOk(self)
returns true if the object has been initialized
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)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Property Summary
  bpp
  h
  refresh
  w

Method Details

__init__(self, width=0, height=0, depth=0, freq=0)
(Constructor)

A simple struct containing video mode parameters for a display

Parameters:
width
           (type=int)

height
           (type=int)

depth
           (type=int)

freq
           (type=int)

Returns:
VideoMode
Overrides:
__builtin__.object.__init__

GetDepth(self)

Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known

Returns:
int

GetHeight(self)

Returns the screen width in pixels (e.g. 640*480), 0 means unspecified

Returns:
int

GetWidth(self)

Returns the screen width in pixels (e.g. 640*480), 0 means unspecified

Returns:
int

IsOk(self)

returns true if the object has been initialized

Returns:
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
           (type=VideoMode)

Returns:
bool

Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:48:12 2007 http://epydoc.sf.net