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 32 of file edittext.h.


Member Typedef Documentation

Reimplemented from GUI::EditableWidget.

Definition at line 34 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 139 of file edittext.cpp.

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

Definition at line 99 of file edittext.cpp.

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

Implements GUI::EditableWidget.

Definition at line 133 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 115 of file edittext.cpp.

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

Definition at line 68 of file edittext.cpp.

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

Definition at line 124 of file edittext.cpp.

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

Definition at line 121 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 130 of file edittext.cpp.

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

Definition at line 49 of file edittext.h.


Member Data Documentation

Definition at line 36 of file edittext.h.

Definition at line 64 of file edittext.h.

Definition at line 38 of file edittext.h.

Definition at line 39 of file edittext.h.


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


Generated on Sat Jan 12 2019 05:04:46 for ResidualVM by doxygen 1.7.1
curved edge   curved edge