SpecialEventDisplay

Struct SpecialEventDisplay 

Source
pub struct SpecialEventDisplay<Dpy: ?Sized> { /* private fields */ }
Expand description

A special type of Display that provides queues for special events.

See the module level documentation for more information.

Implementations§

Source§

impl<Dpy> SpecialEventDisplay<Dpy>

Source

pub fn into_inner(self) -> Dpy

Get the inner display type.

Source§

impl<Dpy: ?Sized> SpecialEventDisplay<Dpy>

Source

pub fn create_special_event_queue( &mut self, classifier: impl FnMut(&Event) -> bool + Send + Sync + 'static, ) -> usize

Create a new special event queue with the given classifier.

Returns the key to be used to poll the event queue.

Source

pub fn remove_special_event_queue(&mut self, key: usize)

Remove the special event queue with the given key.

Source§

impl<Dpy: DisplayBase + ?Sized> SpecialEventDisplay<Dpy>

Source

pub fn poll_for_special_event(&mut self, key: usize) -> Result<Option<Event>>

Poll for a special event for the given queue.

Source§

impl<Dpy: Display + ?Sized> SpecialEventDisplay<Dpy>

Source

pub fn wait_for_special_event(&mut self, key: usize) -> Result<Event>

Wait for a special event from the given queue.

Source§

impl<Dpy: AsyncDisplay + ?Sized> SpecialEventDisplay<Dpy>

Source

pub async fn wait_for_special_event_async( &mut self, key: usize, ) -> Result<Event>

Wait for a speical event from the given queue.

Trait Implementations§

Source§

impl<Dpy: ?Sized> AsMut<Dpy> for SpecialEventDisplay<Dpy>

Source§

fn as_mut(&mut self) -> &mut Dpy

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<Dpy: ?Sized> AsRef<Dpy> for SpecialEventDisplay<Dpy>

Source§

fn as_ref(&self) -> &Dpy

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<D: AsyncDisplay + ?Sized> AsyncDisplay for SpecialEventDisplay<D>

Source§

fn poll_for_interest( &mut self, interest: Interest, callback: &mut dyn FnMut(&mut dyn AsyncDisplay, &mut Context<'_>) -> Result<()>, ctx: &mut Context<'_>, ) -> Poll<Result<()>>

Poll for an interest. If the interest if ready, call the provided callback. Read more
Source§

impl<D: CanBeAsyncDisplay + ?Sized> CanBeAsyncDisplay for SpecialEventDisplay<D>

Source§

fn format_request( &mut self, req: &mut RawRequest<'_, '_>, ctx: &mut Context<'_>, ) -> Result<AsyncStatus<u64>>

Partially format the request. Read more
Source§

fn try_flush(&mut self, ctx: &mut Context<'_>) -> Result<AsyncStatus<()>>

Flush the output buffer. Read more
Source§

fn try_generate_xid( &mut self, ctx: &mut Context<'_>, ) -> Result<AsyncStatus<u32>>

Generate a unique XID. Read more
Source§

fn try_maximum_request_length( &mut self, ctx: &mut Context<'_>, ) -> Result<AsyncStatus<usize>>

Get the maximum length of a request that can be sent. Read more
Source§

fn try_send_request_raw( &mut self, req: &mut RawRequest<'_, '_>, ctx: &mut Context<'_>, ) -> Result<AsyncStatus<()>>

Partially send the request. Read more
Source§

fn try_wait_for_event( &mut self, ctx: &mut Context<'_>, ) -> Result<AsyncStatus<Event>>

Wait for an event. Read more
Source§

fn try_wait_for_reply_raw( &mut self, seq: u64, ctx: &mut Context<'_>, ) -> Result<AsyncStatus<RawReply>>

Wait for the reply. Read more
Source§

fn try_check_for_error( &mut self, seq: u64, ctx: &mut Context<'_>, ) -> Result<AsyncStatus<()>>

Try to check for an error.
Source§

impl<D: Display + ?Sized> Display for SpecialEventDisplay<D>

Source§

fn send_request_raw(&mut self, req: RawRequest<'_, '_>) -> Result<u64>

Send a raw request to the X11 server. Read more
Source§

fn flush(&mut self) -> Result<()>

Flush all pending requests to the server. Read more
Source§

fn generate_xid(&mut self) -> Result<u32>

Get a unique ID valid for use by the server. Read more
Source§

fn maximum_request_length(&mut self) -> Result<usize>

Get the maximum request length that can be sent. Read more
Source§

fn synchronize(&mut self) -> Result<()>

Synchronize this display with the server. Read more
Source§

fn wait_for_reply_raw(&mut self, seq: u64) -> Result<RawReply>

Wait for a reply from the X11 server. Read more
Source§

fn wait_for_event(&mut self) -> Result<Event>

Wait for an event. Read more
Source§

fn check_for_error(&mut self, seq: u64) -> Result<()>

Check for an error for the given sequence number. Read more
Source§

impl<D: DisplayBase + ?Sized> DisplayBase for SpecialEventDisplay<D>

Source§

fn setup(&self) -> &Arc<Setup>

Get the Setup associated with this display. Read more
Source§

fn default_screen_index(&self) -> usize

Get the screen associated with this display. Read more
Source§

fn poll_for_event(&mut self) -> Result<Option<Event>>

Poll to see if we have received an event. Read more
Source§

fn poll_for_reply_raw(&mut self, seq: u64) -> Result<Option<RawReply>>

Poll to see if a reply matching the sequence number has been received. Read more
Source§

fn screens(&self) -> &[Screen]

Get the screens for this display. Read more
Source§

fn default_screen(&self) -> &Screen

Get the default screen for this display. Read more
Source§

impl<Dpy> From<Dpy> for SpecialEventDisplay<Dpy>

Source§

fn from(display: Dpy) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<Dpy> Freeze for SpecialEventDisplay<Dpy>
where Dpy: Freeze + ?Sized,

§

impl<Dpy> !RefUnwindSafe for SpecialEventDisplay<Dpy>

§

impl<Dpy> Send for SpecialEventDisplay<Dpy>
where Dpy: Send + ?Sized,

§

impl<Dpy> Sync for SpecialEventDisplay<Dpy>
where Dpy: Sync + ?Sized,

§

impl<Dpy> Unpin for SpecialEventDisplay<Dpy>
where Dpy: Unpin + ?Sized,

§

impl<Dpy> !UnwindSafe for SpecialEventDisplay<Dpy>

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<D> AsyncDisplayExt for D
where D: AsyncDisplay + ?Sized,

Source§

fn wait_for_reply_raw(&mut self, seq: u64) -> WaitForReplyRaw<'_, Self>

Wait for the X11 server to return the given sequence number.
Source§

fn wait_for_event(&mut self) -> WaitForEvent<'_, Self>

Wait for the X11 server to send a reply.
Source§

fn synchronize(&mut self) -> Synchronize<'_, Self>

Synchronize with the X11 server.
Source§

fn flush(&mut self) -> Flush<'_, Self>

Flush the display.
Source§

fn send_request_raw( &mut self, request: RawRequest<'_, '_>, ) -> SendRequestRaw<'_, Self>

Send a raw request to the X11 server.
Source§

fn check_for_error(&mut self, seq: u64) -> CheckForError<'_, Self>

Check to see if a void request has returned.
Source§

fn generate_xid(&mut self) -> GenerateXid<'_, Self>

Generate an XID.
Source§

fn send_void_request( &mut self, request: impl VoidRequest, discard_reply: bool, ) -> SendRequest<'_, Self, ()>

Send a void request to the X11 server.
Source§

fn send_reply_request<R>( &mut self, request: R, ) -> SendRequest<'_, Self, <R as ReplyRequest>::Reply>
where R: ReplyRequest,

Send a request with a reply to the X11 server.
Source§

fn send_reply_fd_request<R>( &mut self, request: R, ) -> SendRequest<'_, Self, <R as ReplyFDsRequest>::Reply>
where R: ReplyFDsRequest,

Send a request with a reply containing file descriptors to the X11 server.
Source§

fn wait_for_reply<R>(&mut self, cookie: Cookie<R>) -> WaitForReply<'_, Self, R>
where R: TryParseFd,

Wait for a reply from the X11 server.
Source§

impl<D> AsyncDisplayFunctionsExt for D
where D: AsyncDisplay + ?Sized,

Source§

fn bigreq_enable<'this>( &'this mut self, ) -> SendRequest<'this, Self, EnableReply>

Source§

fn bigreq_enable_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, EnableReply>

Source§

fn ge_query_version<'this>( &'this mut self, client_major_version: u16, client_minor_version: u16, ) -> SendRequest<'this, Self, QueryVersionReply>

Source§

fn ge_query_version_immediate<'this>( &'this mut self, client_major_version: u16, client_minor_version: u16, ) -> CheckedSendRequest<'this, Self, QueryVersionReply>

Source§

fn xc_misc_get_version<'this>( &'this mut self, client_major_version: u16, client_minor_version: u16, ) -> SendRequest<'this, Self, GetVersionReply>

Source§

fn xc_misc_get_version_immediate<'this>( &'this mut self, client_major_version: u16, client_minor_version: u16, ) -> CheckedSendRequest<'this, Self, GetVersionReply>

Source§

fn xc_misc_get_xid_range<'this>( &'this mut self, ) -> SendRequest<'this, Self, GetXIDRangeReply>

Source§

fn xc_misc_get_xid_range_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, GetXIDRangeReply>

Source§

fn xc_misc_get_xid_list<'this>( &'this mut self, count: u32, ) -> SendRequest<'this, Self, GetXIDListReply>

Source§

fn xc_misc_get_xid_list_immediate<'this>( &'this mut self, count: u32, ) -> CheckedSendRequest<'this, Self, GetXIDListReply>

Source§

fn create_window<'this>( &'this mut self, depth: u8, wid: u32, parent: u32, x: i16, y: i16, width: u16, height: u16, border_width: u16, class: WindowClass, visual: u32, value_list: impl Borrow<CreateWindowAux>, ) -> SendRequest<'this, Self, ()>

Source§

fn create_window_checked<'this>( &'this mut self, depth: u8, wid: u32, parent: u32, x: i16, y: i16, width: u16, height: u16, border_width: u16, class: WindowClass, visual: u32, value_list: impl Borrow<CreateWindowAux>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn change_window_attributes<'this>( &'this mut self, window: u32, value_list: impl Borrow<ChangeWindowAttributesAux>, ) -> SendRequest<'this, Self, ()>

