mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mimagebutton.h
Go to the documentation of this file.
1 //
3 // IMPORTANT NOTICE
4 //
5 // The following open source license statement does not apply to any
6 // entity in the Exception List published by FMSoft.
7 //
8 // For more information, please visit:
9 //
10 // https://www.fmsoft.cn/exception-list
11 //
13 
54 #ifdef _MGNCSCTRL_IMAGEBUTTON
55 
56 #ifndef _MGUI_NCSCTRL_IMAGEBUTTON_H
57 #define _MGUI_NCSCTRL_IMAGEBUTTON_H
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
72 #define NCSCTRL_IMAGEBUTTON NCSCLASSNAME("imagebutton")
73 
74 DECLARE_OBJECT(mImageButton)
75 
76 
77 #define mImageButtonHeader(clss) \
78  mButtonHeader(clss)
79 
80 #define mImageButtonClassHeader(clss, superCls) \
81  mButtonClassHeader(clss, superCls)
82 
83 typedef mButtonRenderer mImageButtonRenderer;
84 
85 DEFINE_OBJECT(mImageButton, mButton)
86 
87 enum mImageButtonProp {
88  NCSP_IMGBTN_IMAGE = NCSP_BUTTON_IMAGE,
89  NCSP_IMGBTN_TOOLIMAGEFILE = NCSP_BUTTON_MAX + 1,
90  NCSP_IMGBTN_TOOLIMAGE,
91  NCSP_IMGBTN_MAX
92 };
93 
94 enum mImageButtonNotify{
95  NCSN_IMGBTN_MAX = NCSN_BUTTON_MAX + 1
96 };
97 
98 #ifdef __cplusplus
99 }
100 #endif
101 
102 #endif
103 #endif //_MGNCSCTRL_IMAGEBUTTON
mButton
Button class, derived from mWidget.
NCSP_BUTTON_IMAGE
@ NCSP_BUTTON_IMAGE
Set the button image pointer.
Definition: mbutton.h:219
mButtonRenderer
Button class renderer interface, derived from mWidgetRenderer.