- _editorSettingsChanged
void _editorSettingsChanged()
- _guiInput
void _guiInput(InputEvent arg0)
- _textChanged
void _textChanged()
- _toggleDrawCaret
void _toggleDrawCaret()
- appendAtCursor
void appendAtCursor(StringArg0 text)
Adds text after the cursor. If the resulting value is longer than maxLength, nothing happens.
- clear
void clear()
- cursorGetBlinkEnabled
bool cursorGetBlinkEnabled()
- cursorGetBlinkSpeed
double cursorGetBlinkSpeed()
- cursorSetBlinkEnabled
void cursorSetBlinkEnabled(bool enabled)
- cursorSetBlinkSpeed
void cursorSetBlinkSpeed(double blink_speed)
- deselect
void deselect()
Clears the current selection.
- getAlign
LineEdit.Align getAlign()
- getCursorPosition
long getCursorPosition()
- getExpandToTextLength
bool getExpandToTextLength()
- getMaxLength
long getMaxLength()
- getMenu
PopupMenu getMenu()
Returns the PopupMenu of this LineEdit. By default, this menu is displayed when right-clicking on the LineEdit.
- getPlaceholder
String getPlaceholder()
- getPlaceholderAlpha
double getPlaceholderAlpha()
- getSecretCharacter
String getSecretCharacter()
- getText
String getText()
- isClearButtonEnabled
bool isClearButtonEnabled()
- isContextMenuEnabled
bool isContextMenuEnabled()
- isEditable
bool isEditable()
- isSecret
bool isSecret()
- menuOption
void menuOption(long option)
Executes a given action as defined in the MENU_* enum.
- opAssign
LineEdit opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(LineEdit other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- select
void select(long from, long to)
Selects characters inside LineEdit between from and to. By default from is at the beginning and to at the end.
- selectAll
void selectAll()
Selects the whole String.
- setAlign
void setAlign(long _align)
- setClearButtonEnabled
void setClearButtonEnabled(bool enable)
- setContextMenuEnabled
void setContextMenuEnabled(bool enable)
- setCursorPosition
void setCursorPosition(long position)
- setEditable
void setEditable(bool enabled)
- setExpandToTextLength
void setExpandToTextLength(bool enabled)
- setMaxLength
void setMaxLength(long chars)
- setPlaceholder
void setPlaceholder(StringArg0 text)
- setPlaceholderAlpha
void setPlaceholderAlpha(double alpha)
- setSecret
void setSecret(bool enabled)
- setSecretCharacter
void setSecretCharacter(StringArg0 character)
- setText
void setText(StringArg0 text)
- _align
LineEdit.Align _align [@property getter]
long _align [@property setter]
Text alignment as defined in the ALIGN_* enum.
- caretBlink
bool caretBlink [@property getter]
bool caretBlink [@property setter]
If true the caret (visual cursor) blinks.
- caretBlinkSpeed
double caretBlinkSpeed [@property getter]
double caretBlinkSpeed [@property setter]
Duration (in seconds) of a caret's blinking cycle.
- caretPosition
long caretPosition [@property getter]
long caretPosition [@property setter]
The cursor's position inside the LineEdit. When set, the text may scroll to accommodate it.
- clearButtonEnabled
bool clearButtonEnabled [@property getter]
bool clearButtonEnabled [@property setter]
If true the LineEdit will show a clear button if text is not empty.
- contextMenuEnabled
bool contextMenuEnabled [@property getter]
bool contextMenuEnabled [@property setter]
If true the context menu will appear when right clicked.
- editable
bool editable [@property getter]
bool editable [@property setter]
If false existing text cannot be modified and new text cannot be added.
- expandToTextLength
bool expandToTextLength [@property getter]
bool expandToTextLength [@property setter]
If true the LineEdit width will increase to stay longer than the text. It will not compress if the text is shortened.
- focusMode
Control.FocusMode focusMode [@property getter]
long focusMode [@property setter]
Defines how the LineEdit can grab focus (Keyboard and mouse, only keyboard, or none). See enum FocusMode in Control for details.
- maxLength
long maxLength [@property getter]
long maxLength [@property setter]
Maximum amount of characters that can be entered inside the LineEdit. If 0, there is no limit.
- placeholderAlpha
double placeholderAlpha [@property getter]
double placeholderAlpha [@property setter]
- placeholderText
String placeholderText [@property getter]
String placeholderText [@property setter]
- secret
bool secret [@property getter]
bool secret [@property setter]
If true, every character is replaced with the secret character (see secretCharacter).
- secretCharacter
String secretCharacter [@property getter]
String secretCharacter [@property setter]
The character to use to mask secret input (defaults to "*"). Only a single character can be used as the secret character.
- text
String text [@property getter]
String text [@property setter]
Control that provides single line string editing.
LineEdit provides a single line string editor, used for text fields.