Class Style.Text

Text Style Class.

a style object for a Text widget.

Inherits from:
* Core.Style

Usage:

     dUI = require 'dmc_ui'
     widget = dUI.newTextStyle()

Properties

.align () [style] set/get Style value for Widget text alignment.
.fillColor () [style] set/get Style value for Widget fill color.
.font () [style] set/get Style value for Widget font.
.fontSize () [style] set/get Style value for Widget font size.
.fontSizeMinimum () [style] set/get Style value for Widget minimum font size.
.marginX () [style] set/get Style value for Widget X-axis margin.
.marginY () [style] set/get Style value for Widget Y-axis margin.
.strokeColor () [style] set/get Style value for Widget border color.
.strokeWidth () [style] set/get Style value for Widget border thickness.
.textColor () [style] set/get Style value for Widget text color.


Properties

.align ()
[style] set/get Style value for Widget text alignment. values are 'left', 'center', 'right'

Usage:

  • widget.align = 'center'
  • print( widget.align )
.fillColor ()
[style] set/get Style value for Widget fill color.

Usage:

  • widget.fillColor = 'center'
  • print( widget.fillColor )
.font ()
[style] set/get Style value for Widget font.

Usage:

  • style.font = native.systemFontBold
  • print( style.font )
.fontSize ()
[style] set/get Style value for Widget font size.

Usage:

  • style.fontSize = 12
  • print( style.fontSize )
.fontSizeMinimum ()
[style] set/get Style value for Widget minimum font size.

Usage:

  • style.fontSizeMinimum = 8
  • print( style.fontSizeMinimum )
.marginX ()
[style] set/get Style value for Widget X-axis margin.

Usage:

  • style.marginX = 10
  • print( style.marginX )
.marginY ()
[style] set/get Style value for Widget Y-axis margin.

Usage:

  • style.marginY = 10
  • print( style.marginY )
.strokeColor ()
[style] set/get Style value for Widget border color.

Usage:

  • style.strokeColor = {1,1,1,1}
  • print( style.strokeColor )
.strokeWidth ()
[style] set/get Style value for Widget border thickness.

Usage:

  • style.strokeWidth = 2
  • print( style.strokeWidth )
.textColor ()
[style] set/get Style value for Widget text color.

Usage:

  • style.textColor = {0,0,1,0.5}
  • print( style.textColor )
generated by LDoc 1.4.3 Last updated 2015-05-14 11:55:05