XlibClient

Struct XlibClient 

Source
pub struct XlibClient<X: XlibRef> { /* private fields */ }

Implementations§

Source§

impl<X: XlibRef> XlibClient<X>

Source

pub unsafe fn init( x: X, display: *mut Display, im_name: Option<&str>, ) -> Result<Self, ClientError>

Initialize a new XlibClient from an Xlib connection.

§Safety

The display pointer must be a valid Xlib display.

Source

pub unsafe fn filter_event( &mut self, e: &XEvent, handler: &mut impl ClientHandler<Self>, ) -> Result<bool, ClientError>

Filter an event and call the handler if it is relevant.

§Safety

The event e must be a valid Xlib event.

Auto Trait Implementations§

§

impl<X> Freeze for XlibClient<X>
where X: Freeze,

§

impl<X> RefUnwindSafe for XlibClient<X>
where X: RefUnwindSafe,

§

impl<X> !Send for XlibClient<X>

§

impl<X> !Sync for XlibClient<X>

§

impl<X> Unpin for XlibClient<X>
where X: Unpin,

§

impl<X> UnwindSafe for XlibClient<X>
where X: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<C> Client for C
where C: ClientCore,

Source§

type XEvent = <C as ClientCore>::XEvent

Source§

fn build_ic_attributes(&self) -> AttributeBuilder<'_>

Source§

fn build_im_attributes(&self) -> AttributeBuilder<'_>

Source§

fn open(&mut self, locale: &str) -> Result<(), ClientError>

Source§

fn quert_extension( &mut self, input_method_id: u16, extensions: &[&str], ) -> Result<(), ClientError>

Source§

fn get_im_values( &mut self, input_method_id: u16, names: &[AttributeName], ) -> Result<(), ClientError>

Source§

fn set_ic_values( &mut self, input_method_id: u16, input_context_id: u16, ic_attributes: Vec<Attribute>, ) -> Result<(), ClientError>

Source§

fn create_ic( &mut self, input_method_id: u16, ic_attributes: Vec<Attribute>, ) -> Result<(), ClientError>

Source§

fn forward_event( &mut self, input_method_id: u16, input_context_id: u16, flag: ForwardEventFlag, xev: &<C as Client>::XEvent, ) -> Result<(), ClientError>

Source§

fn disconnect(&mut self) -> Result<(), ClientError>

Source§

fn close(&mut self, input_method_id: u16) -> Result<(), ClientError>

Source§

fn destroy_ic( &mut self, input_method_id: u16, input_context_id: u16, ) -> Result<(), ClientError>

Source§

fn set_focus( &mut self, input_method_id: u16, input_context_id: u16, ) -> Result<(), ClientError>

Source§

fn unset_focus( &mut self, input_method_id: u16, input_context_id: u16, ) -> Result<(), ClientError>

Source§

fn reset_ic( &mut self, input_method_id: u16, input_context_id: u16, ) -> Result<(), ClientError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.