Struct nannou::ui::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]
impl Release
pub fn relative_to(&self, xy: [f64; 2]) -> Release
[src]
pub fn relative_to(&self, xy: [f64; 2]) -> Release
Returns a copy of the Release relative to the given xy
pub fn mouse(self) -> Option<MouseRelease>
[src]
pub fn mouse(self) -> Option<MouseRelease>
If the Release
event represents the releasing of a mouse button, return Some
.
pub fn key(self) -> Option<KeyRelease>
[src]
pub fn key(self) -> Option<KeyRelease>
If the Release
event represents the release of keyboard button, return Some
.
Trait Implementations
impl Clone for Release
[src]
impl Clone for Release
fn clone(&self) -> Release
[src]
fn clone(&self) -> Release
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 Debug for Release
[src]
impl Debug for Release
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Release> for Widget
[src]
impl From<Release> for Widget
impl Copy for Release
[src]
impl Copy for Release
impl PartialEq<Release> for Release
[src]
impl PartialEq<Release> for Release