Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreMain.h
Go to the documentation of this file.
1
6
7#ifndef __HDI_CORE_MAIN__
8#define __HDI_CORE_MAIN__
9
10#include "hdicoreTypes.h"
11
12namespace hdi
13{
14 namespace core
15 {
16 class Plugin;
17
30 extern void pluginLoaded();
31
50 extern bool pluginSetup(Plugin* const plugin_);
51
64 extern void pluginDestroy(Plugin* const plugin_);
65 }
66}
67
68
69
70#if defined(MAC_ENV)
71 #define __HDI_CORE_EXPORT __attribute__((visibility ("default")))
72#elif defined(WIN_ENV)
73 #define __HDI_CORE_EXPORT __declspec(dllexport)
74#endif
75
76#if defined(MAC_ENV)
77 #pragma GCC visibility push(default)
78
79 extern "C" __attribute__((constructor)) void hdicoreDylibLoaded();
80 extern "C" __attribute__((destructor)) void hdicoreDylibUnloading();
81
82 #pragma GCC visibility pop
83#endif
84
85#if defined(HDI_CORE_AIP_MODE)
99 extern "C" __HDI_CORE_EXPORT __MainError PluginMain(const char* caller_, const char* selector_, void* data_);
100#endif
101// HDI_CORE_AIP_MODE
102
103#if defined(HDI_CORE_PSP_MODE)
117 extern "C" __HDI_CORE_EXPORT __MainError ActionsPluginMain(const char* caller_, const char* selector_, void* data_);
118
125 extern "C" __HDI_CORE_EXPORT void AcquirePluginMain(
126 const int16_t selector_,
127 void* /* AcquireRecordPtr */ pb_,
128 intptr_t* data__,
129 int16_t* result__
130 );
131
138 extern "C" __HDI_CORE_EXPORT void ExportPluginMain(
139 const int16_t selector_,
140 void* /* ExportRecordPtr */ pb_,
141 intptr_t* data__,
142 int16_t* result__
143 );
144
151 extern "C" __HDI_CORE_EXPORT void ExtensionPluginMain(
152 const int16_t selector_,
153 void* /* unknown */ pb_,
154 intptr_t* data__,
155 int16_t* result__
156 );
157
164 extern "C" __HDI_CORE_EXPORT void FilterPluginMain(
165 const int16_t selector_,
166 void* /* FilterRecordPtr */ pb_,
167 intptr_t* data__,
168 int16_t* result__
169 );
170
177 extern "C" __HDI_CORE_EXPORT void FormatPluginMain(
178 const int16_t selector_,
179 void* /* FormatRecordPtr */ pb_,
180 intptr_t* data__,
181 int16_t* result__
182 );
183
190 extern "C" __HDI_CORE_EXPORT void MeasurementPluginMain(
191 const int16_t selector_,
192 void* /* MeasurementRegisterRecord, MeasurementPrepareRecord, MeasurementRecordRecord, or MeasurementExportRecord */ pb_,
193 intptr_t* data__,
194 int16_t* result__
195 );
196
203 extern "C" __HDI_CORE_EXPORT void PickerPluginMain(
204 const int16_t selector_,
205 void* /* PickerRecordPtr */ pb_,
206 intptr_t* data__,
207 int16_t* result__
208 );
209
216 extern "C" __HDI_CORE_EXPORT void SelectionPluginMain(
217 const int16_t selector_,
218 void* /* SelectionRecordPtr */ pb_,
219 intptr_t* data__,
220 int16_t* result__
221 );
222#endif
223// HDI_CORE_PSP_MODE
224
225#endif
226// __HDI_CORE_MAIN__
Base plugin class; the heart of any plugin project.
Definition hdicorePlugin.h:35
void pluginDestroy(Plugin *const plugin_)
Write this function yourself to receive a call immediately after the Plugin instance has been shutdow...
__HDI_CORE_EXPORT __MainError PluginMain(const char *caller_, const char *selector_, void *data_)
Main entry point for all plugins (required by Illustrator). This is called whenever a plugin should p...
void pluginLoaded()
Write this function yourself to receive a call immediately after your plugin dynamic library is loade...
bool pluginSetup(Plugin *const plugin_)
Write this function yourself to receive a call immediately after the Plugin instance is instantiated ...
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.