Struct x11rb_protocol::protocol::xproto::InputFocus
source · [−]pub struct InputFocus(_);
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
sourceimpl InputFocus
impl InputFocus
pub const NONE: Self = Self(0)
pub const POINTER_ROOT: Self = Self(1)
pub const PARENT: Self = Self(2)
pub const FOLLOW_KEYBOARD: Self = Self(3)
Trait Implementations
sourceimpl Clone for InputFocus
impl Clone for InputFocus
sourcefn clone(&self) -> InputFocus
fn clone(&self) -> InputFocus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InputFocus
impl Debug for InputFocus
sourceimpl Default for InputFocus
impl Default for InputFocus
sourcefn default() -> InputFocus
fn default() -> InputFocus
Returns the “default value” for a type. Read more
sourceimpl From<InputFocus> for u8
impl From<InputFocus> for u8
sourcefn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
sourceimpl From<InputFocus> for Option<u8>
impl From<InputFocus> for Option<u8>
sourcefn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
sourceimpl From<InputFocus> for u16
impl From<InputFocus> for u16
sourcefn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
sourceimpl From<InputFocus> for Option<u16>
impl From<InputFocus> for Option<u16>
sourcefn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
sourceimpl From<InputFocus> for u32
impl From<InputFocus> for u32
sourcefn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
sourceimpl From<InputFocus> for Option<u32>
impl From<InputFocus> for Option<u32>
sourcefn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for InputFocus
impl From<u8> for InputFocus
sourceimpl Hash for InputFocus
impl Hash for InputFocus
sourceimpl Ord for InputFocus
impl Ord for InputFocus
sourceimpl PartialEq<InputFocus> for InputFocus
impl PartialEq<InputFocus> for InputFocus
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &InputFocus) -> bool
fn ne(&self, other: &InputFocus) -> bool
This method tests for !=
.
sourceimpl PartialOrd<InputFocus> for InputFocus
impl PartialOrd<InputFocus> for InputFocus
sourcefn partial_cmp(&self, other: &InputFocus) -> Option<Ordering>
fn partial_cmp(&self, other: &InputFocus) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more