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 String &text, const char *tooltip=0, uint32 cmd=0, uint32 finishCmd=0)
 EditTextWidget (GuiObject *boss, const String &name, const String &text, const char *tooltp=0, uint32 cmd=0, uint32 finishCmd=0)
void setEditString (const String &str)
virtual void handleMouseDown (int x, int y, int button, int clickCount)
virtual bool wantsFocus ()
virtual void reflowLayout ()

Protected Types

typedef Common::String String

Protected Member Functions

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

Protected Attributes

String _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.


Constructor & Destructor Documentation

GUI::EditTextWidget::EditTextWidget ( GuiObject boss,
int  x,
int  y,
int  w,
int  h,
const String text,
const char *  tooltip = 0,
uint32  cmd = 0,
uint32  finishCmd = 0 
)

Definition at line 31 of file edittext.cpp.

GUI::EditTextWidget::EditTextWidget ( GuiObject boss,
const String name,
const String text,
const char *  tooltp = 0,
uint32  cmd = 0,
uint32  finishCmd = 0 
)

Definition at line 43 of file edittext.cpp.


Member Function Documentation

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

Implements GUI::EditableWidget.

Definition at line 138 of file edittext.cpp.

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

Definition at line 98 of file edittext.cpp.

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

Implements GUI::EditableWidget.

Definition at line 132 of file edittext.cpp.

Common::Rect GUI::EditTextWidget::getEditRect (  )  const [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 114 of file edittext.cpp.

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

Definition at line 67 of file edittext.cpp.

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

Definition at line 123 of file edittext.cpp.

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

Definition at line 120 of file edittext.cpp.

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

Reimplemented from GUI::EditableWidget.

Definition at line 60 of file edittext.cpp.

void GUI::EditTextWidget::setEditString ( const String str  )  [virtual]

Reimplemented from GUI::EditableWidget.

Definition at line 55 of file edittext.cpp.

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

Implements GUI::EditableWidget.

Definition at line 129 of file edittext.cpp.

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

Definition at line 50 of file edittext.h.


Member Data Documentation

Definition at line 37 of file edittext.h.

Definition at line 65 of file edittext.h.

Definition at line 39 of file edittext.h.

Definition at line 40 of file edittext.h.


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


Generated on Sat Mar 16 2019 05:06:25 for ResidualVM by doxygen 1.7.1
curved edge   curved edge