Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

GUI::EditableWidget Class Reference

#include <editable.h>

Inheritance diagram for GUI::EditableWidget:

List of all members.


Detailed Description

Base class for widgets which need to edit text, like ListWidget and EditTextWidget.

Definition at line 39 of file editable.h.


Public Types

typedef Common::String String

Public Member Functions

void clearFlags (int flags)
void clearHints (int hints)
void draw ()
 EditableWidget (GuiObject *boss, const String &name)
 EditableWidget (GuiObject *boss, int x, int y, int w, int h)
virtual int16 getAbsX () const
virtual int16 getAbsY () const
virtual int16 getChildX () const
virtual int16 getChildY () const
virtual const StringgetEditString () const
int getFlags () const
virtual uint16 getHeight () const
int getHints () const
virtual uint16 getWidth () const
virtual bool handleKeyDown (Common::KeyState state)
virtual bool handleKeyUp (Common::KeyState state)
virtual void handleMouseDown (int x, int y, int button, int clickCount)
virtual void handleMouseEntered (int button)
virtual void handleMouseLeft (int button)
virtual void handleMouseMoved (int x, int y, int button)
virtual void handleMouseUp (int x, int y, int button, int clickCount)
virtual void handleMouseWheel (int x, int y, int direction)
virtual void handleTickle ()
void init ()
bool isEnabled () const
bool isVisible () const
void lostFocus ()
Widget * next ()
void receivedFocus ()
virtual void reflowLayout ()
void resize (int x, int y, int w, int h)
virtual void setEditString (const String &str)
void setEnabled (bool e)
void setFlags (int flags)
void setHints (int hints)
void setNext (Widget *w)
virtual void setPos (int x, int y)
virtual void setSize (int w, int h)
virtual bool wantsFocus ()

Static Public Member Functions

static Widget * findWidgetInChain (Widget *start, const char *name)
static Widget * findWidgetInChain (Widget *start, int x, int y)

Protected Member Functions

virtual void abortEditMode ()=0
bool adjustOffset ()
void drawCaret (bool erase)
virtual void drawWidget ()=0
virtual void endEditMode ()=0
virtual Widget * findWidget (int x, int y)
virtual int getCaretOffset () const
virtual Common::Rect getEditRect () const =0
uint32 getMillis ()
void handleCommand (CommandSender *sender, uint32 cmd, uint32 data)
virtual void lostFocusWidget ()
void makeCaretVisible ()
virtual void receivedFocusWidget ()
void releaseFocus ()
bool setCaretPos (int newPos)
void setFontStyle (Theme::FontStyle font)
virtual void startEditMode ()=0
virtual bool tryInsertChar (byte c, int pos)
void updateState (int oldFlags, int newFlags)

Protected Attributes

GuiObject * _boss
bool _caretInverse
int _caretPos
uint32 _caretTime
bool _caretVisible
int _editScrollOffset
String _editString
Widget * _firstWidget
Theme::FontStyle _font
uint16 _h
bool _hasFocus
uint16 _hints
uint16 _id
Common::String _name
Widget * _next
Theme::WidgetStateInfo _state
uint32 _type
uint16 _w
int16 _x
int16 _y

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

Generated by  Doxygen 1.6.0   Back to index