Struct InputFocus
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§
§impl InputFocus
impl InputFocus
pub const NONE: InputFocus = _
pub const POINTER_ROOT: InputFocus = _
pub const PARENT: InputFocus = _
pub const FOLLOW_KEYBOARD: InputFocus = _
Trait Implementations§
§impl Clone for InputFocus
impl Clone for InputFocus
§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 more§impl Debug for InputFocus
impl Debug for InputFocus
§impl Default for InputFocus
impl Default for InputFocus
§fn default() -> InputFocus
fn default() -> InputFocus
Returns the “default value” for a type. Read more
§impl From<u8> for InputFocus
impl From<u8> for InputFocus
§fn from(value: u8) -> InputFocus
fn from(value: u8) -> InputFocus
Converts to this type from the input type.
§impl Hash for InputFocus
impl Hash for InputFocus
§impl Ord for InputFocus
impl Ord for InputFocus
§impl PartialEq for InputFocus
impl PartialEq for InputFocus
§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
)