new DrawRegion()
Region which tracks the box that is visible, even when nested in other elements. It sets up the webGl viewport and scissor regions appropriately.
- Source:
Extends
Methods
_rebuildLists()
Rebuild lists for this drawable and notify any parent drawable to do so as well. This ensures each drawable contains an updated, flat list of all the drawables beneath them. This way we save performance by not recursing through each child during draw time, and instead, drawing from the flat list at the level we care about.
- Inherited From:
- Source:
add(children)
Add a child drawable to this instance
Parameters:
Name | Type | Description |
---|---|---|
children |
Array.<Drawable> | Drawable | child drawables to add |
- Inherited From:
- Source:
computeClipping()
Compute viewport and scissor regions, taking into account borders and scrollbars
- Source:
draw()
This method should be called by all subclasses, as it sets the gl viewport and scissor.
- Source:
remove(children)
Remove a child drawable from this instance
Parameters:
Name | Type | Description |
---|---|---|
children |
Array.<Drawable> | Drawable | child drawables to remove |
- Inherited From:
- Source:
Type Definitions
Options
Extends Element.Options
- Source: