[][src]Struct xcb_util::ewmh::Connection

pub struct Connection { /* fields omitted */ }

Methods

impl Connection[src]

pub fn connect(
    xcb: Connection
) -> Result<Connection, (GenericError, Connection)>
[src]

pub fn get_raw_conn(&self) -> *mut xcb_ewmh_connection_t[src]

pub fn WM_CM(&self) -> &[Atom][src]

pub fn SUPPORTED(&self) -> Atom[src]

pub fn CLIENT_LIST(&self) -> Atom[src]

pub fn CLIENT_LIST_STACKING(&self) -> Atom[src]

pub fn NUMBER_OF_DESKTOPS(&self) -> Atom[src]

pub fn DESKTOP_GEOMETRY(&self) -> Atom[src]

pub fn DESKTOP_VIEWPORT(&self) -> Atom[src]

pub fn CURRENT_DESKTOP(&self) -> Atom[src]

pub fn DESKTOP_NAMES(&self) -> Atom[src]

pub fn ACTIVE_WINDOW(&self) -> Atom[src]

pub fn WORKAREA(&self) -> Atom[src]

pub fn SUPPORTING_WM_CHECK(&self) -> Atom[src]

pub fn VIRTUAL_ROOTS(&self) -> Atom[src]

pub fn DESKTOP_LAYOUT(&self) -> Atom[src]

pub fn SHOWING_DESKTOP(&self) -> Atom[src]

pub fn CLOSE_WINDOW(&self) -> Atom[src]

pub fn MOVERESIZE_WINDOW(&self) -> Atom[src]

pub fn WM_MOVERESIZE(&self) -> Atom[src]

pub fn RESTACK_WINDOW(&self) -> Atom[src]

pub fn REQUEST_FRAME_EXTENTS(&self) -> Atom[src]

pub fn WM_NAME(&self) -> Atom[src]

pub fn WM_VISIBLE_NAME(&self) -> Atom[src]

pub fn WM_ICON_NAME(&self) -> Atom[src]

pub fn WM_VISIBLE_ICON_NAME(&self) -> Atom[src]

