Class: LayoutChildComponent

pc.LayoutChildComponent

A LayoutChildComponent enables the Entity to control the sizing applied to it by its parent pc.LayoutGroupComponent.

Constructor

new LayoutChildComponent(system, entity)

Create a new LayoutChildComponent
Parameters:
Name Type Description
system pc.LayoutChildComponentSystem The ComponentSystem that created this Component
entity pc.Entity The Entity that this Component is attached to.
Properties:
Name Type Description
minWidth Number The minimum width the element should be rendered at.
minHeight Number The minimum height the element should be rendered at.
maxWidth Number The maximum width the element should be rendered at.
maxHeight Number The maximum height the element should be rendered at.
fitWidthProportion Number The amount of additional horizontal space that the element should take up, if necessary to satisfy a Stretch/Shrink fitting calculation. This is specified as a proportion, taking into account the proportion values of other siblings.
fitHeightProportion Number The amount of additional vertical space that the element should take up, if necessary to satisfy a Stretch/Shrink fitting calculation. This is specified as a proportion, taking into account the proportion values of other siblings.
excludeFromLayout Number If set to true, the child will be excluded from all layout calculations.
Source:

Extends