Source§

fn change_window_attributes_checked<'this>( &'this mut self, window: u32, value_list: impl Borrow<ChangeWindowAttributesAux>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_window_attributes<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, GetWindowAttributesReply>

Source§

fn get_window_attributes_immediate<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, GetWindowAttributesReply>

Source§

fn destroy_window<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn destroy_window_checked<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn destroy_subwindows<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn destroy_subwindows_checked<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn change_save_set<'this>( &'this mut self, mode: SetMode, window: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn change_save_set_checked<'this>( &'this mut self, mode: SetMode, window: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn reparent_window<'this>( &'this mut self, window: u32, parent: u32, x: i16, y: i16, ) -> SendRequest<'this, Self, ()>

Source§

fn reparent_window_checked<'this>( &'this mut self, window: u32, parent: u32, x: i16, y: i16, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn map_window<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn map_window_checked<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn map_subwindows<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn map_subwindows_checked<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn unmap_window<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn unmap_window_checked<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn unmap_subwindows<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn unmap_subwindows_checked<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn configure_window<'this>( &'this mut self, window: u32, value_list: impl Borrow<ConfigureWindowAux>, ) -> SendRequest<'this, Self, ()>

Source§

fn configure_window_checked<'this>( &'this mut self, window: u32, value_list: impl Borrow<ConfigureWindowAux>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn circulate_window<'this>( &'this mut self, direction: Circulate, window: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn circulate_window_checked<'this>( &'this mut self, direction: Circulate, window: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_geometry<'this>( &'this mut self, drawable: u32, ) -> SendRequest<'this, Self, GetGeometryReply>

Source§

fn get_geometry_immediate<'this>( &'this mut self, drawable: u32, ) -> CheckedSendRequest<'this, Self, GetGeometryReply>

Source§

fn query_tree<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, QueryTreeReply>

Source§

fn query_tree_immediate<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, QueryTreeReply>

Source§

fn intern_atom<'this>( &'this mut self, only_if_exists: bool, name: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, InternAtomReply>

Source§

fn intern_atom_immediate<'this>( &'this mut self, only_if_exists: bool, name: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, InternAtomReply>

Source§

fn get_atom_name<'this>( &'this mut self, atom: u32, ) -> SendRequest<'this, Self, GetAtomNameReply>

Source§

fn get_atom_name_immediate<'this>( &'this mut self, atom: u32, ) -> CheckedSendRequest<'this, Self, GetAtomNameReply>

Source§

fn change_property<'this>( &'this mut self, mode: PropMode, window: u32, property: u32, type_: u32, format: u8, data_len: u32, data: &(impl Void + ?Sized), ) -> SendRequest<'this, Self, ()>

Source§

fn change_property_checked<'this>( &'this mut self, mode: PropMode, window: u32, property: u32, type_: u32, format: u8, data_len: u32, data: &(impl Void + ?Sized), ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn delete_property<'this>( &'this mut self, window: u32, property: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn delete_property_checked<'this>( &'this mut self, window: u32, property: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_property<'this>( &'this mut self, delete: bool, window: u32, property: u32, type_: impl Into<GetPropertyType>, long_offset: u32, long_length: u32, ) -> SendRequest<'this, Self, GetPropertyReply>

Source§

fn get_property_immediate<'this>( &'this mut self, delete: bool, window: u32, property: u32, type_: impl Into<GetPropertyType>, long_offset: u32, long_length: u32, ) -> CheckedSendRequest<'this, Self, GetPropertyReply>

Source§

fn list_properties<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, ListPropertiesReply>

Source§

fn list_properties_immediate<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, ListPropertiesReply>

Source§

fn set_selection_owner<'this>( &'this mut self, owner: impl Into<u32>, selection: u32, time: impl Into<Time>, ) -> SendRequest<'this, Self, ()>

Source§

fn set_selection_owner_checked<'this>( &'this mut self, owner: impl Into<u32>, selection: u32, time: impl Into<Time>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_selection_owner<'this>( &'this mut self, selection: u32, ) -> SendRequest<'this, Self, GetSelectionOwnerReply>

Source§

fn get_selection_owner_immediate<'this>( &'this mut self, selection: u32, ) -> CheckedSendRequest<'this, Self, GetSelectionOwnerReply>

Source§

fn convert_selection<'this>( &'this mut self, requestor: u32, selection: u32, target: u32, property: impl Into<u32>, time: impl Into<Time>, ) -> SendRequest<'this, Self, ()>

Source§

fn convert_selection_checked<'this>( &'this mut self, requestor: u32, selection: u32, target: u32, property: impl Into<u32>, time: impl Into<Time>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn send_event<'this>( &'this mut self, propagate: bool, destination: impl Into<SendEventDest>, event_mask: impl Into<EventMask>, event: impl Borrow<[u8; 32]>, ) -> SendRequest<'this, Self, ()>

Source§

fn send_event_checked<'this>( &'this mut self, propagate: bool, destination: impl Into<SendEventDest>, event_mask: impl Into<EventMask>, event: impl Borrow<[u8; 32]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn grab_pointer<'this>( &'this mut self, owner_events: bool, grab_window: u32, event_mask: impl Into<EventMask>, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: impl Into<u32>, cursor: impl Into<u32>, time: impl Into<Time>, ) -> SendRequest<'this, Self, GrabPointerReply>

Source§

fn grab_pointer_immediate<'this>( &'this mut self, owner_events: bool, grab_window: u32, event_mask: impl Into<EventMask>, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: impl Into<u32>, cursor: impl Into<u32>, time: impl Into<Time>, ) -> CheckedSendRequest<'this, Self, GrabPointerReply>

Source§

fn ungrab_pointer<'this>( &'this mut self, time: impl Into<Time>, ) -> SendRequest<'this, Self, ()>

Source§

fn ungrab_pointer_checked<'this>( &'this mut self, time: impl Into<Time>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn grab_button<'this>( &'this mut self, owner_events: bool, grab_window: u32, event_mask: impl Into<EventMask>, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: impl Into<u32>, cursor: impl Into<u32>, button: ButtonIndex, modifiers: impl Into<ModMask>, ) -> SendRequest<'this, Self, ()>

Source§

fn grab_button_checked<'this>( &'this mut self, owner_events: bool, grab_window: u32, event_mask: impl Into<EventMask>, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: impl Into<u32>, cursor: impl Into<u32>, button: ButtonIndex, modifiers: impl Into<ModMask>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn ungrab_button<'this>( &'this mut self, button: ButtonIndex, grab_window: u32, modifiers: impl Into<ModMask>, ) -> SendRequest<'this, Self, ()>

Source§

fn ungrab_button_checked<'this>( &'this mut self, button: ButtonIndex, grab_window: u32, modifiers: impl Into<ModMask>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn change_active_pointer_grab<'this>( &'this mut self, cursor: impl Into<u32>, time: impl Into<Time>, event_mask: impl Into<EventMask>, ) -> SendRequest<'this, Self, ()>

Source§

fn change_active_pointer_grab_checked<'this>( &'this mut self, cursor: impl Into<u32>, time: impl Into<Time>, event_mask: impl Into<EventMask>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn grab_keyboard<'this>( &'this mut self, owner_events: bool, grab_window: u32, time: impl Into<Time>, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> SendRequest<'this, Self, GrabKeyboardReply>

Source§

fn grab_keyboard_immediate<'this>( &'this mut self, owner_events: bool, grab_window: u32, time: impl Into<Time>, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> CheckedSendRequest<'this, Self, GrabKeyboardReply>

Source§

fn ungrab_keyboard<'this>( &'this mut self, time: impl Into<Time>, ) -> SendRequest<'this, Self, ()>

Source§

fn ungrab_keyboard_checked<'this>( &'this mut self, time: impl Into<Time>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn grab_key<'this>( &'this mut self, owner_events: bool, grab_window: u32, modifiers: impl Into<ModMask>, key: impl Into<Grab>, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> SendRequest<'this, Self, ()>

Source§

fn grab_key_checked<'this>( &'this mut self, owner_events: bool, grab_window: u32, modifiers: impl Into<ModMask>, key: impl Into<Grab>, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn ungrab_key<'this>( &'this mut self, key: impl Into<Grab>, grab_window: u32, modifiers: impl Into<ModMask>, ) -> SendRequest<'this, Self, ()>

Source§

fn ungrab_key_checked<'this>( &'this mut self, key: impl Into<Grab>, grab_window: u32, modifiers: impl Into<ModMask>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn allow_events<'this>( &'this mut self, mode: Allow, time: impl Into<Time>, ) -> SendRequest<'this, Self, ()>

Source§

fn allow_events_checked<'this>( &'this mut self, mode: Allow, time: impl Into<Time>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn grab_server<'this>(&'this mut self) -> SendRequest<'this, Self, ()>

Source§

fn grab_server_checked<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn ungrab_server<'this>(&'this mut self) -> SendRequest<'this, Self, ()>

Source§

fn ungrab_server_checked<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn query_pointer<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, QueryPointerReply>

Source§

fn query_pointer_immediate<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, QueryPointerReply>

Source§

fn get_motion_events<'this>( &'this mut self, window: u32, start: impl Into<Time>, stop: impl Into<Time>, ) -> SendRequest<'this, Self, GetMotionEventsReply>

Source§

fn get_motion_events_immediate<'this>( &'this mut self, window: u32, start: impl Into<Time>, stop: impl Into<Time>, ) -> CheckedSendRequest<'this, Self, GetMotionEventsReply>

Source§

fn translate_coordinates<'this>( &'this mut self, src_window: u32, dst_window: u32, src_x: i16, src_y: i16, ) -> SendRequest<'this, Self, TranslateCoordinatesReply>

Source§

