Rectangle

APIRendererRectangle

Rectangle {
    width: 150
    height: 100
    color: 'blue'
    border.color: 'black'
    border.width: 5
    radius: 10
}

Source

Rectangle.New(options)

Parameters:
  • options — Objectoptional
Returns:
Rectangle

Source

Rectangle::constructor()

Extends:
Item
Returns:
Rectangle

Source

Rectangle::color

Type:
String
Default value:
'transparent'

Rectangle::onColorChange(oldValue)

Parameters:
  • oldValue — String
Type:
Signal

Source

Rectangle::radius

Type:
Float
Default value:
0

Rectangle::onRadiusChange(oldValue)

Parameters:
  • oldValue — Float
Type:
Signal

Source

Rectangle::border

Type:
Object

Rectangle::onBorderChange(property, oldValue)

Parameters:
  • property — String
  • oldValue — Any
Type:
Signal

Source

Rectangle::border.width

Type:
Float
Default value:
0

Rectangle::border.onWidthChange(oldValue)

Parameters:
  • oldValue — Float
Type:
Signal

Source

Rectangle::border.color

Type:
String
Default value:
'transparent'

Rectangle::border.onColorChange(oldValue)

Parameters:
  • oldValue — String
Type:
Signal

Source