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.
Automatically attempt to configure authentication by reading ~/.Xauthority.
Generate a new resource ID, which can be used to identify resources created by this connection.
Request an extension. The promise is fulfilled with an instance of the extension bound to the current connection, or null if the extension is not available.
Parse a display string into connectable address specs.
Xauthority parsing.
Authentication information used during connection.
Authentication information used during connection.
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.
Instantiates to a function which accepts arguments and puts them into a struct, according to its fields.
Generates code based on RequestSpecs and EventSpecs. Mix this into your extension definition to generate callable methods and event handlers. This mixin is also used to generate the core protocol glue code.
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.