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-todo8 Be more clever with RTL, and at bidi boundaries, may be depending on line.paraisrtl and xglyph.bidi_level
TextBoxWidget:_renderText-todo8-fixme9 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-todo8
Be more clever with RTL, and at bidi boundaries, may be depending on line.paraisrtl and xglyph.bidi_level
TextBoxWidget:_renderText-todo8-fixme9
This might break if kerning is enabled.
generated by LDoc 1.5.0 Last updated 2024-10-21 11:47:13