fn translate_coordinates_immediate<'this>( &'this mut self, src_window: u32, dst_window: u32, src_x: i16, src_y: i16, ) -> CheckedSendRequest<'this, Self, TranslateCoordinatesReply>

Source§

fn warp_pointer<'this>( &'this mut self, src_window: impl Into<u32>, dst_window: impl Into<u32>, src_x: i16, src_y: i16, src_width: u16, src_height: u16, dst_x: i16, dst_y: i16, ) -> SendRequest<'this, Self, ()>

Source§

fn warp_pointer_checked<'this>( &'this mut self, src_window: impl Into<u32>, dst_window: impl Into<u32>, src_x: i16, src_y: i16, src_width: u16, src_height: u16, dst_x: i16, dst_y: i16, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn set_input_focus<'this>( &'this mut self, revert_to: InputFocus, focus: impl Into<InputFocus>, time: impl Into<Time>, ) -> SendRequest<'this, Self, ()>

Source§

fn set_input_focus_checked<'this>( &'this mut self, revert_to: InputFocus, focus: impl Into<InputFocus>, time: impl Into<Time>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_input_focus<'this>( &'this mut self, ) -> SendRequest<'this, Self, GetInputFocusReply>

Source§

fn get_input_focus_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, GetInputFocusReply>

Source§

fn query_keymap<'this>( &'this mut self, ) -> SendRequest<'this, Self, QueryKeymapReply>

Source§

fn query_keymap_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, QueryKeymapReply>

Source§

fn open_font<'this>( &'this mut self, fid: u32, name: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, ()>

Source§

fn open_font_checked<'this>( &'this mut self, fid: u32, name: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn close_font<'this>(&'this mut self, font: u32) -> SendRequest<'this, Self, ()>

Source§

fn close_font_checked<'this>( &'this mut self, font: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn query_font<'this>( &'this mut self, font: u32, ) -> SendRequest<'this, Self, QueryFontReply>

Source§

fn query_font_immediate<'this>( &'this mut self, font: u32, ) -> CheckedSendRequest<'this, Self, QueryFontReply>

Source§

fn query_text_extents<'this>( &'this mut self, font: u32, string: impl AsRef<[Char2b]>, ) -> SendRequest<'this, Self, QueryTextExtentsReply>

Source§

fn query_text_extents_immediate<'this>( &'this mut self, font: u32, string: impl AsRef<[Char2b]>, ) -> CheckedSendRequest<'this, Self, QueryTextExtentsReply>

Source§

fn list_fonts<'this>( &'this mut self, max_names: u16, pattern: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, ListFontsReply>

Source§

fn list_fonts_immediate<'this>( &'this mut self, max_names: u16, pattern: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, ListFontsReply>

Source§

fn list_fonts_with_info<'this>( &'this mut self, max_names: u16, pattern: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, ListFontsWithInfoReply>

Source§

fn list_fonts_with_info_immediate<'this>( &'this mut self, max_names: u16, pattern: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, ListFontsWithInfoReply>

Source§

fn set_font_path<'this>( &'this mut self, font: impl AsRef<[Str]>, ) -> SendRequest<'this, Self, ()>

Source§

fn set_font_path_checked<'this>( &'this mut self, font: impl AsRef<[Str]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_font_path<'this>( &'this mut self, ) -> SendRequest<'this, Self, GetFontPathReply>

Source§

fn get_font_path_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, GetFontPathReply>

Source§

fn create_pixmap<'this>( &'this mut self, depth: u8, pid: u32, drawable: u32, width: u16, height: u16, ) -> SendRequest<'this, Self, ()>

Source§

fn create_pixmap_checked<'this>( &'this mut self, depth: u8, pid: u32, drawable: u32, width: u16, height: u16, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn free_pixmap<'this>( &'this mut self, pixmap: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn free_pixmap_checked<'this>( &'this mut self, pixmap: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn create_gc<'this>( &'this mut self, cid: u32, drawable: u32, value_list: impl Borrow<CreateGCAux>, ) -> SendRequest<'this, Self, ()>

Source§

fn create_gc_checked<'this>( &'this mut self, cid: u32, drawable: u32, value_list: impl Borrow<CreateGCAux>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn change_gc<'this>( &'this mut self, gc: u32, value_list: impl Borrow<ChangeGCAux>, ) -> SendRequest<'this, Self, ()>

Source§

fn change_gc_checked<'this>( &'this mut self, gc: u32, value_list: impl Borrow<ChangeGCAux>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn copy_gc<'this>( &'this mut self, src_gc: u32, dst_gc: u32, value_mask: impl Into<GC>, ) -> SendRequest<'this, Self, ()>

Source§

fn copy_gc_checked<'this>( &'this mut self, src_gc: u32, dst_gc: u32, value_mask: impl Into<GC>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn set_dashes<'this>( &'this mut self, gc: u32, dash_offset: u16, dashes: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, ()>

Source§

fn set_dashes_checked<'this>( &'this mut self, gc: u32, dash_offset: u16, dashes: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn set_clip_rectangles<'this>( &'this mut self, ordering: ClipOrdering, gc: u32, clip_x_origin: i16, clip_y_origin: i16, rectangles: impl AsRef<[Rectangle]>, ) -> SendRequest<'this, Self, ()>

Source§

fn set_clip_rectangles_checked<'this>( &'this mut self, ordering: ClipOrdering, gc: u32, clip_x_origin: i16, clip_y_origin: i16, rectangles: impl AsRef<[Rectangle]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn free_gc<'this>(&'this mut self, gc: u32) -> SendRequest<'this, Self, ()>

Source§

fn free_gc_checked<'this>( &'this mut self, gc: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn clear_area<'this>( &'this mut self, exposures: bool, window: u32, x: i16, y: i16, width: u16, height: u16, ) -> SendRequest<'this, Self, ()>

Source§

fn clear_area_checked<'this>( &'this mut self, exposures: bool, window: u32, x: i16, y: i16, width: u16, height: u16, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn copy_area<'this>( &'this mut self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, ) -> SendRequest<'this, Self, ()>

Source§

fn copy_area_checked<'this>( &'this mut self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn copy_plane<'this>( &'this mut self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, bit_plane: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn copy_plane_checked<'this>( &'this mut self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, bit_plane: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn poly_point<'this>( &'this mut self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: impl AsRef<[Point]>, ) -> SendRequest<'this, Self, ()>

Source§

fn poly_point_checked<'this>( &'this mut self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: impl AsRef<[Point]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn poly_line<'this>( &'this mut self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: impl AsRef<[Point]>, ) -> SendRequest<'this, Self, ()>

Source§

fn poly_line_checked<'this>( &'this mut self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: impl AsRef<[Point]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn poly_segment<'this>( &'this mut self, drawable: u32, gc: u32, segments: impl AsRef<[Segment]>, ) -> SendRequest<'this, Self, ()>

Source§

fn poly_segment_checked<'this>( &'this mut self, drawable: u32, gc: u32, segments: impl AsRef<[Segment]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn poly_rectangle<'this>( &'this mut self, drawable: u32, gc: u32, rectangles: impl AsRef<[Rectangle]>, ) -> SendRequest<'this, Self, ()>

Source§

fn poly_rectangle_checked<'this>( &'this mut self, drawable: u32, gc: u32, rectangles: impl AsRef<[Rectangle]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn poly_arc<'this>( &'this mut self, drawable: u32, gc: u32, arcs: impl AsRef<[Arc]>, ) -> SendRequest<'this, Self, ()>

Source§

fn poly_arc_checked<'this>( &'this mut self, drawable: u32, gc: u32, arcs: impl AsRef<[Arc]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn fill_poly<'this>( &'this mut self, drawable: u32, gc: u32, shape: PolyShape, coordinate_mode: CoordMode, points: impl AsRef<[Point]>, ) -> SendRequest<'this, Self, ()>

Source§

fn fill_poly_checked<'this>( &'this mut self, drawable: u32, gc: u32, shape: PolyShape, coordinate_mode: CoordMode, points: impl AsRef<[Point]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn poly_fill_rectangle<'this>( &'this mut self, drawable: u32, gc: u32, rectangles: impl AsRef<[Rectangle]>, ) -> SendRequest<'this, Self, ()>

Source§

fn poly_fill_rectangle_checked<'this>( &'this mut self, drawable: u32, gc: u32, rectangles: impl AsRef<[Rectangle]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn poly_fill_arc<'this>( &'this mut self, drawable: u32, gc: u32, arcs: impl AsRef<[Arc]>, ) -> SendRequest<'this, Self, ()>

Source§

fn poly_fill_arc_checked<'this>( &'this mut self, drawable: u32, gc: u32, arcs: impl AsRef<[Arc]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn put_image<'this>( &'this mut self, format: ImageFormat, drawable: u32, gc: u32, width: u16, height: u16, dst_x: i16, dst_y: i16, left_pad: u8, depth: u8, data: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, ()>

Source§

fn put_image_checked<'this>( &'this mut self, format: ImageFormat, drawable: u32, gc: u32, width: u16, height: u16, dst_x: i16, dst_y: i16, left_pad: u8, depth: u8, data: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_image<'this>( &'this mut self, format: ImageFormat, drawable: u32, x: i16, y: i16, width: u16, height: u16, plane_mask: u32, ) -> SendRequest<'this, Self, GetImageReply>

Source§

fn get_image_immediate<'this>( &'this mut self, format: ImageFormat, drawable: u32, x: i16, y: i16, width: u16, height: u16, plane_mask: u32, ) -> CheckedSendRequest<'this, Self, GetImageReply>

Source§

fn poly_text8<'this>( &'this mut self, drawable: u32, gc: u32, x: i16, y: i16, items: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, ()>

Source§

fn poly_text8_checked<'this>( &'this mut self, drawable: u32, gc: u32, x: i16, y: i16, items: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn poly_text16<'this>( &'this mut self, drawable: u32, gc: u32, x: i16, y: i16, items: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, ()>

Source§

fn poly_text16_checked<'this>( &'this mut self, drawable: u32, gc: u32, x: i16, y: i16, items: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn image_text8<'this>( &'this mut self, drawable: u32, gc: u32, x: i16, y: i16, string: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, ()>

