Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Header file for callback-related utilities. More...
Classes | |
class | hdi::core::Callback |
Base class for templated __Callback class. More... | |
class | hdi::core::__Callback< hdiTargetType > |
Class to describe a target object and a method of it, to be called at a later time. More... | |
class | hdi::core::__Dummy |
Just a simple "dummy" class to allow for creation of "empty" callbacks. More... | |
Macros | |
#define | HDI_CORE_CALLBACK_T(__HDI_C__) hdi::core::__Callback<__HDI_C__> |
Inserts a properly templated type name for a Callback of a particular class. | |
#define | HDI_CORE_CALLBACK(__HDI_C__, __HDI_O__, __HDI_M__) hdi::core::__Callback<__HDI_C__>(__HDI_O__, &__HDI_C__::__HDI_M__) |
Creates a properly templated Callback object for firing a particular method of a particular object. | |
#define | HDI_CORE_CALLBACK_NONE HDI_CORE_CALLBACK(hdi::core::__Dummy, NULL, nothing) |
Creates an "empty" callback object for when no callback is desired. | |
Typedefs | |
typedef std::unique_ptr< Callback > | hdi::core::CallbackUP |
typedef std::shared_ptr< Callback > | hdi::core::CallbackSP |
typedef std::weak_ptr< Callback > | hdi::core::CallbackWP |
Header file for callback-related utilities.
#define HDI_CORE_CALLBACK | ( | __HDI_C__, | |
__HDI_O__, | |||
__HDI_M__ | |||
) | hdi::core::__Callback<__HDI_C__>(__HDI_O__, &__HDI_C__::__HDI_M__) |
Creates a properly templated Callback object for firing a particular method of a particular object.
__HDI_C__ | Class name (scope-resolved) of which __HDI_O__ is an instantiation (e.g. myplugin::MyPanel) |
__HDI_O__ | Object pointer that will act as the target for the callback |
__HDI_M__ | Method name that will act as the target's action for the callback |
#define HDI_CORE_CALLBACK_NONE HDI_CORE_CALLBACK(hdi::core::__Dummy, NULL, nothing) |
Creates an "empty" callback object for when no callback is desired.
#define HDI_CORE_CALLBACK_T | ( | __HDI_C__ | ) | hdi::core::__Callback<__HDI_C__> |
Inserts a properly templated type name for a Callback of a particular class.
__HDI_C__ | Class name (scope-resolved) within which a Callback instantiation will call a method |