[−][src]Enum azul_core::dom::On
When to call a callback action - On::MouseOver
, On::MouseOut
, etc.
Variants
Mouse cursor is hovering over the element
Mouse cursor has is over element and is pressed
(not good for "click" events - use MouseUp
instead)
(Specialization of MouseDown
). Fires only if the left mouse button
has been pressed while cursor was over the element
(Specialization of MouseDown
). Fires only if the middle mouse button
has been pressed while cursor was over the element
(Specialization of MouseDown
). Fires only if the right mouse button
has been pressed while cursor was over the element
Mouse button has been released while cursor was over the element
(Specialization of MouseUp
). Fires only if the left mouse button has
been released while cursor was over the element
(Specialization of MouseUp
). Fires only if the middle mouse button has
been released while cursor was over the element
(Specialization of MouseUp
). Fires only if the right mouse button has
been released while cursor was over the element
Mouse cursor has entered the element
Mouse cursor has left the element
Mousewheel / touchpad scrolling
The window received a unicode character (also respects the system locale).
Check keyboard_state.current_char
to get the current pressed character.
A virtual keycode was pressed. Note: This is only the virtual keycode,
not the actual char. If you want to get the character, use TextInput
instead.
A virtual key does not have to map to a printable character.
You can get all currently pressed virtual keycodes in the keyboard_state.current_virtual_keycodes
and / or just the last keycode in the keyboard_state.latest_virtual_keycode
.
A virtual keycode was release. See VirtualKeyDown
for more info.
A file has been dropped on the element
A file is being hovered on the element
A file was hovered, but has exited the window
Equivalent to onfocus
Equivalent to onblur
Trait Implementations
impl Clone for On
[src]
impl Copy for On
[src]
impl Debug for On
[src]
impl Eq for On
[src]
impl From<On> for EventFilter
[src]
fn from(input: On) -> EventFilter
[src]
impl Hash for On
[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 Ord for On
[src]
fn cmp(&self, other: &On) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<On> for On
[src]
impl PartialOrd<On> for On
[src]
fn partial_cmp(&self, other: &On) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for On
[src]
impl StructuralPartialEq for On
[src]
Auto Trait Implementations
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>,