22 #ifndef ULTIMA8_GUMPS_WIDGETS_EDITWIDGET_H 23 #define ULTIMA8_GUMPS_WIDGETS_EDITWIDGET_H 29 #include "ultima/ultima8/gumps/gump.h" 31 #include "ultima/ultima8/gfx/fonts/font.h" 32 #include "ultima/ultima8/misc/classtype.h" 41 ENABLE_RUNTIME_CLASSTYPE()
44 int width,
int height,
unsigned int maxlength = 0,
45 bool multiline =
false);
48 void InitGump(
Gump *newparent,
bool take_focus =
true)
override;
53 Gump *onMouseMotion(int32 mx, int32 my)
override;
54 bool OnKeyDown(
int key,
int mod)
override;
55 bool OnKeyUp(
int key)
override;
56 bool OnTextInput(
int unicode)
override;
58 void OnFocus(
bool gain)
override;
74 Std::string::size_type _cursor;
77 unsigned int _maxLength;
80 uint32 _cursorChanged;
83 void ensureCursorVisible();
86 Font *getFont()
const;
Definition: render_surface.h:40
Definition: rendered_text.h:30
Definition: detection.h:27