pub fn WM_DESKTOP(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE(&self) -> Atom[src]

pub fn WM_STATE(&self) -> Atom[src]

pub fn WM_ALLOWED_ACTIONS(&self) -> Atom[src]

pub fn WM_STRUT(&self) -> Atom[src]

pub fn WM_STRUT_PARTIAL(&self) -> Atom[src]

pub fn WM_ICON_GEOMETRY(&self) -> Atom[src]

pub fn WM_ICON(&self) -> Atom[src]

pub fn WM_PID(&self) -> Atom[src]

pub fn WM_HANDLED_ICONS(&self) -> Atom[src]

pub fn WM_USER_TIME(&self) -> Atom[src]

pub fn WM_USER_TIME_WINDOW(&self) -> Atom[src]

pub fn FRAME_EXTENTS(&self) -> Atom[src]

pub fn WM_PING(&self) -> Atom[src]

pub fn WM_SYNC_REQUEST(&self) -> Atom[src]

pub fn WM_SYNC_REQUEST_COUNTER(&self) -> Atom[src]

pub fn WM_FULLSCREEN_MONITORS(&self) -> Atom[src]

pub fn WM_FULL_PLACEMENT(&self) -> Atom[src]

pub fn WM_PROTOCOLS(&self) -> Atom[src]

pub fn MANAGER(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_DESKTOP(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_DOCK(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_TOOLBAR(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_MENU(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_UTILITY(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_SPLASH(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_DIALOG(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_DROPDOWN_MENU(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_POPUP_MENU(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_TOOLTIP(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_NOTIFICATION(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_COMBO(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_DND(&self) -> Atom[src]

pub fn WM_WINDOW_TYPE_NORMAL(&self) -> Atom[src]

pub fn WM_STATE_MODAL(&self) -> Atom[src]

pub fn WM_STATE_STICKY(&self) -> Atom[src]

pub fn WM_STATE_MAXIMIZED_VERT(&self) -> Atom[src]

pub fn WM_STATE_MAXIMIZED_HORZ(&self) -> Atom[src]

pub fn WM_STATE_SHADED(&self) -> Atom[src]

pub fn WM_STATE_SKIP_TASKBAR(&self) -> Atom[src]

pub fn WM_STATE_SKIP_PAGER(&self) -> Atom[src]

pub fn WM_STATE_HIDDEN(&self) -> Atom[src]

pub fn WM_STATE_FULLSCREEN(&self) -> Atom[src]

pub fn WM_STATE_ABOVE(&self) -> Atom[src]

pub fn WM_STATE_BELOW(&self) -> Atom[src]

pub fn WM_STATE_DEMANDS_ATTENTION(&self) -> Atom[src]

pub fn WM_ACTION_MOVE(&self) -> Atom[src]

pub fn WM_ACTION_RESIZE(&self) -> Atom[src]

pub fn WM_ACTION_MINIMIZE(&self) -> Atom[src]

pub fn WM_ACTION_SHADE(&self) -> Atom[src]

pub fn WM_ACTION_STICK(&self) -> Atom[src]

pub fn WM_ACTION_MAXIMIZE_HORZ(&self) -> Atom[src]

pub fn WM_ACTION_MAXIMIZE_VERT(&self) -> Atom[src]

pub fn WM_ACTION_FULLSCREEN(&self) -> Atom[src]

pub fn WM_ACTION_CHANGE_DESKTOP(&self) -> Atom[src]

pub fn WM_ACTION_CLOSE(&self) -> Atom[src]

pub fn WM_ACTION_ABOVE(&self) -> Atom[src]

pub fn WM_ACTION_BELOW(&self) -> Atom[src]

Methods from Deref<Target = Connection>

pub fn flush(&self) -> bool[src]

Forces any buffered output to be written to the server. Blocks until the write is complete.

Return true on success, false otherwise.

pub fn get_maximum_request_length(&self) -> u32[src]

Returns the maximum request length that this server accepts.

In the absence of the BIG-REQUESTS extension, returns the maximum request length field from the connection setup data, which may be as much as 65535. If the server supports BIG-REQUESTS, then the maximum request length field from the reply to the BigRequestsEnable request will be returned instead.

Note that this length is measured in four-byte units, making the theoretical maximum lengths roughly 256kB without BIG-REQUESTS and 16GB with.

pub fn prefetch_maximum_request_length(&self)[src]

Prefetch the maximum request length without blocking.

Without blocking, does as much work as possible toward computing the maximum request length accepted by the X server.

Invoking this function may cause a call to xcb_big_requests_enable, but will not block waiting for the reply. xcb_get_maximum_request_length will return the prefetched data after possibly blocking while the reply is retrieved.

Note that in order for this function to be fully non-blocking, the application must previously have called c.prefetch_extension_data(xcb::big_requests::id()) and the reply must have already arrived.

pub fn wait_for_event(&self) -> Option<Event<xcb_generic_event_t>>[src]

Returns the next event or error from the server.

Returns the next event or error from the server, or returns None in the event of an I/O error. Blocks until either an event or error arrive, or an I/O error occurs.

pub fn poll_for_event(&self) -> Option<Event<xcb_generic_event_t>>[src]

Returns the next event or error from the server.

Returns the next event or error from the server, if one is available, or returns None otherwise. If no event is available, that might be because an I/O error like connection close occurred while attempting to read the next event, in which case the connection is shut down when this function returns.

pub fn poll_for_queued_event(&self) -> Option<Event<xcb_generic_event_t>>[src]

Returns the next event without reading from the connection.

This is a version of poll_for_event that only examines the event queue for new events. The function doesn't try to read new events from the connection if no queued events are found.

This function is useful for callers that know in advance that all interesting events have already been read from the connection. For example, callers might use wait_for_reply and be interested only of events that preceded a specific reply.

pub fn get_setup(&self) -> StructPtr<xcb_setup_t>[src]

Access the data returned by the server.

Accessor for the data returned by the server when the Connection was initialized. This data includes

  • the server's required format for images,
  • a list of available visuals,
  • a list of available screens,
  • the server's maximum request length (in the absence of the BIG-REQUESTS extension),
  • and other assorted information.

See the X protocol specification for more details.

pub fn has_error(&self) -> Result<(), ConnError>[src]

Test whether the connection has shut down due to a fatal error.

Some errors that occur in the context of a Connection are unrecoverable. When such an error occurs, the connection is shut down and further operations on the Connection have no effect, but memory will not be freed until the Connection is dropped.

pub fn generate_id(&self) -> u32[src]

Allocates an XID for a new object.

Allocates an XID for a new object. Typically used just prior to various object creation functions, such as xcb::create_window.

pub fn get_raw_conn(&self) -> *mut xcb_connection_t[src]

Returns the inner ffi xcb_connection_t pointer

pub fn prefetch_extension_data(&self, ext: &mut xcb_extension_t)[src]

Prefetch of extension data into the extension cache

This function allows a "prefetch" of extension data into the extension cache. Invoking the function may cause a call to xcb_query_extension, but will not block waiting for the reply. xcb_get_extension_data will return the prefetched data after possibly blocking while it is retrieved.

pub fn get_extension_data(
    &'a self,
    ext: &mut xcb_extension_t
) -> Option<QueryExtensionData<'a>>
[src]

Caches reply information from QueryExtension requests.

This function is the primary interface to the "extension cache", which caches reply information from QueryExtension requests. Invoking this function may cause a call to xcb_query_extension to retrieve extension information from the server, and may block until extension data is received from the server.

Trait Implementations

impl<'a> Sync for Connection[src]

impl<'a> Send for Connection[src]

impl Drop for Connection[src]

impl DerefMut for Connection[src]

impl Deref for Connection[src]

type Target = Connection

The resulting type after dereferencing.

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]