Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreMain.h
Go to the documentation of this file.
1
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)
92 extern "C" __HDI_CORE_EXPORT __MainError PluginMain(const char* caller_, const char* selector_, void* data_);
93#endif
94// HDI_CORE_AIP_MODE
95
96#if defined(HDI_CORE_PSP_MODE)
103 extern "C" __HDI_CORE_EXPORT __MainError ActionsPluginMain(const char* caller_, const char* selector_, void* data_);
104
111 extern "C" __HDI_CORE_EXPORT void AcquirePluginMain(
112 const int16_t selector_,
113 void* /* AcquireRecordPtr */ pb_,
114 intptr_t* data__,
115 int16_t* result__
116 );
117
124 extern "C" __HDI_CORE_EXPORT void ExportPluginMain(
125 const int16_t selector_,
126 void* /* ExportRecordPtr */ pb_,
127 intptr_t* data__,
128 int16_t* result__
129 );
130
137 extern "C" __HDI_CORE_EXPORT void ExtensionPluginMain(
138 const int16_t selector_,
139 void* /* unknown */ pb_,
140 intptr_t* data__,
141 int16_t* result__
142 );
143
150 extern "C" __HDI_CORE_EXPORT void FilterPluginMain(
151 const int16_t selector_,
152 void* /* FilterRecordPtr */ pb_,
153 intptr_t* data__,
154 int16_t* result__
155 );
156
163 extern "C" __HDI_CORE_EXPORT void FormatPluginMain(
164 const int16_t selector_,
165 void* /* FormatRecordPtr */ pb_,
166 intptr_t* data__,
167 int16_t* result__
168 );
169
176 extern "C" __HDI_CORE_EXPORT void MeasurementPluginMain(
177 const int16_t selector_,
178 void* /* MeasurementRegisterRecord, MeasurementPrepareRecord, MeasurementRecordRecord, or MeasurementExportRecord */ pb_,
179 intptr_t* data__,
180 int16_t* result__
181 );
182
189 extern "C" __HDI_CORE_EXPORT void PickerPluginMain(
190 const int16_t selector_,
191 void* /* PickerRecordPtr */ pb_,
192 intptr_t* data__,
193 int16_t* result__
194 );
195
202 extern "C" __HDI_CORE_EXPORT void SelectionPluginMain(
203 const int16_t selector_,
204 void* /* SelectionRecordPtr */ pb_,
205 intptr_t* data__,
206 int16_t* result__
207 );
208#endif
209// HDI_CORE_PSP_MODE
210
211#endif
212// __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.