|
TouchVG framework
|
命令接口 更多...
#include <mgcmd.h>

Public 成员函数 | |
| MgCommand (const char *name) | |
| 构造函数,名称最长为30个字符 更多... | |
| virtual | ~MgCommand () |
| const char * | getName () const |
| 返回命令名称 更多... | |
| virtual const MgShape * | getShape (const MgMotion *sender) |
| 当前临时图形 更多... | |
| virtual bool | initializeWithSelection (const MgMotion *sender, MgStorage *s, const int *ids) |
| virtual int | getSelectedIDs (MgView *view, int *ids, int count) |
| virtual void | release ()=0 |
| 销毁对象 更多... | |
| virtual bool | cancel (const MgMotion *sender) |
| 取消命令 更多... | |
| virtual bool | initialize (const MgMotion *sender, MgStorage *s) |
| 开始命令 更多... | |
| virtual bool | backStep (const MgMotion *sender) |
| 回退一步 更多... | |
| virtual bool | draw (const MgMotion *sender, GiGraphics *gs)=0 |
| 显示动态图形 更多... | |
| virtual bool | gatherShapes (const MgMotion *sender, MgShapes *shapes) |
| virtual bool | click (const MgMotion *sender) |
| virtual bool | doubleClick (const MgMotion *sender) |
| 双击 更多... | |
| virtual bool | longPress (const MgMotion *sender) |
| 长按 更多... | |
| virtual bool | touchBegan (const MgMotion *sender) |
| 开始滑动 更多... | |
| virtual bool | touchMoved (const MgMotion *sender) |
| 正在滑动 更多... | |
| virtual bool | touchEnded (const MgMotion *sender) |
| 滑动结束 更多... | |
| virtual bool | mouseHover (const MgMotion *sender) |
| 鼠标掠过 更多... | |
| virtual bool | twoFingersMove (const MgMotion *sender) |
| 双指触摸 更多... | |
| virtual bool | isDrawingCommand () |
| 是否为绘图命令 更多... | |
| virtual bool | isFloatingCommand () |
| 是否可嵌套在其他命令中 更多... | |
| virtual bool | doContextAction (const MgMotion *sender, int action) |
| 执行上下文动作 更多... | |
静态 Public 成员函数 | |
| static float | drawAngleText (const MgMotion *sender, GiGraphics *gs, float angle, void *stdstr=(void *) 0) |
| static float | drawAngleText (MgView *view, GiGraphics *gs, float angle, const Point2d &pt, int align=1, void *stdstr=(void *) 0, GiTextWidthCallback *c=(GiTextWidthCallback *) 0) |
Private 成员函数 | |
| MgCommand () | |
Private 属性 | |
| char | _name [31] |
命令接口