CUGL 2.3
Cornell University Game Library
|
#include <CUAnchoredLayout.h>
Public Attributes | |
float | x_offset |
float | y_offset |
Anchor | anchor |
bool | absolute |
This inner class stores the layout information as a struct.
Offsets may either be absolute or relative. A relative offset is expressed as a percentage of width or height. An absolute offset is expressed in terms of Node coordinates.
bool cugl::scene2::AnchoredLayout::Entry::absolute |
Whether to use an absolute offset instead of a relative (percentage) one
Anchor cugl::scene2::AnchoredLayout::Entry::anchor |
The associated anchor point
float cugl::scene2::AnchoredLayout::Entry::x_offset |
The x offset from the anchor in absolute or relative units
float cugl::scene2::AnchoredLayout::Entry::y_offset |
The y offset from the anchor in absolute or relative units