From 344d0d5ea07895c291b77a925e280f099ff33869 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 6 Nov 2011 15:29:38 -0300 Subject: [PATCH] Add some comments to EditorPreRender and EditorDecorator classes. --- src/widgets/editor/editor_decorator.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/widgets/editor/editor_decorator.h b/src/widgets/editor/editor_decorator.h index 0e153e00b..4d32493e9 100644 --- a/src/widgets/editor/editor_decorator.h +++ b/src/widgets/editor/editor_decorator.h @@ -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: