new XUIForm()
Methods
-
GetBgColor() → {String}
-
获取背景颜色
Returns:
String - 背景颜色 -
GetBgImage() → {String}
-
获取背景图片
Returns:
String - 背景图片路径 -
GetBorderColor() → {String}
-
获取边框颜色
Returns:
String - 边框颜色 -
GetBorderRadius() → {Number}
-
获取边框圆角
Returns:
Number - 边框圆角 -
GetBorderType() → {String}
-
获取边框类型
Returns:
String - 边框类型 -
GetBorderWidth() → {Number}
-
获取边框线宽
Returns:
Number - 边框线宽 -
IgnoreEvents(bIgnore)
-
穿透鼠标事件
Parameters:
Name Type Description bIgnore
Boolean 穿透鼠标事件 Properties:
Name Type Description IgnoreEvents
Boolean false -
IsDrawColor() → {Boolean}
-
获取是否使用颜色绘制
Returns:
Boolean - 是否使用颜色绘制 -
IsShowBorder() → {Boolean}
-
获取是否显示边框
Returns:
Boolean - 是否显示边框 -
SetBgColor(strColor)
-
设置背景颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description BgColor
Color "0xffffffff" -
SetBgImage(strImage)
-
设置背景图片
Parameters:
Name Type Description strImage
ImageProp Properties:
Name Type Description BgImagePath
ImageProp "XUIForm/images/red.png" -
SetBorderColor(strColor)
-
设置边框颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description BorderColor
Color "0xffff0000" -
SetBorderRadius(nRadius)
-
设置边框圆角
Parameters:
Name Type Description nRadius
Number Properties:
Name Type Description BorderRadius
Number 0 -
SetBorderType(strType)
-
设置边框类型
Parameters:
Name Type Description strType
String Properties:
Name Type Description BorderType
Combo ["solid","dashed","dotted"] -
SetBorderWidth(nWidth)
-
设置边框线宽
Parameters:
Name Type Description nWidth
Number Properties:
Name Type Description BorderWidth
Number 1 -
SetCursor(cursor)
-
鼠标样式
Parameters:
Name Type Description cursor
String 穿透鼠标事件 Properties:
Name Type Description Cursor
Combo ["defult","pointer"] -
SetDrawColor(bDrawColor)
-
是否用颜色绘制
Parameters:
Name Type Description bDrawColor
Boolean 是否使用颜色绘制 Properties:
Name Type Description DrawColor
Boolean true -
SetShowBorder(bShowBorder)
-
是否显示边框
Parameters:
Name Type Description bShowBorder
Boolean 是否显示边框 Properties:
Name Type Description ShowBorder
Boolean false