Enum i_slint_core::items::PointerEventButton
source · #[repr(C)]
pub enum PointerEventButton {
None,
Left,
Right,
Middle,
}Expand description
This enum describes the different types of buttons for a pointer event, typically on a mouse or a pencil.
Variants§
None
A button that is none of left, right or middle. For example this is used for a fourth button on a mouse with many buttons.
Left
The left button.
Right
The right button.
Middle
The center button.
Trait Implementations§
source§impl Clone for PointerEventButton
impl Clone for PointerEventButton
source§fn clone(&self) -> PointerEventButton
fn clone(&self) -> PointerEventButton
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 PointerEventButton
impl Debug for PointerEventButton
source§impl Default for PointerEventButton
impl Default for PointerEventButton
source§impl Display for PointerEventButton
impl Display for PointerEventButton
source§impl FromStr for PointerEventButton
impl FromStr for PointerEventButton
source§impl Hash for PointerEventButton
impl Hash for PointerEventButton
source§impl PartialEq<PointerEventButton> for PointerEventButton
impl PartialEq<PointerEventButton> for PointerEventButton
source§fn eq(&self, other: &PointerEventButton) -> bool
fn eq(&self, other: &PointerEventButton) -> bool
source§impl TryFrom<&str> for PointerEventButton
impl TryFrom<&str> for PointerEventButton
impl Copy for PointerEventButton
impl Eq for PointerEventButton
impl StructuralEq for PointerEventButton
impl StructuralPartialEq for PointerEventButton
Auto Trait Implementations§
impl RefUnwindSafe for PointerEventButton
impl Send for PointerEventButton
impl Sync for PointerEventButton
impl Unpin for PointerEventButton
impl UnwindSafe for PointerEventButton
Blanket Implementations§
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.