22 #ifndef NANCY_RENDEROBJECT_H 23 #define NANCY_RENDEROBJECT_H 25 #include "common/path.h" 26 #include "graphics/managed_surface.h" 46 virtual void registerGraphics();
47 virtual void updateGraphics() {}
51 void setVisible(
bool visible);
52 void setTransparent(
bool isTransparent);
53 bool isVisible()
const {
return _isVisible; }
55 bool needsRedraw()
const {
return _needsRedraw; }
56 void setNeedsRedraw(
bool needsRedraw) { _needsRedraw = needsRedraw; }
58 void setHasMoved(
bool hasMoved) { _hasMoved = hasMoved; }
61 void grabPalette(byte *colors, uint paletteStart = 0, uint paletteSize = 256);
62 void setPalette(
const Common::Path &paletteName, uint paletteStart = 0, uint paletteSize = 256);
63 void setPalette(
const byte *colors, uint paletteStart = 0, uint paletteSize = 256);
65 bool hasMoved()
const {
return _previousScreenPosition != _screenPosition; }
66 void updatePreviousScreenPosition() { _previousScreenPosition = _screenPosition; }
69 Common::Rect getScreenPositionRaw()
const {
return _screenPosition; }
78 uint16 getZOrder()
const {
return _z; }
79 void setZOrder(uint16 z) { _z = z; }
84 virtual bool isViewportRelative()
const {
return false; }
97 #endif // NANCY_RENDEROBJECT_H Definition: managed_surface.h:51
T width() const
Definition: rect.h:217
Definition: renderobject.h:36
T height() const
Definition: rect.h:218
Definition: graphics.h:38
Definition: actionmanager.h:32