Class createjs.DisplayObject.RenderState
Extends
.
Defined in: display_object.js.
Constructor Attributes | Constructor Name and Description |
---|---|
An inner class that represents properties used for rendering a DisplayObject
object.
|
Method Attributes | Method Name and Description |
---|---|
appendClip(state, clip)
Attaches the specified clipping object to this state.
|
|
appendProperties(state, alpha, shadow, composition, visible)
Appends the specified visual properties to this state.
|
|
contain(point)
Returns whether this state contains the specified point.
|
|
copyProperties(state)
Copies the specified rendering property to this property.
|
|
getAlpha()
Retrieves the alpha transparency.
|
|
getBox()
Retrieves the bounding box.
|
|
getClip()
Retrieves the clipping information.
|
|
Retrieves the shadow.
|
|
inflateBox(state)
Inflates the bounding box of this rendering state by the one of the specified
state.
|
|
isEmpty()
Returns whether this state represents an empty state, i.e.
|
|
Returns whether this state represents a visible state.
|
|
resetBox()
Resets the bounding box.
|
|
updateBox(box)
Transforms a bounding box in the local coordinate system of the owner object
to a box in the global coordinate system, which is used by the
createjs.Renderer interface.
|
Class Detail
createjs.DisplayObject.RenderState()
An inner class that represents properties used for rendering a DisplayObject
object. This class consists of an affine transform, display properties, and a
bounding box.
Method Detail
appendClip(state, clip)
Attaches the specified clipping object to this state.
- Parameters:
- {createjs.DisplayObject.RenderState} state
- {createjs.Renderer.Clip} clip
appendProperties(state, alpha, shadow, composition, visible)
Appends the specified visual properties to this state.
- Parameters:
- {createjs.DisplayObject.RenderState} state
- {number} alpha
- {createjs.Shadow} shadow
- {number} composition
- {boolean} visible
{boolean}
contain(point)
Returns whether this state contains the specified point.
- Parameters:
- {createjs.Point} point
- Returns:
- {boolean}
copyProperties(state)
Copies the specified rendering property to this property.
- Parameters:
- {createjs.DisplayObject.RenderState} state
{number}
getAlpha()
Retrieves the alpha transparency.
- Returns:
- {number}
{createjs.BoundingBox}
getBox()
Retrieves the bounding box.
- Returns:
- {createjs.BoundingBox}
{createjs.Renderer.Clip}
getClip()
Retrieves the clipping information.
- Returns:
- {createjs.Renderer.Clip}
{createjs.Shadow}
getShadow()
Retrieves the shadow.
- Returns:
- {createjs.Shadow}
inflateBox(state)
Inflates the bounding box of this rendering state by the one of the specified
state.
- Parameters:
- {createjs.DisplayObject.RenderState} state
{boolean}
isEmpty()
Returns whether this state represents an empty state, i.e. the hosting
display object is not
createjs.Renderer objects cannot render the hosting display object.
- Returns:
- {boolean}
{boolean}
isVisible()
Returns whether this state represents a visible state.
- Returns:
- {boolean}
resetBox()
Resets the bounding box.
updateBox(box)
Transforms a bounding box in the local coordinate system of the owner object
to a box in the global coordinate system, which is used by the
createjs.Renderer interface.
- Parameters:
- {createjs.BoundingBox} box