diff options
author | Matthew Hoops | 2011-09-10 10:41:36 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-09-10 10:41:36 -0400 |
commit | d3fde69770b5a3065fa3ae1da76e443d6d185147 (patch) | |
tree | 5edfdac7b308989fcf3283bef54a50f62615f13c /engines/pegasus/graphics.h | |
parent | bbda19ab8033d67d2f2ea72e2ddb9a0b925fa0ac (diff) | |
download | scummvm-rg350-d3fde69770b5a3065fa3ae1da76e443d6d185147.tar.gz scummvm-rg350-d3fde69770b5a3065fa3ae1da76e443d6d185147.tar.bz2 scummvm-rg350-d3fde69770b5a3065fa3ae1da76e443d6d185147.zip |
PEGASUS: Implement two of the primitive-based DisplayElements
Diffstat (limited to 'engines/pegasus/graphics.h')
-rw-r--r-- | engines/pegasus/graphics.h | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/engines/pegasus/graphics.h b/engines/pegasus/graphics.h index 6778adb323..d8919e5b5c 100644 --- a/engines/pegasus/graphics.h +++ b/engines/pegasus/graphics.h @@ -37,51 +37,6 @@ namespace Pegasus { -class DisplayElement : public IDObject { -friend class GraphicsManager; -public: - DisplayElement(const tDisplayElementID); - virtual ~DisplayElement(); - - void setDisplayOrder(const tDisplayOrder); - tDisplayOrder getDisplayOrder() const { return _elementOrder; } - - bool validToDraw(tDisplayOrder, tDisplayOrder); - - virtual void draw(const Common::Rect&) {} - bool isDisplaying() { return _elementIsDisplaying; } - virtual void startDisplaying(); - virtual void stopDisplaying(); - - virtual void show(); - virtual void hide(); - bool isVisible() { return _elementIsVisible; } - - // triggerRedraw only triggers a draw if the element is displaying and visible. - void triggerRedraw(); - void setTriggeredElement(DisplayElement *); - - virtual void setBounds(const tCoordType, const tCoordType, const tCoordType, const tCoordType); - virtual void setBounds(const Common::Rect&); - virtual void getBounds(Common::Rect&) const; - virtual void sizeElement(const tCoordType, const tCoordType); - virtual void moveElementTo(const tCoordType, const tCoordType); - virtual void moveElement(const tCoordType, const tCoordType); - virtual void getLocation(tCoordType&, tCoordType&) const; - virtual void getCenter(tCoordType&, tCoordType&) const; - virtual void centerElementAt(const tCoordType, const tCoordType); - -protected: - Common::Rect _bounds; - bool _elementIsVisible; - DisplayElement *_triggeredElement; - - // Used only by PegasusEngine - bool _elementIsDisplaying; - tDisplayOrder _elementOrder; - DisplayElement *_nextElement; -}; - enum { kImageCacheSize = 10 }; @@ -92,6 +47,7 @@ struct ImageCache { uint32 lastUsed; }; +class DisplayElement; class PegasusEngine; class GraphicsManager { |