Enum slint::platform::PointerEventButton
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ยง
ยงimpl Clone for PointerEventButton
impl Clone for PointerEventButton
ยง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 moreยงimpl Debug for PointerEventButton
impl Debug for PointerEventButton
ยงimpl Default for PointerEventButton
impl Default for PointerEventButton
ยงfn default() -> PointerEventButton
fn default() -> PointerEventButton
Returns the โdefault valueโ for a type. Read more
ยงimpl Display for PointerEventButton
impl Display for PointerEventButton
ยงimpl FromStr for PointerEventButton
impl FromStr for PointerEventButton
ยงimpl Hash for PointerEventButton
impl Hash for PointerEventButton
ยงimpl PartialEq<PointerEventButton> for PointerEventButton
impl PartialEq<PointerEventButton> for PointerEventButton
ยงfn eq(&self, other: &PointerEventButton) -> bool
fn eq(&self, other: &PointerEventButton) -> bool
ยง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> Instrument for T
impl<T> Instrument for T
sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
ยงimpl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
ยงfn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
ยงimpl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
ยงfn null_value() -> T
fn null_value() -> T
The none-equivalent value.
ยงimpl<T> Pointable for T
impl<T> Pointable for T
sourceยงimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
sourceยงfn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.