Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Deals with annotator registration and drawing callbacks. More...
#include <hdicoreAnnotator.h>
Public Types | |
enum | Options { DrawBeforeAllOthers = 1 << 0 , DrawOnInactiveDocuments = 1 << 1 , DontDrawOnInactiveViews = 1 << 2 } |
Options for how an annotator should behave. | |
Public Member Functions | |
Annotator () | |
Constructs an empty Annotator object. | |
Annotator (const Annotator &a_) | |
Constructs a new Annotator object from an existing Annotator object (copy constructor) | |
Annotator (const std::string &name_, const Callback &responder_) | |
Constructs an Annotator object, with a unique name and callback. | |
virtual | ~Annotator () |
Annotator destructor; deactivates the annotator and deletes the registered callback. | |
virtual Annotator & | operator= (const Annotator &rhs_) |
Assigns one Annotator object to another. | |
virtual bool | operator== (const Annotator &rhs_) const |
Tests whether a given Annotator object is the same as another. | |
virtual bool | operator!= (const Annotator &rhs_) const |
Tests whether a given Annotator object is not the same as another. | |
virtual bool | isEmpty () const |
Gets whether the target Annotator object is empty (constructed with the default ctor) | |
virtual void | destroy () |
Destroys the annotator, converting the target object to an empty Annotator object (see the default constructor for more info on empty Annotator objects) | |
virtual AIAnnotatorHandle | aiAnnotatorHandle () const |
Gets the annotator handle around which the target object is wrapped. | |
virtual std::string | name () const |
Gets the annotator's unique name. | |
virtual bool | active () const |
Gets whether the annotator is active. | |
virtual void | setActive (const bool active_) |
Sets whether the annotator is active. | |
virtual void | activate () |
Activates (enables) the annotator. | |
virtual void | deactivate () |
Deactivates (disables) the annotator. | |
virtual Options | options () const |
Gets the options that have been applied to the target annotator. | |
virtual void | setOptions (const Options flags_) |
Sets the options for the target annotator. | |
virtual Callback *const | callback () const |
Gets the registered drawing callback for the annotator. | |
virtual void | setCallback (const Callback &cb_) |
Sets the callback for the annotator. | |
Friends | |
aip::Annotator * | __accessImpl (const Annotator &) |
Deals with annotator registration and drawing callbacks.
hdi::core::Annotator::Annotator | ( | ) |
Constructs an empty Annotator object.
hdi::core::Annotator::Annotator | ( | const Annotator & | a_ | ) |
hdi::core::Annotator::Annotator | ( | const std::string & | name_, |
const Callback & | responder_ | ||
) |
Constructs an Annotator object, with a unique name and callback.
name_ | Unique string to identify the annotator, as UTF-8 |
responder_ | Callback to perform when notified by Illustrator that it's time to annotate |
|
virtual |
Annotator destructor; deactivates the annotator and deletes the registered callback.
|
virtual |
Activates (enables) the annotator.
|
virtual |
Gets whether the annotator is active.
|
virtual |
Gets the annotator handle around which the target object is wrapped.
|
virtual |
Gets the registered drawing callback for the annotator.
|
virtual |
Deactivates (disables) the annotator.
|
virtual |
Destroys the annotator, converting the target object to an empty Annotator object (see the default constructor for more info on empty Annotator objects)
|
virtual |
|
virtual |
Gets the annotator's unique name.
|
virtual |
|
virtual |
|
virtual |
Gets the options that have been applied to the target annotator.
|
virtual |
Sets whether the annotator is active.
active_ | true to enable the annotator, false to disable |
|
virtual |
Sets the callback for the annotator.
cb_ | New callback to be performed when the annotator needs to draw |
|
virtual |
Sets the options for the target annotator.
flags_ | New bitwise OR of annotator options |