ruby-x11/lib/X11/screen.rb

31 lines
446 B
Ruby
Raw Normal View History

2012-05-13 20:48:24 +02:00
module X11
class Screen
attr_reader :display
def initialize(display, data)
@display = display
@internal = data
end
2023-08-01 21:16:22 +02:00
def root
@internal.root
end
def root_depth
@internal.root_depth
end
2012-05-13 20:48:24 +02:00
def width
@internal.width_in_pixels
2012-05-13 20:48:24 +02:00
end
def height
@internal.height_in_pixels
end
def to_s
"#<X11::Screen(#{id}) width=#{width} height=#{height}>"
2012-05-13 20:48:24 +02:00
end
end
end