Gsk.OutsetShadowNode

g Gsk.OutsetShadowNode Gsk.OutsetShadowNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.OutsetShadowNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (outline, color, dx, dy, spread, blur_radius)

get_blur_radius ()

get_color ()

get_dx ()

get_dy ()

get_outline ()

get_spread ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.OutsetShadowNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node for an outset shadow.

classmethod new(outline, color, dx, dy, spread, blur_radius)
Parameters:
  • outline (Gsk.RoundedRect) – outline of the region surrounded by shadow

  • color (Gdk.RGBA) – color of the shadow

  • dx (float) – horizontal offset of shadow

  • dy (float) – vertical offset of shadow

  • spread (float) – how far the shadow spreads towards the inside

  • blur_radius (float) – how much blur to apply to the shadow

Returns:

A new GskRenderNode

Return type:

Gsk.OutsetShadowNode

Creates a GskRenderNode that will render an outset shadow around the box given by outline.

get_blur_radius()
Returns:

the blur radius, in pixels

Return type:

float

Retrieves the blur radius of the shadow.

get_color()
Returns:

a color

Return type:

Gdk.RGBA

Retrieves the color of the outset shadow.

get_dx()
Returns:

an offset, in pixels

Return type:

float

Retrieves the horizontal offset of the outset shadow.

get_dy()
Returns:

an offset, in pixels

Return type:

float

Retrieves the vertical offset of the outset shadow.

get_outline()
Returns:

a rounded rectangle

Return type:

Gsk.RoundedRect

Retrieves the outline rectangle of the outset shadow.

get_spread()
Returns:

the size of the shadow, in pixels

Return type:

float

Retrieves how much the shadow spreads outwards.