ScummVM API documentation
Nancy::RenderObject Class Reference
Inheritance diagram for Nancy::RenderObject:
Nancy::Action::CollisionPuzzle::Piece Nancy::Action::ConversationCel::RenderedCel Nancy::Action::MazeChasePuzzle::Piece Nancy::Action::RenderActionRecord Nancy::Misc::MouseFollowObject Nancy::Misc::SpecialEffect Nancy::State::Map::MapViewport Nancy::UI::AnimatedButton Nancy::UI::Button Nancy::UI::Clock Nancy::UI::FullScreenImage Nancy::UI::InventoryBox Nancy::UI::InventoryBoxOrnaments Nancy::UI::Nancy5Clock Nancy::UI::Scrollbar Nancy::UI::Textbox Nancy::UI::TextboxOrnaments Nancy::UI::Toggle Nancy::UI::Viewport Nancy::UI::ViewportOrnaments

Public Member Functions

 RenderObject (uint16 zOrder)
 
 RenderObject (uint16 zOrder, Graphics::ManagedSurface &surface, const Common::Rect &srcBounds, const Common::Rect &destBounds)
 
virtual void init ()
 
virtual void registerGraphics ()
 
virtual void updateGraphics ()
 
void moveTo (const Common::Point &position)
 
void moveTo (const Common::Rect &bounds)
 
void setVisible (bool visible)
 
void setTransparent (bool isTransparent)
 
bool isVisible () const
 
void grabPalette (byte *colors, uint paletteStart=0, uint paletteSize=256)
 
void setPalette (const Common::Path &paletteName, uint paletteStart=0, uint paletteSize=256)
 
void setPalette (const byte *colors, uint paletteStart=0, uint paletteSize=256)
 
bool hasMoved () const
 
Common::Rect getScreenPosition () const
 
Common::Rect getPreviousScreenPosition () const
 
Common::Rect convertToLocal (const Common::Rect &screen) const
 
Common::Rect convertToScreen (const Common::Rect &rect) const
 
Common::Rect getBounds () const
 
uint16 getZOrder () const
 

Public Attributes

Graphics::ManagedSurface _drawSurface
 

Protected Member Functions

virtual bool isViewportRelative () const
 

Protected Attributes

bool _needsRedraw
 
bool _isVisible
 
bool _hasMoved
 
uint16 _z
 
Common::Rect _previousScreenPosition
 
Common::Rect _screenPosition
 

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