ScummVM API documentation
Bagel::CBagMenu Class Reference
Inheritance diagram for Bagel::CBagMenu:
Bagel::CBagStorageDev Bagel::CBagParseObject

Public Member Functions

ErrorCode setBackground (CBofBitmap *)
 
CBofBitmapgetBackground ()
 
bool addItem (CBagObject *pObj, void *(*func)(int, void *), void *info)
 
bool deleteItem (const CBofString &sLabel)
 
bool isChecked (const CBofString &sLabel, const CBofString &sSubLabel=CBofString())
 
bool isChecked (int nRefId)
 
bool isCheckedPos (int nRow, int nCol=-1)
 
bool check (const CBofString &sLabel, const CBofString &sSubLabel=CBofString())
 
bool check (int nRefId)
 
bool unCheck (const CBofString &sLabel, const CBofString &sSubLabel=CBofString())
 
bool unCheck (int nRefId)
 
bool trackPopupMenu (uint32 nFlags, int x, int y, CBofWindow *pWnd, CBofPalette *pPal, CBofRect *lpRect=nullptr)
 
CBagObjectonNewSpriteObject (const CBofString &)
 
- Public Member Functions inherited from Bagel::CBagStorageDev
virtual ErrorCode preFilter (CBofBitmap *pBmp, CBofRect *pRect, CBofList< CBagObject *> *pList=nullptr)
 
void makeListDirty (CBofList< CBagObject *> *pList)
 
void setDiskID (uint16 nDiskID)
 
uint16 getDiskID () const
 
virtual ErrorCode setloadFilePos (const CBofPoint)
 
bool isCloseup () const
 
void setCloseup (bool b=true)
 
bool isCIC ()
 
void setCIC (bool b=true)
 
bool isCustom () const
 
void setCustom (bool b=true)
 
int getDeviceType () const
 
int getObjectCount ()
 
CBagObjectgetObjectByPos (int nIndex)
 
CBagObjectgetObject (int nRefId, bool bActiveOnly=false)
 
CBagObjectgetObject (const CBofPoint &xPoint, bool bActiveOnly=false)
 
CBagObjectgetObject (const CBofString &sName, bool bActiveOnly=false)
 
CBagObjectgetObjectByType (const CBofString &sType, bool bActiveOnly=false)
 
CBofList< CBagObject * > * getObjectList () const
 
void setObjectList (CBofList< CBagObject *> *pOList, CBofList< CBagExpression *> *pEList=nullptr)
 
bool contains (CBagObject *pObj, bool bActive=true)
 
virtual CBofRect getRect ()
 
virtual void setRect (const CBofRect &xRect)
 
virtual CBofPoint getPosition ()
 
virtual void setPosition (const CBofPoint &pos)
 
virtual ErrorCode addObject (CBagObject *pObj, int nPos=0)
 
virtual ErrorCode activateLocalObject (CBagObject *pObj)
 
virtual ErrorCode activateLocalObject (const CBofString &sName)
 
virtual ErrorCode attachActiveObjects ()
 
virtual ErrorCode removeObject (CBagObject *pRObj)
 
virtual ErrorCode deactivateLocalObject (CBagObject *pObj)
 
virtual ErrorCode deactivateLocalObject (const CBofString &sName)
 
virtual ErrorCode detachActiveObjects ()
 
virtual void setHelpFilename (const CBofString &)
 
const CBofStringgetName () const
 
void setName (const CBofString &str)
 
void setFilterId (uint16 nId)
 
uint16 getFilterId () const
 
void setFadeId (uint16 nId)
 
uint16 getFadeId () const
 
const CBofStringgetPrevSDev () const
 
const CBofPoint getPrevLoc () const
 
void setPrevSDev (const CBofString &str)
 
bool getCloseOnOpen () const
 
void setCloseOnOpen (bool bVal)
 
uint16 getExitOnEdge () const
 
void setExitOnEdge (uint16 nVal)
 
CBagObjectgetLActiveObject () const
 
ErrorCode setLActiveObject (CBagObject *pObj)
 
virtual ErrorCode onLActiveObject (uint32, CBofPoint *, void *=nullptr)
 
MouseActivity getLActivity () const
 
void setLActivity (MouseActivity ma)
 
ErrorCode paintStorageDevice (CBofWindow *pWnd, CBofBitmap *pBmp=nullptr, CBofRect *=nullptr)
 
virtual void setAssociateWnd (CBofWindow *pWnd)
 
virtual CBofWindowgetAssociateWnd ()
 
ParseCodes setInfo (CBagIfstream &fpInput) override
 
const CBofStringgetBackgroundName () const
 
ErrorCode attach () override
 
ErrorCode detach () override
 
virtual ErrorCode close ()
 
virtual ErrorCode loadObjects ()
 
virtual ErrorCode releaseObjects ()
 
virtual ErrorCode noObjectsUnderMouse ()
 
virtual const CBofPoint devPtToViewPort (const CBofPoint &xPoint)
 
virtual const CBofPoint viewPortToDevPt (const CBofPoint &xPoint)
 
virtual ErrorCode loadFile (const CBofString &sWldName)
 
