A class used to hold a 3D 'cube offset'.
The vStart vector defines an offset from the origin of an object, and the vEnd vector defines an offset at the 'tip' of an object. The values in vStart are equivalent to the left, top and front values respectively. The values in vEnd are equivalent to the right, bottom and back values respectively. CubeOffset objects can be used to represent a margin, padding or border size.
#include <layout/YiLayoutConfig.h>
Public Member Functions | |
| CubeOffset () | |
| CubeOffset (float fOffset) | |
| CubeOffset (const glm::vec3 &vOffset) | |
| glm::vec3 | GetTotal () const |
| float | GetTotalX () const |
| float | GetTotalY () const |
| float | GetTotalZ () const |
| float | GetLeft () const |
| float | GetRight () const |
| float | GetTop () const |
| float | GetBottom () const |
| float | GetFront () const |
| float | GetBack () const |
Static Public Member Functions | |
| static CubeOffset | CreateFromPropertiesOf (const IYIPropertiesSource *pSource, const CYIString &keyPrefix, const CubeOffset &defaultValue=zeroInstance) |
Public Attributes | |
| glm::vec3 | vStart |
| glm::vec3 | vEnd |
Static Public Attributes | |
| static const CubeOffset | zeroInstance |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| glm::vec3 CYILayoutConfig::CubeOffset::vEnd |
| glm::vec3 CYILayoutConfig::CubeOffset::vStart |
|
static |