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 = math.floor(Screen:getWidth() * 2/3),
}
UIManager:show(Foo)

Functions

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

Issues

TextBoxWidget:_renderText-todo9 Be more clever with RTL, and at bidi boundaries, may be depending on line.paraisrtl and xglyph.bidi_level
TextBoxWidget:_renderText-todo9-fixme10 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-todo9
Be more clever with RTL, and at bidi boundaries, may be depending on line.paraisrtl and xglyph.bidi_level
TextBoxWidget:_renderText-todo9-fixme10
This might break if kerning is enabled.
generated by LDoc 1.5.0 Last updated 2024-03-18 16:45:36