Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
getColor | |
getFont | |
getScale | |
getSize | |
setColor | |
setFont | |
setScale | |
setSize |
Gets the color of the style.
function getColor ( MOAITextStyle self )
self | ( MOAITextStyle ) |
Gets the font of the style.
function getFont ( MOAITextStyle self )
self | ( MOAITextStyle ) |
Gets the scale of the style.
function getScale ( MOAITextStyle self )
self | ( MOAITextStyle ) |
Gets the size of the style.
function getSize ( MOAITextStyle self )
self | ( MOAITextStyle ) |
Initialize the style's color.
function setColor ( MOAITextStyle self, number r, number g, number b [, number a ] )
self | ( MOAITextStyle ) |
r | ( number ) Default value is 0. |
g | ( number ) Default value is 0. |
b | ( number ) Default value is 0. |
a | ( number ) Optional. Default value is 1. |
Sets or clears the style's font.
function setFont ( MOAITextStyle self [, MOAIFont font ] )
self | ( MOAITextStyle ) |
font | ( MOAIFont ) Optional. Default value is nil. |
Sets the scale of the style. The scale is applied to any glyphs drawn using the style after the glyph set has been selected by size.
function setScale ( MOAITextStyle self [, number scale ] )
self | ( MOAITextStyle ) |
scale | ( number ) Optional. Default value is 1. |
Sets or clears the style's size.
function setSize ( MOAITextStyle self, number points [, number dpi ] )
self | ( MOAITextStyle ) |
points | ( number ) The point size to be used by the style. |
dpi | ( number ) Optional. The device DPI (dots per inch of device screen). Default value is 72 (points same as pixels). |