
##shape
const no_fill=-1
const solid_fill=0
const repeating_bitmap_fill=0x40
const clipped_bitmap_fill=0x41
#const nonsmoothed_repeating_bitmap=0x42
#const nonsmoothed_clipped_bitmap=0x43
#
const StateMoveTo=1
const StateFillStyle0=2*StateMoveTo
const StateFillStyle1=2*StateFillStyle0
const StateLineStyle=2*StateFillStyle1
#const StateNewStyles=2*StateLineStyle

const ButtonStateUp=1
const ButtonStateOver=2*ButtonStateUp
const ButtonStateDown=2*ButtonStateOver
const ButtonStateHitTest=2*ButtonStateDown
##ButtonData

##text flags
const HasText=0x80
#const WordWrap=0x40
#const Multiline=0x20
#const Password=0x10
const ReadOnly=0x8
const HasTextColor=0x4
const HasMaxLength=0x2
const HasFont=0x1
const HasFontClass=0x8000
#const AutoSize=0x4000
const HasLayout=0x2000
const NoSelect=0x1000
#const Border=0x800
#const WasStatic=0x400
#const HTML=0x200
#const UseOutlines=0x100
#
#const layout_align_left=0
#const layout_align_right=1
const layout_align_center=2
#const layout_align_justify=3

##EditText

const FontFlagsHasLayout=0x80
#const FontFlagsShiftJIS=0x40
#const FontFlagsSmallText=0x20
#const FontFlagsANSI=0x10
#const FontFlagsWideOffsets=8
#const FontFlagsWideCodes=4
#const FontFlagsItalic=2
#const FontFlagsBold=1
