CUGL 2.3
Cornell University Game Library
No Matches
Public Attributes | List of all members
cugl::scene2::AnchoredLayout::Entry Class Reference

#include <CUAnchoredLayout.h>

Public Attributes

float x_offset
float y_offset
Anchor anchor
bool absolute

Detailed Description

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.

Member Data Documentation

◆ absolute

bool cugl::scene2::AnchoredLayout::Entry::absolute

Whether to use an absolute offset instead of a relative (percentage) one

◆ anchor

Anchor cugl::scene2::AnchoredLayout::Entry::anchor

The associated anchor point

◆ x_offset

float cugl::scene2::AnchoredLayout::Entry::x_offset

The x offset from the anchor in absolute or relative units

◆ y_offset

float cugl::scene2::AnchoredLayout::Entry::y_offset

The y offset from the anchor in absolute or relative units

The documentation for this class was generated from the following file: