Struct x11rb::protocol::xproto::InputFocus
source · pub struct InputFocus(/* private fields */);
Expand description
Fields
None
- The focus reverts toXCB_NONE
, so no window will have the input focus.PointerRoot
- The focus reverts toXCB_POINTER_ROOT
respectively. When the focus reverts, FocusIn and FocusOut events are generated, but the last-focus-change time is not changed.Parent
- The focus reverts to the parent (or closest viewable ancestor) and the new revert_to value isXCB_INPUT_FOCUS_NONE
.FollowKeyboard
- NOT YET DOCUMENTED. Only relevant for the xinput extension.
Implementations§
source§impl InputFocus
impl InputFocus
pub const NONE: InputFocus = _
pub const POINTER_ROOT: InputFocus = _
pub const PARENT: InputFocus = _
pub const FOLLOW_KEYBOARD: InputFocus = _
Trait Implementations§
source§impl Clone for InputFocus
impl Clone for InputFocus
source§fn clone(&self) -> InputFocus
fn clone(&self) -> InputFocus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InputFocus
impl Debug for InputFocus
source§impl Default for InputFocus
impl Default for InputFocus
source§fn default() -> InputFocus
fn default() -> InputFocus
Returns the “default value” for a type. Read more
source§impl From<u8> for InputFocus
impl From<u8> for InputFocus
source§fn from(value: u8) -> InputFocus
fn from(value: u8) -> InputFocus
Converts to this type from the input type.
source§impl Hash for InputFocus
impl Hash for InputFocus
source§impl Ord for InputFocus
impl Ord for InputFocus
source§fn cmp(&self, other: &InputFocus) -> Ordering
fn cmp(&self, other: &InputFocus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for InputFocus
impl PartialEq for InputFocus
source§fn eq(&self, other: &InputFocus) -> bool
fn eq(&self, other: &InputFocus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InputFocus
impl PartialOrd for InputFocus
source§fn partial_cmp(&self, other: &InputFocus) -> Option<Ordering>
fn partial_cmp(&self, other: &InputFocus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InputFocus
impl Eq for InputFocus
impl StructuralEq for InputFocus
impl StructuralPartialEq for InputFocus
Auto Trait Implementations§
impl RefUnwindSafe for InputFocus
impl Send for InputFocus
impl Sync for InputFocus
impl Unpin for InputFocus
impl UnwindSafe for InputFocus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more