pub struct Interest(/* private fields */);Expand description
Interests for events that a view want to recieve
Implementations§
Source§impl Interest
impl Interest
Sourcepub const MOUSE_INSIDE: Self
pub const MOUSE_INSIDE: Self
A view wants to get mouse events inside of it
Sourcepub const MOUSE_OUTSIDE: Self
pub const MOUSE_OUTSIDE: Self
A view wants to get mouse events outside of it
Sourcepub const MOUSE_MOVE: Self
pub const MOUSE_MOVE: Self
A view wants to get mouse move events
Sourcepub const FOCUS: Self
pub const FOCUS: Self
A view wants to get ViewEvent::FocusGained and ViewEvent::FocusLost events
Sourcepub const FOCUS_INPUT: Self
pub const FOCUS_INPUT: Self
A view wants to key inputs
Sourcepub const SELECTION_CHANGE: Self
pub const SELECTION_CHANGE: Self
A view wants to get ViewEvent::SelectionAdded and ViewEvent::SelectionRemoved events
Source§impl Interest
impl Interest
pub const fn is_none(&self) -> bool
pub const fn is_mouse_inside(&self) -> bool
pub const fn is_mouse_outside(&self) -> bool
pub const fn is_mouse_move(&self) -> bool
pub const fn is_mouse_any(&self) -> bool
pub const fn is_focus(&self) -> bool
pub const fn is_focus_input(&self) -> bool
pub const fn is_selection_change(&self) -> bool
Trait Implementations§
Source§impl BitAndAssign for Interest
impl BitAndAssign for Interest
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for Interest
impl BitOrAssign for Interest
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for Interest
impl BitXorAssign for Interest
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreimpl Copy for Interest
impl StructuralPartialEq for Interest
Auto Trait Implementations§
impl Freeze for Interest
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnwindSafe for Interest
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