TextInput

Text input field.

Styles:

  • style = Default style for the input.
  • focusStyle = Style for when the input is focused.
  • emptyStyle = Style for when the input is empty, i.e. the placeholder is visible. Text should usually be grayed out.

Constructors

this
deprecated this(BasicNodeParam!index sup, string placeholder, void delegate() @(trusted) submitted)

Create a text input.

this
this(NodeParams params, string placeholder, void delegate() @(trusted) submitted)

Create a text input.

Members

Functions

_submit
void _submit()

Submit the input.

chop
void chop()

Erase last inputted letter.

chopWord
void chopWord()

Erase last inputted word.

drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
keyboardImpl
bool keyboardImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
multiline
deprecated bool multiline()
Undocumented in source. Be warned that the author may not have intended to support it.
multiline
deprecated bool multiline(bool )
Undocumented in source. Be warned that the author may not have intended to support it.
pickStyle
inout(Style) pickStyle()
Undocumented in source. Be warned that the author may not have intended to support it.
resizeImpl
void resizeImpl(Vector2 area)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin defineStyles!("emptyStyle", q{ style })
Undocumented in source.
__anonymous
mixin implHoveredRect
Undocumented in source.
__anonymous
mixin enableInputActions
Undocumented in source.

Static variables

blinkTime
float blinkTime;

Time in seconds between changes in cursor visibility.

Variables

placeholder
string placeholder;

A placeholder text for the field, displayed when the field is empty. Style using emptyStyle.

size
auto size;

Size of the field.

value
string value;

Value of the field.

Mixed In Members

From mixin defineStyles!("emptyStyle", q{ style })

reloadStylesImpl
void reloadStylesImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
loadDefaultStyles
void loadDefaultStyles()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta