Class: Wx::VideoMode
- Inherits:
-
Object
- Object
- Wx::VideoMode
- Defined in:
- lib/wx/doc/gen/display.rb
Overview
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
- #==(m) ⇒ Boolean
-
#bpp ⇒ Integer
Bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known.
-
#get_depth ⇒ Integer
(also: #depth)
Returns bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known.
-
#get_height ⇒ Integer
(also: #height)
Returns the screen height in pixels (e.g. 480), 0 means unspecified.
-
#get_width ⇒ Integer
(also: #width)
Returns the screen width in pixels (e.g. 640), 0 means unspecified.
-
#h ⇒ Integer
The screen height in pixels (e.g. 480), 0 means unspecified.
-
#initialize(width = 0, height = 0, depth = 0, freq = 0) ⇒ Wx::VideoMode
constructor
Constructs this class using the given parameters.
-
#is_ok ⇒ Boolean
(also: #ok?)
Returns true if the object has been initialized.
-
#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).
-
#refresh ⇒ Integer
Refresh frequency in Hz, 0 means unspecified/unknown.
-
#w ⇒ Integer
The screen width in pixels (e.g. 640), 0 means unspecified.
Constructor Details
#initialize(width = 0, height = 0, depth = 0, freq = 0) ⇒ Wx::VideoMode
Constructs this class using the given parameters.
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
233 |
# File 'lib/wx/doc/gen/display.rb', line 233 def ==(m) end |
#bpp ⇒ Integer
Bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known.
190 |
# File 'lib/wx/doc/gen/display.rb', line 190 def bpp; end |
#get_depth ⇒ Integer Also known as: depth
Returns bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known.
223 |
# File 'lib/wx/doc/gen/display.rb', line 223 def get_depth; end |
#get_height ⇒ Integer Also known as: height
Returns the screen height in pixels (e.g. 480), 0 means unspecified.
218 |
# File 'lib/wx/doc/gen/display.rb', line 218 def get_height; end |
#get_width ⇒ Integer Also known as: width
Returns the screen width in pixels (e.g. 640), 0 means unspecified.
213 |
# File 'lib/wx/doc/gen/display.rb', line 213 def get_width; end |
#h ⇒ Integer
The screen height in pixels (e.g. 480), 0 means unspecified.
184 |
# File 'lib/wx/doc/gen/display.rb', line 184 def h; end |
#is_ok ⇒ Boolean Also known as: ok?
Returns true if the object has been initialized.
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).
209 |
# File 'lib/wx/doc/gen/display.rb', line 209 def matches(other) end |
#refresh ⇒ Integer
Refresh frequency in Hz, 0 means unspecified/unknown.
196 |
# File 'lib/wx/doc/gen/display.rb', line 196 def refresh; end |
#w ⇒ Integer
The screen width in pixels (e.g. 640), 0 means unspecified.
178 |
# File 'lib/wx/doc/gen/display.rb', line 178 def w; end |