Struct style_traits::PinchZoomFactor
[−]
[src]
pub struct PinchZoomFactor(_);
Represents a mobile style pinch zoom factor. TODO(gw): Once WR supports pinch zoom, use a type directly from webrender_api.
Methods
impl PinchZoomFactor
[src]
pub fn new(scale: f32) -> PinchZoomFactor
[src]
Construct a new pinch zoom factor.
pub fn get(&self) -> f32
[src]
Get the pinch zoom factor as an untyped float.
Trait Implementations
impl Clone for PinchZoomFactor
[src]
fn clone(&self) -> PinchZoomFactor
[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 Copy for PinchZoomFactor
[src]
impl Debug for PinchZoomFactor
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for PinchZoomFactor
[src]
fn eq(&self, __arg_0: &PinchZoomFactor) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PinchZoomFactor) -> bool
[src]
This method tests for !=
.
impl MallocSizeOf for PinchZoomFactor
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more