mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-11 09:40:42 +00:00
Add some comments to EditorPreRender and EditorDecorator classes.
This commit is contained in:
parent
2c296d65cb
commit
344d0d5ea0
@ -28,6 +28,9 @@ class EditorDecorator;
|
|||||||
class Graphics;
|
class Graphics;
|
||||||
class Image;
|
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
|
class EditorPreRender
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -45,6 +48,9 @@ public:
|
|||||||
virtual void drawLine(int x1, int y1, int x2, int y2, int screenColor) = 0;
|
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
|
class EditorDecorator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user