#include <draw.h>
Inheritance diagram for BrushCmd:

Public Member Functions | |
| BrushCmd (FrameBuffer *pFB, const DrawContext &dc, bool bBack=false) | |
| void | add (Point p) |
| virtual void | exec () |
| Command execution. This should save undo informations. | |
| virtual std::string | name () |
| Command identification. This will appear in config file. | |
| virtual std::string | args () |
| Command export to text string. Needed for macro saving. | |
| BrushCmd (FrameBuffer *pFB, const std::string &args) | |
Static Public Attributes | |
| static const char *const | szCmdName |
| Command id string. | |
Definition at line 83 of file draw.h.
| BrushCmd::BrushCmd | ( | FrameBuffer * | pFB, | |
| const DrawContext & | dc, | |||
| bool | bBack = false | |||
| ) |
Construct brush command
| pFB | Pointer to frame buffer to work with. | |
| dc | Current draw context. | |
| bBack | Give true to use background brush. (TOOL_RUBBER) |
| BrushCmd::BrushCmd | ( | FrameBuffer * | pFB, | |
| const std::string & | args | |||
| ) |
Import brush command.
| pFB | Pointer to frame buffer to work with. | |
| args | Data to import -- previously returned by BrushCmd::args() method. |
| virtual void BrushCmd::exec | ( | ) | [virtual] |
| virtual std::string BrushCmd::name | ( | ) | [inline, virtual] |
Command identification. This will appear in config file.
Implements SlowUndoSelectCmd.
Definition at line 100 of file draw.h.
References szCmdName.
| virtual std::string BrushCmd::args | ( | ) | [virtual] |
const char* const BrushCmd::szCmdName [static] |
1.5.2