You.i Engine
YiAnchor.h File Reference
#include "utility/YiString.h"

Go to the source code of this file.

Classes

struct  YI_ANCHOR_PROPERTY
 

Enumerations

enum  EYIAnchorType {
  EYIAnchorType::Scale = 0,
  EYIAnchorType::ScaleWidthTop,
  EYIAnchorType::ScaleWidthCenter,
  EYIAnchorType::ScaleWidthBottom,
  EYIAnchorType::ScaleHeightLeft,
  EYIAnchorType::ScaleHeightCenter,
  EYIAnchorType::ScaleHeightRight,
  EYIAnchorType::ScaleProportionalTopLeft,
  EYIAnchorType::ScaleProportionalTop,
  EYIAnchorType::ScaleProportionalTopRight,
  EYIAnchorType::ScaleProportionalLeft,
  EYIAnchorType::ScaleProportionalCenter,
  EYIAnchorType::ScaleProportionalRight,
  EYIAnchorType::ScaleProportionalBottomLeft,
  EYIAnchorType::ScaleProportionalBottom,
  EYIAnchorType::ScaleProportionalBottomRight,
  EYIAnchorType::ScaleWidthProportionalTopLeft,
  EYIAnchorType::ScaleWidthProportionalTop,
  EYIAnchorType::ScaleWidthProportionalTopRight,
  EYIAnchorType::ScaleWidthProportionalLeft,
  EYIAnchorType::ScaleWidthProportionalCenter,
  EYIAnchorType::ScaleWidthProportionalRight,
  EYIAnchorType::ScaleWidthProportionalBottomLeft,
  EYIAnchorType::ScaleWidthProportionalBottom,
  EYIAnchorType::ScaleWidthProportionalBottomRight,
  EYIAnchorType::ScaleHeightProportionalTopLeft,
  EYIAnchorType::ScaleHeightProportionalTop,
  EYIAnchorType::ScaleHeightProportionalTopRight,
  EYIAnchorType::ScaleHeightProportionalLeft,
  EYIAnchorType::ScaleHeightProportionalCenter,
  EYIAnchorType::ScaleHeightProportionalRight,
  EYIAnchorType::ScaleHeightProportionalBottomLeft,
  EYIAnchorType::ScaleHeightProportionalBottom,
  EYIAnchorType::ScaleHeightProportionalBottomRight,
  EYIAnchorType::NoScaleTopLeft,
  EYIAnchorType::NoScaleTop,
  EYIAnchorType::NoScaleTopRight,
  EYIAnchorType::NoScaleLeft,
  EYIAnchorType::NoScaleCenter,
  EYIAnchorType::NoScaleRight,
  EYIAnchorType::NoScaleBottomLeft,
  EYIAnchorType::NoScaleBottom,
  EYIAnchorType::NoScaleBottomRight,
  EYIAnchorType::StaticMargin,
  EYIAnchorType::Sizing,
  EYIAnchorType::AnchorTypesCount
}
 
enum  EYIAnchorPosition {
  EYIAnchorPosition::TopLeft = 0,
  EYIAnchorPosition::Top,
  EYIAnchorPosition::TopRight,
  EYIAnchorPosition::Left,
  EYIAnchorPosition::Center,
  EYIAnchorPosition::Right,
  EYIAnchorPosition::BottomLeft,
  EYIAnchorPosition::Bottom,
  EYIAnchorPosition::BottomRight,
  EYIAnchorPosition::AnchorPositionsCount
}
 
enum  EYIAnchorGroup {
  EYIAnchorGroup::Scale = 0,
  EYIAnchorGroup::ScaleWidth,
  EYIAnchorGroup::ScaleHeight,
  EYIAnchorGroup::ScaleProportional,
  EYIAnchorGroup::ScaleWidthProportional,
  EYIAnchorGroup::ScaleHeightProportional,
  EYIAnchorGroup::NoScale,
  EYIAnchorGroup::StaticMargin,
  EYIAnchorGroup::Sizing
}
 

Variables

const YI_ANCHOR_PROPERTY YiAnchorProperty [(size_t) EYIAnchorType::AnchorTypesCount]
 

Enumeration Type Documentation

◆ EYIAnchorGroup

enum EYIAnchorGroup
strong
Enumerator
Scale 
ScaleWidth 
ScaleHeight 
ScaleProportional 
ScaleWidthProportional 
ScaleHeightProportional 
NoScale 
StaticMargin 
Sizing 

◆ EYIAnchorPosition

enum EYIAnchorPosition
strong
Enumerator
TopLeft 
Top 
TopRight 
Left 
Center 
Right 
BottomLeft 
Bottom 
BottomRight 
AnchorPositionsCount 

◆ EYIAnchorType

enum EYIAnchorType
strong
Enumerator
Scale 

An anchor where the children are stretched on both X and Y when the parent is scaled.

ScaleWidthTop 

An anchor where the children are stretched only on X when the parent is scaled.

ScaleWidthCenter 

An anchor where the children are stretched only on X when the parent is scaled.

ScaleWidthBottom 

An anchor where the children are stretched only on X when the parent is scaled.

ScaleHeightLeft 

An anchor where the children are stretched only on Y when the parent is scaled.

ScaleHeightCenter 

An anchor where the children are stretched only on Y when the parent is scaled.

ScaleHeightRight 

An anchor where the children are stretched only on Y when the parent is scaled.

ScaleProportionalTopLeft 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleProportionalTop 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleProportionalTopRight 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleProportionalLeft 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleProportionalCenter 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleProportionalRight 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleProportionalBottomLeft 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleProportionalBottom 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleProportionalBottomRight 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleWidthProportionalTopLeft 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleWidthProportionalTop 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleWidthProportionalTopRight 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleWidthProportionalLeft 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleWidthProportionalCenter 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleWidthProportionalRight 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleWidthProportionalBottomLeft 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleWidthProportionalBottom 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleWidthProportionalBottomRight 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleHeightProportionalTopLeft 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleHeightProportionalTop 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleHeightProportionalTopRight 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleHeightProportionalLeft 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleHeightProportionalCenter 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleHeightProportionalRight 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleHeightProportionalBottomLeft 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleHeightProportionalBottom 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

ScaleHeightProportionalBottomRight 

An anchor where the children are scaled when the parent is scaled while retaining their original aspect ratio.

NoScaleTopLeft 

An anchor where the children remain untouched when the parent is scaled.

NoScaleTop 

An anchor where the children remain untouched when the parent is scaled.

NoScaleTopRight 

An anchor where the children remain untouched when the parent is scaled.

NoScaleLeft 

An anchor where the children remain untouched when the parent is scaled.

NoScaleCenter 

An anchor where the children remain untouched when the parent is scaled.

NoScaleRight 

An anchor where the children remain untouched when the parent is scaled.

NoScaleBottomLeft 

An anchor where the children remain untouched when the parent is scaled.

NoScaleBottom 

An anchor where the children remain untouched when the parent is scaled.

NoScaleBottomRight 

An anchor where the children remain untouched when the parent is scaled.

StaticMargin 

An anchor where a single child is stretched where the margin between itself and its parent remains constant (in world unit).

Sizing 

An anchor where the children are resized when the parent is scaled (rather than being scaled themselves)

AnchorTypesCount 

Variable Documentation

◆ YiAnchorProperty