Class: ComponentButton

Ycc.UI. ComponentButton

new Ycc.UI.ComponentButton(option)

按钮组件 组件自身也是一个UI,所以option包含ui.base的所有属性
Name Type Description
option Object
Name Type Description
rect Ycc.Math.Rect 相对于父级按钮的位置,继承于base
rectBgColor String 按钮区域的背景色,继承于base
rectBorderWidth Number 按钮区域的边框宽度,继承于base
rectBorderColor String 按钮区域的边框颜色,继承于base
backgroundImageRes String 按钮区域的图片资源
text String 按钮内的文字
textColor String 按钮内的文字的颜色

Members

backgroundImageResnull

背景图资源

rectBorderColorstring

容纳区边框颜色

rectBorderWidthnumber

容纳区的边框宽度

textstring

按钮内的文字

textColorstring

按钮文字颜色