Class: X11::Screen

Inherits:
Object
  • Object
show all
Defined in:
lib/X11/screen.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#displayObject (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_pixelObject



15
# File 'lib/X11/screen.rb', line 15

def black_pixel = @internal.black_pixel

#heightObject



14
# File 'lib/X11/screen.rb', line 14

def height      = @internal.height_in_pixels

#inspectObject



18
19
20
# File 'lib/X11/screen.rb', line 18

def inspect
  "#<X11::Screen(#{id}) width=#{width} height=#{height}>"
end

#rootObject



10
# File 'lib/X11/screen.rb', line 10

def root        = @internal.root

#root_depthObject



11
# File 'lib/X11/screen.rb', line 11

def root_depth  = @internal.root_depth

#root_visualObject



12
# File 'lib/X11/screen.rb', line 12

def root_visual = @internal.root_visual

#white_pixelObject



16
# File 'lib/X11/screen.rb', line 16

def white_pixel = @internal.white_pixel

#widthObject



13
# File 'lib/X11/screen.rb', line 13

def width       = @internal.width_in_pixels