ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <edittext.h>

Inheritance diagram for GUI::EditTextWidget:
Collaboration diagram for GUI::EditTextWidget:

List of all members.

Public Member Functions

 EditTextWidget (GuiObject *boss, int x, int y, int w, int h, const U32String &text, const U32String &tooltip=Common::U32String(""), uint32 cmd=0, uint32 finishCmd=0, ThemeEngine::FontStyle font=ThemeEngine::kFontStyleNormal)
 EditTextWidget (GuiObject *boss, const String &name, const U32String &text, const U32String &tooltip=Common::U32String(""), uint32 cmd=0, uint32 finishCmd=0, ThemeEngine::FontStyle font=ThemeEngine::kFontStyleNormal)
void setEditString (const U32String &str) override
void handleMouseDown (int x, int y, int button, int clickCount) override
bool wantsFocus () override
void reflowLayout () override

Protected Types

typedef Common::String String
typedef Common::U32String U32String

Protected Member Functions

void drawWidget () override
void receivedFocusWidget () override
void lostFocusWidget () override
void startEditMode () override
void endEditMode () override
void abortEditMode () override
Common::Rect getEditRect () const override
 The area where text input is being made.

Protected Attributes

U32String _backupString
int _leftPadding
int _rightPadding
uint32 _finishCmd

Detailed Description

Definition at line 33 of file edittext.h.


Member Typedef Documentation

Reimplemented from GUI::EditableWidget.

Definition at line 35 of file edittext.h.

Reimplemented from GUI::EditableWidget.

Definition at line 36 of file edittext.h.


Constructor & Destructor Documentation

GUI::EditTextWidget::EditTextWidget ( GuiObject boss,
int  x,
int  y,
int  w,
int  h,
const U32String text,
const U32String tooltip = Common::U32String(""),
uint32  cmd = 0,
uint32  finishCmd = 0,
ThemeEngine::FontStyle  font = ThemeEngine::kFontStyleNormal 
)

Definition at line 31 of file edittext.cpp.

GUI::EditTextWidget::EditTextWidget ( GuiObject boss,
const String name,
const U32String text,
const U32String tooltip = Common::U32String(""),
uint32  cmd = 0,
uint32  finishCmd = 0,
ThemeEngine::FontStyle  font = ThemeEngine::kFontStyleNormal 
)

Definition at line 43 of file edittext.cpp.


Member Function Documentation

void GUI::EditTextWidget::abortEditMode (  )  [override, protected, virtual]

Implements GUI::EditableWidget.

Definition at line 142 of file edittext.cpp.

void GUI::EditTextWidget::drawWidget (  )  [override, protected]

Definition at line 99 of file edittext.cpp.

void GUI::EditTextWidget::endEditMode (  )  [override, protected, virtual]

Implements GUI::EditableWidget.

Definition at line 136 of file edittext.cpp.

Common::Rect GUI::EditTextWidget::getEditRect (  )  const [override, protected, virtual]

The area where text input is being made.

This should exactly match the rect with which the actual edit string is drawn otherwise nasty graphics glitches when redrawing the caret can occur.

Implements GUI::EditableWidget.

Definition at line 115 of file edittext.cpp.

void GUI::EditTextWidget::handleMouseDown ( int  x,
int  y,
int  button,
int  clickCount 
) [override]

Definition at line 67 of file edittext.cpp.

void GUI::EditTextWidget::lostFocusWidget (  )  [override, protected]

Definition at line 125 of file edittext.cpp.

void GUI::EditTextWidget::receivedFocusWidget (  )  [override, protected]

Definition at line 121 of file edittext.cpp.

void GUI::EditTextWidget::reflowLayout (  )  [override]

Reimplemented from GUI::EditableWidget.

Definition at line 60 of file edittext.cpp.

void GUI::EditTextWidget::setEditString ( const U32String str  )  [override, virtual]

Reimplemented from GUI::EditableWidget.

Definition at line 55 of file edittext.cpp.

void GUI::EditTextWidget::startEditMode (  )  [override, protected, virtual]

Implements GUI::EditableWidget.

Definition at line 133 of file edittext.cpp.

bool GUI::EditTextWidget::wantsFocus (  )  [inline, override]

Definition at line 51 of file edittext.h.


Member Data Documentation

Definition at line 38 of file edittext.h.

Definition at line 66 of file edittext.h.

Definition at line 40 of file edittext.h.

Definition at line 41 of file edittext.h.


The documentation for this class was generated from the following files:


Generated on Sat Sep 12 2020 05:04:51 for ResidualVM by doxygen 1.7.1
curved edge   curved edge