Struct xcb::base::Connection [] [src]

pub struct Connection {
    // some fields omitted
}

wraps an xcb_connection_t object will call xcb_disconnect when the Connection goes out of scope (unless the Connection is made with from_raw_conn

Methods

impl Connection
[src]

fn flush(&self) -> bool

fn get_maximum_request_length(&self) -> u32

fn wait_for_event(&self) -> Option<GenericEvent>

fn poll_for_event(&self) -> Option<GenericEvent>

fn poll_for_queued_event(&self) -> Option<GenericEvent>

fn get_setup(&self) -> Setup

fn has_error(&self) -> bool

fn generate_id(&self) -> Window

unsafe fn get_raw_conn(&self) -> *mut xcb_connection_t

fn send_event<T>(&self, propogate: bool, destination: Window, event_mask: u32, event: Event<T>)

fn prefetch_extension_data(&self, ext: &mut Extension)

fn get_extension_data(&self, ext: &mut Extension) -> Option<QueryExtensionData>

fn connect() -> (Connection, i32)

fn connect_to_display(display: &str) -> Option<(Connection, i32)>

fn connect_with_auth(display: &str, auth_info: &AuthInfo) -> Option<(Connection, i32)>

unsafe fn from_raw_conn(conn: *mut xcb_connection_t, must_disconnect: bool) -> Connection

Trait Implementations

impl Drop for Connection
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more