Adobe.com
Contents Suites Classes Class Index Member Index

AICursorConstraint Struct Reference

Structure describing a custom constraint for AICursorSnapSuite. More...

#include <AICursorSnap.h>

List of all members.

Public Member Functions

 AICursorConstraint (const ai::int32 inKind, const ai::int32 inFlags, const AIRealPoint &inPoint, const AIReal inAngle, const ai::UnicodeString &inLabel, const CustomAnnotationsCallback inCustomAnnotationsCallback)
 AICursorConstraint ()
 ~AICursorConstraint ()

Public Attributes

ai::int32 kind
 Type of constraint, one of:.
ai::int32 flags
 Flags for the constraint.
AIRealPoint point
 Origin point for the constraint.
AIReal angle
 When kind is kLinearConstraintRel, the angle of the line.
ai::UnicodeString label
 Label for the constraint presented to the user.
CustomAnnotationsCallback getCustomAnnotationDetails
 Callback function registered by client to retrieve details for drawing custom annotations.

Detailed Description

Structure describing a custom constraint for AICursorSnapSuite.


Constructor & Destructor Documentation

AICursorConstraint::AICursorConstraint ( const ai::int32  inKind,
const ai::int32  inFlags,
const AIRealPoint inPoint,
const AIReal  inAngle,
const ai::UnicodeString inLabel,
const CustomAnnotationsCallback  inCustomAnnotationsCallback 
) [inline]
AICursorConstraint::AICursorConstraint (  )  [inline]
AICursorConstraint::~AICursorConstraint (  )  [inline]

Member Data Documentation

When kind is kLinearConstraintRel, the angle of the line.

Flags for the constraint.

The only flag is kShiftConstraint, which means snap to the constraint when the shift key is down.

Callback function registered by client to retrieve details for drawing custom annotations.

Type of constraint, one of:.

  • kPointConstraint: A single point.
  • kLinearConstraintAbs: A line whose angle is relative to the page coordinates.
  • kLinearConstraintRel: A line whose angle is relative to the constraint angle.

Label for the constraint presented to the user.

Keep the maximum size to be 256 bytes

Origin point for the constraint.

Referenced by AICursorConstraint().


The documentation for this struct was generated from the following file:


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2016 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks