#include <sttool.h>


Public Member Functions | |
| a2dDrawTextTool (a2dStToolContr *controller) | |
| bool | ZoomSave () |
| Is Zooming while the tool is busy Save. | |
| void | SetLineSpacing (double linespace) |
| line spacing for text object | |
| void | SetFont (const a2dFont &font) |
| font to use | |
| const a2dFont & | GetFont () |
| return used font | |
| void | SetNextLineDirection (bool up) |
| next line up or down | |
Static Public Attributes | |
| static const a2dCommandId | COMID_PushTool_DrawText |
| push this tool on the tools stack | |
| static a2dPropertyIdFont * | PROPID_Font = NULL |
Protected Member Functions | |
| const a2dFont & | MX_GetFont () const |
| void | MX_SetFont (const a2dFont &value) |
| void | OnMouseEvent (wxMouseEvent &event) |
| called on mouse events | |
Protected Attributes | |
| a2dFont | m_font |
| used font | |
| double | m_linespace |
| line spacing for text object | |
| int | m_caret |
| where is the cursor. | |
| bool | m_up |
| next line up or down | |
Home & End (goto begin or end of line)
control + Home & End (goto begin or end of text object)
altdown + Cursor keys to shift text object
controldown + Cursor keys (default canvas behaviour)
Definition at line 1938 of file sttool.h.
| bool a2dDrawTextTool::ZoomSave | ( | ) | [inline, virtual] |
Is Zooming while the tool is busy Save.
If so, the active tool will redraw itself in the new Mapping state
Implements a2dBaseTool.