class Gsk::Transform
- Gsk::Transform
- Reference
- Object
Overview
Gsk::Transform
is an object to describe transform matrices.
Unlike graphene_::matrix_t
, Gsk::Transform
retains the steps in how
a transform was constructed, and allows inspecting them. It is modeled
after the way CSS describes transforms.
Gsk::Transform
objects are immutable and cannot be changed after creation.
This means code can safely expose them as properties of objects without
having to worry about others changing them.
Defined in:
lib/gi-crystal/src/auto/gsk-4.0/transform.crConstructors
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
- .parse(string : String, out_transform : Gsk::Transform) : Bool
Instance Method Summary
- #category : Gsk::TransformCategory
- #equal(second : Gsk::Transform | Nil) : Bool
- #finalize
- #invert : Gsk::Transform | Nil
- #matrix(matrix : Graphene::Matrix) : Gsk::Transform
- #perspective(depth : Float32) : Gsk::Transform
- #print(string : GLib::String) : Nil
- #ref : Gsk::Transform | Nil
- #rotate(angle : Float32) : Gsk::Transform | Nil
- #rotate_3d(angle : Float32, axis : Graphene::Vec3) : Gsk::Transform | Nil
- #scale(factor_x : Float32, factor_y : Float32) : Gsk::Transform | Nil
- #scale_3d(factor_x : Float32, factor_y : Float32, factor_z : Float32) : Gsk::Transform | Nil
- #skew(skew_x : Float32, skew_y : Float32) : Gsk::Transform | Nil
- #to_2d(out_xx : Float32, out_yx : Float32, out_xy : Float32, out_yy : Float32, out_dx : Float32, out_dy : Float32) : Nil
- #to_2d_components(out_skew_x : Float32, out_skew_y : Float32, out_scale_x : Float32, out_scale_y : Float32, out_angle : Float32, out_dx : Float32, out_dy : Float32) : Nil
- #to_affine(out_scale_x : Float32, out_scale_y : Float32, out_dx : Float32, out_dy : Float32) : Nil
- #to_matrix : Graphene::Matrix
- #to_string : String
- #to_translate(out_dx : Float32, out_dy : Float32) : Nil
- #to_unsafe : Pointer(Void)
- #transform(other : Gsk::Transform | Nil) : Gsk::Transform | Nil
- #transform_bounds(rect : Graphene::Rect) : Graphene::Rect
- #transform_point(point : Graphene::Point) : Graphene::Point
- #translate(point : Graphene::Point) : Gsk::Transform | Nil
- #translate_3d(point : Graphene::Point3D) : Gsk::Transform | Nil
- #unref : Nil
Constructor Detail
Class Method Detail
Returns the type id (GType) registered in GLib type system.
Instance Method Detail
def to_2d(out_xx : Float32, out_yx : Float32, out_xy : Float32, out_yy : Float32, out_dx : Float32, out_dy : Float32) : Nil
#
def to_2d_components(out_skew_x : Float32, out_skew_y : Float32, out_scale_x : Float32, out_scale_y : Float32, out_angle : Float32, out_dx : Float32, out_dy : Float32) : Nil
#