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
sub_image.gif Shadow The Shadow constructor creates an instance of the Shadow class.

Properties

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

Methods

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

Properties inherited from the Object class

  Property name Brief description

Id

The Id property determines a repository object identifier.

Methods inherited from the Object class

  Method name Brief description
clone The clone method creates an object copy.
dispose The dispose method deletes the component.
getHashCode The getHashCode method returns hash code of repository object.
getSettings The getSettings method returns repository object settings.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.
isEqual The isEqual method determines whether the specified object is equal to the current repository object.
isLive The isLive method determines validity of repository object.
removeAllEvents The removeAllEvents method removes all object event handlers by the specified context.
setSettings The setSettings method determines repository object settings.
defineProps The defineProps method creates get and set methods from name array for the specified class.
keys The keys method returns array of methods and properties names for the specified object.

See also:

PP