Connect to the default X server (according to $DISPLAY).
Connect to the server described by the specified display string.
Connect to the given address specs.
Generate a new resource ID, which can be used to identify resources created by this connection.
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.
Parse a display string into connectable address specs.
Underlying connection.
Connection information received from the server.
Connection information received from the server.
Handler for when a connection is successfully established.
Error handler
GenericEvent handler
Connection information received from the server.
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.