Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreSVGIDs.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_SVG_IDS__
8#define __HDI_CORE_SVG_IDS__
9
10#include "hdicoreTypes.h"
11
12namespace hdi
13{
14 namespace core
15 {
20 class SVGIDs
21 {
22 public:
28 static const int16_t noneID = 0;
29
34 int16_t lightID_2x;
35
40 int16_t darkID_2x;
41
48
56 SVGIDs(const SVGIDs& svg_);
57
68 SVGIDs(const int16_t light2x_, const int16_t dark2x_);
69
75 virtual ~SVGIDs();
76
85 SVGIDs& operator=(const SVGIDs& rhs_);
86
96 bool operator==(const SVGIDs& rhs_) const;
97
107 bool operator!=(const SVGIDs& rhs_) const;
108 };
109
110 typedef std::unique_ptr<SVGIDs> SVGIDsUP;
111 typedef std::shared_ptr<SVGIDs> SVGIDsSP;
112 typedef std::weak_ptr<SVGIDs> SVGIDsWP;
113
114
115
120 {
121 public:
122
128
134
141
150
161 SVGWithRolloverIDs(const int16_t light2x_, const int16_t dark2x_);
162
177 const int16_t light2x_,
178 const int16_t lightOver2x_,
179 const int16_t dark2x_,
180 const int16_t darkOver2x_
181 );
182
189
200
210 bool operator==(const SVGWithRolloverIDs& rhs_) const;
211
221 bool operator!=(const SVGWithRolloverIDs& rhs_) const;
222 };
223
224 typedef std::unique_ptr<SVGWithRolloverIDs> SVGWithRolloverIDsUP;
225 typedef std::shared_ptr<SVGWithRolloverIDs> SVGWithRolloverIDsSP;
226 typedef std::weak_ptr<SVGWithRolloverIDs> SVGWithRolloverIDsWP;
227 }
228}
229
230#endif
231// __HDI_CORE_SVG_IDS__
Stores both light and dark SVG resource IDs, such that app UI brightness changes can be properly hand...
Definition: hdicoreSVGIDs.h:21
static const int16_t noneID
Default image ID to indicate that no image has been set.
Definition: hdicoreSVGIDs.h:28
int16_t lightID_2x
ID of the SVG resource that should be used when the UI is light in color (and Adobe expects the nativ...
Definition: hdicoreSVGIDs.h:34
virtual ~SVGIDs()
Destructs a SVGIDs object.
int16_t darkID_2x
ID of the SVG resource that should be used when the UI is dark in color (and Adobe expects the native...
Definition: hdicoreSVGIDs.h:40
bool operator!=(const SVGIDs &rhs_) const
Overloaded inequality operator to compare two SVGIDs objects with one another.
SVGIDs()
Constructs a new SVGIDs object with default values (i.e. noneID)
bool operator==(const SVGIDs &rhs_) const
Overloaded equality operator to compare two SVGIDs objects with one another.
SVGIDs(const SVGIDs &svg_)
Constructs a new SVGIDs object with the same values as an existing object.
SVGIDs(const int16_t light2x_, const int16_t dark2x_)
Constructs a new SVGIDs object from light and dark image IDs.
SVGIDs & operator=(const SVGIDs &rhs_)
Overloaded assignment operator to copy values from one SVGIDs object to another.
Allows for image rollover support.
Definition: hdicoreSVGIDs.h:120
SVGWithRolloverIDs(const SVGWithRolloverIDs &ids_)
SVGWithRolloverIDs copy constructor, using values from an existing object.
bool operator==(const SVGWithRolloverIDs &rhs_) const
Overloaded equality operator to compare two SVGWithRolloverIDs objects with one another.
bool operator!=(const SVGWithRolloverIDs &rhs_) const
Overloaded inequality operator to compare two SVGWithRolloverIDs objects with one another.
SVGWithRolloverIDs(const int16_t light2x_, const int16_t lightOver2x_, const int16_t dark2x_, const int16_t darkOver2x_)
Constructs a SVGWithRolloverIDs object from light-UI, light-UI rollover, dark-UI, and dark-UI resourc...
SVGWithRolloverIDs()
Default SVGWithRolloverIDs constructor, setting all ID values to noneID.
int16_t lightOverID_2x
ID of the SVG resource that should be used for rollover when the UI is light in color (and Adobe expe...
Definition: hdicoreSVGIDs.h:127
int16_t darkOverID_2x
ID of the SVG resource that should be used for rollover when the UI is dark in color (and Adobe expec...
Definition: hdicoreSVGIDs.h:133
SVGWithRolloverIDs(const int16_t light2x_, const int16_t dark2x_)
Constructs a SVGWithRolloverIDs object from light and dark image IDs (without any rollovers)
virtual ~SVGWithRolloverIDs()
SVGWithRolloverIDs destructor.
SVGWithRolloverIDs & operator=(const SVGWithRolloverIDs &rhs_)
Overloaded assignment operator to copy values from one SVGWithRolloverIDs object to another.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.