X11Client

Implements the X11 protocol as a client. Allows connecting to a local or remote X11 server.

Note: Because of heavy use of code generation, this class's API may be a little opaque. You may instead find the example in demo/x11/demo.d more illuminating.

Constructors

this
this()

Connect to the default X server (according to $DISPLAY).

this
this(string display)

Connect to the server described by the specified display string.

this
this(AddressInfo[] ai)

Connect to the given address specs.

Members

Functions

newRID
CARD32 newRID()

Generate a new resource ID, which can be used to identify resources created by this connection.

Manifest constants

generatedCode
enum generatedCode;

To avoid repetition, methods for sending packets and handlers for events are generated. This will generate senders such as sendCreateWindow, and event handlers such as handleExpose.

Properties

handleDisconnect
void delegate(string, DisconnectType) handleDisconnect [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

parseDisplayString
AddressInfo[] parseDisplayString(string display)

Parse a display string into connectable address specs.

Structs

Root
struct Root
Undocumented in source.

Variables

conn
SocketConnection conn;

Underlying connection.

connSetup
xConnSetup connSetup;

Connection information received from the server.

connSetupPrefix
xConnSetupPrefix connSetupPrefix;

Connection information received from the server.

handleConnect
void delegate() handleConnect;

Handler for when a connection is successfully established.

handleError
void delegate(scope ref const xError error) handleError;

Error handler

handleGenericEvent
void delegate(Data event) handleGenericEvent;

GenericEvent handler

pixmapFormats
immutable(xPixmapFormat)[] pixmapFormats;
roots
Root[] roots;
vendor
string vendor;

Connection information received from the server.

Meta