You.i Engine
YiAnchor.h File Reference

Go to the source code of this file.

Classes

struct  YI_ANCHOR_PROPERTY
 

Enumerations

enum  YI_ANCHOR_TYPE {
  YI_ANCHOR_TYPE_SCALE = 0,
  YI_ANCHOR_TYPE_SCALE_WIDTH_TOP,
  YI_ANCHOR_TYPE_SCALE_WIDTH_CENTER,
  YI_ANCHOR_TYPE_SCALE_WIDTH_BOTTOM,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_LEFT,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_CENTER,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_RIGHT,
  YI_ANCHOR_TYPE_SCALE_PROP_TOP_LEFT,
  YI_ANCHOR_TYPE_SCALE_PROP_TOP,
  YI_ANCHOR_TYPE_SCALE_PROP_TOP_RIGHT,
  YI_ANCHOR_TYPE_SCALE_PROP_LEFT,
  YI_ANCHOR_TYPE_SCALE_PROP_CENTER,
  YI_ANCHOR_TYPE_SCALE_PROP_RIGHT,
  YI_ANCHOR_TYPE_SCALE_PROP_BOTTOM_LEFT,
  YI_ANCHOR_TYPE_SCALE_PROP_BOTTOM,
  YI_ANCHOR_TYPE_SCALE_PROP_BOTTOM_RIGHT,
  YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_TOP_LEFT,
  YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_TOP,
  YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_TOP_RIGHT,
  YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_LEFT,
  YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_CENTER,
  YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_RIGHT,
  YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_BOTTOM_LEFT,
  YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_BOTTOM,
  YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_BOTTOM_RIGHT,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_TOP_LEFT,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_TOP,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_TOP_RIGHT,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_LEFT,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_CENTER,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_RIGHT,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_BOTTOM_LEFT,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_BOTTOM,
  YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_BOTTOM_RIGHT,
  YI_ANCHOR_TYPE_NO_SCALE_TOP_LEFT,
  YI_ANCHOR_TYPE_NO_SCALE_TOP,
  YI_ANCHOR_TYPE_NO_SCALE_TOP_RIGHT,
  YI_ANCHOR_TYPE_NO_SCALE_LEFT,
  YI_ANCHOR_TYPE_NO_SCALE_CENTER,
  YI_ANCHOR_TYPE_NO_SCALE_RIGHT,
  YI_ANCHOR_TYPE_NO_SCALE_BOTTOM_LEFT,
  YI_ANCHOR_TYPE_NO_SCALE_BOTTOM,
  YI_ANCHOR_TYPE_NO_SCALE_BOTTOM_RIGHT,
  YI_ANCHOR_TYPE_STATIC_MARGIN,
  YI_ANCHOR_TYPE_SIZING,
  YI_ANCHOR_TYPE_MAX
}
 
enum  YI_ANCHOR_POSITION {
  YI_ANCHOR_POSITION_TOP_LEFT = 0,
  YI_ANCHOR_POSITION_TOP,
  YI_ANCHOR_POSITION_TOP_RIGHT,
  YI_ANCHOR_POSITION_LEFT,
  YI_ANCHOR_POSITION_CENTER,
  YI_ANCHOR_POSITION_RIGHT,
  YI_ANCHOR_POSITION_BOTTOM_LEFT,
  YI_ANCHOR_POSITION_BOTTOM,
  YI_ANCHOR_POSITION_BOTTOM_RIGHT,
  YI_ANCHOR_POSITION_MAX
}
 
enum  YI_ANCHOR_GROUP {
  YI_ANCHOR_GROUP_SCALE = 0,
  YI_ANCHOR_GROUP_SCALE_WIDTH,
  YI_ANCHOR_GROUP_SCALE_HEIGHT,
  YI_ANCHOR_GROUP_SCALE_PROP,
  YI_ANCHOR_GROUP_SCALE_WIDTH_PROP,
  YI_ANCHOR_GROUP_SCALE_HEIGHT_PROP,
  YI_ANCHOR_GROUP_NO_SCALE,
  YI_ANCHOR_GROUP_STATIC_MARGIN,
  YI_ANCHOR_GROUP_SIZING,
  YI_ANCHOR_GROUP_MAX
}
 

