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.

Functions

enabled()
Returns the <Box style> displayed when the textedit is enabled.
setenabled( <Box style> )
Sets the <Box style> displayed when the textedit is enabled.
readonly()
Returns the <Box style> displayed when the textedit is read-only.
setreadonly( <Box style> )
Sets the <Box style> displayed when the textedit is read-only.
disabled()
Returns the <Box style> displayed when the textedit is disabled.
setdisabled( <Box style> )
Sets the <Box style> displayed when the textedit is disabled.
selection()
Returns the <Box style> displayed for the selection.
setselection( <Box style> )
Sets the <Box style> displayed for the selection.
caret()
Returns the <Texture> displayed for the caret.
setcaret( <Texture> )
Sets 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.
Views