Source§

fn image_text8_checked<'this>( &'this mut self, drawable: u32, gc: u32, x: i16, y: i16, string: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn image_text16<'this>( &'this mut self, drawable: u32, gc: u32, x: i16, y: i16, string: impl AsRef<[Char2b]>, ) -> SendRequest<'this, Self, ()>

Source§

fn image_text16_checked<'this>( &'this mut self, drawable: u32, gc: u32, x: i16, y: i16, string: impl AsRef<[Char2b]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn create_colormap<'this>( &'this mut self, alloc: ColormapAlloc, mid: u32, window: u32, visual: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn create_colormap_checked<'this>( &'this mut self, alloc: ColormapAlloc, mid: u32, window: u32, visual: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn free_colormap<'this>( &'this mut self, cmap: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn free_colormap_checked<'this>( &'this mut self, cmap: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn copy_colormap_and_free<'this>( &'this mut self, mid: u32, src_cmap: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn copy_colormap_and_free_checked<'this>( &'this mut self, mid: u32, src_cmap: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn install_colormap<'this>( &'this mut self, cmap: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn install_colormap_checked<'this>( &'this mut self, cmap: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn uninstall_colormap<'this>( &'this mut self, cmap: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn uninstall_colormap_checked<'this>( &'this mut self, cmap: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn list_installed_colormaps<'this>( &'this mut self, window: u32, ) -> SendRequest<'this, Self, ListInstalledColormapsReply>

Source§

fn list_installed_colormaps_immediate<'this>( &'this mut self, window: u32, ) -> CheckedSendRequest<'this, Self, ListInstalledColormapsReply>

Source§

fn alloc_color<'this>( &'this mut self, cmap: u32, red: u16, green: u16, blue: u16, ) -> SendRequest<'this, Self, AllocColorReply>

Source§

fn alloc_color_immediate<'this>( &'this mut self, cmap: u32, red: u16, green: u16, blue: u16, ) -> CheckedSendRequest<'this, Self, AllocColorReply>

Source§

fn alloc_named_color<'this>( &'this mut self, cmap: u32, name: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, AllocNamedColorReply>

Source§

fn alloc_named_color_immediate<'this>( &'this mut self, cmap: u32, name: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, AllocNamedColorReply>

Source§

fn alloc_color_cells<'this>( &'this mut self, contiguous: bool, cmap: u32, colors: u16, planes: u16, ) -> SendRequest<'this, Self, AllocColorCellsReply>

Source§

fn alloc_color_cells_immediate<'this>( &'this mut self, contiguous: bool, cmap: u32, colors: u16, planes: u16, ) -> CheckedSendRequest<'this, Self, AllocColorCellsReply>

Source§

fn alloc_color_planes<'this>( &'this mut self, contiguous: bool, cmap: u32, colors: u16, reds: u16, greens: u16, blues: u16, ) -> SendRequest<'this, Self, AllocColorPlanesReply>

Source§

fn alloc_color_planes_immediate<'this>( &'this mut self, contiguous: bool, cmap: u32, colors: u16, reds: u16, greens: u16, blues: u16, ) -> CheckedSendRequest<'this, Self, AllocColorPlanesReply>

Source§

fn free_colors<'this>( &'this mut self, cmap: u32, plane_mask: u32, pixels: impl AsRef<[u32]>, ) -> SendRequest<'this, Self, ()>

Source§

fn free_colors_checked<'this>( &'this mut self, cmap: u32, plane_mask: u32, pixels: impl AsRef<[u32]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn store_colors<'this>( &'this mut self, cmap: u32, items: impl AsRef<[Coloritem]>, ) -> SendRequest<'this, Self, ()>

Source§

fn store_colors_checked<'this>( &'this mut self, cmap: u32, items: impl AsRef<[Coloritem]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn store_named_color<'this>( &'this mut self, flags: impl Into<ColorFlag>, cmap: u32, pixel: u32, name: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, ()>

Source§

fn store_named_color_checked<'this>( &'this mut self, flags: impl Into<ColorFlag>, cmap: u32, pixel: u32, name: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn query_colors<'this>( &'this mut self, cmap: u32, pixels: impl AsRef<[u32]>, ) -> SendRequest<'this, Self, QueryColorsReply>

Source§

fn query_colors_immediate<'this>( &'this mut self, cmap: u32, pixels: impl AsRef<[u32]>, ) -> CheckedSendRequest<'this, Self, QueryColorsReply>

Source§

fn lookup_color<'this>( &'this mut self, cmap: u32, name: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, LookupColorReply>

Source§

fn lookup_color_immediate<'this>( &'this mut self, cmap: u32, name: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, LookupColorReply>

Source§

fn create_cursor<'this>( &'this mut self, cid: u32, source: u32, mask: impl Into<u32>, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, x: u16, y: u16, ) -> SendRequest<'this, Self, ()>

Source§

fn create_cursor_checked<'this>( &'this mut self, cid: u32, source: u32, mask: impl Into<u32>, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, x: u16, y: u16, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn create_glyph_cursor<'this>( &'this mut self, cid: u32, source_font: u32, mask_font: impl Into<u32>, source_char: u16, mask_char: u16, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> SendRequest<'this, Self, ()>

Source§

fn create_glyph_cursor_checked<'this>( &'this mut self, cid: u32, source_font: u32, mask_font: impl Into<u32>, source_char: u16, mask_char: u16, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn free_cursor<'this>( &'this mut self, cursor: u32, ) -> SendRequest<'this, Self, ()>

Source§

fn free_cursor_checked<'this>( &'this mut self, cursor: u32, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn recolor_cursor<'this>( &'this mut self, cursor: u32, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> SendRequest<'this, Self, ()>

Source§

fn recolor_cursor_checked<'this>( &'this mut self, cursor: u32, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn query_best_size<'this>( &'this mut self, class: QueryShapeOf, drawable: u32, width: u16, height: u16, ) -> SendRequest<'this, Self, QueryBestSizeReply>

Source§

fn query_best_size_immediate<'this>( &'this mut self, class: QueryShapeOf, drawable: u32, width: u16, height: u16, ) -> CheckedSendRequest<'this, Self, QueryBestSizeReply>

Source§

fn query_extension<'this>( &'this mut self, name: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, QueryExtensionReply>

Source§

fn query_extension_immediate<'this>( &'this mut self, name: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, QueryExtensionReply>

Source§

fn list_extensions<'this>( &'this mut self, ) -> SendRequest<'this, Self, ListExtensionsReply>

Source§

fn list_extensions_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, ListExtensionsReply>

Source§

fn change_keyboard_mapping<'this>( &'this mut self, keycode_count: u8, first_keycode: u8, keysyms_per_keycode: u8, keysyms: impl AsRef<[u32]>, ) -> SendRequest<'this, Self, ()>

Source§

fn change_keyboard_mapping_checked<'this>( &'this mut self, keycode_count: u8, first_keycode: u8, keysyms_per_keycode: u8, keysyms: impl AsRef<[u32]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_keyboard_mapping<'this>( &'this mut self, first_keycode: u8, count: u8, ) -> SendRequest<'this, Self, GetKeyboardMappingReply>

Source§

fn get_keyboard_mapping_immediate<'this>( &'this mut self, first_keycode: u8, count: u8, ) -> CheckedSendRequest<'this, Self, GetKeyboardMappingReply>

Source§

fn change_keyboard_control<'this>( &'this mut self, value_list: impl Borrow<ChangeKeyboardControlAux>, ) -> SendRequest<'this, Self, ()>

Source§

fn change_keyboard_control_checked<'this>( &'this mut self, value_list: impl Borrow<ChangeKeyboardControlAux>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_keyboard_control<'this>( &'this mut self, ) -> SendRequest<'this, Self, GetKeyboardControlReply>

Source§

fn get_keyboard_control_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, GetKeyboardControlReply>

Source§

fn bell<'this>(&'this mut self, percent: i8) -> SendRequest<'this, Self, ()>

Source§

fn bell_checked<'this>( &'this mut self, percent: i8, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn change_pointer_control<'this>( &'this mut self, acceleration_numerator: i16, acceleration_denominator: i16, threshold: i16, do_acceleration: bool, do_threshold: bool, ) -> SendRequest<'this, Self, ()>

Source§

fn change_pointer_control_checked<'this>( &'this mut self, acceleration_numerator: i16, acceleration_denominator: i16, threshold: i16, do_acceleration: bool, do_threshold: bool, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_pointer_control<'this>( &'this mut self, ) -> SendRequest<'this, Self, GetPointerControlReply>

Source§

fn get_pointer_control_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, GetPointerControlReply>

Source§

fn set_screen_saver<'this>( &'this mut self, timeout: i16, interval: i16, prefer_blanking: Blanking, allow_exposures: Exposures, ) -> SendRequest<'this, Self, ()>

Source§

fn set_screen_saver_checked<'this>( &'this mut self, timeout: i16, interval: i16, prefer_blanking: Blanking, allow_exposures: Exposures, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn get_screen_saver<'this>( &'this mut self, ) -> SendRequest<'this, Self, GetScreenSaverReply>

Source§

fn get_screen_saver_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, GetScreenSaverReply>

Source§

fn change_hosts<'this>( &'this mut self, mode: HostMode, family: Family, address: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, ()>

Source§

fn change_hosts_checked<'this>( &'this mut self, mode: HostMode, family: Family, address: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn list_hosts<'this>( &'this mut self, ) -> SendRequest<'this, Self, ListHostsReply>

Source§

fn list_hosts_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, ListHostsReply>

Source§

fn set_access_control<'this>( &'this mut self, mode: AccessControl, ) -> SendRequest<'this, Self, ()>

Source§

fn set_access_control_checked<'this>( &'this mut self, mode: AccessControl, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn set_close_down_mode<'this>( &'this mut self, mode: CloseDown, ) -> SendRequest<'this, Self, ()>

Source§

fn set_close_down_mode_checked<'this>( &'this mut self, mode: CloseDown, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn kill_client<'this>( &'this mut self, resource: impl Into<Kill>, ) -> SendRequest<'this, Self, ()>

Source§

