Packagekor.elements
Classpublic class Box

Label 또는 Image 등과 같은 객체를 담을 수 있는 엘레멘트입니다.
CanvasElement 에 담긴 객체들은 해당 객체의 x,y 좌표대로 출력이 되는 반면 Box 엘레멘트는 x,y 좌표를 무시하고 정의한 노드 순서대로 출력이됩니다.



Styles
 StyleDescriptionDefined by
  
backgroundAlpha
Type: Number

배경색 투명도를 지정합니다. 유효값은 0~1 입니다.

Box
  
backgroundColor
Type: uint   Format: Color

배경색을 RGB 로 지정합니다.

Box
  
borderColor
Type: uint   Format: Color

테두리 선 색상을 지정합니다.

Box
  
borderStyle
Type: String

테두리 선 스타일을 지정합니다. 유효값은 none, solid, inset, outset 입니다.

The default value is none..
Box
  
direction
Type: String   Format: vertical,horizontal

Box객체 안에 자식들의 구도를 설정합니다.

Box
  
horizontalAlign
Type: String   Format: left,center,right

수평 정렬을 어떻게 할 것인지 설정합니다.

Box
  
horizontalGap
Type: Number   Format: Length

수평 정렬시 Box안의 자식들 사이의 공간을 결정합니다.

Box
  
paddingBottom
Type: Number   Format: Length

하단 여백을 픽셀단위로 지정합니다.

Box
  
paddingLeft
Type: Number   Format: Length

왼쪽 여백을 픽셀단위로 지정합니다.

Box
  
paddingRight
Type: Number   Format: Length

오른쪽 여백을 픽셀단위로 지정합니다.

Box
  
paddingTop
Type: Number   Format: Length

상단 여백을 픽셀단위로 지정합니다.

Box
  
verticalAlign
Type: String   Format: top,middle,bottom

수직 정렬을 어떻게 할 것인지 설정합니다.

Box
  
verticalGap
Type: Number   Format: Length

수직 정렬시 Box안의 자식들 사이의 공간을 결정합니다.

Box