ScummVM API documentation
Saga2::gTextBox Class Reference
Inheritance diagram for Saga2::gTextBox:
Saga2::gControl Saga2::gPanel

Public Member Functions

 gTextBox (gPanelList &list, const Rect16 &box, gFont *font, int8 height, int8 FGColor, int8 BGColor, int8 HLColor, byte BGHLColor, byte CRColor, const char *title, const char *buffer, char **stringBufs, uint16 length, uint16 flg, uint16 ident, bool noEditing, AppFunc *cmd=NULL, AppFunc *cmdEnter=NULL, AppFunc *cmdEscape=NULL)
 
void drawClipped (gPort &, const Point16 &, const Rect16 &)
 
void drawClipped ()
 
void draw ()
 
bool tabSelect ()
 
virtual void timerTick (gPanelMessage &msg)
 
void scrollUp ()
 
void scrollDown ()
 
char * getLine (int8)
 
int8 getIndex ()
 
void killChanges ()
 
void keepChanges ()
 
void choose (int which=0)
 
- Public Member Functions inherited from Saga2::gControl
 gControl (gPanelList &, const Rect16 &, const char *, uint16, AppFunc *cmd=NULL)
 
 gControl (gPanelList &, const Rect16 &, gPixelMap &, uint16, AppFunc *cmd=NULL)
 
 gControl (gPanelList &, const StaticRect &, const char *, uint16, AppFunc *cmd=NULL)
 
gPanelkeyTest (int16 key)
 
void enable (bool abled)
 
void select (uint16 sel)
 
void ghost (bool ghosted)
 
void draw ()
 
- Public Member Functions inherited from Saga2::gPanel
 gPanel (gPanelList &, const Rect16 &, const char *, uint16, AppFunc *cmd=NULL)
 
 gPanel (gPanelList &, const Rect16 &, gPixelMap &, uint16, AppFunc *cmd=NULL)
 
 gPanel (gPanelList &, const StaticRect &, const char *, uint16, AppFunc *cmd=NULL)
 
virtual gPanelhitTest (const Point16 &p)
 
bool isActive ()
 
virtual void invalidate (Rect16 *area=nullptr)
 
virtual void setMousePoll (bool abled)
 
gWindowgetWindow ()
 
void makeActive ()
 
Rect16 getExtent ()
 
bool isSelected ()
 
bool isGhosted ()
 
bool getEnabled () const
 
void show (bool shown=true, bool inval=true)
 
void moveToFront (gPanelList &l)
 
void moveToBack (gPanelList &l)
 

Protected Member Functions

void prepareEdit (int which)
 
void revertEdit ()
 
void commitEdit ()
 
bool changed ()
 
void scroll (int8)
 
void enSelect (int which)
 
void deSelect (bool commit=false)
 
void reSelect (int which)
 
bool activate (gEventType why)
 
void deactivate ()
 
bool pointerHit (gPanelMessage &msg)
 
void pointerDrag (gPanelMessage &msg)
 
void pointerRelease (gPanelMessage &msg)
 
bool keyStroke (gPanelMessage &msg)
 
void selectionMove (int howMany=1)
 
bool insertText (char *text, int length)
 
void setText (char *text)
 
void setEditExtent (const Rect16 &r)
 
void selectionUp (int howMany=1)
 
void selectionDown (int howMany=1)
 
void drawAll (gPort &, const Point16 &, const Rect16 &)
 
char * selectedText (int &length)
 
void handleTimerTick (int32 tick)
 
void editRectFill (gPort &fillPort, gPen *pen)
 
void drawContents ()
 
- Protected Member Functions inherited from Saga2::gPanel
 gPanel (gWindow &, const Rect16 &, AppFunc *cmd)
 
virtual void pointerMove (gPanelMessage &msg)
 
virtual bool pointerRHit (gPanelMessage &msg)
 
virtual void onMouseHintDelay ()
 
void notify (gEventType, int32 value)
 
void notify (gEvent &ev)
 
void drawTitle (TextPositions placement)
 

Additional Inherited Members

- Public Attributes inherited from Saga2::gControl
uint8 _accelKey
 
gPanelList_list
 
- Public Attributes inherited from Saga2::gPanel
uint32 _id
 
void * _userData
 
- Protected Attributes inherited from Saga2::gPanel
gWindow_window
 
Rect16 _extent
 
const char * _title
 
byte _enabled
 
byte _selected
 
byte _imageLabel
 
byte _ghosted
 
byte _wantMousePoll
 

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