SizeResolver
Extends:
Used by the view to keep track of sizes. Emits events to communicate with the view to do certain actions
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
|
|
public |
|
|
public |
getResolvedSize(renderableOrName: Renderable/Name): * Gets the size used when displaying a renderable on the screen the last time the calculation was done. |
|
public |
getSurfaceTrueSizedInfo(surface: *): * |
|
public |
|
|
public |
|
|
public |
|
|
public |
settleDecoratedSize(): * Determines the decorated size. |
Public Constructors
public constructor source
Public Methods
public doTrueSizedBookkeeping() source
public getResolvedSize(renderableOrName: Renderable/Name): * source
Gets the size used when displaying a renderable on the screen the last time the calculation was done.
Params:
Name | Type | Attribute | Description |
renderableOrName | Renderable/Name | The renderable or the name of the renderable of which you need the size |
Return:
* |
public getSurfaceTrueSizedInfo(surface: *): * source
Params:
Name | Type | Attribute | Description |
surface | * |
Return:
* |
public requestLayoutControllerReflow() source
public requestRecursiveReflow() source
public requestReflow() source
public settleDecoratedSize(): * source
Determines the decorated size. If there is true sizing involved, then it will not return the resolved true size. Instead, this can be accessed through getResolvedSize()
Params:
Name | Type | Attribute | Description |
renderable. | Renderable | The renderable for which we need the size |
|
renderableCounterpart. | Renderable | The renderable counter-part (e.g. AnimationController, RenderNode, or ContainerSurface). |
|
context. | Object | The context, with a specified size. The size can be set to NaN in order to return NaN |
|
specifiedSize. | Array | The size to use which is specified as a decorator |
Return:
* |