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.

The position releative to the top-left of the component.

Wether this is a button press or release event.

Trait Implementations

impl Clone for ClickEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ClickEvent
[src]

impl Debug for ClickEvent
[src]

Formats the value using the given formatter. Read more

impl Eq for ClickEvent
[src]

impl Hash for ClickEvent
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for ClickEvent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for ClickEvent

impl Sync for ClickEvent