22 #ifndef GUI_WIDGETS_EDITTEXT_H 23 #define GUI_WIDGETS_EDITTEXT_H 25 #include "gui/widgets/editable.h" 26 #include "common/str.h" 27 #include "gui/dialog.h" 40 EditTextWidget(
GuiObject *boss,
int x,
int y,
int w,
int h,
bool scale,
const Common::U32String &text,
const Common::U32String &tooltip =
Common::U32String(), uint32 cmd = 0, uint32 finishCmd = 0,
ThemeEngine::FontStyle font =
ThemeEngine::kFontStyleNormal);
46 bool wantsFocus()
override {
return true; }
48 void reflowLayout()
override;
51 void drawWidget()
override;
52 void receivedFocusWidget()
override;
53 void lostFocusWidget()
override;
55 void startEditMode()
override;
56 void endEditMode()
override;
57 void abortEditMode()
override;
Definition: edittext.h:32
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
FontStyle
Font style selector.
Definition: ThemeEngine.h:274
Common::Rect getEditRect() const override
A normal font.
Definition: ThemeEngine.h:276