ZFFramework
 
Loading...
Searching...
No Matches
ZFUIImageAni.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIImageAni_h_
7#define _ZFI_ZFUIImageAni_h_
8
9#include "ZFUIWidgetDef.h"
11
12// ============================================================
13// images
25 , ZFMP_IN(ZFArray *, images)
26 , ZFMP_IN_OPT(zftimet, duration, 0)
27 , ZFMP_IN_OPT(ZFArray *, frameDurations, zfnull)
28 )
31 , ZFMP_IN_OUT(ZFUIImage *, ret)
32 , ZFMP_IN(ZFArray *, images)
33 , ZFMP_IN_OPT(zftimet, duration, 0)
34 , ZFMP_IN_OPT(ZFArray *, frameDurations, zfnull)
35 )
36
37// ============================================================
38// split
41 , ZFMP_IN(ZFUIImage *, ref)
42 , ZFMP_IN(const ZFUISize &, frameSize)
43 , ZFMP_IN(zfindex, frameCount)
44 , ZFMP_IN_OPT(zftimet, frameDuration, 0)
45 )
48 , ZFMP_IN_OUT(ZFUIImage *, ret)
49 , ZFMP_IN(ZFUIImage *, ref)
50 , ZFMP_IN(const ZFUISize &, frameSize)
51 , ZFMP_IN(zfindex, frameCount)
52 , ZFMP_IN_OPT(zftimet, frameDuration, 0)
53 )
54
57 , ZFMP_IN(const ZFInput &, refSrc)
58 , ZFMP_IN(const ZFUISize &, frameSize)
59 , ZFMP_IN(zfindex, frameCount)
60 , ZFMP_IN_OPT(zftimet, frameDuration, 0)
61 )
64 , ZFMP_IN_OUT(ZFUIImage *, ret)
65 , ZFMP_IN(const ZFInput &, refSrc)
66 , ZFMP_IN(const ZFUISize &, frameSize)
67 , ZFMP_IN(zfindex, frameCount)
68 , ZFMP_IN_OPT(zftimet, frameDuration, 0)
69 )
70
71// ============================================================
72// frames
75 , ZFMP_IN(ZFUIImage *, ref)
76 , ZFMP_IN(ZFArray *, frameRects)
77 , ZFMP_IN_OPT(zftimet, duration, 0)
78 , ZFMP_IN_OPT(ZFArray *, frameDurations, zfnull)
79 )
82 , ZFMP_IN_OUT(ZFUIImage *, ret)
83 , ZFMP_IN(ZFUIImage *, ref)
84 , ZFMP_IN(ZFArray *, frameRects)
85 , ZFMP_IN_OPT(zftimet, duration, 0)
86 , ZFMP_IN_OPT(ZFArray *, frameDurations, zfnull)
87 )
88
91 , ZFMP_IN(const ZFInput &, refSrc)
92 , ZFMP_IN(ZFArray *, frameRects)
93 , ZFMP_IN_OPT(zftimet, duration, 0)
94 , ZFMP_IN_OPT(ZFArray *, frameDurations, zfnull)
95 )
98 , ZFMP_IN_OUT(ZFUIImage *, ret)
99 , ZFMP_IN(const ZFInput &, refSrc)
100 , ZFMP_IN(ZFArray *, frameRects)
101 , ZFMP_IN_OPT(zftimet, duration, 0)
102 , ZFMP_IN_OPT(ZFArray *, frameDurations, zfnull)
104
105// ============================================================
138#define ZFUIImageSerializeType_ZFUIImageAni "ZFUIImageAni"
139
141#define ZFSerializableKeyword_ZFUIImageAni_images "images"
143#define ZFSerializableKeyword_ZFUIImageAni_ref "ref"
145#define ZFSerializableKeyword_ZFUIImageAni_refSrc "refSrc"
147#define ZFSerializableKeyword_ZFUIImageAni_split "split"
149#define ZFSerializableKeyword_ZFUIImageAni_frames "frames"
151#define ZFSerializableKeyword_ZFUIImageAni_size "size"
153#define ZFSerializableKeyword_ZFUIImageAni_count "count"
155#define ZFSerializableKeyword_ZFUIImageAni_duration "duration"
157#define ZFSerializableKeyword_ZFUIImageAni_rect "rect"
158
159// ============================================================
173 , ZFMP_IN(const ZFInput &, input)
175
176
178 , ZFMP_OUT(ZFUISize &, frameSize)
179 , ZFMP_OUT(zfindex &, frameCount)
180 , ZFMP_OUT(zftimet &, frameDuration)
181 , ZFMP_IN(const zfstring &, fileName)
183
199 , ZFMP_IN(const ZFPathInfo &, dst)
200 , ZFMP_IN(ZFArray *, images)
201 , ZFMP_IN_OPT(zftimet, frameDuration, 0)
203
205#endif // #ifndef _ZFI_ZFUIImageAni_h_
206
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
_zft_zftimet zftimet
time unit, ensured at least 64 bit, ensured signed
Definition ZFCoreTypeDef_CoreType.h:203
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFMP_IN_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:117
#define ZFMP_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:111
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_FUNC_DECLARE_5(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:1228
#define ZFMETHOD_FUNC_DECLARE_3(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:910
#define ZFMETHOD_FUNC_DECLARE_4(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:1065
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:624
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
zfbool ZFUIImageAniLoadCheck(ZFUISize &frameSize, zfindex &frameCount, zftimet &frameDuration, const zfstring &fileName)
try parse rules declared in ZFUIImageAniLoad
zfbool ZFUIImageAniT(ZFUIImage *ret, ZFArray *images, zftimet duration=(0), ZFArray *frameDurations=(zft_zfnull))
see ZFUIImageAni
zfautoT< ZFUIImage > ZFUIImageAni(ZFArray *images, zftimet duration=(0), ZFArray *frameDurations=(zft_zfnull))
animated image util
zfbool ZFUIImageAniSave(const ZFPathInfo &dst, ZFArray *images, zftimet frameDuration=(0))
util function to save animated image with special logic
zfautoT< ZFUIImage > ZFUIImageAniLoad(const ZFInput &input)
util function to load animated image with special naming logic
global header for ZFUIWidget module
#define ZFLIB_ZFUIWidget
used to export symbols
Definition ZFUIWidgetDef.h:17
container of ZFObject, see ZFContainer
Definition ZFArray.h:17
general input callback
Definition ZFIOCallback_input.h:37
path related info storage for impl, actual meaning of the info depends on impl
Definition ZFPathInfo.h:35
image storage
Definition ZFUIImage.h:30
2D size
Definition ZFUITypeDef.h:397
type restrict version of zfauto
Definition zfautoFwd.h:110