mirror of
https://github.com/vidarh/ruby-x11
synced 2024-12-27 09:59:21 +01:00
da2fe51596
More constants and requestsm including SendEvent, and a helper for ClientMessage, w/example
20 lines
458 B
Ruby
20 lines
458 B
Ruby
module X11
|
|
class Screen
|
|
attr_reader :display
|
|
|
|
def initialize(display, data)
|
|
@display = display
|
|
@internal = data
|
|
end
|
|
|
|
def root = @internal.root
|
|
def root_depth = @internal.root_depth
|
|
def root_visual = @internal.root_visual
|
|
def width = @internal.width_in_pixels
|
|
def height = @internal.height_in_pixels
|
|
|
|
def to_s
|
|
"#<X11::Screen(#{id}) width=#{width} height=#{height}>"
|
|
end
|
|
end
|
|
end
|