virtual ErrorCode loadFileFromStream (CBagIfstream &fpInput, const CBofString &sWldName, bool bAttach=true)
 
virtual void onMouseMove (uint32, CBofPoint *, void *=nullptr)
 
virtual ErrorCode onMouseOver (uint32, CBofPoint *, void *=nullptr)
 
virtual void onLButtonDown (uint32, CBofPoint *, void *=nullptr)
 
virtual void onLButtonUp (uint32, CBofPoint *, void *=nullptr)
 
virtual ErrorCode onCursorUpdate (int)
 
virtual CBagObjectonNewBitmapObject (const CBofString &sInit)
 
virtual CBagObjectonNewTextObject (const CBofString &sInit)
 
virtual CBagObjectonNewLinkObject (const CBofString &sInit)
 
virtual CBagObjectonNewRPObject (const CBofString &sInit)
 
virtual CBagObjectonNewEDObject (const CBofString &sInit)
 
virtual CBagObjectonNewDosObject (const CBofString &sInit)
 
virtual CBagObjectonNewSoundObject (const CBofString &sInit)
 
virtual CBagObjectonNewButtonObject (const CBofString &sInit)
 
virtual CBagObjectonNewCharacterObject (const CBofString &sInit)
 
virtual CBagObjectonNewMovieObject (const CBofString &)
 
virtual CBagObjectonNewCommandObject (const CBofString &sInit)
 
virtual CBagObjectonNewAreaObject (const CBofString &sInit)
 
virtual CBagObjectonNewExpressionObject (const CBofString &sInit)
 
virtual CBagObjectonNewVariableObject (const CBofString &sInit)
 
virtual CBagObjectonNewUserObject (const CBofString &sInit)
 
virtual CBagObjectonNewThingObject (const CBofString &sInit)
 
virtual CBofPoint arrangeFloater (CBofPoint &nPos, CBagObject *pObj)
 
int getNumFloatPages () const
 
void setNumFloatPages (int nFloatPages)
 
void onSetFilter (bool(*filterFunction)(uint16 nFilterId, CBofBitmap *, CBofRect *))
 
FilterFunction getFilter ()
 
bool isFiltered () const
 
- Public Member Functions inherited from Bagel::CBagParseObject
virtual bool isAttached ()
 
int getStringFromStream (CBagIfstream &istr, CBofString &sStr, const CBofString &sEndChars, bool bPutBack=false)
 
int getAlphaNumFromStream (CBagIfstream &istr, CBofString &sStr)
 
int getOperStrFromStream (CBagIfstream &istr, CBofString &sStr)
 
int getIntFromStream (CBagIfstream &istr, int &nNum)
 
int getRectFromStream (CBagIfstream &istr, CBofRect &rect)
 
int getKeywordFromStream (CBagIfstream &istr, KEYWORDS &keyword)
 
int putbackStringOnStream (CBagIfstream &istr, const CBofString &sStr)
 
int parseAlertBox (CBagIfstream &istr, const char *sTitle, const char *sFile, int nLine)
 

Static Public Member Functions

static void initialize ()
 
static bool removeUniversalObjectList ()
 
static bool setUniversalObjectList (CBofList< CBagObject *> *pObjList)
 
static CBofList< CBagObject * > * getUniversalObjectList ()
 
- Static Public Member Functions inherited from Bagel::CBagStorageDev
static void initialize ()
 
static void shutdown ()
 
static CBofPointgetLastCursorLocation ()
 
static void setDirtyAllObjects (bool b)
 
static bool getDirtyAllObjects ()
 
static void setPreFiltered (bool b=true)
 
static bool getPreFiltered ()
 
static bool preFilterPan ()
 
static void setPreFilterPan (bool b=true)
 
- Static Public Member Functions inherited from Bagel::CBagParseObject
static void initialize ()
 

Additional Inherited Members

- Public Types inherited from Bagel::CBagStorageDev
enum  MouseActivity { kMouseNONE = 0x0000, kMouseDRAGGING = 0x0001 }
 
- Public Types inherited from Bagel::CBagParseObject
enum  KEYWORDS {
  UNKNOWN = 0, STORAGEDEV, START_WLD, VARIABLE,
  REMARK, DISKID, CURSOR, SHAREDPAL,
  DISKAUDIO, PDASTATE, SYSSCREEN, WIELDCURSOR
}
 
- Protected Attributes inherited from Bagel::CBagStorageDev
uint16 _xSDevType
 
FilterFunction _pBitmapFilter
 
bool _bForeignList: true
 
bool _bCloseOnOpen: true
 
bool _bCloseup: true
 
bool _bCIC: true
 
bool _bCustom: true
 
bool _bFirstPaint: true
 
int _nFloatPages
 
- Static Protected Attributes inherited from Bagel::CBagStorageDev
static CBofPoint_xCursorLocation
 
static CBofRectgRepaintRect
 
static bool _bHandledUpEvent
 
static bool _hidePdaFl
 
static bool _bPanPreFiltered
 
static bool _bDirtyAllObjects
 
static bool _bPreFilter
 

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