Gsk.InsetShadowNode

g Gsk.InsetShadowNode Gsk.InsetShadowNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.InsetShadowNode

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.InsetShadowNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node for an inset shadow.

classmethod new(outline, color, dx, dy, spread, blur_radius)
Parameters:
  • outline (Gsk.RoundedRect) – outline of the region containing the 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.InsetShadowNode

Creates a GskRenderNode that will render an inset shadow into the box given by outline.

get_blur_radius()
Returns:

the blur radius, in pixels

Return type:

float

Retrieves the blur radius to apply to the shadow.

get_color()
Returns:

the color of the shadow

Return type:

Gdk.RGBA

Retrieves the color of the inset shadow.

get_dx()
Returns:

an offset, in pixels

Return type:

float

Retrieves the horizontal offset of the inset shadow.

get_dy()
Returns:

an offset, in pixels

Return type:

float

Retrieves the vertical offset of the inset shadow.

get_outline()
Returns:

a rounded rectangle

Return type:

Gsk.RoundedRect

Retrieves the outline rectangle of the inset shadow.

get_spread()
Returns:

the size of the shadow, in pixels

Return type:

float

Retrieves how much the shadow spreads inwards.