Module ui.widget.textboxwidget

A TextWidget that handles long text wrapping

Example:

local Foo = TextBoxWidget:new{
    face = Font:getFace("cfont", 25),
    text = 'We can show multiple lines.\nFoo.\nBar.',
    -- width = Screen:getWidth()*2/3,
}
UIManager:show(Foo)

Functions

TextBoxWidget:_renderText (start_row_idx, end_row_idx) Lays out text.

Issues

TextBoxWidget:_renderText-todo20 Be more clever with RTL, and at bidi boundaries, may be depending on line.paraisrtl and xglyph.bidi_level
TextBoxWidget:_renderText-todo20-fixme21 This might break if kerning is enabled.


Functions

TextBoxWidget:_renderText (start_row_idx, end_row_idx)
Lays out text.

Parameters:

  • start_row_idx
  • end_row_idx

Issues

TextBoxWidget:_renderText-todo20
Be more clever with RTL, and at bidi boundaries, may be depending on line.paraisrtl and xglyph.bidi_level
TextBoxWidget:_renderText-todo20-fixme21
This might break if kerning is enabled.
generated by LDoc 1.4.6 Last updated 2020-03-29 12:40:26