struct HarfBuzz::ColorStopT

Overview

Information about a color stop on a color line.

Color lines typically have offsets ranging between 0 and 1, but that is not required.

Note: despite color being unpremultiplied here, interpolation in gradients shall happen in premultiplied space. See the OpenType spec COLR section for details.

Defined in:

lib/gi-crystal/src/auto/harf_buzz-0.0/color_stop_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::ColorStopT, _transfer : GICrystal::Transfer) #

def self.new(offset : Float32 | Nil = nil, is_foreground : Int32 | Nil = nil, color : UInt32 | 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 #

def color(*args, **options) #

def color(*args, **options, &) #

def color=(arg) #

def is_foreground(*args, **options) #

def is_foreground(*args, **options, &) #

def is_foreground=(arg) #

def offset(*args, **options) #

def offset(*args, **options, &) #

def offset=(arg) #