Add some comments to EditorPreRender and EditorDecorator classes.

This commit is contained in:
David Capello 2011-11-06 15:29:38 -03:00
parent 2c296d65cb
commit 344d0d5ea0

View File

@ -28,6 +28,9 @@ class EditorDecorator;
class Graphics;
class Image;
// EditorPreRender and EditorPostRender are two interfaces used to
// draw elements in the editor's area. They are implemented by the
// editor and used by a EditorDecorator.
class EditorPreRender
{
public:
@ -45,6 +48,9 @@ public:
virtual void drawLine(int x1, int y1, int x2, int y2, int screenColor) = 0;
};
// Used by editor's states to pre- and post-render customized
// decorations depending of the state (e.g. SelectBoxState draws the
// selected bounds/canvas area).
class EditorDecorator
{
public: