Class (GI Struct)

St-51StShadow

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
  • Parameters

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

    Returns St.Shadow

blur: number
color: Cogl.Color
inset: boolean
spread: number
xoffset: number
yoffset: number
$gtype: GType<St.Shadow>
  • 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

  • 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