Variables

const YI_ANCHOR_PROPERTY YiAnchorProperty [YI_ANCHOR_TYPE_MAX]
 

Enumeration Type Documentation

Enumerator
YI_ANCHOR_GROUP_SCALE 
YI_ANCHOR_GROUP_SCALE_WIDTH 
YI_ANCHOR_GROUP_SCALE_HEIGHT 
YI_ANCHOR_GROUP_SCALE_PROP 
YI_ANCHOR_GROUP_SCALE_WIDTH_PROP 
YI_ANCHOR_GROUP_SCALE_HEIGHT_PROP 
YI_ANCHOR_GROUP_NO_SCALE 
YI_ANCHOR_GROUP_STATIC_MARGIN 
YI_ANCHOR_GROUP_SIZING 
YI_ANCHOR_GROUP_MAX 
Enumerator
YI_ANCHOR_POSITION_TOP_LEFT 
YI_ANCHOR_POSITION_TOP 
YI_ANCHOR_POSITION_TOP_RIGHT 
YI_ANCHOR_POSITION_LEFT 
YI_ANCHOR_POSITION_CENTER 
YI_ANCHOR_POSITION_RIGHT 
YI_ANCHOR_POSITION_BOTTOM_LEFT 
YI_ANCHOR_POSITION_BOTTOM 
YI_ANCHOR_POSITION_BOTTOM_RIGHT 
YI_ANCHOR_POSITION_MAX 
Enumerator
YI_ANCHOR_TYPE_SCALE 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_TOP 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_CENTER 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_BOTTOM 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_LEFT 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_CENTER 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_RIGHT 

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

YI_ANCHOR_TYPE_SCALE_PROP_TOP_LEFT 

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

YI_ANCHOR_TYPE_SCALE_PROP_TOP 

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

YI_ANCHOR_TYPE_SCALE_PROP_TOP_RIGHT 

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

YI_ANCHOR_TYPE_SCALE_PROP_LEFT 

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

YI_ANCHOR_TYPE_SCALE_PROP_CENTER 

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

YI_ANCHOR_TYPE_SCALE_PROP_RIGHT 

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

YI_ANCHOR_TYPE_SCALE_PROP_BOTTOM_LEFT 

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

YI_ANCHOR_TYPE_SCALE_PROP_BOTTOM 

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

YI_ANCHOR_TYPE_SCALE_PROP_BOTTOM_RIGHT 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_TOP_LEFT 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_TOP 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_TOP_RIGHT 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_LEFT 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_CENTER 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_RIGHT 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_BOTTOM_LEFT 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_BOTTOM 

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

YI_ANCHOR_TYPE_SCALE_WIDTH_PROP_BOTTOM_RIGHT 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_TOP_LEFT 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_TOP 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_TOP_RIGHT 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_LEFT 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_CENTER 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_RIGHT 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_BOTTOM_LEFT 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_BOTTOM 

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

YI_ANCHOR_TYPE_SCALE_HEIGHT_PROP_BOTTOM_RIGHT 

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

YI_ANCHOR_TYPE_NO_SCALE_TOP_LEFT 

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

YI_ANCHOR_TYPE_NO_SCALE_TOP 

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

YI_ANCHOR_TYPE_NO_SCALE_TOP_RIGHT 

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

YI_ANCHOR_TYPE_NO_SCALE_LEFT 

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

YI_ANCHOR_TYPE_NO_SCALE_CENTER 

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

YI_ANCHOR_TYPE_NO_SCALE_RIGHT 

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

YI_ANCHOR_TYPE_NO_SCALE_BOTTOM_LEFT 

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

YI_ANCHOR_TYPE_NO_SCALE_BOTTOM 

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

YI_ANCHOR_TYPE_NO_SCALE_BOTTOM_RIGHT 

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

YI_ANCHOR_TYPE_STATIC_MARGIN 

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

YI_ANCHOR_TYPE_SIZING 

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

YI_ANCHOR_TYPE_MAX 

Variable Documentation

const YI_ANCHOR_PROPERTY YiAnchorProperty[YI_ANCHOR_TYPE_MAX]