Class Style.Button

Button Style Class.

a Style object for a Button Widget.

Inherits from:
* Core.Style

Usage:

     local dUI = require 'dmc_ui'
     local widget = dUI.newButtonStyle{
       type='rounded',
     }
    
     local widget = dUI.newRoundedBackgroundStyle()

Properties

.inactive () get Style object for State 'inactive'.
.align () [style] set/get Style value for Widget text alignment.
.marginX () [style] set/get Style value for Widget X-axis margin.
.marginY () [style] set/get Style value for Widget Y-axis margin.


Properties

.inactive ()
get Style object for State 'inactive'.

Usage:

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

Usage:

  • widget.align = 'center'
  • print( widget.align )
.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 )
generated by LDoc 1.4.3 Last updated 2015-05-14 11:55:05