46 #ifndef __D4D_PICTURE_H
47 #define __D4D_PICTURE_H
60 #ifndef D4D_PIC_F_DEFAULT
61 #define D4D_PIC_F_DEFAULT (D4D_OBJECT_F_VISIBLE | D4D_OBJECT_F_ENABLED)
66 #ifndef D4D_PIC_PRTY_DEFAULT
67 #define D4D_PIC_PRTY_DEFAULT (D4D_ALIGN_H_CENTER_MASK | D4D_ALIGN_V_CENTER_MASK)
89 #define D4D_GET_PICTURE(pObj) ((D4D_PICTURE*)((pObj)->pParam))
118 #define _D4D_DECLARE_PICTURE(type, name, x, y, cx, cy, radius, pMargin, pRelations, pBmp, flags, pUser, pOnUsrMsg) \
119 static type D4D_PICTURE name##_params = \
124 D4D_DECLARE_OBJECT(type, name, x, y, cx, cy, radius, pMargin, pRelations, pOnUsrMsg, &d4d_pictSysFunc, &(name##_params), flags, pUser, NULL)
143 #define D4D_DECLARE_PICTURE(name, x, y, cx, cy, pBmp, flags, pUser, pOnUsrMsg) \
144 _D4D_DECLARE_PICTURE(D4D_CONST, name, x, y, cx, cy, 0, NULL, NULL, pBmp, flags, pUser, pOnUsrMsg)
160 #define D4D_DECLARE_STD_PICTURE(name, x, y, cx, cy, pBmp) \
161 D4D_DECLARE_PICTURE(name, x, y, cx, cy, pBmp, (D4D_PIC_F_DEFAULT), NULL, NULL)
182 #define D4D_DECLARE_RPICTURE(name, x, y, cx, cy, radius, pBmp, flags, pUser, pOnUsrMsg) \
183 _D4D_DECLARE_PICTURE(D4D_CONST, name, x, y, cx, cy, radius, NULL, NULL, pBmp, flags, pUser, pOnUsrMsg)
200 #define D4D_DECLARE_STD_RPICTURE(name, x, y, cx, cy, radius, pBmp) \
201 D4D_DECLARE_RPICTURE(name, x, y, cx, cy, radius, pBmp, (D4D_PIC_F_DEFAULT), NULL, NULL)
208 #define D4D_DECLARE_PICTURE_INRAM(name, x, y, cx, cy, pBmp, flags, pUser, pOnUsrMsg) \
209 _D4D_DECLARE_PICTURE(D4D_NO_CONST, name, x, y, cx, cy, 0, NULL, NULL, pBmp, flags, pUser, pOnUsrMsg)
214 #define D4D_DECLARE_STD_PICTURE_INRAM(name, x, y, cx, cy, pBmp) \
215 D4D_DECLARE_PICTURE_INRAM(name, x, y, cx, cy, pBmp, (D4D_PIC_F_DEFAULT), NULL, NULL)
221 #define D4D_DECLARE_RPICTURE_INRAM(name, x, y, cx, cy, radius, pBmp, flags, pUser, pOnUsrMsg) \
222 _D4D_DECLARE_PICTURE(D4D_NO_CONST, name, x, y, cx, cy, radius, NULL, NULL, pBmp, flags, pUser, pOnUsrMsg)
227 #define D4D_DECLARE_STD_RPICTURE_INRAM(name, x, y, cx, cy, radius, pBmp) \
228 D4D_DECLARE_RPICTURE_INRAM(name, x, y, cx, cy, radius, pBmp, (D4D_PIC_F_DEFAULT), NULL, NULL)
const D4D_OBJECT_SYS_FUNCTION d4d_pictSysFunc
D4D_BMP eGUI main image structure.
The object system function needed for each object - this is part of D4D_OBJECT main structure...