Textedit style
From TargetWiki
A textedit style is a specialization of a widget style. It controls they way a textedit is drawn on the screen. All widget style functions can also be called on a textedit style.
Since a textedit style is a Lua object, calls should use the object:function() syntax. Also, all Lua object functions can also be called on a textedit style.
[edit]
Functions
- enabled()
- Returns the <Box style> displayed when the textedit is enabled.
- readonly()
- Returns the <Box style> displayed when the textedit is read-only.
- disabled()
- Returns the <Box style> displayed when the textedit is disabled.
- selection()
- Returns the <Box style> displayed for the selection.
- caret()
- Returns the <Texture> displayed for the caret.
- minwidth()
- Returns the minimum width in pixels.
- setminwidth( <number> )
- Sets the minimum width in pixels.
- margin()
- Returns the margin in pixels.
- setmargin( <number> )
- Sets the margin in pixels.
- blinkrate()
- Returns the blink rate.
- setblinkrate( <number> )
- Sets the blink rate.
- readonlytextcolor()
- Returns the read-only text color.
- setreadonlytextcolor( <red>, <green>, <blue>, <alpha> )
- Sets the text color when read-only.
Categories: Lua | GUI | Widget styles
