Class (GI Struct)

St-18StShadow

A type representing -st-shadow attributes

St.Shadow is a boxed type for storing attributes of the -st-shadow property, modelled liberally after the CSS3 box-shadow property. See http://www.css3.info/preview/box-shadow/

Index

Constructors

  • Parameters

    • Optionalproperties: Partial<
          {
              blur: number;
              color: Cogl.Color;
              inset: boolean;
              spread: number;
              xoffset: number;
              yoffset: number;
          },
      >

    Returns St.Shadow

Properties

blur: number
color: Cogl.Color
inset: boolean
spread: number
xoffset: number
yoffset: number
$gtype: GType<St.Shadow>

Methods

  • Check if two shadow objects are identical. Note that two shadows may compare non-identically if they differ only by floating point rounding errors.

    Parameters

    Returns boolean

    true if the two shadows are identical

  • Gets the box used to paint shadow, which will be partly outside of actor_box

    Parameters

    • actor_box: ActorBox

      the box allocated to a ClutterAlctor

    • shadow_box: ActorBox

      computed box occupied by shadow

    Returns void

  • Atomically decrements the reference count of shadow by one. If the reference count drops to 0, all memory allocated by the St.Shadow is released.

    Returns void

  • Parameters

    • color: Cogl.Color
    • xoffset: number
    • yoffset: number
    • blur: number
    • spread: number
    • inset: boolean

    Returns St.Shadow