#[repr(transparent)]pub struct Transform { /* private fields */ }Implementations
sourceimpl Transform
impl Transform
pub fn new() -> Transform
pub fn category(&self) -> TransformCategory
pub fn invert(&self) -> Option<Transform>
pub fn matrix(&self, matrix: &Matrix) -> Transform
pub fn perspective(&self, depth: f32) -> Transform
pub fn rotate(&self, angle: f32) -> Option<Transform>
pub fn rotate_3d(&self, angle: f32, axis: &Vec3) -> Option<Transform>
pub fn scale(&self, factor_x: f32, factor_y: f32) -> Option<Transform>
pub fn scale_3d(
&self,
factor_x: f32,
factor_y: f32,
factor_z: f32
) -> Option<Transform>
pub fn to_2d(&self) -> (f32, f32, f32, f32, f32, f32)
pub fn to_affine(&self) -> (f32, f32, f32, f32)
pub fn to_matrix(&self) -> Matrix
pub fn to_str(&self) -> GString
pub fn to_translate(&self) -> (f32, f32)
pub fn transform(&self, other: Option<&Transform>) -> Option<Transform>
pub fn transform_bounds(&self, rect: &Rect) -> Rect
pub fn transform_point(&self, point: &Point) -> Point
pub fn translate(&self, point: &Point) -> Option<Transform>
pub fn translate_3d(&self, point: &Point3D) -> Option<Transform>
Trait Implementations
sourceimpl Ord for Transform
impl Ord for Transform
sourceimpl PartialOrd<Transform> for Transform
impl PartialOrd<Transform> for Transform
sourcefn partial_cmp(&self, other: &Transform) -> Option<Ordering>
fn partial_cmp(&self, other: &Transform) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl StaticType for Transform
impl StaticType for Transform
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self.
impl Eq for Transform
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl !Send for Transform
impl !Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more