Skip to content

class_richtextlabel

Lukas Sägesser edited this page Jun 22, 2015 · 11 revisions

RichTextLabel

####Inherits: Control ####Category: Core

Brief Description

Label that displays rich text.

Member Functions

Signals

  • meta_clicked ( Nil meta )

Numeric Constants

  • ALIGN_LEFT = 0
  • ALIGN_CENTER = 1
  • ALIGN_RIGHT = 2
  • ALIGN_FILL = 3
  • LIST_NUMBERS = 0
  • LIST_LETTERS = 1
  • LIST_DOTS = 2
  • ITEM_MAIN = 0
  • ITEM_TEXT = 1
  • ITEM_IMAGE = 2
  • ITEM_NEWLINE = 3
  • ITEM_FONT = 4
  • ITEM_COLOR = 5
  • ITEM_UNDERLINE = 6
  • ITEM_ALIGN = 7
  • ITEM_INDENT = 8
  • ITEM_LIST = 9
  • ITEM_META = 10

Description

Label that displays rich text. Rich text can contain custom text, fonts, images and some basic formatting. It also adapts itself to given width/heights.

Member Function Description

  • void set_selection_enabled ( bool enabled )

Set to true if selecting the text inside this richtext is allowed.

  • bool is_selection_enabled ( ) const

Return true if selecting the text inside this richtext is allowed.

Clone this wiki locally