new Container()
sdk/core/engine/display/container.js, line 30
Creates a Container
Extends
Methods
-
addChild(child)
sdk/core/engine/display/container.js, line 71 -
Adds the given DisplayObject to the list of children
Name Type Description child
PhotoEditorSDK.Engine.DisplayObject -
addFilter(filter)
sdk/core/engine/display/container.js, line 41 -
Adds the given filter to the filter stack
Name Type Description filter
PhotoEditorSDK.Engine.Filter -
clearChildren()
sdk/core/engine/display/container.js, line 124 -
Removes all children
-
dispose()
sdk/core/engine/display/container.js, line 251 -
Disposes this Container
-
getBounds(){PhotoEditorSDK.Math.Rectangle}
sdk/core/engine/display/container.js, line 228 -
Returns the bounds for this DisplayObject
Returns:
Type Description PhotoEditorSDK.Math.Rectangle -
getChildren(){Array.<PhotoEditorSDK.Engine.DisplayObject>}
sdk/core/engine/display/container.js, line 240 -
Returns this Container's children
Returns:
Type Description Array.<PhotoEditorSDK.Engine.DisplayObject> -
getFilters(){Array.<PhotoEditorSDK.Engine.Filter>}
sdk/core/engine/display/container.js, line 246 -
Returns this Container's filters
Returns:
Type Description Array.<PhotoEditorSDK.Engine.Filter> -
getLocalBounds(){PhotoEditorSDK.Math.Rectangle}
sdk/core/engine/display/container.js, line 216 -
Returns the non-global bounds of this DisplayObject
Returns:
Type Description PhotoEditorSDK.Math.Rectangle -
hasChild(child){Boolean}
sdk/core/engine/display/container.js, line 102 -
Checks whether this container has the given child
Name Type Description child
PhotoEditorSDK.Engine.DisplayObject Returns:
Type Description Boolean -
prependChild(child)
sdk/core/engine/display/container.js, line 86 -
Prepends the given DisplayObject to the list of children
Name Type Description child
PhotoEditorSDK.Engine.DisplayObject -
removeChild(child)
sdk/core/engine/display/container.js, line 111 -
Removes the given object from the list of children
Name Type Description child
PhotoEditorSDK.Engine.DisplayObject -
removeFilter(filter){Boolean}
sdk/core/engine/display/container.js, line 50 -
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/core/engine/display/container.js, line 63 -
Sets the filters
Name Type Description filters
Array.<PhotoEditorSDK.Engine.Filter> -
updateTransform()
sdk/core/engine/display/container.js, line 205 -
Updates the world transform for this DisplayObject