mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +02:00
18 lines
411 B
Markdown
18 lines
411 B
Markdown
# Text Quick API reference
|
|
|
|
```lua
|
|
text:init(node, [value], [adjust_type])
|
|
text:get_text()
|
|
text:get_text_index_by_width(width)
|
|
text:get_text_size([text])
|
|
text:is_multiline()
|
|
text:on_layout_change()
|
|
text:on_style_change(style)
|
|
text:set_alpha(alpha)
|
|
text:set_color(color)
|
|
text:set_pivot(pivot)
|
|
text:set_scale(scale)
|
|
text:set_size(size)
|
|
text:set_text(new_text)
|
|
text:set_text_adjust([adjust_type], [minimal_scale])
|