153 for (std::list<Drawable *>::iterator it = mDraws.begin(); it != mDraws.end(); ++it) {
154 (*it)->SetShowingRecursive(nShowing);
310 void AcquireDrawsRefs();
313 std::list<Drawable *> mDraws;
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Sink that the engine formats its diagnostic and failure text into.
Definition dbg.h:33
void AddDraw(Drawable *pDraw)
Insert pDraw at the front of mDraws.
static Drawable * Find(const HxStr &name)
Resolve a registry key to a drawable.
void MoveDraw(Drawable *pDraw, int nSteps)
Move pDraw nSteps places later in mDraws, or earlier for a negative count.
virtual void Save(Stream &stream)
Write the revision, the showing flag as one byte, and the draw list.
virtual ~Drawable()
Drop this object's references on its children.
virtual void Copy(const Object *pSource, unsigned nFlags)
Take the showing flag, and with kCopyChildLists the draw list, from another drawable.
void AddDraw(Drawable *pDraw, Drawable *pBefore)
Insert pDraw into mDraws in front of pBefore.
void ReleaseDrawsRefs()
Drop this object's reference on every mDraws entry without emptying the list.
virtual void Replace(Object *pFrom, Object *pTo)
Point every mDraws entry that is pFrom at pTo instead, moving the reference, and drop the entries lef...
virtual int DrawShowing()
Draw this object alone.
std::list< Drawable * > & GetDraws()
Report the child list.
Definition drawable.h:213
virtual void SetShowing(int nShowing)
Set whether this object draws at all.
void RemoveAllDraws()
Empty mDraws, dropping this object's reference on every entry.
virtual void DumpText(Dbg &sink)
Write a description of this object to sink.
Drawable()
Construct a visible drawable with no children.
int GetShowing() const
Report the showing flag.
Definition drawable.h:189
void RemoveDraw(Drawable *pDraw)
Erase pDraw from mDraws.
Drawable * Parent()
Report the drawable that draws this one.
int mShowing
Definition drawable.h:278
virtual void SetHighlight(int nHighlight)
Set whether this object draws with its highlight treatment.
virtual void Load(Stream &stream)
Read what Save() writes, replacing the draw list and moving its references.
void SetShowingRecursive(int nShowing)
Set whether this object and every drawable beneath it in mDraws draw at all.
Definition drawable.h:151
int GetHighlight() const
Report the highlight flag.
Definition drawable.h:176
void Draw()
Draw this object followed by each of its children.
Object()
Construct an unnamed object.
Byte stream that every renderer object serialises itself through.
Definition stream.h:31
The rendering engine.
Definition animhelper.h:3