ColorStop

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.

Constructors

this
this(float offset, harfbuzz.types.Bool isForeground, harfbuzz.types.Color color)

Create a color_stop.ColorStop boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
self
ColorStop self()

Returns this, for use in with statements.

Properties

color
harfbuzz.types.Color color [@property getter]

Get field color.

color
harfbuzz.types.Color color [@property setter]

Set field color.

gType
GType gType [@property getter]
isForeground
harfbuzz.types.Bool isForeground [@property getter]

Get field isForeground.

isForeground
harfbuzz.types.Bool isForeground [@property setter]

Set field isForeground.

offset
float offset [@property getter]

Get field offset.

offset
float offset [@property setter]

Set field offset.

Static functions

getGType
GType getGType()

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.