From d3fde69770b5a3065fa3ae1da76e443d6d185147 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sat, 10 Sep 2011 10:41:36 -0400 Subject: PEGASUS: Implement two of the primitive-based DisplayElements --- engines/pegasus/graphics.h | 46 +--------------------------------------------- 1 file changed, 1 insertion(+), 45 deletions(-) (limited to 'engines/pegasus/graphics.h') 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 { -- cgit v1.2.3