Class: Container

PhotoEditorSDK.Engine. Container

A container for DisplayObject instances

new PhotoEditorSDK.Engine.Container()

sdk/engine/display/container.js, line 24

Creates a Container

Extends

Methods

addChild(child)

sdk/engine/display/container.js, line 70

Adds the given DisplayObject to the list of children

Name Type Description
child PhotoEditorSDK.Engine.DisplayObject

addFilter(filter)

sdk/engine/display/container.js, line 40

Adds the given filter to the filter stack

Name Type Description
filter PhotoEditorSDK.Engine.Filter

clearChildren()

sdk/engine/display/container.js, line 123

Removes all children

dispose()

sdk/engine/display/container.js, line 250

Disposes this Container

getBounds(){PhotoEditorSDK.Math.Rectangle}

sdk/engine/display/container.js, line 227

Returns the bounds for this DisplayObject

Returns:
Type Description
PhotoEditorSDK.Math.Rectangle

getChildren(){Array.<PhotoEditorSDK.Engine.DisplayObject>}

sdk/engine/display/container.js, line 239

Returns this Container's children

Returns:
Type Description
Array.<PhotoEditorSDK.Engine.DisplayObject>

getFilters(){Array.<PhotoEditorSDK.Engine.Filter>}

sdk/engine/display/container.js, line 245

Returns this Container's filters

Returns:
Type Description
Array.<PhotoEditorSDK.Engine.Filter>

getLocalBounds(){PhotoEditorSDK.Math.Rectangle}

sdk/engine/display/container.js, line 215

Returns the non-global bounds of this DisplayObject

Returns:
Type Description
PhotoEditorSDK.Math.Rectangle

hasChild(child){Boolean}

sdk/engine/display/container.js, line 101

Checks whether this container has the given child

Name Type Description
child PhotoEditorSDK.Engine.DisplayObject
Returns:
Type Description
Boolean

prependChild(child)

sdk/engine/display/container.js, line 85

Prepends the given DisplayObject to the list of children

Name Type Description
child PhotoEditorSDK.Engine.DisplayObject

removeChild(child)

sdk/engine/display/container.js, line 110

Removes the given object from the list of children

Name Type Description
child PhotoEditorSDK.Engine.DisplayObject

removeFilter(filter){Boolean}

sdk/engine/display/container.js, line 49

Removes the given filter from the filter stack

Name Type Description
filter PhotoEditorSDK.Engine.Filter
Returns:
Type Description
Boolean
  • Whether the filter has been removed

setFilters(filters)

sdk/engine/display/container.js, line 62

Sets the filters

Name Type Description
filters Array.<PhotoEditorSDK.Engine.Filter>

updateTransform()

sdk/engine/display/container.js, line 204

Updates the world transform for this DisplayObject