mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mimage.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_NCSCTRL_IMAGESTATIC_H
43 #define _MGUI_NCSCTRL_IMAGESTATIC_H
44 
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif /* __cplusplus */
49 #include "mstatic.h"
50 
60 #define NCSCTRL_IMAGE NCSCLASSNAME("image")
61 
62 typedef struct _mImage mImage;
63 typedef struct _mImageClass mImageClass;
64 typedef struct _mImageRenderer mImageRenderer;
65 
66 #define mImageHeader(clsName) \
67  mStaticHeader(clsName)
68 
73 struct _mImage
74 {
75  mImageHeader(mImage)
76 };
77 
78 #define mImageClassHeader(clsName, parentClass) \
79  mStaticClassHeader(clsName, parentClass)
80 
85 struct _mImageClass
86 {
87  mImageClassHeader(mImage, mStatic)
88 };
89 
90 #define mImageRendererHeader(clsName, parentClass) \
91  mStaticRendererHeader(clsName, parentClass)
92 
96 /* define the render of image static */
97 struct _mImageRenderer {
98  mImageRendererHeader(mImage, mStatic)
99 };
100 
106 MGNCS_EXPORT extern mImageClass g_stmImageCls;
107 
113 /* property */
122  NCSP_IMAGE_IMAGE = NCSP_STATIC_MAX + 1,
139  NCSP_IMAGE_MAX
140 };
141 
142 #define NCSS_IMAGE_SHIFT NCSS_STATIC_SHIFT
143 
149  NCSN_IMAGE_MAX = NCSN_STATIC_MAX + 1
150 };
151 
156 #ifdef __cplusplus
157 }
158 #endif /* __cplusplus */
159 
160 #endif /* _MGUI_NCSCTRL_STATIC_H */
161 
Set the image content.
Definition: mimage.h:130
image class renderer interface, derived from mStaticRenderer
Set image draw mode.
Definition: mimage.h:138
ImageClass struct of image control, derived from mStaticClass.
Set the image content.
Definition: mimage.h:122
mImageProp
the properties id of mImage
Definition: mimage.h:114
static control can show a image, derived from mStatic
Static class, derived from mWidget.
enumImageNotify
the notification code of mImage
Definition: mimage.h:148
MGNCS_EXPORT mImageClass g_stmImageCls
global mImageClass