struct HarfBuzz::ColorStopT
- HarfBuzz::ColorStopT
- Struct
- Value
- Object
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.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibHarfBuzz::ColorStopT, _transfer : GICrystal::Transfer)
- .new(offset : Float32 | Nil = nil, is_foreground : Int32 | Nil = nil, color : UInt32 | Nil = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #==(other : self) : Bool
- #color(*args, **options)
- #color(*args, **options, &)
- #color=(arg)
- #is_foreground(*args, **options)
- #is_foreground(*args, **options, &)
- #is_foreground=(arg)
- #offset(*args, **options)
- #offset(*args, **options, &)
- #offset=(arg)
Constructor Detail
def self.new(offset : Float32 | Nil = nil, is_foreground : Int32 | Nil = nil, color : UInt32 | Nil = nil)
#