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?) : Bool
- #finalize
- #invert : Gsk::Transform?
- #matrix(matrix : Graphene::Matrix) : Gsk::Transform
- #perspective(depth : Float32) : Gsk::Transform
- #print(string : GLib::String) : Nil
- #ref : Gsk::Transform?
- #rotate(angle : Float32) : Gsk::Transform?
- #rotate_3d(angle : Float32, axis : Graphene::Vec3) : Gsk::Transform?
- #scale(factor_x : Float32, factor_y : Float32) : Gsk::Transform?
- #scale_3d(factor_x : Float32, factor_y : Float32, factor_z : Float32) : Gsk::Transform?
- #skew(skew_x : Float32, skew_y : Float32) : Gsk::Transform?
- #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?) : Gsk::Transform?
- #transform_bounds(rect : Graphene::Rect) : Graphene::Rect
- #transform_point(point : Graphene::Point) : Graphene::Point
- #translate(point : Graphene::Point) : Gsk::Transform?
- #translate_3d(point : Graphene::Point3D) : Gsk::Transform?
- #unref : Nil
Constructor Detail
Class Method Detail
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
#