pub struct Transform {
pub off_x: Option<Emu>,
pub off_y: Option<Emu>,
pub ext_cx: Option<Emu>,
pub ext_cy: Option<Emu>,
pub rot: Option<i32>,
pub flip_h: bool,
pub flip_v: bool,
}Expand description
仿射变换。
Fields§
§off_x: Option<Emu>§off_y: Option<Emu>§ext_cx: Option<Emu>§ext_cy: Option<Emu>§rot: Option<i32>顺时针旋转(60000 分之一度)。
flip_h: bool水平翻转。
flip_v: bool垂直翻转。
Implementations§
Trait Implementations§
impl Copy for Transform
impl Eq for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin for Transform
impl UnwindSafe for Transform
Blanket Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.