X11Display

Class for opening and closing an X11-display.  You need to access the display first in order to open windows under GNU+Linux.

See also

Summary
X11DisplayClass for opening and closing an X11-display.
Constants
INFINITEInfinite waiting time.
Properties
widthGet width of default screen.
heightGet height of default screen.
Functions
X11Display.newConstructor.
X11Display.showA loop for displaying videos.
eventLoopWait for events.
processEventsProcess all pending events.
status?Indicates whether the user tried to close a window or pressed ‘Escape’.
status=Set the status value.

Constants

INFINITE

Infinite waiting time.

Properties

width

Get width of default screen.

height

Get height of default screen.

Functions

X11Display.new

def X11Display.new(name =  ":0.0")

Constructor.

Parameters

nameName of X11 display (e.g.  “localhost:0.0” )

X11Display.show

def X11Display.show(width =  nil,
height =  nil)

A loop for displaying videos.  The function opens a window and then displays images computed by the code block.  Requires a code block as parameter.

Parameters

widthWidth of display area (optional).
heightHeight of display area (optional).

eventLoop

def eventLoop(timeout =  INFINITE)

Wait for events.

Parameters

timeoutTimeout in milliseconds.

processEvents

def processEvents

Process all pending events.

status?

def status?

Indicates whether the user tried to close a window or pressed ‘Escape’.

status=

def status=(value)

Set the status value.

def X11Display.new(name =  ":0.0")
Constructor.
def X11Display.show(width =  nil,
height =  nil)
A loop for displaying videos.
def eventLoop(timeout =  INFINITE)
Wait for events.
def processEvents
Process all pending events.
def status?
Indicates whether the user tried to close a window or pressed ‘Escape’.
def status=(value)
Set the status value.
Class representing an X11-window.
Close