TextCmd Class Reference

#include <draw.h>

Inheritance diagram for TextCmd:

SlowUndoSelectCmd Cmd List of all members.

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

Detailed Description

Text command class. Design pattern command.

Definition at line 304 of file draw.h.


Constructor & Destructor Documentation

TextCmd::TextCmd ( FrameBuffer pFB,
DrawContext  dc,
Point  position,
const char *  szText 
)

Construct text command.

Parameters:
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.

Parameters:
pFB Pointer to frame buffer to work with.
args Data to import -- previously returned by TextCmd::args() method.


Member Function Documentation

virtual void TextCmd::exec (  )  [virtual]

Command execution. This should save undo informations.

Reimplemented from SlowUndoSelectCmd.

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]

Command export to text string. Needed for macro saving.

Implements SlowUndoSelectCmd.


Member Data Documentation

const char* const TextCmd::szCmdName [static]

Command id string.

Definition at line 333 of file draw.h.

Referenced by name().


The documentation for this class was generated from the following file:
Generated on Wed Aug 29 00:01:04 2007 for GED 2006 by  doxygen 1.5.2