CScaleLayout Class

class CScaleLayout: public CLayoutNode

Implementation of the Scale layout algorithm.
The Scale layout maintains all children with a constant aspect ratio to the parent scale node. In other words, the child node's top, left, right, and bottom coordinates are stored as percentages of the parent node's size and are resolved to actual pixel values with each recalculation. This guarantees a constant aspect ratio regardless of the size of the parent node.

Defined in: ScaleLayout.h

Supported Interfaces

ILayoutNode

Basic layout node interface.