Struct conrod::event::Release
[−]
[src]
pub struct Release { pub button: Button, pub modifiers: ModifierKey, }
Contains all relevant information for a Release event.
Fields
The Button
that was released.
modifiers: ModifierKey
The modifier keys that were down at the time.
Methods
impl Release
[src]
fn relative_to(&self, xy: Point) -> Release
Returns a copy of the Release relative to the given xy
fn mouse(self) -> Option<MouseRelease>
If the Release
event represents the releasing of a mouse button, return Some
.
fn key(self) -> Option<KeyRelease>
If the Release
event represents the release of keyboard button, return Some
.
Trait Implementations
impl Copy for Release
[src]
impl Clone for Release
[src]
fn clone(&self) -> Release
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Release
[src]
fn eq(&self, __arg_0: &Release) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Release) -> bool
This method tests for !=
.