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

Public Member Functions | |
| TextCmd (FrameBuffer *pFB, DrawContext dc, Point position, const char *szText) | |
| 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. | |
| TextCmd (FrameBuffer *pFB, const std::string &args) | |
Static Public Attributes | |
| static const char *const | szCmdName |
| Command id string. | |
Classes | |
| class | ErrFreeType |
Definition at line 304 of file draw.h.
| TextCmd::TextCmd | ( | FrameBuffer * | pFB, | |
| DrawContext | dc, | |||
| Point | position, | |||
| const char * | szText | |||
| ) |
Construct text command.
| pFB | Pointer to framebuffer to work with. | |
| position | Left-bottom corner of text. | |
| dc | Current draw context. | |
| szText | Text string to draw. |
| TextCmd::TextCmd | ( | FrameBuffer * | pFB, | |
| const std::string & | args | |||
| ) |
Import text command.
| pFB | Pointer to frame buffer to work with. | |
| args | Data to import -- previously returned by TextCmd::args() method. |
| virtual void TextCmd::exec | ( | ) | [virtual] |
| virtual std::string TextCmd::name | ( | ) | [inline, virtual] |
Command identification. This will appear in config file.
Implements SlowUndoSelectCmd.
Definition at line 316 of file draw.h.
References szCmdName.
| virtual std::string TextCmd::args | ( | ) | [virtual] |
const char* const TextCmd::szCmdName [static] |
1.5.2