GluiTextInput

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
this(BasicNodeParam!index sup, string placeholder, void delegate() @(trusted) submitted)

Create a text input.

Members

Functions

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.
mouseImpl
void mouseImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
pickStyle
const(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.

Static variables

blinkTime
float blinkTime;

Time in seconds before the cursor toggles visibility.

Variables

multiline
bool multiline;

TODO. If true, this input accepts multiple lines.

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.

Meta