mirror of
https://github.com/vidarh/ruby-x11
synced 2024-12-26 09:59:02 +01:00
Helpers to access root window.
This commit is contained in:
parent
80fad9a8f9
commit
e13df2a2c4
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,14 @@ module X11
|
||||||
@internal = data
|
@internal = data
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def root
|
||||||
|
@internal.root
|
||||||
|
end
|
||||||
|
|
||||||
|
def root_depth
|
||||||
|
@internal.root_depth
|
||||||
|
end
|
||||||
|
|
||||||
def width
|
def width
|
||||||
@internal.width_in_pixels
|
@internal.width_in_pixels
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue