pub struct DataLayout { /* private fields */ }Expand description
The parameters of a TransformOperation.
The skew, scale, translation and rotation views share the same storage:
the first component holds x (or the rotation angle) and the second y.
Implementations§
Source§impl DataLayout
impl DataLayout
pub fn skew(&self) -> SkewLayout
pub fn set_skew(&mut self, x: f64, y: f64)
pub fn scale(&self) -> ScaleLayout
pub fn set_scale(&mut self, x: f64, y: f64)
pub fn translate(&self) -> TranslateLayout
pub fn set_translate(&mut self, x: f64, y: f64)
pub fn rotate(&self) -> RotateLayout
pub fn set_rotate(&mut self, angle: f64)
Trait Implementations§
Source§impl Clone for DataLayout
impl Clone for DataLayout
impl Copy for DataLayout
Source§impl Debug for DataLayout
impl Debug for DataLayout
Source§impl Default for DataLayout
impl Default for DataLayout
Source§impl PartialEq for DataLayout
impl PartialEq for DataLayout
impl StructuralPartialEq for DataLayout
Auto Trait Implementations§
impl Freeze for DataLayout
impl RefUnwindSafe for DataLayout
impl Send for DataLayout
impl Sync for DataLayout
impl Unpin for DataLayout
impl UnsafeUnpin for DataLayout
impl UnwindSafe for DataLayout
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more