new XUILED()
Methods
-
GetBgColor() → {String}
-
获取背景颜色
Returns:
String - 背景颜色 -
GetBgImage() → {String}
-
获取背景图片
Returns:
String - 背景图片 -
GetFontFamily() → {String}
-
获取字体
Returns:
String - 字体 -
GetText() → {String}
-
获取文本
Returns:
String - 文本内容 -
GetTextColor() → {String}
-
获取文本颜色
Returns:
String - 文本颜色 -
GetTextSize() → {Number}
-
获取文本大小
Returns:
Number - 文本大小 -
IsDrawColor() → {Boolean}
-
是否使用颜色绘制
Returns:
Boolean - 是否使用颜色绘制 -
SetBgColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String 背景颜色 Properties:
Name Type Description BgColor
Color "0xff888888" -
SetBgImage(strImage)
-
背景图片
Parameters:
Name Type Description strImage
ImageProp Properties:
Name Type Description BgImage
ImageProp "" -
SetDrawColor(bDrawColor)
-
使用颜色绘制
Parameters:
Name Type Description bDrawColor
Boolean 使用颜色绘制 Properties:
Name Type Description DrawColor
Boolean true -
SetFontFamily(strFontFamily)
-
字体
Parameters:
Name Type Description strFontFamily
String -
SetText(strText)
-
文本
Parameters:
Name Type Description strText
String 文本内容 Properties:
Name Type Description Text
String "LED" -
SetTextColor(strColor)
-
文本颜色
Parameters:
Name Type Description strColor
String 文字颜色 Properties:
Name Type Description TextColor
Color "0xffff0000" -
SetTextHorAlign(strAlignType)
-
文本水平对齐方式
Parameters:
Name Type Description strAlignType
String "left";"center";"right" Properties:
Name Type Description HorAlign
Combo ["center","left","right"] -
SetTextSize(nFontSize)
-
文本大小
Parameters:
Name Type Description nFontSize
Number 文字大小 Properties:
Name Type Description TextSize
Number 80 -
SetTextVerAlign(strAlignType)
-
文本竖直对齐方式
Parameters:
Name Type Description strAlignType
String "left";"center";"right" Properties:
Name Type Description VerAlign
Combo ["middle","top","bottom"]