Class: Wx::VideoMode

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/gen/display.rb

Overview

Note:

This class is untracked and should not be derived from nor instances extended!

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

Category: Application and System configuration Predefined objects/pointers: DEFAULT_VIDEO_MODE

Instance Method Summary collapse

Constructor Details

#initialize(width = 0, height = 0, depth = 0, freq = 0) ⇒ Wx::VideoMode

Constructs this class using the given parameters.

Parameters:

  • width (Integer) (defaults to: 0)
  • height (Integer) (defaults to: 0)
  • depth (Integer) (defaults to: 0)
  • freq (Integer) (defaults to: 0)


204
# File 'lib/wx/doc/gen/display.rb', line 204

def initialize(width=0, height=0, depth=0, freq=0) end

Instance Method Details

#==(m) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


233
# File 'lib/wx/doc/gen/display.rb', line 233

def ==(m) end

#bppInteger

Bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known.

Returns:

  • (Integer)


190
# File 'lib/wx/doc/gen/display.rb', line 190

def bpp; end

#get_depthInteger Also known as: depth

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

Returns:

  • (Integer)


223
# File 'lib/wx/doc/gen/display.rb', line 223

def get_depth; end

#get_heightInteger Also known as: height

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

Returns:

  • (Integer)


218
# File 'lib/wx/doc/gen/display.rb', line 218

def get_height; end

#get_widthInteger Also known as: width

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

Returns:

  • (Integer)


213
# File 'lib/wx/doc/gen/display.rb', line 213

def get_width; end

#hInteger

The screen height in pixels (e.g. 480), 0 means unspecified.

Returns:

  • (Integer)


184
# File 'lib/wx/doc/gen/display.rb', line 184

def h; end

#is_okBoolean Also known as: ok?

Returns true if the object has been initialized.

Returns:

  • (Boolean)


228
# File 'lib/wx/doc/gen/display.rb', line 228

def is_ok; end

#matches(other) ⇒ Boolean

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:

  • (Boolean)


209
# File 'lib/wx/doc/gen/display.rb', line 209

def matches(other) end

#refreshInteger

Refresh frequency in Hz, 0 means unspecified/unknown.

Returns:

  • (Integer)


196
# File 'lib/wx/doc/gen/display.rb', line 196

def refresh; end

#wInteger

The screen width in pixels (e.g. 640), 0 means unspecified.

Returns:

  • (Integer)


178
# File 'lib/wx/doc/gen/display.rb', line 178

def w; end