soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SAnimation.h
1#ifndef __SANIMATION__H__
2#define __SANIMATION__H__
3
4#include <interface/SAnimation-i.h>
5#include <helper/obj-ref-impl.hpp>
6#include <animation/SInterpolatorImpl.h>
7#include <animation/STransformation.h>
8#include <sobject/Sobject.hpp>
9
10#define ATTR_VALUE_DESC(attribname, desc) \
11 if (0 == strAttribName.CompareNoCase(attribname)) \
12 { \
13 desc = SNS::SValueDescription::parseValue(strValue); \
14 hRet = S_FALSE; \
15 } \
16 else
17
18SNSBEGIN
19
20/**
21 * @class SValueDescription
22 * @brief Utility class to parse a string description of a size.
23 */
24class SOUI_EXP SValueDescription {
25 public:
26 /**
27 * @brief Constructor for SValueDescription
28 * @param _type Type of the value (ABSOLUTE_VALUE, RELATIVE_TO_SELF, RELATIVE_TO_PARENT)
29 * @param _value The value to be described
30 */
31 SValueDescription(AniValueType _type = ABSOLUTE_VALUE, float _value = 0.0f)
32 : type(_type)
33 , value(_value)
34 {
35 }
36
37 /**
38 * @brief One of Animation.ABSOLUTE_VALUE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.
39 */
40 AniValueType type;
41
42 /**
43 * @brief The absolute or relative dimension for this Description.
44 */
46
47 /**
48 * @brief Parses a string description of a size.
49 * Size descriptions can appear in three forms:
50 * <ol>
51 * <li>An absolute size. This is represented by a number.</li>
52 * <li>A size relative to the size of the object being animated. This is represented by a number followed by "%".</li>
53 * <li>A size relative to the size of the parent of the object being animated. This is represented by a number followed by "%p".</li>
54 * </ol>
55 * @param value The typed value to parse
56 * @return The parsed version of the description
57 */
59};
60
61/**
62 * @class SAnimation
63 * @brief Abstraction for an Animation that can be applied to Views, Surfaces, or other objects.
64 *
65 * See the {@link android.view.animation animation package description file}.
66 */
67class SOUI_EXP SAnimation : public TObjRefImpl<SObjectImpl<IAnimation>> {
68 DEF_SOBJECT(SObjectImpl<IAnimation>, L"animation")
69
70 protected:
71 /**
72 * @brief Set by {@link #getTransformation(long, STransformation)} when the animation ends.
73 */
74 bool mEnded;
75
76 /**
77 * @brief Set by {@link #getTransformation(long, STransformation)} when the animation starts.
78 */
80
81 /**
82 * @brief Set by {@link #getTransformation(long, STransformation)} when the animation repeats in REVERSE mode.
83 */
85
86 /**
87 * @brief The time in milliseconds at which the animation must start.
88 */
89 uint64_t mStartTime;
90
91 /**
92 * @brief The delay in milliseconds after which the animation must start.
93 * When the start offset is > 0, the start time of the animation is startTime + startOffset.
94 */
96
97 /**
98 * @brief The duration of one animation cycle in milliseconds.
99 */
101
102 /**
103 * @brief The number of times the animation must repeat. By default, an animation repeats indefinitely.
104 */
106
107 /**
108 * @brief Indicates how many times the animation was repeated.
109 */
111
112 /**
113 * @brief The behavior of the animation when it repeats. The repeat mode is either {@link #RESTART} or {@link #REVERSE}.
114 */
115 RepeatMode mRepeatMode;
116
117 /**
118 * @brief The interpolator used by the animation to smooth the movement.
119 */
121
122 /**
123 * @brief The animation listener to be notified when the animation starts, ends, or repeats.
124 */
125 IAnimationListener *mListener;
126
127 /**
128 * @brief Desired Z order mode during animation.
129 */
130 ZAdjustment mZAdjustment;
131
132 /**
133 * @brief Scale factor to apply to pivot points, etc. during animation. Subclasses retrieve the value via getScaleFactor().
134 */
136
137 /**
138 * @brief Indicates whether the animation transformation should be applied before the animation starts.
139 * The value of this variable is only relevant if mFillEnabled is true; otherwise, it is assumed to be true.
140 */
142
143 /**
144 * @brief Indicates whether the animation transformation should be applied after the animation ends.
145 */
147
148 /**
149 * @brief Indicates whether fillBefore should be taken into account.
150 */
152
153 /**
154 * @brief User data associated with the animation.
155 */
156 ULONG_PTR mUserData;
157
158 /**
159 * @brief Indicates whether the animation is paused.
160 */
162
163 /**
164 * @brief The time at which the animation was paused.
165 */
166 uint64_t mPauseTime;
167
168 public:
169 /**
170 * @brief Default constructor for SAnimation
171 */
172 SAnimation();
173
174 /**
175 * @brief Destructor for SAnimation
176 */
177 ~SAnimation();
178
179 /**
180 * @brief Creates a new animation with a duration of 0ms, the default interpolator, with fillBefore set to true and fillAfter set to false.
181 */
182 STDMETHOD_(IAnimation *, clone)(THIS) SCONST OVERRIDE;
183
184 /**
185 * @brief Copies the properties of another animation to this animation.
186 * @param src Pointer to the source animation to copy from.
187 */
188 STDMETHOD_(void, copy)(THIS_ const IAnimation *src) OVERRIDE;
189
190 /**
191 * @brief Resets the animation to its initial state.
192 */
193 STDMETHOD_(void, reset)(THIS) OVERRIDE;
194
195 /**
196 * @brief Cancels the animation.
197 */
198 STDMETHOD_(void, cancel)(THIS) OVERRIDE;
199
200 /**
201 * @brief Sets the interpolator used by the animation to smooth the movement.
202 * @param i Pointer to the interpolator.
203 */
204 STDMETHOD_(void, setInterpolator)(THIS_ IInterpolator *i) OVERRIDE;
205
206 /**
207 * @brief Sets the duration of one animation cycle in milliseconds.
208 * @param durationMillis Duration in milliseconds.
209 */
210 STDMETHOD_(void, setDuration)(THIS_ long durationMillis) OVERRIDE;
211
212 /**
213 * @brief Scales the current duration of the animation.
214 * @param scale Scale factor.
215 */
216 STDMETHOD_(void, scaleCurrentDuration)(THIS_ float scale) OVERRIDE;
217
218 /**
219 * @brief Sets whether the animation transformation should be applied before the animation starts.
220 * @param bFill Boolean indicating whether to fill before.
221 */
222 STDMETHOD_(void, setFillBefore)(THIS_ BOOL bFill) OVERRIDE;
223
224 /**
225 * @brief Sets whether the animation transformation should be applied after the animation ends.
226 * @param bFill Boolean indicating whether to fill after.
227 */
228 STDMETHOD_(void, setFillAfter)(THIS_ BOOL bFill) OVERRIDE;
229
230 /**
231 * @brief Gets whether the animation transformation should be applied before the animation starts.
232 * @return TRUE if fill before is enabled, FALSE otherwise.
233 */
234 STDMETHOD_(BOOL, getFillBefore)(THIS) SCONST OVERRIDE;
235
236 /**
237 * @brief Gets whether the animation transformation should be applied after the animation ends.
238 * @return TRUE if fill after is enabled, FALSE otherwise.
239 */
240 STDMETHOD_(BOOL, getFillAfter)(THIS) SCONST OVERRIDE;
241
242 /**
243 * @brief Sets the delay in milliseconds after which the animation must start.
244 * @param offset Delay in milliseconds.
245 */
246 STDMETHOD_(void, setStartOffset)(THIS_ long offset) OVERRIDE;
247
248 /**
249 * @brief Checks whether fillBefore should be taken into account.
250 * @return TRUE if fill enabled, FALSE otherwise.
251 */
252 STDMETHOD_(BOOL, isFillEnabled)(THIS) SCONST OVERRIDE;
253
254 /**
255 * @brief Sets whether fillBefore should be taken into account.
256 * @param fillEnabled Boolean indicating whether fill is enabled.
257 */
258 STDMETHOD_(void, setFillEnabled)(THIS_ BOOL fillEnabled) OVERRIDE;
259
260 /**
261 * @brief Sets the start time of the animation.
262 * @param startTimeMillis Start time in milliseconds.
263 */
264 STDMETHOD_(void, setStartTime)(THIS_ int64_t startTimeMillis) OVERRIDE;
265
266 /**
267 * @brief Starts the animation.
268 */
269 STDMETHOD_(void, start)(THIS) OVERRIDE;
270
271 /**
272 * @brief Starts the animation immediately.
273 */
274 STDMETHOD_(void, startNow)(THIS) OVERRIDE;
275
276 /**
277 * @brief Sets the repeat mode of the animation.
278 * @param repeatMode Repeat mode (RESTART or REVERSE).
279 */
280 STDMETHOD_(void, setRepeatMode)(THIS_ RepeatMode repeatMode) OVERRIDE;
281
282 /**
283 * @brief Sets the number of times the animation must repeat.
284 * @param repeatCount Number of repeats.
285 */
286 STDMETHOD_(void, setRepeatCount)(THIS_ int repeatCount) OVERRIDE;
287
288 /**
289 * @brief Sets the desired Z order mode during animation.
290 * @param zAdjustment Z order adjustment mode.
291 */
292 STDMETHOD_(void, setZAdjustment)(THIS_ ZAdjustment zAdjustment) OVERRIDE;
293
294 /**
295 * @brief Gets the interpolator used by the animation.
296 * @return Pointer to the interpolator.
297 */
298 STDMETHOD_(IInterpolator *, getInterpolator)(THIS) SCONST OVERRIDE;
299
300 /**
301 * @brief Gets the start time of the animation.
302 * @return Start time in milliseconds.
303 */
304 STDMETHOD_(int64_t, getStartTime)(THIS) SCONST OVERRIDE;
305
306 /**
307 * @brief Gets the duration of one animation cycle.
308 * @return Duration in milliseconds.
309 */
310 STDMETHOD_(long, getDuration)(THIS) SCONST OVERRIDE;
311
312 /**
313 * @brief Gets the delay in milliseconds after which the animation must start.
314 * @return Delay in milliseconds.
315 */
316 STDMETHOD_(long, getStartOffset)(THIS) SCONST OVERRIDE;
317
318 /**
319 * @brief Gets the repeat mode of the animation.
320 * @return Repeat mode (RESTART or REVERSE).
321 */
322 STDMETHOD_(RepeatMode, getRepeatMode)(THIS) SCONST OVERRIDE;
323
324 /**
325 * @brief Gets the number of times the animation must repeat.
326 * @return Number of repeats.
327 */
328 STDMETHOD_(int, getRepeatCount)(THIS) SCONST OVERRIDE;
329
330 /**
331 * @brief Gets the desired Z order mode during animation.
332 * @return Z order adjustment mode.
333 */
334 STDMETHOD_(ZAdjustment, getZAdjustment)(THIS) SCONST OVERRIDE;
335
336 /**
337 * @brief Sets the animation listener to be notified when the animation starts, ends, or repeats.
338 * @param listener Pointer to the animation listener.
339 */
340 STDMETHOD_(void, setAnimationListener)(THIS_ IAnimationListener *listener) OVERRIDE;
341
342 /**
343 * @brief Computes the duration hint for the animation.
344 * @return Duration hint in milliseconds.
345 */
346 STDMETHOD_(long, computeDurationHint)(THIS) SCONST OVERRIDE;
347
348 /**
349 * @brief Gets the transformation at a specific time.
350 * @param currentTime Current time in milliseconds.
351 * @param outTransformation Pointer to the transformation to apply.
352 * @param scale Scale factor.
353 * @return TRUE if the transformation is valid, FALSE otherwise.
354 */
355 STDMETHOD_(BOOL, getTransformation2)
356 (THIS_ uint64_t currentTime, ITransformation *outTransformation, float scale) OVERRIDE;
357
358 /**
359 * @brief Gets the transformation at a specific time.
360 * @param currentTime Current time in milliseconds.
361 * @param outTransformation Pointer to the transformation to apply.
362 * @return TRUE if the transformation is valid, FALSE otherwise.
363 */
364 STDMETHOD_(BOOL, getTransformation)
365 (THIS_ uint64_t currentTime, ITransformation *outTransformation) OVERRIDE;
366
367 /**
368 * @brief Checks whether the animation has started.
369 * @return TRUE if the animation has started, FALSE otherwise.
370 */
371 STDMETHOD_(BOOL, hasStarted)(THIS) SCONST OVERRIDE;
372
373 /**
374 * @brief Checks whether the animation has ended.
375 * @return TRUE if the animation has ended, FALSE otherwise.
376 */
377 STDMETHOD_(BOOL, hasEnded)(THIS) SCONST OVERRIDE;
378
379 /**
380 * @brief Applies the transformation at a specific interpolated time.
381 * @param interpolatedTime Interpolated time between 0 and 1.
382 * @param t Pointer to the transformation to apply.
383 */
384 STDMETHOD_(void, applyTransformation)
385 (THIS_ float interpolatedTime, ITransformation *t) OVERRIDE;
386
387 /**
388 * @brief Checks whether the animation affects the alpha property.
389 * @return TRUE if the animation affects the alpha property, FALSE otherwise.
390 */
391 STDMETHOD_(BOOL, hasAlpha)(THIS) SCONST OVERRIDE;
392
393 /**
394 * @brief Initializes the animation with the dimensions of the object and its parent.
395 * @param width Width of the object being animated.
396 * @param height Height of the object being animated.
397 * @param parentWidth Width of the parent of the object being animated.
398 * @param parentHeight Height of the parent of the object being animated.
399 * @param nScale Scale factor.
400 */
401 STDMETHOD_(void, initialize)
402 (THIS_ int width, int height, int parentWidth, int parentHeight, int nScale) OVERRIDE;
403
404 /**
405 * @brief Sets user data associated with the animation.
406 * @param data User data.
407 */
408 STDMETHOD_(void, setUserData)(THIS_ ULONG_PTR data) OVERRIDE;
409
410 /**
411 * @brief Gets user data associated with the animation.
412 * @return User data.
413 */
414 STDMETHOD_(ULONG_PTR, getUserData)(THIS) SCONST OVERRIDE;
415
416 /**
417 * @brief Pauses the animation.
418 */
419 STDMETHOD_(void, pause)(THIS) OVERRIDE;
420
421 /**
422 * @brief Resumes the animation.
423 */
424 STDMETHOD_(void, resume)(THIS) OVERRIDE;
425
426 protected:
427 /**
428 * @brief Checks whether the animation is canceled.
429 * @return TRUE if the animation is canceled, FALSE otherwise.
430 */
431 bool isCanceled();
432
433 /**
434 * @brief Notifies the animation listener that the animation has started.
435 */
436 void fireAnimationStart();
437
438 /**
439 * @brief Notifies the animation listener that the animation has repeated.
440 */
441 void fireAnimationRepeat();
442
443 /**
444 * @brief Notifies the animation listener that the animation has ended.
445 */
446 void fireAnimationEnd();
447
448 /**
449 * @brief Converts the information in the description of a size to an actual dimension.
450 * @param value The dimension associated with the type parameter.
451 * @param size The size of the object being animated.
452 * @param parentSize The size of the parent of the object being animated.
453 * @param nScale Scale factor.
454 * @return The dimension to use for the animation.
455 */
456 int resolveSize(const SValueDescription &value, int size, int parentSize, int nScale);
457
458 /**
459 * @brief Ensures that this animation has an interpolator.
460 * Will use an AccelerateDecelerateInterpolator if nothing else was specified.
461 */
462 void ensureInterpolator();
463
464 /**
465 * @brief Gets the scale factor that should be applied to pre-scaled values in an Animation.
466 * Such as the pivot points in {@link ScaleAnimation} and {@link RotateAnimation}.
467 * @return The scale factor.
468 */
469 float getScaleFactor();
470
471 public:
472 /**
473 * @brief Attributes for SAnimation
474 */
475 SOUI_ATTRS_BEGIN()
476 ATTR_INT(L"duration", mDuration, FALSE) ///< Duration of the animation in milliseconds.
477 ATTR_INT(L"startOffset", mStartOffset, FALSE) ///< Delay before the animation starts in milliseconds.
478 ATTR_BOOL(L"fillEnable", mFillEnabled, FALSE) ///< Whether fillBefore and fillAfter are taken into account.
479 ATTR_BOOL(L"fillBefore", mFillBefore, FALSE) ///< Whether the animation transformation should be applied before the animation starts.
480 ATTR_BOOL(L"fillAfter", mFillAfter, FALSE) ///< Whether the animation transformation should be applied after the animation ends.
481 ATTR_INT(L"repeatCount", mRepeatCount, FALSE) ///< Number of times the animation must repeat.
482 ATTR_ENUM_BEGIN(L"zAdjustment", ZAdjustment, FALSE)
483 ATTR_ENUM_VALUE(L"normal", ZORDER_NORMAL) ///< Normal Z order adjustment.
484 ATTR_ENUM_VALUE(L"top", ZORDER_TOP) ///< Top Z order adjustment.
485 ATTR_ENUM_VALUE(L"bottom", ZORDER_BOTTOM) ///< Bottom Z order adjustment.
486 ATTR_ENUM_END(mZAdjustment)
487 ATTR_ENUM_BEGIN(L"repeatMode", RepeatMode, FALSE)
488 ATTR_ENUM_VALUE(L"restart", RESTART) ///< Restart repeat mode.
489 ATTR_ENUM_VALUE(L"reverse", REVERSE) ///< Reverse repeat mode.
490 ATTR_ENUM_END(mRepeatMode)
491 ATTR_INTERPOLATOR(L"interpolator", mInterpolator, FALSE) ///< Interpolator used by the animation.
492 ATTR_CHAIN_PTR(mInterpolator, 0)
493 SOUI_ATTRS_END()
494};
495
496SNSEND
497
498#endif // __SANIMATION__H__
BOOL getTransformation(uint64_t currentTime, ITransformation *outTransformation) OVERRIDE
Gets the transformation at a specific time.
int resolveSize(const SValueDescription &value, int size, int parentSize, int nScale)
Converts the information in the description of a size to an actual dimension.
bool mStarted
Set by getTransformation(long, STransformation) when the animation starts.
Definition SAnimation.h:79
int64_t getStartTime() SCONST OVERRIDE
Gets the start time of the animation.
BOOL mFillEnabled
Indicates whether fillBefore should be taken into account.
Definition SAnimation.h:151
int mRepeated
Indicates how many times the animation was repeated.
Definition SAnimation.h:110
BOOL mFillAfter
Indicates whether the animation transformation should be applied after the animation ends.
Definition SAnimation.h:146
void pause() OVERRIDE
Pauses the animation.
void scaleCurrentDuration(float scale) OVERRIDE
Scales the current duration of the animation.
void setFillBefore(BOOL bFill) OVERRIDE
Sets whether the animation transformation should be applied before the animation starts.
BOOL getFillAfter() SCONST OVERRIDE
Gets whether the animation transformation should be applied after the animation ends.
void reset() OVERRIDE
Resets the animation to its initial state.
void ensureInterpolator()
Ensures that this animation has an interpolator. Will use an AccelerateDecelerateInterpolator if noth...
float mScaleFactor
Scale factor to apply to pivot points, etc. during animation. Subclasses retrieve the value via getSc...
Definition SAnimation.h:135
void initialize(int width, int height, int parentWidth, int parentHeight, int nScale) OVERRIDE
Initializes the animation with the dimensions of the object and its parent.
void copy(const IAnimation *src) OVERRIDE
Copies the properties of another animation to this animation.
BOOL hasStarted() SCONST OVERRIDE
Checks whether the animation has started.
void cancel() OVERRIDE
Cancels the animation.
bool mPaused
Indicates whether the animation is paused.
Definition SAnimation.h:161
void setUserData(ULONG_PTR data) OVERRIDE
Sets user data associated with the animation.
uint64_t mPauseTime
The time at which the animation was paused.
Definition SAnimation.h:166
void fireAnimationStart()
Notifies the animation listener that the animation has started.
void setFillAfter(BOOL bFill) OVERRIDE
Sets whether the animation transformation should be applied after the animation ends.
IAnimation * clone() SCONST OVERRIDE
Creates a new animation with a duration of 0ms, the default interpolator, with fillBefore set to true...
void applyTransformation(float interpolatedTime, ITransformation *t) OVERRIDE
Applies the transformation at a specific interpolated time.
ULONG_PTR getUserData() SCONST OVERRIDE
Gets user data associated with the animation.
IAnimationListener * mListener
The animation listener to be notified when the animation starts, ends, or repeats.
Definition SAnimation.h:125
ZAdjustment mZAdjustment
Desired Z order mode during animation.
Definition SAnimation.h:130
BOOL hasAlpha() SCONST OVERRIDE
Checks whether the animation affects the alpha property.
BOOL isFillEnabled() SCONST OVERRIDE
Checks whether fillBefore should be taken into account.
BOOL mFillBefore
Indicates whether the animation transformation should be applied before the animation starts....
Definition SAnimation.h:141
long getStartOffset() SCONST OVERRIDE
Gets the delay in milliseconds after which the animation must start.
SAnimation()
Default constructor for SAnimation.
long computeDurationHint() SCONST OVERRIDE
Computes the duration hint for the animation.
void setStartOffset(long offset) OVERRIDE
Sets the delay in milliseconds after which the animation must start.
BOOL getTransformation2(uint64_t currentTime, ITransformation *outTransformation, float scale) OVERRIDE
Gets the transformation at a specific time.
void setAnimationListener(IAnimationListener *listener) OVERRIDE
Sets the animation listener to be notified when the animation starts, ends, or repeats.
void startNow() OVERRIDE
Starts the animation immediately.
ZAdjustment getZAdjustment() SCONST OVERRIDE
Gets the desired Z order mode during animation.
long mDuration
The duration of one animation cycle in milliseconds.
Definition SAnimation.h:100
int getRepeatCount() SCONST OVERRIDE
Gets the number of times the animation must repeat.
BOOL hasEnded() SCONST OVERRIDE
Checks whether the animation has ended.
void setDuration(long durationMillis) OVERRIDE
Sets the duration of one animation cycle in milliseconds.
void setStartTime(int64_t startTimeMillis) OVERRIDE
Sets the start time of the animation.
float getScaleFactor()
Gets the scale factor that should be applied to pre-scaled values in an Animation....
void setInterpolator(IInterpolator *i) OVERRIDE
Sets the interpolator used by the animation to smooth the movement.
void start() OVERRIDE
Starts the animation.
void setFillEnabled(BOOL fillEnabled) OVERRIDE
Sets whether fillBefore should be taken into account.
void setZAdjustment(ZAdjustment zAdjustment) OVERRIDE
Sets the desired Z order mode during animation.
void fireAnimationEnd()
Notifies the animation listener that the animation has ended.
int mRepeatCount
The number of times the animation must repeat. By default, an animation repeats indefinitely.
Definition SAnimation.h:105
ULONG_PTR mUserData
User data associated with the animation.
Definition SAnimation.h:156
bool mCycleFlip
Set by getTransformation(long, STransformation) when the animation repeats in REVERSE mode.
Definition SAnimation.h:84
SAutoRefPtr< IInterpolator > mInterpolator
The interpolator used by the animation to smooth the movement.
Definition SAnimation.h:120
void resume() OVERRIDE
Resumes the animation.
void setRepeatCount(int repeatCount) OVERRIDE
Sets the number of times the animation must repeat.
void setRepeatMode(RepeatMode repeatMode) OVERRIDE
Sets the repeat mode of the animation.
void fireAnimationRepeat()
Notifies the animation listener that the animation has repeated.
bool mEnded
Set by getTransformation(long, STransformation) when the animation ends.
Definition SAnimation.h:74
IInterpolator * getInterpolator() SCONST OVERRIDE
Gets the interpolator used by the animation.
uint64_t mStartTime
The time in milliseconds at which the animation must start.
Definition SAnimation.h:89
RepeatMode mRepeatMode
The behavior of the animation when it repeats. The repeat mode is either RESTART or REVERSE.
Definition SAnimation.h:115
BOOL getFillBefore() SCONST OVERRIDE
Gets whether the animation transformation should be applied before the animation starts.
RepeatMode getRepeatMode() SCONST OVERRIDE
Gets the repeat mode of the animation.
long mStartOffset
The delay in milliseconds after which the animation must start. When the start offset is > 0,...
Definition SAnimation.h:95
long getDuration() SCONST OVERRIDE
Gets the duration of one animation cycle.
bool isCanceled()
Checks whether the animation is canceled.
Smart pointer class for managing COM-style reference-counted objects.
布局大小类
Definition SLayoutSize.h:10
A class representing an ASCII string.
Definition sstringw.h:96
Utility class to parse a string description of a size.
Definition SAnimation.h:24
static SValueDescription parseValue(const SStringW &value)
Parses a string description of a size. Size descriptions can appear in three forms:
Definition SAnimation.cpp:8
SLayoutSize value
The absolute or relative dimension for this Description.
Definition SAnimation.h:45
AniValueType type
One of Animation.ABSOLUTE_VALUE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.
Definition SAnimation.h:40
SValueDescription(AniValueType _type=ABSOLUTE_VALUE, float _value=0.0f)
Constructor for SValueDescription.
Definition SAnimation.h:31