[−][src]Struct kas::event::HighlightState
Highlighting state of a widget
Fields
hover: bool
"Hover" is true if the mouse is over this element or if an active touch event is over the element.
depress: bool
Elements such as buttons may be depressed (visually pushed) by a click or touch event, but in this state the action can still be cancelled. Elements can also be depressed by keyboard activation.
If true, this likely implies hover
is also true.
key_focus: bool
Keyboard navigation of UIs moves a "focus" from widget to widget.
char_focus: bool
"Character focus" implies this widget is ready to receive text input (e.g. typing into an input field).
If true, this likely implies key_focus
is also true.
Methods
impl HighlightState
[src]
Trait Implementations
impl Clone for HighlightState
[src]
fn clone(&self) -> HighlightState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for HighlightState
[src]
impl Debug for HighlightState
[src]
impl Default for HighlightState
[src]
fn default() -> HighlightState
[src]
impl Eq for HighlightState
[src]
impl Hash for HighlightState
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<HighlightState> for HighlightState
[src]
fn eq(&self, other: &HighlightState) -> bool
[src]
fn ne(&self, other: &HighlightState) -> bool
[src]
impl StructuralEq for HighlightState
[src]
impl StructuralPartialEq for HighlightState
[src]
Auto Trait Implementations
impl RefUnwindSafe for HighlightState
impl Send for HighlightState
impl Sync for HighlightState
impl Unpin for HighlightState
impl UnwindSafe for HighlightState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,