Struct conrod::event::Scroll [−][src]
pub struct Scroll { pub x: f64, pub y: f64, pub modifiers: ModifierKey, }
Holds all the relevant information about a scroll event
Fields
x: f64
The amount of scroll along the x axis.
y: f64
The amount of scroll along the y axis.
modifiers: ModifierKey
Which modifier keys, if any, that were being held down while the scroll occured
Trait Implementations
impl Copy for Scroll
[src]
impl Copy for Scroll
impl Clone for Scroll
[src]
impl Clone for Scroll
fn clone(&self) -> Scroll
[src]
fn clone(&self) -> Scroll
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 PartialEq for Scroll
[src]
impl PartialEq for Scroll
fn eq(&self, other: &Scroll) -> bool
[src]
fn eq(&self, other: &Scroll) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Scroll) -> bool
[src]
fn ne(&self, other: &Scroll) -> bool
This method tests for !=
.
impl Debug for Scroll
[src]
impl Debug for Scroll
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 From<Scroll> for Widget
[src]
impl From<Scroll> for Widget