Shadow

Namespace: PP;

Inheritance hierarchy

Object

Shadow

Description

The Shadow class implements base class of the shadow.

Syntax

PP.initClass(PP.Shadow, PP.Object, "PP.Shadow");

Constructor

  Constructor name Brief description
Shadow The Shadow constructor creates an instance of the Shadow class.

Properties

  Property name Brief description
Angle The Angle property determines shadow angle.
BlurSize The BlurSize property determines shadow blur size.
Color The Color property determines shadow color.
Distance The Distance property determines shadow offset relative to object.
EnableBlur The EnableBlur property determines whether blur is used.
Enabled The Enabled property determines whether shadow is active.
EnableOpacity The EnableOpacity property determines whether transparency is used.
Opacity The Opacity property determines whether shadow is transparent.
Size The Size property determines shadow size.
X The X property determines horizontal offset of shadow.
Y The Y property determines vertical offset of shadow.

Methods

  Method name Brief description
toCSSFormat The toCSSFormat method returns container shadow settings in CSS format.
toCSSTextShadowFormat The toCSSTextShadowFormat method returns text shadow settings in CSS format.
toSVGFormat The toSVGFormat method applies shadow to SVG element.

Properties inherited from the Object class

  Property name Brief description
Data The Data property associates a random object with this component.
Id The Id property sets component identifier.
Settings The Settings property sets component parameters.

Methods inherited from the Object class

  Method name Brief description
clone The clone method creates a copy of object. It is not implemented in PP.Ui.Control.
dispose The dispose method deletes the component.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.

See also:

PP