LineInputWidget

A widget of line input.

Constructors

this
this()

Members

Functions

chainButton
void chainButton(ButtonWidget btn)

Chains the button. Chained button will be handled when Enter is pressed.

changePasswordChar
void changePasswordChar(dchar c)

Changes the character of password field.

drawCursor
void drawCursor(Window w)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSelectionRect
void drawSelectionRect(Window w)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(Window w, float xshift)
Undocumented in source. Be warned that the author may not have intended to support it.
handleFocused
void handleFocused(bool status)
handleKey
bool handleKey(Key key, KeyState status)
handleMouseButton
bool handleMouseButton(MouseButton btn, bool status, vec2 pos)
handleMouseMove
bool handleMouseMove(vec2 pos)
handleTextInput
bool handleTextInput(dchar c)
loadText
void loadText(dstring text, FontFace font)
lock
void lock()

Locks editing.

retrieveIndexFromAbsPos
long retrieveIndexFromAbsPos(float pos)
Undocumented in source. Be warned that the author may not have intended to support it.
retrieveIndexFromPos
long retrieveIndexFromPos(float pos)
Undocumented in source. Be warned that the author may not have intended to support it.
retrievePosFromIndex
float retrievePosFromIndex(long i)
Undocumented in source. Be warned that the author may not have intended to support it.
retrieveScrollLength
float retrieveScrollLength()
Undocumented in source. Be warned that the author may not have intended to support it.
unlock
void unlock()

Unlocks editing.

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

Properties

cursor
const(Cursor) cursor [@property getter]
focusable
bool focusable [@property getter]
isPasswordField
isPasswordField [@property getter]

Checks if the line input is password field.

lineHeight
lineHeight [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
passwordChar
passwordChar [@property getter]

Character of password filed.

passwordChar
deprecated dchar passwordChar [@property setter]

Sets character of password field.

text
dstring text [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
trackable
bool trackable [@property getter]

Variables

_chainedButton
ButtonWidget _chainedButton;
Undocumented in source.
_cursorElm
RectElement _cursorElm;
Undocumented in source.
_cursorPos
float _cursorPos;
Undocumented in source.
_line
TextLine _line;
Undocumented in source.
_passwordChar
dchar _passwordChar;
Undocumented in source.
_scrollLength
float _scrollLength;
Undocumented in source.
_selectionElm
RectElement _selectionElm;
Undocumented in source.
_selectionLength
float _selectionLength;
Undocumented in source.
onTextChange
TextChangeHandler onTextChange;

Inherited Members

From TextWidget

_textElm
TextElement _textElm;
Undocumented in source.
_text
dstring _text;
Undocumented in source.
_font
FontFace _font;
Undocumented in source.
textOriginRate
ref textOriginRate [@property getter]

Rate of text origin.

text
dstring text [@property getter]

Text.

font
FontFace font [@property getter]

Font.

textPosRate
vec2 textPosRate;

Rate of text position.

wantedSize
vec2 wantedSize [@property getter]
loadText
void loadText(dstring v, FontFace f)

Changes text.

drawText
void drawText(Window win, float xshift)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(Window win, ColorSet parent)
trackable
bool trackable [@property getter]
focusable
bool focusable [@property getter]

Meta