Class: X11::Screen
- Inherits:
-
Object
- Object
- X11::Screen
- Defined in:
- lib/X11/screen.rb
Instance Attribute Summary collapse
-
#display ⇒ Object
readonly
Returns the value of attribute display.
Instance Method Summary collapse
- #black_pixel ⇒ Object
- #height ⇒ Object
-
#initialize(display, data) ⇒ Screen
constructor
A new instance of Screen.
- #inspect ⇒ Object
- #root ⇒ Object
- #root_depth ⇒ Object
- #root_visual ⇒ Object
- #white_pixel ⇒ Object
- #width ⇒ Object
Constructor Details
#initialize(display, data) ⇒ Screen
Returns a new instance of Screen.
5 6 7 8 |
# File 'lib/X11/screen.rb', line 5 def initialize(display, data) @display = display @internal = data end |
Instance Attribute Details
#display ⇒ Object (readonly)
Returns the value of attribute display.
3 4 5 |
# File 'lib/X11/screen.rb', line 3 def display @display end |
Instance Method Details
#black_pixel ⇒ Object
15 |
# File 'lib/X11/screen.rb', line 15 def black_pixel = @internal.black_pixel |
#height ⇒ Object
14 |
# File 'lib/X11/screen.rb', line 14 def height = @internal.height_in_pixels |
#inspect ⇒ Object
18 19 20 |
# File 'lib/X11/screen.rb', line 18 def inspect "#<X11::Screen(#{id}) width=#{width} height=#{height}>" end |
#root_depth ⇒ Object
11 |
# File 'lib/X11/screen.rb', line 11 def root_depth = @internal.root_depth |
#root_visual ⇒ Object
12 |
# File 'lib/X11/screen.rb', line 12 def root_visual = @internal.root_visual |
#white_pixel ⇒ Object
16 |
# File 'lib/X11/screen.rb', line 16 def white_pixel = @internal.white_pixel |
#width ⇒ Object
13 |
# File 'lib/X11/screen.rb', line 13 def width = @internal.width_in_pixels |