fn kill_client_checked<'this>( &'this mut self, resource: impl Into<Kill>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn rotate_properties<'this>( &'this mut self, window: u32, delta: i16, atoms: impl AsRef<[u32]>, ) -> SendRequest<'this, Self, ()>

Source§

fn rotate_properties_checked<'this>( &'this mut self, window: u32, delta: i16, atoms: impl AsRef<[u32]>, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn force_screen_saver<'this>( &'this mut self, mode: ScreenSaver, ) -> SendRequest<'this, Self, ()>

Source§

fn force_screen_saver_checked<'this>( &'this mut self, mode: ScreenSaver, ) -> CheckedSendRequest<'this, Self, ()>

Source§

fn set_pointer_mapping<'this>( &'this mut self, map: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, SetPointerMappingReply>

Source§

fn set_pointer_mapping_immediate<'this>( &'this mut self, map: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, SetPointerMappingReply>

Source§

fn get_pointer_mapping<'this>( &'this mut self, ) -> SendRequest<'this, Self, GetPointerMappingReply>

Source§

fn get_pointer_mapping_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, GetPointerMappingReply>

Source§

fn set_modifier_mapping<'this>( &'this mut self, keycodes: impl AsRef<[u8]>, ) -> SendRequest<'this, Self, SetModifierMappingReply>

Source§

fn set_modifier_mapping_immediate<'this>( &'this mut self, keycodes: impl AsRef<[u8]>, ) -> CheckedSendRequest<'this, Self, SetModifierMappingReply>

Source§

fn get_modifier_mapping<'this>( &'this mut self, ) -> SendRequest<'this, Self, GetModifierMappingReply>

Source§

fn get_modifier_mapping_immediate<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, GetModifierMappingReply>

Source§

fn no_operation<'this>(&'this mut self) -> SendRequest<'this, Self, ()>

Source§

fn no_operation_checked<'this>( &'this mut self, ) -> CheckedSendRequest<'this, Self, ()>

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<D> DisplayBaseExt for D
where D: DisplayBase + ?Sized,

Source§

fn poll_for_reply<R>(&mut self, cookie: Cookie<R>) -> Result<Option<R>, Error>
where R: TryParseFd,

Poll for a reply matching the given sequence number.
Source§

impl<D> DisplayExt for D
where D: Display + ?Sized,

Source§

fn send_void_request( &mut self, request: impl VoidRequest, discard_reply: bool, ) -> Result<Cookie<()>, Error>

Send a request with no reply.
Source§

fn send_reply_request<R>( &mut self, request: R, ) -> Result<Cookie<<R as ReplyRequest>::Reply>, Error>
where R: ReplyRequest,

Send a request with a reply.
Source§

fn send_reply_fd_request<R>( &mut self, request: R, ) -> Result<Cookie<<R as ReplyFDsRequest>::Reply>, Error>
where R: ReplyFDsRequest,

Send a request with a reply containing file descriptors.
Source§

fn wait_for_reply<R>(&mut self, cookie: Cookie<R>) -> Result<R, Error>
where R: TryParseFd,

Receive a reply from the server.
Source§

impl<D> DisplayFunctionsExt for D
where D: Display + ?Sized,

Source§

fn bigreq_enable(&mut self) -> Result<Cookie<EnableReply>, Error>

Source§

fn bigreq_enable_immediate(&mut self) -> Result<EnableReply, Error>

Source§

fn ge_query_version( &mut self, client_major_version: u16, client_minor_version: u16, ) -> Result<Cookie<QueryVersionReply>, Error>

Source§

fn ge_query_version_immediate( &mut self, client_major_version: u16, client_minor_version: u16, ) -> Result<QueryVersionReply, Error>

Source§

fn xc_misc_get_version( &mut self, client_major_version: u16, client_minor_version: u16, ) -> Result<Cookie<GetVersionReply>, Error>

Source§

fn xc_misc_get_version_immediate( &mut self, client_major_version: u16, client_minor_version: u16, ) -> Result<GetVersionReply, Error>

Source§

fn xc_misc_get_xid_range(&mut self) -> Result<Cookie<GetXIDRangeReply>, Error>

Source§

fn xc_misc_get_xid_range_immediate(&mut self) -> Result<GetXIDRangeReply, Error>

Source§

fn xc_misc_get_xid_list( &mut self, count: u32, ) -> Result<Cookie<GetXIDListReply>, Error>

Source§

fn xc_misc_get_xid_list_immediate( &mut self, count: u32, ) -> Result<GetXIDListReply, Error>

Source§

fn create_window( &mut self, depth: u8, wid: u32, parent: u32, x: i16, y: i16, width: u16, height: u16, border_width: u16, class: WindowClass, visual: u32, value_list: impl Borrow<CreateWindowAux>, ) -> Result<Cookie<()>, Error>

Source§

fn create_window_checked( &mut self, depth: u8, wid: u32, parent: u32, x: i16, y: i16, width: u16, height: u16, border_width: u16, class: WindowClass, visual: u32, value_list: impl Borrow<CreateWindowAux>, ) -> Result<(), Error>

Source§

fn change_window_attributes( &mut self, window: u32, value_list: impl Borrow<ChangeWindowAttributesAux>, ) -> Result<Cookie<()>, Error>

Source§

fn change_window_attributes_checked( &mut self, window: u32, value_list: impl Borrow<ChangeWindowAttributesAux>, ) -> Result<(), Error>

Source§

fn get_window_attributes( &mut self, window: u32, ) -> Result<Cookie<GetWindowAttributesReply>, Error>

Source§

fn get_window_attributes_immediate( &mut self, window: u32, ) -> Result<GetWindowAttributesReply, Error>

Source§

fn destroy_window(&mut self, window: u32) -> Result<Cookie<()>, Error>

Source§

fn destroy_window_checked(&mut self, window: u32) -> Result<(), Error>

Source§

fn destroy_subwindows(&mut self, window: u32) -> Result<Cookie<()>, Error>

Source§

fn destroy_subwindows_checked(&mut self, window: u32) -> Result<(), Error>

Source§

fn change_save_set( &mut self, mode: SetMode, window: u32, ) -> Result<Cookie<()>, Error>

Source§

fn change_save_set_checked( &mut self, mode: SetMode, window: u32, ) -> Result<(), Error>

Source§

fn reparent_window( &mut self, window: u32, parent: u32, x: i16, y: i16, ) -> Result<Cookie<()>, Error>

Source§

fn reparent_window_checked( &mut self, window: u32, parent: u32, x: i16, y: i16, ) -> Result<(), Error>

Source§

fn map_window(&mut self, window: u32) -> Result<Cookie<()>, Error>

Source§

fn map_window_checked(&mut self, window: u32) -> Result<(), Error>

Source§

fn map_subwindows(&mut self, window: u32) -> Result<Cookie<()>, Error>

Source§

fn map_subwindows_checked(&mut self, window: u32) -> Result<(), Error>

Source§

fn unmap_window(&mut self, window: u32) -> Result<Cookie<()>, Error>

Source§

fn unmap_window_checked(&mut self, window: u32) -> Result<(), Error>

Source§

fn unmap_subwindows(&mut self, window: u32) -> Result<Cookie<()>, Error>

Source§

fn unmap_subwindows_checked(&mut self, window: u32) -> Result<(), Error>

Source§

fn configure_window( &mut self, window: u32, value_list: impl Borrow<ConfigureWindowAux>, ) -> Result<Cookie<()>, Error>

Source§

fn configure_window_checked( &mut self, window: u32, value_list: impl Borrow<ConfigureWindowAux>, ) -> Result<(), Error>

Source§

fn circulate_window( &mut self, direction: Circulate, window: u32, ) -> Result<Cookie<()>, Error>

Source§

fn circulate_window_checked( &mut self, direction: Circulate, window: u32, ) -> Result<(), Error>

Source§

fn get_geometry( &mut self, drawable: u32, ) -> Result<Cookie<GetGeometryReply>, Error>

Source§

fn get_geometry_immediate( &mut self, drawable: u32, ) -> Result<GetGeometryReply, Error>

Source§

fn query_tree(&mut self, window: u32) -> Result<Cookie<QueryTreeReply>, Error>

Source§

fn query_tree_immediate(&mut self, window: u32) -> Result<QueryTreeReply, Error>

Source§

fn intern_atom( &mut self, only_if_exists: bool, name: impl AsRef<[u8]>, ) -> Result<Cookie<InternAtomReply>, Error>

Source§

fn intern_atom_immediate( &mut self, only_if_exists: bool, name: impl AsRef<[u8]>, ) -> Result<InternAtomReply, Error>

Source§

fn get_atom_name( &mut self, atom: u32, ) -> Result<Cookie<GetAtomNameReply>, Error>

Source§

fn get_atom_name_immediate( &mut self, atom: u32, ) -> Result<GetAtomNameReply, Error>

Source§

fn change_property( &mut self, mode: PropMode, window: u32, property: u32, type_: u32, format: u8, data_len: u32, data: &(impl Void + ?Sized), ) -> Result<Cookie<()>, Error>

Source§

fn change_property_checked( &mut self, mode: PropMode, window: u32, property: u32, type_: u32, format: u8, data_len: u32, data: &(impl Void + ?Sized), ) -> Result<(), Error>

Source§

fn delete_property( &mut self, window: u32, property: u32, ) -> Result<Cookie<()>, Error>

Source§

fn delete_property_checked( &mut self, window: u32, property: u32, ) -> Result<(), Error>

Source§

fn get_property( &mut self, delete: bool, window: u32, property: u32, type_: impl Into<GetPropertyType>, long_offset: u32, long_length: u32, ) -> Result<Cookie<GetPropertyReply>, Error>

Source§

fn get_property_immediate( &mut self, delete: bool, window: u32, property: u32, type_: impl Into<GetPropertyType>, long_offset: u32, long_length: u32, ) -> Result<GetPropertyReply, Error>

Source§

fn list_properties( &mut self, window: u32, ) -> Result<Cookie<ListPropertiesReply>, Error>

Source§

fn list_properties_immediate( &mut self, window: u32, ) -> Result<ListPropertiesReply, Error>

