AICursorSnap.h File Reference
#include "AITypes.h"
#include "AIDocumentView.h"
#include "AITool.h"
#include "AIHeaderBegin.h"
#include "AIHeaderEnd.h"
Go to the source code of this file.
Detailed Description
Define Documentation
#define kAICursorSnapSuite "AI Cursor Snap Suite" |
#define kAICursorSnapSuiteVersion kAICursorSnapSuiteVersion16 |
#define kAICursorSnapSuiteVersion16 AIAPI_VERSION(16) |
#define kAICursorSnapVersion kAICursorSnapSuiteVersion |
#define kDrawCustomAnnotations (1<<1L) |
#define kShiftConstraint (1<<0L) |
Typedef Documentation
Function pointer type to retrieve details of custom annotations to be drawn (if kDrawCustomAnnotations flag is set).
The function pointer is set in AICursorConstraint struct during constraint addition. When the custom constraint is hit and annotations are ready to be drawn, the callback is invoked.
- Parameters:
-
| inId | ConstraintId of the custom constraint hit |
| inSnappedPt | The point we snapped to |
| outNumberOfLines | Number Of Annotation Lines to be drawn (To be Filled by the callback) |
| outAnnotationLines | An array of custom annotation lines to be drawn (To be Filled by the callback) The calling function is responsible to destroy the array of points. |
Enumeration Type Documentation
Kinds of custom constraints for AICursorSnapSuite
.
- Enumerator:
kPointConstraint |
Single point.
|
kLinearConstraintAbs |
A line whose angle is relative to the page coordinates.
|
kLinearConstraintRel |
A line whose angle is relative to the constraint angle.
|