ScummVM API documentation
Saga2::ContainerView Class Reference
Inheritance diagram for Saga2::ContainerView:
Saga2::gControl Saga2::gPanel Saga2::EnchantmentContainerView Saga2::ReadyContainerView

Public Member Functions

 ContainerView (gPanelList &, const Rect16 &, ContainerNode &nd, const ContainerAppearanceDef &app, AppFunc *cmd=NULL)
 
virtual void drawClipped (gPort &port, const Point16 &offset, const Rect16 &clip)
 
void drawSelector (gPort &port, Point16 &pos)
 
void drawQuantity (gPort &port, GameObject *item, ProtoObj *objProto, int16 x, int16 y)
 
virtual bool isVisible (GameObject *obj)
 
void totalObjects ()
 
ObjectID getObject (int16 slotNum)
 
void setContainer (GameObject *container)
 
TilePoint pickObjectSlot (const Point16 &pickPos)
 
GameObject * getObject (const TilePoint &slot)
 
GameObject * pickObject (const Point16 &pickPos)
 
ObjectID pickObjectID (const Point16 &pickPos)
 
- 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)
 

Public Attributes

ContainerNode & _node
 
Point16 _iconOrigin
 
Point16 _iconSpacing
 
int16 _visibleRows
 
int16 _visibleCols
 
int16 _totalRows
 
int16 _scrollPosition
 
GameObject * _containerObject
 
int16 _totalMass
 
int16 _totalBulk
 
int16 _numObjects
 
- Public Attributes inherited from Saga2::gControl
uint8 _accelKey
 
gPanelList * _list
 
- Public Attributes inherited from Saga2::gPanel
uint32 _id
 
void * _userData
 

Protected Types

enum  imageData { kSelectorX = 10 , kSelectorY = 25 }
 

Protected Member Functions

virtual void clickOn (gPanelMessage &msg, GameObject *mObj, GameObject *cObj)
 
virtual void dblClickOn (gPanelMessage &msg, GameObject *mObj, GameObject *cObj)
 
void getMerged (GameObject *obj)
 
virtual void dropPhysical (gPanelMessage &msg, GameObject *mObj, GameObject *cObj, int16 num=1)
 
virtual void usePhysical (gPanelMessage &msg, GameObject *mObj, GameObject *cObj)
 
virtual void useConcept (gPanelMessage &msg, GameObject *mObj, GameObject *cObj)
 
virtual void useSpell (gPanelMessage &msg, GameObject *mObj, GameObject *cObj)
 
bool activate (gEventType why)
 
void deactivate ()
 
virtual void pointerMove (gPanelMessage &msg)
 
virtual bool pointerHit (gPanelMessage &msg)
 
virtual void pointerRelease (gPanelMessage &msg)
 
virtual void timerTick (gPanelMessage &msg)
 
void dblClick (GameObject *mouseObject, GameObject *slotObject, gPanelMessage &msg)
 
- 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

- 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

◆ drawClipped()

virtual void Saga2::ContainerView::drawClipped ( gPort &  port,
const Point16 &  offset,
const Rect16 &  clip 
)
virtual

Reimplemented from Saga2::gPanel.

◆ activate()

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

Reimplemented from Saga2::gPanel.

◆ deactivate()

void Saga2::ContainerView::deactivate ( )
protectedvirtual

Reimplemented from Saga2::gPanel.

◆ pointerMove()

virtual void Saga2::ContainerView::pointerMove ( gPanelMessage &  msg)
protectedvirtual

Reimplemented from Saga2::gPanel.

◆ pointerHit()

virtual bool Saga2::ContainerView::pointerHit ( gPanelMessage &  msg)
protectedvirtual

Reimplemented from Saga2::gPanel.

◆ pointerRelease()

virtual void Saga2::ContainerView::pointerRelease ( gPanelMessage &  msg)
protectedvirtual

Reimplemented from Saga2::gPanel.

◆ timerTick()

virtual void Saga2::ContainerView::timerTick ( gPanelMessage &  msg)
protectedvirtual

Reimplemented from Saga2::gPanel.


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