![]() |
Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
|
Acts as a receiver for specific notifications, passing them along to caller-supplied callbacks. More...
#include <hdicoreNotifier.h>
Public Member Functions | |
Notifier () | |
Constructs an empty Notifier object. | |
Notifier (const Notifier &n_) | |
Constructs a new Notifier object from an existing Notifier object (copy constructor) | |
Notifier (const NotifierType type_, const Callback &responder_) | |
Constructs a Notifier object to fire a responder (target and action) when Illustrator sends a notification. | |
virtual | ~Notifier () |
Destructs a Notifier object, deactivating it first. | |
virtual Notifier & | operator= (const Notifier &rhs_) |
Assigns one Notifier object to another. | |
virtual bool | operator== (const Notifier &rhs_) const |
Tests whether a given Notifier object is the same as another. | |
virtual bool | operator!= (const Notifier &rhs_) const |
Tests whether a given Notifier object is not the same as another. | |
virtual bool | isEmpty () const |
Gets whether the target Notifier object is empty (constructed with the default ctor) | |
virtual NotifierType | type () const |
Gets the type of the notifier. | |
virtual bool | active () const |
Gets whether the notifier is active. | |
virtual void | setActive (const bool active_) |
Sets whether the notifier is active. | |
virtual void | activate () const |
Activates (enables) the notifier. | |
virtual void | deactivate () const |
Deactivates (disables) the notifier. | |
virtual Callback *const | callback () const |
Gets the registered callback for the notifier. | |
virtual void | setCallback (const Callback &cb_) |
Sets the callback for the notifier. | |
Acts as a receiver for specific notifications, passing them along to caller-supplied callbacks.
hdi::core::Notifier::Notifier | ( | ) |
Constructs an empty Notifier object.
hdi::core::Notifier::Notifier | ( | const Notifier & | n_ | ) |
hdi::core::Notifier::Notifier | ( | const NotifierType | type_, |
const Callback & | responder_ | ||
) |
Constructs a Notifier object to fire a responder (target and action) when Illustrator sends a notification.
type_ | Type of notifier |
responder_ | Target and action to fire |
|
virtual |
Destructs a Notifier object, deactivating it first.
|
virtual |
Activates (enables) the notifier.
|
virtual |
Gets whether the notifier is active.
|
virtual |
Gets the registered callback for the notifier.
|
virtual |
Deactivates (disables) the notifier.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets whether the notifier is active.
active_ | true to enable the notifier, false to disable |
|
virtual |
Sets the callback for the notifier.
cb_ | New callback to be performed when the notifier fires |
|
virtual |