Struct x11rb_protocol::protocol::xproto::InputFocus
source · pub struct InputFocus(u8);
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.
Tuple Fields§
§0: u8
Implementations§
source§impl InputFocus
impl InputFocus
pub const NONE: Self = _
pub const POINTER_ROOT: Self = _
pub const PARENT: Self = _
pub const FOLLOW_KEYBOARD: Self = _
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<InputFocus> for Option<u16>
impl From<InputFocus> for Option<u16>
source§fn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
source§impl From<InputFocus> for Option<u32>
impl From<InputFocus> for Option<u32>
source§fn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
source§impl From<InputFocus> for Option<u8>
impl From<InputFocus> for Option<u8>
source§fn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
source§impl From<InputFocus> for u16
impl From<InputFocus> for u16
source§fn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
source§impl From<InputFocus> for u32
impl From<InputFocus> for u32
source§fn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
source§impl From<InputFocus> for u8
impl From<InputFocus> for u8
source§fn from(input: InputFocus) -> Self
fn from(input: InputFocus) -> Self
Converts to this type from the input type.
source§impl From<u8> for InputFocus
impl From<u8> for InputFocus
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§impl PartialOrd for InputFocus
impl PartialOrd for InputFocus
impl Copy for InputFocus
impl Eq for InputFocus
impl StructuralPartialEq for InputFocus
Auto Trait Implementations§
impl Freeze for InputFocus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)