ScummVM API documentation
Bagel::SpaceBar::SBarVidWnd Class Reference
Inheritance diagram for Bagel::SpaceBar::SBarVidWnd:
Bagel::SpaceBar::CMainWindow Bagel::CBagPanWindow Bagel::CBagStorageDevWnd Bagel::CBofWindow Bagel::CBagStorageDev Bagel::CLList Bagel::CBofObject Bagel::CBofError Bagel::CBagParseObject

Public Member Functions

void setPlayMode (int nMode)
 
void setInc (double fDiff)
 
bool hasDisc ()
 
int getFrame (double fTime, int nUseDisc)
 
ErrorCode attach () override
 
ErrorCode detach () override
 
ErrorCode onRender (CBofBitmap *pBmp, CBofRect *pRect) override
 
CBagObjectonNewButtonObject (const CBofString &sInit) override
 
- Public Member Functions inherited from Bagel::SpaceBar::CMainWindow
CBagMenugetMenuPtr ()
 
CBofPalettegetPalPtr ()
 
void setPalPtr (CBofPalette *pal)
 
GameMode gameMode ()
 
void setMode (GameMode mode)
 
ErrorCode setloadFilePos (CBofPoint dstLoc) override
 
CBagObjectonNewLinkObject (const CBofString &sInit) override
 
void correctZzazzlePoint (CBofPoint *p)
 
ErrorCode onCursorUpdate (int nCurrObj) override
 
void onClose () override
 
void onSize (uint32 nType, int cx, int cy) override
 
void onKeyHit (uint32 lKey, uint32 lRepCount) override
 
void onLButtonUp (uint32 nFlags, CBofPoint *xPoint, void *=nullptr) override
 
void onLButtonDown (uint32 nFlags, CBofPoint *xPoint, void *=nullptr) override
 
void onMouseMove (uint32 nFlags, CBofPoint *p, void *=nullptr) override
 
- Public Member Functions inherited from Bagel::CBagPanWindow
ErrorCode attachActiveObjects () override
 
ErrorCode onRender (CBofBitmap *pBmp, CRect *pRect=nullptr) override
 
ErrorCode runModal (CBagObject *pObj) override
 
ErrorCode insertFGObjects (CBagObject *pBmp)
 
void deleteFGObjects ()
 
CBagObjectgetFGObjects (const CBofString &sObjName)
 
CBofPalettesetSlideBitmap (const CBofString &xSlideBmp, const CRect &xSlideRect=CRect(0, 0, 0, 0))
 
CBofRect unSetSlideBitmap ()
 
uint32 rotateTo (CPoint &xPoint, int nRate=8)
 
void activateView ()
 
void deActivateView ()
 
void enable () override
 
void disable () override
 
ErrorCode paintObjects (CBofList< CBagObject *> *list, CBofBitmap *pBmp, CRect &viewOffsetRect, CBofList< CRect > *=nullptr, bool tempVar=true) override
 
const CBofPoint devPtToViewPort (const CBofPoint &xPoint) override
 
const CBofPoint viewPortToDevPt (const CBofPoint &xPoint) override
 
void setViewPortSize (const CSize &xViewSize)
 
const CRect getViewPort ()
 
const CSize getViewPortSize ()
 
CBagPanBitmapgetSlideBitmap () const
 
void setViewPortPos (const CPoint &pos)
 
const CPoint getViewPortPos ()
 
const CRect getMaxView ()
 
void setMovementRect (const CRect &rect)
 
const CRect & getMovementRect ()
 
void setPaintToBackdrop (const bool bPaint)
 
bool getStretchToScreen ()
 
bool setStretchToScreen (bool val=true)
 
int getCorrection ()
 
void setCorrection (int nCorr)
 
double getFOV ()
 
void setFOV (double fov)
 
CBofPalettegetPalette ()
 
uint32 benchmark ()
 
void OnWindowPosChanging (WindowPos *lpwndpos)
 
bool deactivatePDA ()
 
bool activatePDA ()
 
void waitForPDA ()
 
- Public Member Functions inherited from Bagel::CBagStorageDevWnd
ErrorCode close () override
 
void onTimer (uint32 nEventID) override
 
void setOnUpdate (bool bVal=true)
 
bool getOnUpdate () const
 
virtual ErrorCode paintScreen (CBofRect *pRect=nullptr)
 
virtual ErrorCode paintObjects (CBofList< CBagObject *> *list, CBofBitmap *pBmp, CBofRect &viewOffsetRect, CBofList< CBofRect > *=nullptr, bool tempVar=true)
 
virtual CBofRect getLocation ()
 
ErrorCode setBackground (CBofBitmap *pBmp) override
 
CBofBitmapgetBackground () override
 
virtual CBofBitmapgetWorkBmp ()
 
ErrorCode loadFile (const CBofString &sFile) override
 
virtual const CBofStringgetHelpFilename ()
 
void setHelpFilename (const CBofString &s) override
 
void onPaint (CBofRect *) override
 
void onMainLoop () override
 
- Public Member Functions inherited from Bagel::CBofWindow
 CBofWindow ()
 
 CBofWindow (const char *pszName, int x, int y, int nWidth, int nHeight, CBofWindow *pParent)
 
