ws v1.0.10 (2017-05-27T17:13:21Z)
Dub
Repo
InputField
ws
gui
inputField
Undocumented in source.
class
InputField :
Text
{
bool
hasFocus
;
Event
!
string
onEnter
;
string
error
;
double
errorTime
;
bool
blockChar
;
this
();
void
onKeyboard
(dchar c);
void
onKeyboard
(Keyboard.key key, bool pressed);
void
onKeyboardFocus
(bool hasFocus);
void
onDraw
();
}
Constructors
this
this
()
Undocumented in source.
Members
Functions
onDraw
void
onDraw
()
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyboard
void
onKeyboard
(Keyboard.key key, bool pressed)
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyboard
void
onKeyboard
(dchar c)
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyboardFocus
void
onKeyboardFocus
(bool hasFocus)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
blockChar
bool
blockChar
;
Undocumented in source.
error
string
error
;
Undocumented in source.
errorTime
double
errorTime
;
Undocumented in source.
hasFocus
bool
hasFocus
;
Undocumented in source.
onEnter
Event
!
string
onEnter
;
Undocumented in source.
Inherited Members
From Text
font
Font
font
;
Undocumented in source.
text
String
text
;
Undocumented in source.
shader
Shader
shader
;
Undocumented in source.
setFont
void
setFont
(string f, int size)
Undocumented in source. Be warned that the author may not have intended to support it.
resize
void
resize
(int[2] size)
Undocumented in source. Be warned that the author may not have intended to support it.
onDraw
void
onDraw
()
Undocumented in source. Be warned that the author may not have intended to support it.
String
class
String
List of characters (dchar + screen position + OpenGL glyph)
Character
class
Character
Undocumented in source.
Meta
Source
See Implementation
ws
gui
inputField
classes
InputException
InputField