1.20 <GskInsetShadowNode>

Class: <GskInsetShadowNode>

It derives from <GskRenderNode>.

A render node for an inset shadow.

Procedures

Method: inset-shadow-node:get-blur-radius self ⇒ %return
Method: get-blur-radius self ⇒ %return

Retrieves the blur radius to apply to the shadow.

self

Passed: a <GskInsetShadowNode>.

a <GskRenderNode> for an inset shadow

%return

Returned: a real number.

the blur radius, in pixels

Method: inset-shadow-node:get-color self ⇒ %return
Method: get-color self ⇒ %return

Retrieves the color of the inset shadow.

The value returned by this function will not be correct if the render node was created for a non-sRGB color.

self

Passed: a <GskInsetShadowNode>.

a <GskRenderNode> for an inset shadow

%return

Returned: a <GdkRGBA>.

the color of the shadow

Method: inset-shadow-node:get-dx self ⇒ %return
Method: get-dx self ⇒ %return

Retrieves the horizontal offset of the inset shadow.

self

Passed: a <GskInsetShadowNode>.

a <GskRenderNode> for an inset shadow

%return

Returned: a real number.

an offset, in pixels

Method: inset-shadow-node:get-dy self ⇒ %return
Method: get-dy self ⇒ %return

Retrieves the vertical offset of the inset shadow.

self

Passed: a <GskInsetShadowNode>.

a <GskRenderNode> for an inset shadow

%return

Returned: a real number.

an offset, in pixels

Method: inset-shadow-node:get-outline self ⇒ %return
Method: get-outline self ⇒ %return

Retrieves the outline rectangle of the inset shadow.

self

Passed: a <GskInsetShadowNode>.

a <GskRenderNode> for an inset shadow

%return

Returned: a <GskRoundedRect>.

a rounded rectangle

Method: inset-shadow-node:get-spread self ⇒ %return
Method: get-spread self ⇒ %return

Retrieves how much the shadow spreads inwards.

self

Passed: a <GskInsetShadowNode>.

a <GskRenderNode> for an inset shadow

%return

Returned: a real number.

the size of the shadow, in pixels

Procedure: inset-shadow-node:new outline color dx dy spread blur-radius ⇒ %return

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

outline

Passed: a <GskRoundedRect>.

outline of the region containing the shadow

color

Passed: a <GdkRGBA>.

color of the shadow

dx

Passed: a real number.

horizontal offset of shadow

dy

Passed: a real number.

vertical offset of shadow

spread

Passed: a real number.

how far the shadow spreads towards the inside

blur-radius

Passed: a real number.

how much blur to apply to the shadow

%return

Returned: a <GskInsetShadowNode>.

A new <GskRenderNode>