class X11::Display

X11 Display. Singleton – assumes single display. Assumes the current display is the same as the one running FireFox. Represented by memory pointer (which we treat in-code as an unsigned long).

Public Class Methods

new() click to toggle source
# File lib/firewatir/x11.rb, line 76
def initialize
        @xdisplay = X11.xOpenDisplay("");
end

Public Instance Methods

screens() click to toggle source

Array of screens associated with this display.

# File lib/firewatir/x11.rb, line 81
def screens
        nScreens = X11.xScreenCount(@xdisplay);
        (0...nScreens).collect{|n| Screen.new(n,@xdisplay)}
end