wx.VideoMode

Inheritance diagram for wx.VideoMode:



Description

A simple struct containing video mode parameters for a display.

Properties Summary

Class API

Methods

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

A simple struct containing video mode parameters for a display.

Parameters:

  • width (int)
  • height (int)
  • depth (int)
  • freq (int)

Returns:

wx.VideoMode


GetDepth()

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


Returns:

int


GetHeight()

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


Returns:

int


GetWidth()

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


Returns:

int


IsOk()

returns true if the object has been initialized.


Returns:

bool


Matches(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:


Returns:

bool


Properties

Depth
See GetDepth
Height
See GetHeight
Width
See GetWidth
bpp
h
refresh
w