RadialGradientNode

A render node for a radial gradient.

Constructors

this
this(GskRadialGradientNode* gskRadialGradientNode, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Rect bounds, Point center, float hradius, float vradius, float start, float end, GskColorStop[] colorStops)

Creates a GskRenderNode that draws a radial gradient.

Members

Functions

getCenter
Point getCenter()

Retrieves the center pointer for the gradient.

getColorStops
GskColorStop[] getColorStops()

Retrieves the color stops in the gradient.

getEnd
float getEnd()

Retrieves the end value for the gradient.

getHradius
float getHradius()

Retrieves the horizonal radius for the gradient.

getNColorStops
size_t getNColorStops()

Retrieves the number of color stops in the gradient.

getRadialGradientNodeStruct
GskRadialGradientNode* getRadialGradientNodeStruct(bool transferOwnership)

Get the main Gtk struct

getStart
float getStart()

Retrieves the start value for the gradient.

getStruct
void* getStruct()

the main Gtk struct as a void*

getVradius
float getVradius()

Retrieves the vertical radius for the gradient.

Static functions

getType
GType getType()

Variables

gskRadialGradientNode
GskRadialGradientNode* gskRadialGradientNode;

the main Gtk struct

Inherited Members

From RenderNode

gskRenderNode
GskRenderNode* gskRenderNode;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.
getRenderNodeStruct
GskRenderNode* getRenderNodeStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

~this
~this()
Undocumented in source.
getType
GType getType()
deserialize
RenderNode deserialize(Bytes bytes, GskParseErrorFunc errorFunc, void* userData)

Loads data previously created via gsk_render_node_serialize().

draw
void draw(Context cr)

Draw the contents of @node to the given cairo context.

getBounds
void getBounds(Rect bounds)

Retrieves the boundaries of the @node.

getNodeType
GskRenderNodeType getNodeType()

Returns the type of the @node.

doref
alias doref = ref_
Undocumented in source.
ref_
RenderNode ref_()

Acquires a reference on the given GskRenderNode.

serialize
Bytes serialize()

Serializes the @node for later deserialization via gsk_render_node_deserialize(). No guarantees are made about the format used other than that the same version of GTK will be able to deserialize the result of a call to gsk_render_node_serialize() and gsk_render_node_deserialize() will correctly reject files it cannot open that were created with previous versions of GTK.

unref
void unref()

Releases a reference on the given GskRenderNode.

writeToFile
bool writeToFile(string filename)

This function is equivalent to calling gsk_render_node_serialize() followed by g_file_set_contents().

Meta