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]
pub fn relative_to(&self, xy: Point) -> Release[src]
Returns a copy of the Release relative to the given xy
pub fn mouse(self) -> Option<MouseRelease>[src]
If the Release event represents the releasing of a mouse button, return Some.
pub fn key(self) -> Option<KeyRelease>[src]
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[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for Release[src]
fn eq(&self, __arg_0: &Release) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Release) -> bool[src]
This method tests for !=.
impl Debug for Release[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more