OutsetShadowNode

A render node for an outset shadow.

Constructors

this
this(gsk.rounded_rect.RoundedRect outline, gdk.rgba.RGBA color, float dx, float dy, float spread, float blurRadius)

Creates a gsk.render_node.RenderNode that will render an outset shadow around the box given by outline.

Members

Functions

getBlurRadius
float getBlurRadius()

Retrieves the blur radius of the shadow.

getColor
gdk.rgba.RGBA getColor()

Retrieves the color of the outset shadow.

getDx
float getDx()

Retrieves the horizontal offset of the outset shadow.

getDy
float getDy()

Retrieves the vertical offset of the outset shadow.

getOutline
gsk.rounded_rect.RoundedRect getOutline()

Retrieves the outline rectangle of the outset shadow.

getSpread
float getSpread()

Retrieves how much the shadow spreads outwards.

Inherited Members

From RenderNode

deserialize
gsk.render_node.RenderNode deserialize(glib.bytes.Bytes bytes, gsk.types.ParseErrorFunc errorFunc)

Loads data previously created via gsk.render_node.RenderNode.serialize.

draw
void draw(cairo.context.Context cr)

Draw the contents of node to the given cairo context.

getBounds
void getBounds(graphene.rect.Rect bounds)

Retrieves the boundaries of the node.

getNodeType
gsk.types.RenderNodeType getNodeType()

Returns the type of the node.

serialize
glib.bytes.Bytes serialize()

Serializes the node for later deserialization via gsk.render_node.RenderNode.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.RenderNode.serialize and gsk.render_node.RenderNode.deserialize will correctly reject files it cannot open that were created with previous versions of GTK.

writeToFile
bool writeToFile(string filename)

This function is equivalent to calling gsk.render_node.RenderNode.serialize followed by funcGLib.file_set_contents.