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

Public Types

enum  controlValue { kCVEnter = (1 << 0) , kCVLeave = (1 << 1) }
 

Public Member Functions

 gGenericControl (gPanelList &, const Rect16 &, uint16, AppFunc *cmd=NULL)
 
void disableDblClick ()
 
- 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)
 
gPanel * keyTest (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 gPanel * hitTest (const Point16 &p)
 
virtual gPanel * keyTest (int16 key)
 
bool isActive ()
 
virtual bool activate (gEventType why)
 
virtual void deactivate ()
 
virtual void draw ()
 
virtual void enable (bool abled)
 
virtual void select (uint16 selected)
 
virtual void ghost (bool ghosted)
 
virtual void invalidate (Rect16 *area=nullptr)
 
virtual void setMousePoll (bool abled)
 
virtual void drawClipped (gPort &port, const Point16 &offset, const Rect16 &r)
 
gWindow * getWindow ()
 
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

bool activate (gEventType why)
 
void deactivate ()
 
void pointerMove (gPanelMessage &msg)
 
bool pointerHit (gPanelMessage &msg)
 
void pointerDrag (gPanelMessage &msg)
 
void pointerRelease (gPanelMessage &msg)
 
void draw ()
 
- Protected Member Functions inherited from Saga2::gPanel
 gPanel (gWindow &, const Rect16 &, AppFunc *cmd)
 
virtual void pointerMove (gPanelMessage &msg)
 
virtual bool pointerHit (gPanelMessage &msg)
 
virtual bool pointerRHit (gPanelMessage &msg)
 
virtual void pointerDrag (gPanelMessage &msg)
 
virtual void pointerRelease (gPanelMessage &msg)
 
virtual bool keyStroke (gPanelMessage &msg)
 
virtual void timerTick (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
 

Member Function Documentation

◆ activate()

bool Saga2::gGenericControl::activate ( gEventType  why)
protectedvirtual

Reimplemented from Saga2::gPanel.

◆ deactivate()

void Saga2::gGenericControl::deactivate ( )
protectedvirtual

Reimplemented from Saga2::gPanel.

◆ pointerMove()

void Saga2::gGenericControl::pointerMove ( gPanelMessage &  msg)
protectedvirtual

Reimplemented from Saga2::gPanel.

◆ pointerHit()

bool Saga2::gGenericControl::pointerHit ( gPanelMessage &  msg)
protectedvirtual

Reimplemented from Saga2::gPanel.

◆ pointerDrag()

void Saga2::gGenericControl::pointerDrag ( gPanelMessage &  msg)
protectedvirtual

Reimplemented from Saga2::gPanel.

◆ pointerRelease()

void Saga2::gGenericControl::pointerRelease ( gPanelMessage &  msg)
protectedvirtual

Reimplemented from Saga2::gPanel.

◆ draw()

void Saga2::gGenericControl::draw ( )
protectedvirtual

Reimplemented from Saga2::gControl.


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