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
Common::Rect getEditRect() const override
FontStyle
Font style selector.
Definition: ThemeEngine.h:274
@ kFontStyleNormal
A normal font.
Definition: ThemeEngine.h:276