class HarfBuzz::DrawStateT
- HarfBuzz::DrawStateT
- Reference
- Object
Overview
Current drawing state.
The slant_xy is a slanting factor for synthetic oblique. If the font's oblique angle is not 0, this factor is used to slant the drawing. For fonts with uniform x and y scales, this factor is calculated as tan(oblique_angle). For fonts with non-uniform scales, this factor is calculated as tan(oblique_angle) * x_scale / y_scale, or 0 if y_scale is 0.
Defined in:
lib/gi-crystal/src/auto/harf_buzz-0.0/draw_state_t.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibHarfBuzz::DrawStateT, transfer : GICrystal::Transfer)
- .new(path_open : Int32 | Nil = nil, path_start_x : Float32 | Nil = nil, path_start_y : Float32 | Nil = nil, current_x : Float32 | Nil = nil, current_y : Float32 | Nil = nil, slant_xy : Float32 | Nil = nil, reserved1 : HarfBuzz::VarNumT | Nil = nil, reserved2 : HarfBuzz::VarNumT | Nil = nil, reserved3 : HarfBuzz::VarNumT | Nil = nil, reserved4 : HarfBuzz::VarNumT | Nil = nil, reserved5 : HarfBuzz::VarNumT | Nil = nil, reserved6 : HarfBuzz::VarNumT | Nil = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#==(other : self) : Bool
Returns
true
if this reference is the same as other. - #current_x : Float32
- #current_x=(value : Float32)
- #current_y : Float32
- #current_y=(value : Float32)
- #path_open : Int32
- #path_open=(value : Int32)
- #path_start_x : Float32
- #path_start_x=(value : Float32)
- #path_start_y : Float32
- #path_start_y=(value : Float32)
- #reserved1 : HarfBuzz::VarNumT
- #reserved1=(value : HarfBuzz::VarNumT)
- #reserved2 : HarfBuzz::VarNumT
- #reserved2=(value : HarfBuzz::VarNumT)
- #reserved3 : HarfBuzz::VarNumT
- #reserved3=(value : HarfBuzz::VarNumT)
- #reserved4 : HarfBuzz::VarNumT
- #reserved4=(value : HarfBuzz::VarNumT)
- #reserved5 : HarfBuzz::VarNumT
- #reserved5=(value : HarfBuzz::VarNumT)
- #reserved6 : HarfBuzz::VarNumT
- #reserved6=(value : HarfBuzz::VarNumT)
- #slant_xy : Float32
- #slant_xy=(value : Float32)
- #to_unsafe
Constructor Detail
def self.new(path_open : Int32 | Nil = nil, path_start_x : Float32 | Nil = nil, path_start_y : Float32 | Nil = nil, current_x : Float32 | Nil = nil, current_y : Float32 | Nil = nil, slant_xy : Float32 | Nil = nil, reserved1 : HarfBuzz::VarNumT | Nil = nil, reserved2 : HarfBuzz::VarNumT | Nil = nil, reserved3 : HarfBuzz::VarNumT | Nil = nil, reserved4 : HarfBuzz::VarNumT | Nil = nil, reserved5 : HarfBuzz::VarNumT | Nil = nil, reserved6 : HarfBuzz::VarNumT | Nil = nil)
#
Class Method Detail
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.