Class: Gsk::OutsetShadowNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node for an outset shadow.

Instance Method Summary collapse

Methods inherited from RenderNode

deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file

Constructor Details

#initialize(outline, color, dx, dy, spread, blur_radius) ⇒ Gsk::OutsetShadowNode

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

Parameters:

  • outline (Gsk::RoundedRect)

    outline of the region surrounded by shadow

  • color (Gdk::RGBA)

    color of the shadow

  • dx (Gsk::gfloat)

    horizontal offset of shadow

  • dy (Gsk::gfloat)

    vertical offset of shadow

  • spread (Gsk::gfloat)

    how far the shadow spreads towards the inside

  • blur_radius (Gsk::gfloat)

    how much blur to apply to the shadow

Instance Method Details

#blur_radiusGsk::gfloat

Retrieves the blur radius of the shadow.

Returns:

  • (Gsk::gfloat)

    the blur radius, in pixels

#colorGdk::RGBA

Retrieves the color of the outset shadow.

Returns:

  • (Gdk::RGBA)

    a color

#dxGsk::gfloat

Retrieves the horizontal offset of the outset shadow.

Returns:

  • (Gsk::gfloat)

    an offset, in pixels

#dyGsk::gfloat

Retrieves the vertical offset of the outset shadow.

Returns:

  • (Gsk::gfloat)

    an offset, in pixels

#outlineGsk::RoundedRect

Retrieves the outline rectangle of the outset shadow.

Returns:

#spreadGsk::gfloat

Retrieves how much the shadow spreads outwards.

Returns:

  • (Gsk::gfloat)

    the size of the shadow, in pixels