virtual ~CBofWindow ()
 
virtual ErrorCode create (const char *pszName, int x, int y, int nWidth, int nHeight, CBofWindow *pParent, uint32 nControlID=0)
 
virtual ErrorCode create (const char *pszName, CBofRect *pRect, CBofWindow *pParent, uint32 nControlID=0)
 
virtual void destroy ()
 
virtual void destroyWindow ()
 
void show ()
 
void select ()
 
void hide ()
 
void center ()
 
void move (int x, int y, bool bRepaint=false)
 
void reSize (CBofRect *pRect, bool bRepaint=false)
 
void postMessage (uint32 nMessage, uint32 lParam1, uint32 lParam2)
 
void postUserMessage (uint32 lMessage, uint32 lExtraInfo)
 
void setTimer (uint32 nID, uint32 nInterval, BofCallback pCallBack=nullptr)
 
void killTimer (uint32 nID)
 
void killMyTimers ()
 
CBofWindowgetParent () const
 
void validateAnscestors (CBofRect *pRect=nullptr)
 
void setActive ()
 
CBofRect getWindowRect () const
 
CBofRect getClientRect ()
 
CBofRect getRect () const
 
int width () const
 
int height () const
 
void screenToClient (CBofPoint *pPoint)
 
void selectPalette (CBofPalette *pPal)
 
ErrorCode setBackdrop (CBofBitmap *pNewBitmap, bool bRefresh=false)
 
ErrorCode setBackdrop (const char *pszFileName, bool bRefresh=false)
 
void clearBackdrop ()
 
CBofBitmapgetBackdrop () const
 
bool hasBackdrop () const
 
void killBackdrop ()
 
ErrorCode paintBackdrop (CBofRect *pRect=nullptr, int nTransparentColor=-1)
 
void setControlID (uint32 nID)
 
uint32 getControlID () const
 
void setBkColor (RGBCOLOR cColor)
 
RGBCOLOR getBkColor () const
 
void setFgColor (RGBCOLOR cColor)
 
RGBCOLOR getFgColor () const
 
void setPrevMouseDown (CBofPoint p)
 
CBofPoint getPrevMouseDown () const
 
void setCapture ()
 
void releaseCapture ()
 
bool hasCapture () const
 
void setFocus ()
 
void releaseFocus ()
 
bool hasFocus () const
 
void flushAllMessages ()
 
void validateRect (const CBofRect *pRect)
 
void invalidateRect (const CBofRect *pRect)
 
virtual void onBofButton (CBofObject *pButton, int nExtraInfo)
 
virtual void onBofScrollBar (CBofObject *pButton, int nNewPos)
 
virtual void onBofListBox (CBofObject *pListBox, int nItemIndex)
 
virtual void onSoundNotify (CBofObject *pObject, uint32 lParam2)
 
virtual void onMovieNotify (uint32 lParam1, uint32 lParam2)
 
virtual void onMCINotify (uint32 wParam, uint32 lParam)
 
virtual void handleEvent (const Common::Event &event)
 
Graphics::ManagedSurfacegetSurface ()
 
bool isCreated () const
 
bool isVisible () const
 
bool isEnabled () const
 
void updateWindow ()
 
void setParent (CBofWindow *parent)
 
void handleEvents ()
 
void fillWindow (byte iColor)
 
void fillRect (CBofRect *pRect, byte iColor)
 
ErrorCode paintBeveledText (CBofRect *rect, const CBofString &string, int size, int weight, RGBCOLOR color, int justify, uint32 format)
 
- Public Member Functions inherited from Bagel::CLList
 CLList ()
 
 CLList (void *pObj)
 
virtual ~CLList ()
 
void Insert (CLList *pNewList)
 
void Delete ()
 
void addToHead (CLList *pNewList)
 
void addToTail (CLList *pNewList)
 
void MoveToHead ()
 
void MoveToTail ()
 
void MoveLeft ()
 
void MoveRight ()
 
CLListgetHead ()
 
CLListgetTail ()
 
CLListgetPrev () const
 
CLListgetNext () const
 
void * getData () const
 
void PutData (void *pObj)
 
void FlushList ()
 
- Public Member Functions inherited from Bagel::CBofError
void reportError (ErrorCode errCode, const char *format,...)
 
bool errorOccurred () const
 
ErrorCode getErrorCode () const
 
void clearError ()
 
- 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
 
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 removeObject (CBagObject *pRObj)
 
virtual ErrorCode deactivateLocalObject (CBagObject *pObj)
 
virtual ErrorCode deactivateLocalObject (const CBofString &sName)
 
virtual ErrorCode detachActiveObjects ()
 
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
 
virtual ErrorCode loadObjects ()
 
virtual ErrorCode releaseObjects ()
 
virtual ErrorCode noObjectsUnderMouse ()
 
virtual ErrorCode loadFileFromStream (CBagIfstream &fpInput, const CBofString &sWldName, bool bAttach=true)
 
virtual ErrorCode onMouseOver (uint32, CBofPoint *, void *=nullptr)
 
