Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreImageIDs.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_IMAGE_IDS__
8#define __HDI_CORE_IMAGE_IDS__
9
10#include "hdicoreTypes.h"
11
12namespace hdi
13{
14 namespace core
15 {
21 {
22 public:
28 static const int16_t noneID = 0;
29
33 int16_t lightID;
34
41
45 int16_t lightID_2x;
46
50 int16_t lightID_3x;
51
55 int16_t lightID_4x;
56
57
61 int16_t darkID;
62
68 int16_t darkID_3to2x;
69
73 int16_t darkID_2x;
74
78 int16_t darkID_3x;
79
83 int16_t darkID_4x;
84
91
99 ImageIDs(const ImageIDs& img_);
100
112 ImageIDs(const int16_t light_, const int16_t dark_);
113
130 const int16_t light_,
131 const int16_t light3to2x_,
132 const int16_t light2x_,
133 const int16_t dark_,
134 const int16_t dark3to2x_,
135 const int16_t dark2x_
136 );
137
158 const int16_t light_,
159 const int16_t light3to2x_,
160 const int16_t light2x_,
161 const int16_t light3x_,
162 const int16_t light4x_,
163 const int16_t dark_,
164 const int16_t dark3to2x_,
165 const int16_t dark2x_,
166 const int16_t dark3x_,
167 const int16_t dark4x_
168 );
169
175 virtual ~ImageIDs();
176
186
196 bool operator==(const ImageIDs& rhs_) const;
197
207 bool operator!=(const ImageIDs& rhs_) const;
208 };
209
210 typedef std::unique_ptr<ImageIDs> ImageIDsUP;
211 typedef std::shared_ptr<ImageIDs> ImageIDsSP;
212 typedef std::weak_ptr<ImageIDs> ImageIDsWP;
213
214
215
220 {
221 public:
225 int16_t lightOverID;
226
233
238
243
248
252 int16_t darkOverID;
253
260
265
270
275
282
291
306 const int16_t light_,
307 const int16_t lightOver_,
308 const int16_t dark_,
309 const int16_t darkOver_
310 );
311
328 const int16_t light_,
329 const int16_t light3to2x_,
330 const int16_t light2x_,
331 const int16_t dark_,
332 const int16_t dark3to2x_,
333 const int16_t dark2x_
334 );
335
356 const int16_t light_,
357 const int16_t light3to2x_,
358 const int16_t light2x_,
359 const int16_t light3x_,
360 const int16_t light4x_,
361 const int16_t dark_,
362 const int16_t dark3to2x_,
363 const int16_t dark2x_,
364 const int16_t dark3x_,
365 const int16_t dark4x_
366 );
367
390 const int16_t light_,
391 const int16_t light3to2x_,
392 const int16_t light2x_,
393 const int16_t dark_,
394 const int16_t dark3to2x_,
395 const int16_t dark2x_,
396 const int16_t lightOver_,
397 const int16_t lightOver3to2x_,
398 const int16_t lightOver2x_,
399 const int16_t darkOver_,
400 const int16_t darkOver3to2x_,
401 const int16_t darkOver2x_
402 );
403
434 const int16_t light_,
435 const int16_t light3to2x_,
436 const int16_t light2x_,
437 const int16_t light3x_,
438 const int16_t light4x_,
439 const int16_t dark_,
440 const int16_t dark3to2x_,
441 const int16_t dark2x_,
442 const int16_t dark3x_,
443 const int16_t dark4x_,
444 const int16_t lightOver_,
445 const int16_t lightOver3to2x_,
446 const int16_t lightOver2x_,
447 const int16_t lightOver3x_,
448 const int16_t lightOver4x_,
449 const int16_t darkOver_,
450 const int16_t darkOver3to2x_,
451 const int16_t darkOver2x_,
452 const int16_t darkOver3x_,
453 const int16_t darkOver4x_
454 );
455
462
473
483 bool operator==(const ImageWithRolloverIDs& rhs_) const;
484
494 bool operator!=(const ImageWithRolloverIDs& rhs_) const;
495 };
496
497 typedef std::unique_ptr<ImageWithRolloverIDs> ImageWithRolloverIDsUP;
498 typedef std::shared_ptr<ImageWithRolloverIDs> ImageWithRolloverIDsSP;
499 typedef std::weak_ptr<ImageWithRolloverIDs> ImageWithRolloverIDsWP;
500 }
501}
502
503#endif
504// __HDI_CORE_IMAGE_IDS__
Stores both light and dark image PNGI resource IDs, such that app UI brightness changes can be proper...
Definition: hdicoreImageIDs.h:21
int16_t darkID_3to2x
ID of the PNGI resource that should be used when the UI is dark in color at 1.5x resolution.
Definition: hdicoreImageIDs.h:68
ImageIDs(const ImageIDs &img_)
Constructs a new ImageIDs object with the same values as an existing object.
ImageIDs(const int16_t light_, const int16_t light3to2x_, const int16_t light2x_, const int16_t light3x_, const int16_t light4x_, const int16_t dark_, const int16_t dark3to2x_, const int16_t dark2x_, const int16_t dark3x_, const int16_t dark4x_)
Constructs a new ImageIDs object from light and dark image IDs individually for each resolution.
int16_t darkID_2x
ID of the PNGI resource that should be used when the UI is dark in color at 2x resolution.
Definition: hdicoreImageIDs.h:73
ImageIDs(const int16_t light_, const int16_t light3to2x_, const int16_t light2x_, const int16_t dark_, const int16_t dark3to2x_, const int16_t dark2x_)
Constructs a new ImageIDs object from light and dark image IDs individually for each resolution at 2x...
int16_t lightID_3x
ID of the PNGI resource that should be used when the UI is light in color at 3x resolution.
Definition: hdicoreImageIDs.h:50
int16_t darkID_3x
ID of the PNGI resource that should be used when the UI is dark in color at 3x resolution.
Definition: hdicoreImageIDs.h:78
static const int16_t noneID
Default image ID to indicate that no image has been set.
Definition: hdicoreImageIDs.h:28
bool operator==(const ImageIDs &rhs_) const
Overloaded equality operator to compare two ImageIDs objects with one another.
ImageIDs()
Constructs a new ImageIDs object with default values (i.e. noneID)
bool operator!=(const ImageIDs &rhs_) const
Overloaded inequality operator to compare two ImageIDs objects with one another.
int16_t darkID_4x
ID of the PNGI resource that should be used when the UI is dark in color at 4x resolution.
Definition: hdicoreImageIDs.h:83
int16_t lightID_3to2x
ID of the PNGI resource that should be used when the UI is light in color at 1.5x resolution.
Definition: hdicoreImageIDs.h:40
int16_t darkID
ID of the PNGI resource that should be used when the UI is dark in color.
Definition: hdicoreImageIDs.h:61
ImageIDs(const int16_t light_, const int16_t dark_)
Constructs a new ImageIDs object from light and dark image IDs, setting all higher resolutions to non...
virtual ~ImageIDs()
Destructs an ImageIDs object.
int16_t lightID_2x
ID of the PNGI resource that should be used when the UI is light in color at 2x resolution.
Definition: hdicoreImageIDs.h:45
ImageIDs & operator=(const ImageIDs &rhs_)
Overloaded assignment operator to copy values from one ImageIDs object to another.
int16_t lightID_4x
ID of the PNGI resource that should be used when the UI is light in color at 4x resolution.
Definition: hdicoreImageIDs.h:55
int16_t lightID
ID of the PNGI resource that should be used when the UI is light in color.
Definition: hdicoreImageIDs.h:33
Allows for image rollover support.
Definition: hdicoreImageIDs.h:220
int16_t lightOverID_3to2x
PNGI resource ID for the 1.5x rollover image variant for the app's light-themed UI.
Definition: hdicoreImageIDs.h:232
int16_t lightOverID_4x
PNGI resource ID for the 4x rollover image variant for Illustrator's light-themed UI.
Definition: hdicoreImageIDs.h:247
ImageWithRolloverIDs(const int16_t light_, const int16_t light3to2x_, const int16_t light2x_, const int16_t light3x_, const int16_t light4x_, const int16_t dark_, const int16_t dark3to2x_, const int16_t dark2x_, const int16_t dark3x_, const int16_t dark4x_)
Creates an ImageWithRolloverIDs object from light-UI and dark-UI resource IDs for all supported resol...
int16_t lightOverID_3x
PNGI resource ID for the 3x rollover image variant for Illustrator's light-themed UI.
Definition: hdicoreImageIDs.h:242
ImageWithRolloverIDs(const int16_t light_, const int16_t light3to2x_, const int16_t light2x_, const int16_t dark_, const int16_t dark3to2x_, const int16_t dark2x_, const int16_t lightOver_, const int16_t lightOver3to2x_, const int16_t lightOver2x_, const int16_t darkOver_, const int16_t darkOver3to2x_, const int16_t darkOver2x_)
Creates an ImageWithRolloverIDs object from light-UI and dark-UI resource IDs for all supported resol...
bool operator==(const ImageWithRolloverIDs &rhs_) const
Overloaded equality operator to compare two ImageWithRolloverIDs objects with one another.
ImageWithRolloverIDs(const int16_t light_, const int16_t light3to2x_, const int16_t light2x_, const int16_t light3x_, const int16_t light4x_, const int16_t dark_, const int16_t dark3to2x_, const int16_t dark2x_, const int16_t dark3x_, const int16_t dark4x_, const int16_t lightOver_, const int16_t lightOver3to2x_, const int16_t lightOver2x_, const int16_t lightOver3x_, const int16_t lightOver4x_, const int16_t darkOver_, const int16_t darkOver3to2x_, const int16_t darkOver2x_, const int16_t darkOver3x_, const int16_t darkOver4x_)
Creates an ImageWithRolloverIDs object from light-UI and dark-UI resource IDs for all supported resol...
int16_t darkOverID_3to2x
PNGI resource ID for the 1.5x rollover image variant for the app's dark-themed UI.
Definition: hdicoreImageIDs.h:259
int16_t lightOverID
PNGI resource ID for the 1x rollover image variant for the app's light-themed UI.
Definition: hdicoreImageIDs.h:225
bool operator!=(const ImageWithRolloverIDs &rhs_) const
Overloaded inequality operator to compare two ImageWithRolloverIDs objects with one another.
int16_t darkOverID_3x
PNGI resource ID for the 3x rollover image variant for Illustrator's dark-themed UI.
Definition: hdicoreImageIDs.h:269
int16_t darkOverID
PNGI resource ID for the 1x rollover image variant for the app's dark-themed UI.
Definition: hdicoreImageIDs.h:252
int16_t darkOverID_4x
PNGI resource ID for the 4x rollover image variant for Illustrator's dark-themed UI.
Definition: hdicoreImageIDs.h:274
virtual ~ImageWithRolloverIDs()
ImageWithRolloverIDs destructor.
int16_t lightOverID_2x
PNGI resource ID for the 2x rollover image variant for the app's light-themed UI.
Definition: hdicoreImageIDs.h:237
int16_t darkOverID_2x
PNGI resource ID for the 2x rollover image variant for the app's dark-themed UI.
Definition: hdicoreImageIDs.h:264
ImageWithRolloverIDs(const int16_t light_, const int16_t lightOver_, const int16_t dark_, const int16_t darkOver_)
Constructs an ImageWithRolloverIDs object from light-UI, light-UI rollover, dark-UI,...
ImageWithRolloverIDs(const ImageWithRolloverIDs &ids_)
ImageWithRolloverIDs copy constructor, using values from an existing object.
ImageWithRolloverIDs()
Default ImageWithRolloverIDs constructor, setting all ID values to noneID.
ImageWithRolloverIDs(const int16_t light_, const int16_t light3to2x_, const int16_t light2x_, const int16_t dark_, const int16_t dark3to2x_, const int16_t dark2x_)
Creates an ImageWithRolloverIDs object from light-UI and dark-UI resource IDs for all supported resol...
ImageWithRolloverIDs & operator=(const ImageWithRolloverIDs &rhs_)
Overloaded assignment operator to copy values from one ImageWithRolloverIDs object to another.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.