mirror of
https://github.com/Insality/druid.git
synced 2025-09-28 18:42:19 +02:00
Update
This commit is contained in:
17
docs_md/components/base/text_api.md
Normal file
17
docs_md/components/base/text_api.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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])
|
Reference in New Issue
Block a user