virtual CBagObjectonNewSpriteObject (const CBofString &sInit)
 
virtual CBagObjectonNewBitmapObject (const CBofString &sInit)
 
virtual CBagObjectonNewTextObject (const CBofString &sInit)
 
virtual CBagObjectonNewRPObject (const CBofString &sInit)
 
virtual CBagObjectonNewEDObject (const CBofString &sInit)
 
virtual CBagObjectonNewDosObject (const CBofString &sInit)
 
virtual CBagObjectonNewSoundObject (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)
 

Protected Attributes

CBagCharacterObject_pMovie
 
CBagVar_pTimerVar
 
CBagVar_pPlayingVar
 
CBagVar_pDiscVar
 
double _fTimerDiff
 
double _fTimer
 
int _nStartTime
 
- Protected Attributes inherited from Bagel::CBofWindow
CBofWindow_parent = nullptr
 
Array< CBofWindow * > _children
 
char _szTitle [64] = { 0 }
 
CBofRect _cWindowRect
 
CBofRect _cRect
 
CBofBitmap_pBackdrop = nullptr
 
uint32 _nID = 0
 
RGBCOLOR _cBkColor = RGB(255, 255, 255)
 
RGBCOLOR _cFgColor = RGB(0, 0, 0)
 
bool _bCaptured = false
 
Graphics::ManagedSurface_surface = nullptr
 
CBofPoint _cPrevMouseDown
 
- Protected Attributes inherited from Bagel::CLList
CLList_pPrev
 
CLList_pNext
 
void * _pData
 
- Protected Attributes inherited from Bagel::CBofError
ErrorCode _errCode
 
- 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
 

Additional Inherited Members

- Public Types inherited from Bagel::SpaceBar::CMainWindow
enum  GameMode { VRPLAYMODE, VRBUILDMODE, VRPANMODE }
 
- 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
}
 
- Static Public Member Functions inherited from Bagel::SpaceBar::CMainWindow
static void initialize ()
 
static void shutdown ()
 
static void setZzazzlVision (bool newValue)
 
static CBofRectgetFilterRect ()
 
static CBofRectsetFilterRect (CBofRect &newValue)
 
- Static Public Member Functions inherited from Bagel::CBagPanWindow
static void initialize ()
 
static void setPanSpeed (int nSpeed)
 
static int getPanSpeed ()
 
static int getRealCorrection ()
 
static void setRealCorrection (int n)
 
static void flushInputEvents ()
 
- Static Public Member Functions inherited from Bagel::CBagStorageDevWnd
static void initialize ()
 
- Static Public Member Functions inherited from Bagel::CBofWindow
static ErrorCode initialize ()
 
static ErrorCode shutdown ()
 
static Common::Point getMousePos ()
 
static CBofWindowgetActiveWindow ()
 
static CBofWindowgetWindowList ()
 
- Static Public Member Functions inherited from Bagel::CBofObject
static bool isValidObject (const CBofObject *pObject)
 
- Static Public Member Functions inherited from Bagel::CBofError
static void fatalError (ErrorCode errCode, const char *format,...)
 
static void initialize ()
 
static int getErrorCount ()
 
- 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 ()
 
- Public Attributes inherited from Bagel::SpaceBar::CMainWindow
enum Bagel::SpaceBar::CMainWindow::GameMode _nGameMode
 
- Static Public Attributes inherited from Bagel::SpaceBar::CMainWindow
static SBarThud_pThudBmp
 
static bool chipdisp
 
static int pause
 
- Static Public Attributes inherited from Bagel::CBagPanWindow
static CBagWield_pWieldBmp
 
static CBagPDA_pPDABmp
 
- Static Public Attributes inherited from Bagel::CBagStorageDevWnd
static CBagEventSDev_pEvtSDev
 
- Protected Member Functions inherited from Bagel::CBagStorageDevWnd
virtual ErrorCode setWorkBmp ()
 
virtual ErrorCode killWorkBmp ()
 
- Protected Member Functions inherited from Bagel::CBofWindow
void checkTimers ()
 
virtual void onLButtonDblClk (uint32 nFlags, CBofPoint *pPoint)
 
virtual void onRButtonDown (uint32 nFlags, CBofPoint *pPoint)
 
virtual void onRButtonUp (uint32 nFlags, CBofPoint *pPoint)
 
virtual void onRButtonDblClk (uint32 nFlags, CBofPoint *pPoint)
 
virtual void onReSize (CBofSize *pSize)
 
virtual void onUserMessage (uint32 nMessage, uint32 lParam)
 
virtual void onActivate ()
 
virtual void onDeActivate ()
 
- Protected Member Functions inherited from Bagel::CBofError
virtual void bofMessageBox (const Common::String &content, const Common::String &title)
 
- Static Protected Attributes inherited from Bagel::CBofWindow
static CBofWindow_pWindowList
 
static CBofWindow_pActiveWindow
 
static CBofTimerPacket_pTimerList
 
static int _mouseX
 
static int _mouseY
 
- Static Protected Attributes inherited from Bagel::CBofError
static int _count
 
- 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: