Text

APIRendererText

Text {
    font.pixelSize: 30
    font.family: 'monospace'
    text: '<strong>Neft</strong> Renderer'
    color: 'blue'
}

Source

Text.New(options)

Parameters:
  • options — Objectoptional
Returns:
Text

Source

Text::constructor()

Extends:
Item
Returns:
Text

Source

Text::width

Type:
Float
Default value:
-1

Source

Text::height

Type:
Float
Default value:
-1

Source

Text::text

Type:
String

Text::onTextChange(oldValue)

Parameters:
  • oldValue — String
Type:
Signal

Source

Text::color

Type:
String
Default value:
'black'

Text::onColorChange(oldValue)

Parameters:
  • oldValue — String
Type:
Signal

Source

Text::linkColor

Type:
String
Default value:
'blue'

Text::onLinkColorChange(oldValue)

Parameters:
  • oldValue — String
Type:
Signal

Source

Text::lineHeight

Type:
Float
Default value:
1
Not Implemented

Text::onLineHeightChange(oldValue)

Parameters:
  • oldValue — Float
Type:
Signal
Not Implemented

Source

Text::contentWidth

Type:
Float
Read Only

Text::onContentWidthChange(oldValue)

Parameters:
  • oldValue — Float
Type:
Signal

Source

Text::contentHeight

Type:
Float
Read Only

Text::onContentHeightChange(oldValue)

Parameters:
  • oldValue — Float
Type:
Signal

Source

Text::alignment

Type:
Item.Alignment

Text::onAlignmentChange(property, oldValue)

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

Source

Text::font

Type:
Item.Text.Font

Text::onFontChange(property, oldValue)

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

Source