mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mtoolbaritems.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 #ifndef MGNCS_TOOLBAR_ITEMS_H
55 #define MGNCS_TOOLBAR_ITEMS_H
56 
58 
62 typedef struct _mPushToolItemClass mPushToolItemClass;
63 typedef struct _mPushToolItem mPushToolItem;
64 
65 typedef struct mPushToolItemCreateInfo{
66  mToolImage * toolImg;
67  const char * str;
68  UINT flags;
69 }mPushToolItemCreateInfo;
70 
71 #define mPushToolItemClassHeader(clss, clssSuper) \
72  mAbstractButtonPieceClassHeader(clss, clssSuper) \
73  mHotPiece * (*createContent)(clss*, mPushToolItemCreateInfo* create_info); \
74  BOOL (*setCheck)(clss *, int state); \
75  int (*getCheck)(clss *);
76 
77 struct _mPushToolItemClass
78 {
79  mPushToolItemClassHeader(mPushToolItem, mAbstractButtonPiece)
80 };
81 
82 #define mPushToolItemHeader(clss) \
83  mAbstractButtonPieceHeader(clss)
84 
85 struct _mPushToolItem
86 {
87  mPushToolItemHeader(mPushToolItem)
88 };
89 
90 MGNCS_EXPORT extern mPushToolItemClass g_stmPushToolItemCls;
91 
92 
96 typedef struct _mMenuToolItemClass mMenuToolItemClass;
97 typedef struct _mMenuToolItem mMenuToolItem;
98 
99 
100 #define mMenuToolItemClassHeader(clss, clssSuper) \
101  mPushToolItemClassHeader(clss, clssSuper) \
102  BOOL (*showMenu)(clss *, mWidget *owner);
103 
104 struct _mMenuToolItemClass
105 {
106  mMenuToolItemClassHeader(mMenuToolItem, mPushToolItem)
107 };
108 
109 #define mMenuToolItemHeader(clss) \
110  mPushToolItemHeader(clss) \
111  mPopMenuMgr * popmenu;
112 
113 struct _mMenuToolItem
114 {
115  mMenuToolItemHeader(mMenuToolItem)
116 };
117 
118 MGNCS_EXPORT extern mMenuToolItemClass g_stmMenuToolItemCls;
119 
120 
121 
122 #endif
123 
124 
mMenuToolItemClass
struct _mMenuToolItemClass mMenuToolItemClass
Definition: mtoolbaritems.h:96
mPushToolItemClass
struct _mPushToolItemClass mPushToolItemClass
Definition: mtoolbaritems.h:62