| #pragma once |
| |
| #ifndef CONTEXTSTATUS_H |
| #define CONTEXTSTATUS_H |
| |
| |
| |
| |
| |
| #include "tcommon.h" |
| |
| |
| #include "tstroke.h" |
| |
| #include "ext/Types.h" |
| |
| #undef DVAPI |
| #undef DVVAR |
| #ifdef TNZEXT_EXPORTS |
| #define DVAPI DV_EXPORT_API |
| #define DVVAR DV_EXPORT_VAR |
| #else |
| #define DVAPI DV_IMPORT_API |
| #define DVVAR DV_IMPORT_VAR |
| #endif |
| |
| namespace ToonzExt { |
| class StrokeParametricDeformer; |
| |
| |
| |
| |
| |
| struct DVAPI ContextStatus { |
| |
| enum { CTRL = 0x0001, ALT = 0x0002, SHIFT = 0x0004, NONE = 0x0000 }; |
| |
| |
| TStroke *stroke2change_; |
| |
| |
| double w_; |
| |
| |
| double lengthOfAction_; |
| |
| |
| double deformerSensitivity_; |
| |
| |
| double pixelSize_; |
| |
| |
| int cornerSize_; |
| |
| int key_event_; |
| |
| StrokeParametricDeformer *deformer_; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| bool isManual_; |
| |
| ContextStatus(); |
| ~ContextStatus(); |
| |
| |
| ContextStatus(const ContextStatus &); |
| |
| |
| ContextStatus &operator=(const ContextStatus &); |
| |
| void init(); |
| }; |
| |
| } |
| #endif |
| |
| |
| |