class HarfBuzz::DrawStateT

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.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(data : LibHarfBuzz::DrawStateT, transfer : GICrystal::Transfer) #

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

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def current_x : Float32 #

def current_x=(value : Float32) #

def current_y : Float32 #

def current_y=(value : Float32) #

def path_open : Int32 #

def path_open=(value : Int32) #

def path_start_x : Float32 #

def path_start_x=(value : Float32) #

def path_start_y : Float32 #

def path_start_y=(value : Float32) #

def reserved1 : HarfBuzz::VarNumT #

def reserved1=(value : HarfBuzz::VarNumT) #

def reserved2 : HarfBuzz::VarNumT #

def reserved2=(value : HarfBuzz::VarNumT) #

def reserved3 : HarfBuzz::VarNumT #

def reserved3=(value : HarfBuzz::VarNumT) #

def reserved4 : HarfBuzz::VarNumT #

def reserved4=(value : HarfBuzz::VarNumT) #

def reserved5 : HarfBuzz::VarNumT #

def reserved5=(value : HarfBuzz::VarNumT) #

def reserved6 : HarfBuzz::VarNumT #

def reserved6=(value : HarfBuzz::VarNumT) #

def slant_xy : Float32 #

def slant_xy=(value : Float32) #

def to_unsafe #