Source§

fn set_selection_owner( &mut self, owner: impl Into<u32>, selection: u32, time: impl Into<Time>, ) -> Result<Cookie<()>, Error>

Source§

fn set_selection_owner_checked( &mut self, owner: impl Into<u32>, selection: u32, time: impl Into<Time>, ) -> Result<(), Error>

Source§

fn get_selection_owner( &mut self, selection: u32, ) -> Result<Cookie<GetSelectionOwnerReply>, Error>

Source§

fn get_selection_owner_immediate( &mut self, selection: u32, ) -> Result<GetSelectionOwnerReply, Error>

Source§

fn convert_selection( &mut self, requestor: u32, selection: u32, target: u32, property: impl Into<u32>, time: impl Into<Time>, ) -> Result<Cookie<()>, Error>

Source§

fn convert_selection_checked( &mut self, requestor: u32, selection: u32, target: u32, property: impl Into<u32>, time: impl Into<Time>, ) -> Result<(), Error>

Source§

fn send_event( &mut self, propagate: bool, destination: impl Into<SendEventDest>, event_mask: impl Into<EventMask>, event: impl Borrow<[u8; 32]>, ) -> Result<Cookie<()>, Error>

Source§

fn send_event_checked( &mut self, propagate: bool, destination: impl Into<SendEventDest>, event_mask: impl Into<EventMask>, event: impl Borrow<[u8; 32]>, ) -> Result<(), Error>

Source§

fn grab_pointer( &mut self, owner_events: bool, grab_window: u32, event_mask: impl Into<EventMask>, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: impl Into<u32>, cursor: impl Into<u32>, time: impl Into<Time>, ) -> Result<Cookie<GrabPointerReply>, Error>

Source§

fn grab_pointer_immediate( &mut self, owner_events: bool, grab_window: u32, event_mask: impl Into<EventMask>, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: impl Into<u32>, cursor: impl Into<u32>, time: impl Into<Time>, ) -> Result<GrabPointerReply, Error>

Source§

fn ungrab_pointer(&mut self, time: impl Into<Time>) -> Result<Cookie<()>, Error>

Source§

fn ungrab_pointer_checked(&mut self, time: impl Into<Time>) -> Result<(), Error>

Source§

fn grab_button( &mut self, owner_events: bool, grab_window: u32, event_mask: impl Into<EventMask>, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: impl Into<u32>, cursor: impl Into<u32>, button: ButtonIndex, modifiers: impl Into<ModMask>, ) -> Result<Cookie<()>, Error>

Source§

fn grab_button_checked( &mut self, owner_events: bool, grab_window: u32, event_mask: impl Into<EventMask>, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: impl Into<u32>, cursor: impl Into<u32>, button: ButtonIndex, modifiers: impl Into<ModMask>, ) -> Result<(), Error>

Source§

fn ungrab_button( &mut self, button: ButtonIndex, grab_window: u32, modifiers: impl Into<ModMask>, ) -> Result<Cookie<()>, Error>

Source§

fn ungrab_button_checked( &mut self, button: ButtonIndex, grab_window: u32, modifiers: impl Into<ModMask>, ) -> Result<(), Error>

Source§

fn change_active_pointer_grab( &mut self, cursor: impl Into<u32>, time: impl Into<Time>, event_mask: impl Into<EventMask>, ) -> Result<Cookie<()>, Error>

Source§

fn change_active_pointer_grab_checked( &mut self, cursor: impl Into<u32>, time: impl Into<Time>, event_mask: impl Into<EventMask>, ) -> Result<(), Error>

Source§

