Struct leechbar::ClickEvent [−][src]
pub struct ClickEvent { pub button: MouseButton, pub position: Geometry, pub released: bool, }
Mouse click on the component.
This event indicates that the user has clicked inside the component.
Fields
The mouse button which has been used to click on the component.
position: Geometry
The position releative to the top-left of the component.
released: bool
Wether this is a button press or release event.
Trait Implementations
impl Clone for ClickEvent
[src]
impl Clone for ClickEvent
fn clone(&self) -> ClickEvent
[src]
fn clone(&self) -> ClickEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for ClickEvent
[src]
impl Copy for ClickEvent
impl Debug for ClickEvent
[src]
impl Debug for ClickEvent
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ClickEvent
[src]
impl Eq for ClickEvent
impl Hash for ClickEvent
[src]
impl Hash for ClickEvent
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ClickEvent
[src]
impl PartialEq for ClickEvent
fn eq(&self, other: &ClickEvent) -> bool
[src]
fn eq(&self, other: &ClickEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ClickEvent) -> bool
[src]
fn ne(&self, other: &ClickEvent) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ClickEvent
impl Send for ClickEvent
impl Sync for ClickEvent
impl Sync for ClickEvent