x11rb ::xcb_ffi Struct XCBConnection Copy item path source pub struct XCBConnection { }
Expand description A connection to an X11 server.
This type wraps *mut xcb_connection_t
that is provided by libxcb. It provides a rust
interface to this C library.
Establish a new connection to an X11 server.
If a dpy_name
is provided, it describes the display that should be connected to, for
example 127.0.0.1:1
. If no value is provided, the $DISPLAY
environment variable is
used.
Create a connection wrapper for a raw libxcb xcb_connection_t
.
xcb_disconnect
is called on drop only if should_drop
is true
.
If this function returns an Err()
and should_drop
was true, then
xcb_disconnect
was already called.
§ Safety
If should_drop
is false
, the connection must live longer than the returned
XCBConnection
. If should_drop
is true
, the returned XCBConnection
will
take the ownership of the connection.
Check if the underlying XCB connection is in an error state.
Get access to the raw libxcb xcb_connection_t
.
The returned pointer is valid for as long as the original object was not dropped. No
ownerhsip is transferred.
Get a raw xcb connection pointer from this object.
Wait for a new raw/unparsed event from the X11 server.
Poll for a new unparsed/raw event from the X11 server.
Send all pending requests to the server.
Read more Get the setup information sent by the X11 server.
Read more Wait for a new event from the X11 server.
Wait for a new raw/unparsed event from the X11 server.
Wait for a new event from the X11 server.
Poll for a new event from the X11 server.
Poll for a new raw/unparsed event from the X11 server.
Poll for a new event from the X11 server.
Formats the value using the given formatter.
Read more Type used as buffer to store raw replies or events before
they are parsed.
Send a request with a reply to the server.
Read more Send a request with a reply containing file descriptors to the server.
Read more Send a request without a reply to the server.
Read more A reply to an error should be discarded.
Read more Prefetches information about an extension.
Read more Get information about an extension.
Read more Wait for the reply to a request that has FDs.
Read more Check whether a request that does not have a reply caused an X11 error.
Read more The maximum number of bytes that the X11 server accepts in a request.
Prefetches the maximum request length.
Read more Parse a generic error.
Parse a generic event.
Send a request with a reply to the server.
Read more Send a request with a reply containing file descriptors to the server.
Read more Send a request without a reply to the server.
Read more Wait for the reply to a request that has FDs.
Read more Check whether a request that does not have a reply caused an X11 error.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more Change a property on a window with format 8.
Change a property on a window with format 16.
Change a property on a window with format 32.
get matching font names and information.
Read more change graphics context components.
Read more Sets the disconnect mode for the client..
Read more Query the version of the MIT-SHM extension..
Read more Attach a System V shared memory segment..
Read more Destroys the specified shared memory segment..
Read more Copy data from the shared memory to the specified drawable..
Read more Copies data from the specified drawable to the shared memory segment..
Read more Create a pixmap backed by shared memory..
Read more Asks the server to allocate a shared memory segment..
Read more Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.