fn grab_keyboard( &mut self, owner_events: bool, grab_window: u32, time: impl Into<Time>, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> Result<Cookie<GrabKeyboardReply>, Error>

Source§

fn grab_keyboard_immediate( &mut self, owner_events: bool, grab_window: u32, time: impl Into<Time>, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> Result<GrabKeyboardReply, Error>

Source§

fn ungrab_keyboard( &mut self, time: impl Into<Time>, ) -> Result<Cookie<()>, Error>

Source§

fn ungrab_keyboard_checked( &mut self, time: impl Into<Time>, ) -> Result<(), Error>

Source§

fn grab_key( &mut self, owner_events: bool, grab_window: u32, modifiers: impl Into<ModMask>, key: impl Into<Grab>, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> Result<Cookie<()>, Error>

Source§

fn grab_key_checked( &mut self, owner_events: bool, grab_window: u32, modifiers: impl Into<ModMask>, key: impl Into<Grab>, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> Result<(), Error>

Source§

fn ungrab_key( &mut self, key: impl Into<Grab>, grab_window: u32, modifiers: impl Into<ModMask>, ) -> Result<Cookie<()>, Error>

Source§

fn ungrab_key_checked( &mut self, key: impl Into<Grab>, grab_window: u32, modifiers: impl Into<ModMask>, ) -> Result<(), Error>

Source§

fn allow_events( &mut self, mode: Allow, time: impl Into<Time>, ) -> Result<Cookie<()>, Error>

Source§

fn allow_events_checked( &mut self, mode: Allow, time: impl Into<Time>, ) -> Result<(), Error>

Source§

fn grab_server(&mut self) -> Result<Cookie<()>, Error>

Source§

fn grab_server_checked(&mut self) -> Result<(), Error>

Source§

fn ungrab_server(&mut self) -> Result<Cookie<()>, Error>

Source§

fn ungrab_server_checked(&mut self) -> Result<(), Error>

Source§

fn query_pointer( &mut self, window: u32, ) -> Result<Cookie<QueryPointerReply>, Error>

Source§

fn query_pointer_immediate( &mut self, window: u32, ) -> Result<QueryPointerReply, Error>

Source§

fn get_motion_events( &mut self, window: u32, start: impl Into<Time>, stop: impl Into<Time>, ) -> Result<Cookie<GetMotionEventsReply>, Error>

Source§

fn get_motion_events_immediate( &mut self, window: u32, start: impl Into<Time>, stop: impl Into<Time>, ) -> Result<GetMotionEventsReply, Error>

Source§

fn translate_coordinates( &mut self, src_window: u32, dst_window: u32, src_x: i16, src_y: i16, ) -> Result<Cookie<TranslateCoordinatesReply>, Error>

Source§

fn translate_coordinates_immediate( &mut self, src_window: u32, dst_window: u32, src_x: i16, src_y: i16, ) -> Result<TranslateCoordinatesReply, Error>

Source§

fn warp_pointer( &mut self, src_window: impl Into<u32>, dst_window: impl Into<u32>, src_x: i16, src_y: i16, src_width: u16, src_height: u16, dst_x: i16, dst_y: i16, ) -> Result<Cookie<()>, Error>

Source§

fn warp_pointer_checked( &mut self, src_window: impl Into<u32>, dst_window: impl Into<u32>, src_x: i16, src_y: i16, src_width: u16, src_height: u16, dst_x: i16, dst_y: i16, ) -> Result<(), Error>

Source§

fn set_input_focus( &mut self, revert_to: InputFocus, focus: impl Into<InputFocus>, time: impl Into<Time>, ) -> Result<Cookie<()>, Error>

Source§

fn set_input_focus_checked( &mut self, revert_to: InputFocus, focus: impl Into<InputFocus>, time: impl Into<Time>, ) -> Result<(), Error>

Source§

fn get_input_focus(&mut self) -> Result<Cookie<GetInputFocusReply>, Error>

Source§

fn get_input_focus_immediate(&mut self) -> Result<GetInputFocusReply, Error>

Source§

fn query_keymap(&mut self) -> Result<Cookie<QueryKeymapReply>, Error>

Source§

fn query_keymap_immediate(&mut self) -> Result<QueryKeymapReply, Error>

Source§

fn open_font( &mut self, fid: u32, name: impl AsRef<[u8]>, ) -> Result<Cookie<()>, Error>

Source§

fn open_font_checked( &mut self, fid: u32, name: impl AsRef<[u8]>, ) -> Result<(), Error>

Source§

fn close_font(&mut self, font: u32) -> Result<Cookie<()>, Error>

Source§

fn close_font_checked(&mut self, font: u32) -> Result<(), Error>

Source§

fn query_font(&mut self, font: u32) -> Result<Cookie<QueryFontReply>, Error>

Source§

fn query_font_immediate(&mut self, font: u32) -> Result<QueryFontReply, Error>

Source§

fn query_text_extents( &mut self, font: u32, string: impl AsRef<[Char2b]>, ) -> Result<Cookie<QueryTextExtentsReply>, Error>

Source§

fn query_text_extents_immediate( &mut self, font: u32, string: impl AsRef<[Char2b]>, ) -> Result<QueryTextExtentsReply, Error>

Source§

fn list_fonts( &mut self, max_names: u16, pattern: impl AsRef<[u8]>, ) -> Result<Cookie<ListFontsReply>, Error>

Source§

fn list_fonts_immediate( &mut self, max_names: u16, pattern: impl AsRef<[u8]>, ) -> Result<ListFontsReply, Error>

Source§

fn list_fonts_with_info( &mut self, max_names: u16, pattern: impl AsRef<[u8]>, ) -> Result<Cookie<ListFontsWithInfoReply>, Error>

Source§

fn list_fonts_with_info_immediate( &mut self, max_names: u16, pattern: impl AsRef<[u8]>, ) -> Result<ListFontsWithInfoReply, Error>

Source§

fn set_font_path( &mut self, font: impl AsRef<[Str]>, ) -> Result<Cookie<()>, Error>

Source§

fn set_font_path_checked( &mut self, font: impl AsRef<[Str]>, ) -> Result<(), Error>

Source§

fn get_font_path(&mut self) -> Result<Cookie<GetFontPathReply>, Error>

Source§

fn get_font_path_immediate(&mut self) -> Result<GetFontPathReply, Error>

Source§

fn create_pixmap( &mut self, depth: u8, pid: u32, drawable: u32, width: u16, height: u16, ) -> Result<Cookie<()>, Error>

Source§

fn create_pixmap_checked( &mut self, depth: u8, pid: u32, drawable: u32, width: u16, height: u16, ) -> Result<(), Error>

Source§

fn free_pixmap(&mut self, pixmap: u32) -> Result<Cookie<()>, Error>

Source§

fn free_pixmap_checked(&mut self, pixmap: u32) -> Result<(), Error>

Source§

fn create_gc( &mut self, cid: u32, drawable: u32, value_list: impl Borrow<CreateGCAux>, ) -> Result<Cookie<()>, Error>

Source§

fn create_gc_checked( &mut self, cid: u32, drawable: u32, value_list: impl Borrow<CreateGCAux>, ) -> Result<(), Error>

Source§

fn change_gc( &mut self, gc: u32, value_list: impl Borrow<ChangeGCAux>, ) -> Result<Cookie<()>, Error>

Source§

fn change_gc_checked( &mut self, gc: u32, value_list: impl Borrow<ChangeGCAux>, ) -> Result<(), Error>

Source§

fn copy_gc( &mut self, src_gc: u32, dst_gc: u32, value_mask: impl Into<GC>, ) -> Result<Cookie<()>, Error>

Source§

fn copy_gc_checked( &mut self, src_gc: u32, dst_gc: u32, value_mask: impl Into<GC>, ) -> Result<(), Error>

Source§

fn set_dashes( &mut self, gc: u32, dash_offset: u16, dashes: impl AsRef<[u8]>, ) -> Result<Cookie<()>, Error>

Source§

fn set_dashes_checked( &mut self, gc: u32, dash_offset: u16, dashes: impl AsRef<[u8]>, ) -> Result<(), Error>

Source§

fn set_clip_rectangles( &mut self, ordering: ClipOrdering, gc: u32, clip_x_origin: i16, clip_y_origin: i16, rectangles: impl AsRef<[Rectangle]>, ) -> Result<Cookie<()>, Error>

Source§

fn set_clip_rectangles_checked( &mut self, ordering: ClipOrdering, gc: u32, clip_x_origin: i16, clip_y_origin: i16, rectangles: impl AsRef<[Rectangle]>, ) -> Result<(), Error>

Source§

fn free_gc(&mut self, gc: u32) -> Result<Cookie<()>, Error>

Source§

fn free_gc_checked(&mut self, gc: u32) -> Result<(), Error>

Source§

fn clear_area( &mut self, exposures: bool, window: u32, x: i16, y: i16, width: u16, height: u16, ) -> Result<Cookie<()>, Error>

Source§

fn clear_area_checked( &mut self, exposures: bool, window: u32, x: i16, y: i16, width: u16, height: u16, ) -> Result<(), Error>

Source§

fn copy_area( &mut self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, ) -> Result<Cookie<()>, Error>

Source§

fn copy_area_checked( &mut self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, ) -> Result<(), Error>

Source§

fn copy_plane( &mut self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, bit_plane: u32, ) -> Result<Cookie<()>, Error>

Source§

fn copy_plane_checked( &mut self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, bit_plane: u32, ) -> Result<(), Error>

Source§

fn poly_point( &mut self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: impl AsRef<[Point]>, ) -> Result<Cookie<()>, Error>

Source§

fn poly_point_checked( &mut self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: impl AsRef<[Point]>, ) -> Result<(), Error>

Source§

fn poly_line( &mut self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: impl AsRef<[Point]>, ) -> Result<Cookie<()>, Error>

Source§

fn poly_line_checked( &mut self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: impl AsRef<[Point]>, ) -> Result<(), Error>

Source§

fn poly_segment( &mut self, drawable: u32, gc: u32, segments: impl AsRef<[Segment]>, ) -> Result<Cookie<()>, Error>

Source§

fn poly_segment_checked( &mut self, drawable: u32, gc: u32, segments: impl AsRef<[Segment]>, ) -> Result<(), Error>

Source§

fn poly_rectangle( &mut self, drawable: u32, gc: u32, rectangles: impl AsRef<[Rectangle]>, ) -> Result<Cookie<()>, Error>

Source§

fn poly_rectangle_checked( &mut self, drawable: u32, gc: u32, rectangles: impl AsRef<[Rectangle]>, ) -> Result<(), Error>

Source§

fn poly_arc( &mut self, drawable: u32, gc: u32, arcs: impl AsRef<[Arc]>, ) -> Result<Cookie<()>, Error>

Source§

fn poly_arc_checked( &mut self, drawable: u32, gc: u32, arcs: impl AsRef<[Arc]>, ) -> Result<(), Error>

Source§

fn fill_poly( &mut self, drawable: u32, gc: u32, shape: PolyShape, coordinate_mode: CoordMode, points: impl AsRef<[Point]>, ) -> Result<Cookie<()>, Error>

Source§

fn fill_poly_checked( &mut self, drawable: u32, gc: u32, shape: PolyShape, coordinate_mode: CoordMode, points: impl AsRef<[Point]>, ) -> Result<(), Error>

Source§

fn poly_fill_rectangle( &mut self, drawable: u32, gc: u32, rectangles: impl AsRef<[Rectangle]>, ) -> Result<Cookie<()>, Error>

Source§

fn poly_fill_rectangle_checked( &mut self, drawable: u32, gc: u32, rectangles: impl AsRef<[Rectangle]>, ) -> Result<(), Error>

Source§

fn poly_fill_arc( &mut self, drawable: u32, gc: u32, arcs: impl AsRef<[Arc]>, ) -> Result<Cookie<()>, Error>

Source§

fn poly_fill_arc_checked( &mut self, drawable: u32, gc: u32, arcs: impl AsRef<[Arc]>, ) -> Result<(), Error>

Source§

fn put_image( &mut self, format: ImageFormat, drawable: u32, gc: u32, width: u16, height: u16, dst_x: i16, dst_y: i16, left_pad: u8, depth: u8, data: impl AsRef<[u8]>, ) -> Result<Cookie<()>, Error>

Source§

fn put_image_checked( &mut self, format: ImageFormat, drawable: u32, gc: u32, width: u16, height: u16, dst_x: i16, dst_y: i16, left_pad: u8, depth: u8, data: impl AsRef<[u8]>, ) -> Result<(), Error>

Source§

fn get_image( &mut self, format: ImageFormat, drawable: u32, x: i16, y: i16, width: u16, height: u16, plane_mask: u32, ) -> Result<Cookie<GetImageReply>, Error>

Source§

fn get_image_immediate( &mut self, format: ImageFormat, drawable: u32, x: i16, y: i16, width: u16, height: u16, plane_mask: u32, ) -> Result<GetImageReply, Error>

Source§

fn poly_text8( &mut self, drawable: u32, gc: u32, x: i16, y: i16, items: impl AsRef<[u8]>, ) -> Result<Cookie<()>, Error>

Source§

fn poly_text8_checked( &mut self, drawable: u32, gc: u32, x: i16, y: i16, items: impl AsRef<[u8]>, ) -> Result<(), Error>

Source§

fn poly_text16( &mut self, drawable: u32, gc: u32, x: i16, y: i16, items: impl AsRef<[u8]>, ) -> Result<Cookie<()>, Error>

Source§

fn poly_text16_checked( &mut self, drawable: u32, gc: u32, x: i16, y: i16, items: impl AsRef<[u8]>, ) -> Result<(), Error>

Source§

fn image_text8( &mut self, drawable: u32, gc: u32, x: i16, y: i16, string: impl AsRef<[u8]>, ) -> Result<Cookie<()>, Error>

Source§

fn image_text8_checked( &mut self, drawable: u32, gc: u32, x: i16, y: i16, string: impl AsRef<[u8]>, ) -> Result<(), Error>

Source§

fn image_text16( &mut self, drawable: u32, gc: u32, x: i16, y: i16, string: impl AsRef<[Char2b]>, ) -> Result<Cookie<()>, Error>

Source§

fn image_text16_checked( &mut self, drawable: u32, gc: u32, x: i16, y: i16, string: impl AsRef<[Char2b]>, ) -> Result<(), Error>

Source§

fn create_colormap( &mut self, alloc: ColormapAlloc, mid: u32, window: u32, visual: u32, ) -> Result<Cookie<()>, Error>

Source§

fn create_colormap_checked( &mut self, alloc: ColormapAlloc, mid: u32, window: u32, visual: u32, ) -> Result<(), Error>

Source§

fn free_colormap(&mut self, cmap: u32) -> Result<Cookie<()>, Error>

Source§

fn free_colormap_checked(&mut self, cmap: u32) -> Result<(), Error>

Source§

fn copy_colormap_and_free( &mut self, mid: u32, src_cmap: u32, ) -> Result<Cookie<()>, Error>

Source§

fn copy_colormap_and_free_checked( &mut self, mid: u32, src_cmap: u32, ) -> Result<(), Error>

Source§

fn install_colormap(&mut self, cmap: u32) -> Result<Cookie<()>, Error>

Source§

fn install_colormap_checked(&mut self, cmap: u32) -> Result<(), Error>

Source§

fn uninstall_colormap(&mut self, cmap: u32) -> Result<Cookie<()>, Error>

Source§

fn uninstall_colormap_checked(&mut self, cmap: u32) -> Result<(), Error>

Source§

fn list_installed_colormaps( &mut self, window: u32, ) -> Result<Cookie<ListInstalledColormapsReply>, Error>

Source§

fn list_installed_colormaps_immediate( &mut self, window: u32, ) -> Result<ListInstalledColormapsReply, Error>

Source§

fn alloc_color( &mut self, cmap: u32, red: u16, green: u16, blue: u16, ) -> Result<Cookie<AllocColorReply>, Error>

Source§

fn alloc_color_immediate( &mut self, cmap: u32, red: u16, green: u16, blue: u16, ) -> Result<AllocColorReply, Error>

Source§

fn alloc_named_color( &mut self, cmap: u32, name: impl AsRef<[u8]>, ) -> Result<Cookie<AllocNamedColorReply>, Error>

Source§

fn alloc_named_color_immediate( &mut self, cmap: u32, name: impl AsRef<[u8]>, ) -> Result<AllocNamedColorReply, Error>

Source§

fn alloc_color_cells( &mut self, contiguous: bool, cmap: u32, colors: u16, planes: u16, ) -> Result<Cookie<AllocColorCellsReply>, Error>

Source§

fn alloc_color_cells_immediate( &mut self, contiguous: bool, cmap: u32, colors: u16, planes: u16, ) -> Result<AllocColorCellsReply, Error>

Source§

fn alloc_color_planes( &mut self, contiguous: bool, cmap: u32, colors: u16, reds: u16, greens: u16, blues: u16, ) -> Result<Cookie<AllocColorPlanesReply>, Error>

Source§

fn alloc_color_planes_immediate( &mut self, contiguous: bool, cmap: u32, colors: u16, reds: u16, greens: u16, blues: u16, ) -> Result<AllocColorPlanesReply, Error>

Source§

fn free_colors( &mut self, cmap: u32, plane_mask: u32, pixels: impl AsRef<[u32]>, ) -> Result<Cookie<()>, Error>

Source§

fn free_colors_checked( &mut self, cmap: u32, plane_mask: u32, pixels: impl AsRef<[u32]>, ) -> Result<(), Error>

Source§

fn store_colors( &mut self, cmap: u32, items: impl AsRef<[Coloritem]>, ) -> Result<Cookie<()>, Error>

Source§

fn store_colors_checked( &mut self, cmap: u32, items: impl AsRef<[Coloritem]>, ) -> Result<(), Error>

Source§

fn store_named_color( &mut self, flags: impl Into<ColorFlag>, cmap: u32, pixel: u32, name: impl AsRef<[u8]>, ) -> Result<Cookie<()>, Error>

Source§

fn store_named_color_checked( &mut self, flags: impl Into<ColorFlag>, cmap: u32, pixel: u32, name: impl AsRef<[u8]>, ) -> Result<(), Error>

Source§

fn query_colors( &mut self, cmap: u32, pixels: impl AsRef<[u32]>, ) -> Result<Cookie<QueryColorsReply>, Error>

Source§

fn query_colors_immediate( &mut self, cmap: u32, pixels: impl AsRef<[u32]>, ) -> Result<QueryColorsReply, Error>

Source§

fn lookup_color( &mut self, cmap: u32, name: impl AsRef<[u8]>, ) -> Result<Cookie<LookupColorReply>, Error>

Source§

fn lookup_color_immediate( &mut self, cmap: u32, name: impl AsRef<[u8]>, ) -> Result<LookupColorReply, Error>

Source§

fn create_cursor( &mut self, cid: u32, source: u32, mask: impl Into<u32>, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, x: u16, y: u16, ) -> Result<Cookie<()>, Error>

Source§

fn create_cursor_checked( &mut self, cid: u32, source: u32, mask: impl Into<u32>, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, x: u16, y: u16, ) -> Result<(), Error>

Source§

fn create_glyph_cursor( &mut self, cid: u32, source_font: u32, mask_font: impl Into<u32>, source_char: u16, mask_char: u16, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> Result<Cookie<()>, Error>

Source§

fn create_glyph_cursor_checked( &mut self, cid: u32, source_font: u32, mask_font: impl Into<u32>, source_char: u16, mask_char: u16, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> Result<(), Error>

Source§

fn free_cursor(&mut self, cursor: u32) -> Result<Cookie<()>, Error>

Source§

fn free_cursor_checked(&mut self, cursor: u32) -> Result<(), Error>

Source§

fn recolor_cursor( &mut self, cursor: u32, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> Result<Cookie<()>, Error>

Source§

fn recolor_cursor_checked( &mut self, cursor: u32, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> Result<(), Error>

Source§

fn query_best_size( &mut self, class: QueryShapeOf, drawable: u32, width: u16, height: u16, ) -> Result<Cookie<QueryBestSizeReply>, Error>

Source§

fn query_best_size_immediate( &mut self, class: QueryShapeOf, drawable: u32, width: u16, height: u16, ) -> Result<QueryBestSizeReply, Error>

Source§

fn query_extension( &mut self, name: impl AsRef<[u8]>, ) -> Result<Cookie<QueryExtensionReply>, Error>

Source§

fn query_extension_immediate( &mut self, name: impl AsRef<[u8]>, ) -> Result<QueryExtensionReply, Error>

Source§

fn list_extensions(&mut self) -> Result<Cookie<ListExtensionsReply>, Error>

Source§

fn list_extensions_immediate(&mut self) -> Result<ListExtensionsReply, Error>

Source§

fn change_keyboard_mapping( &mut self, keycode_count: u8, first_keycode: u8, keysyms_per_keycode: u8, keysyms: impl AsRef<[u32]>, ) -> Result<Cookie<()>, Error>

Source§

fn change_keyboard_mapping_checked( &mut self, keycode_count: u8, first_keycode: u8, keysyms_per_keycode: u8, keysyms: impl AsRef<[u32]>, ) -> Result<(), Error>

Source§

fn get_keyboard_mapping( &mut self, first_keycode: u8, count: u8, ) -> Result<Cookie<GetKeyboardMappingReply>, Error>

Source§

fn get_keyboard_mapping_immediate( &mut self, first_keycode: u8, count: u8, ) -> Result<GetKeyboardMappingReply, Error>

Source§

fn change_keyboard_control( &mut self, value_list: impl Borrow<ChangeKeyboardControlAux>, ) -> Result<Cookie<()>, Error>

Source§

fn change_keyboard_control_checked( &mut self, value_list: impl Borrow<ChangeKeyboardControlAux>, ) -> Result<(), Error>

Source§

fn get_keyboard_control( &mut self, ) -> Result<Cookie<GetKeyboardControlReply>, Error>

Source§

fn get_keyboard_control_immediate( &mut self, ) -> Result<GetKeyboardControlReply, Error>

Source§

fn bell(&mut self, percent: i8) -> Result<Cookie<()>, Error>

Source§

fn bell_checked(&mut self, percent: i8) -> Result<(), Error>

Source§

fn change_pointer_control( &mut self, acceleration_numerator: i16, acceleration_denominator: i16, threshold: i16, do_acceleration: bool, do_threshold: bool, ) -> Result<Cookie<()>, Error>

Source§

fn change_pointer_control_checked( &mut self, acceleration_numerator: i16, acceleration_denominator: i16, threshold: i16, do_acceleration: bool, do_threshold: bool, ) -> Result<(), Error>

Source§

fn get_pointer_control( &mut self, ) -> Result<Cookie<GetPointerControlReply>, Error>

Source§

fn get_pointer_control_immediate( &mut self, ) -> Result<GetPointerControlReply, Error>

Source§

fn set_screen_saver( &mut self, timeout: i16, interval: i16, prefer_blanking: Blanking, allow_exposures: Exposures, ) -> Result<Cookie<()>, Error>

Source§

fn set_screen_saver_checked( &mut self, timeout: i16, interval: i16, prefer_blanking: Blanking, allow_exposures: Exposures, ) -> Result<(), Error>

Source§

fn get_screen_saver(&mut self) -> Result<Cookie<GetScreenSaverReply>, Error>

Source§

fn get_screen_saver_immediate(&mut self) -> Result<GetScreenSaverReply, Error>

Source§

fn change_hosts( &mut self, mode: HostMode, family: Family, address: impl AsRef<[u8]>, ) -> Result<Cookie<()>, Error>

Source§

fn change_hosts_checked( &mut self, mode: HostMode, family: Family, address: impl AsRef<[u8]>, ) -> Result<(), Error>

Source§

fn list_hosts(&mut self) -> Result<Cookie<ListHostsReply>, Error>

Source§

fn list_hosts_immediate(&mut self) -> Result<ListHostsReply, Error>

Source§

fn set_access_control( &mut self, mode: AccessControl, ) -> Result<Cookie<()>, Error>

Source§

fn set_access_control_checked( &mut self, mode: AccessControl, ) -> Result<(), Error>

Source§

fn set_close_down_mode(&mut self, mode: CloseDown) -> Result<Cookie<()>, Error>

Source§

fn set_close_down_mode_checked(&mut self, mode: CloseDown) -> Result<(), Error>

Source§

fn kill_client( &mut self, resource: impl Into<Kill>, ) -> Result<Cookie<()>, Error>

Source§

fn kill_client_checked( &mut self, resource: impl Into<Kill>, ) -> Result<(), Error>

Source§

fn rotate_properties( &mut self, window: u32, delta: i16, atoms: impl AsRef<[u32]>, ) -> Result<Cookie<()>, Error>

Source§

fn rotate_properties_checked( &mut self, window: u32, delta: i16, atoms: impl AsRef<[u32]>, ) -> Result<(), Error>

Source§

fn force_screen_saver(&mut self, mode: ScreenSaver) -> Result<Cookie<()>, Error>

Source§

fn force_screen_saver_checked(&mut self, mode: ScreenSaver) -> Result<(), Error>

Source§

fn set_pointer_mapping( &mut self, map: impl AsRef<[u8]>, ) -> Result<Cookie<SetPointerMappingReply>, Error>

Source§

fn set_pointer_mapping_immediate( &mut self, map: impl AsRef<[u8]>, ) -> Result<SetPointerMappingReply, Error>

Source§

fn get_pointer_mapping( &mut self, ) -> Result<Cookie<GetPointerMappingReply>, Error>

Source§

fn get_pointer_mapping_immediate( &mut self, ) -> Result<GetPointerMappingReply, Error>

Source§

fn set_modifier_mapping( &mut self, keycodes: impl AsRef<[u8]>, ) -> Result<Cookie<SetModifierMappingReply>, Error>

Source§

fn set_modifier_mapping_immediate( &mut self, keycodes: impl AsRef<[u8]>, ) -> Result<SetModifierMappingReply, Error>

Source§

fn get_modifier_mapping( &mut self, ) -> Result<Cookie<GetModifierMappingReply>, Error>

Source§

fn get_modifier_mapping_immediate( &mut self, ) -> Result<GetModifierMappingReply, Error>

Source§

fn no_operation(&mut self) -> Result<Cookie<()>, Error>

Source§

fn no_operation_checked(&mut self) -> Result<(), Error>

Source§

impl<T> From<!> for T

Source§

fn from(t: !) -> T

Converts to this type from the input type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more