mtoolbaritems.h
00001
00002 #ifndef MGNCS_TOOLBAR_ITEMS_H
00003 #define MGNCS_TOOLBAR_ITEMS_H
00004
00006
00010 typedef struct _mPushToolItemClass mPushToolItemClass;
00011 typedef struct _mPushToolItem mPushToolItem;
00012
00013 typedef struct mPushToolItemCreateInfo{
00014 mToolImage * toolImg;
00015 const char * str;
00016 UINT flags;
00017 }mPushToolItemCreateInfo;
00018
00019 #define mPushToolItemClassHeader(clss, clssSuper) \
00020 mAbstractButtonPieceClassHeader(clss, clssSuper) \
00021 mHotPiece * (*createContent)(clss*, mPushToolItemCreateInfo* create_info); \
00022 BOOL (*setCheck)(clss *, int state); \
00023 int (*getCheck)(clss *);
00024
00025 struct _mPushToolItemClass
00026 {
00027 mPushToolItemClassHeader(mPushToolItem, mAbstractButtonPiece)
00028 };
00029
00030 #define mPushToolItemHeader(clss) \
00031 mAbstractButtonPieceHeader(clss)
00032
00033 struct _mPushToolItem
00034 {
00035 mPushToolItemHeader(mPushToolItem)
00036 };
00037
00038 MGNCS_EXPORT extern mPushToolItemClass g_stmPushToolItemCls;
00039
00040
00044 typedef struct _mMenuToolItemClass mMenuToolItemClass;
00045 typedef struct _mMenuToolItem mMenuToolItem;
00046
00047
00048 #define mMenuToolItemClassHeader(clss, clssSuper) \
00049 mPushToolItemClassHeader(clss, clssSuper) \
00050 BOOL (*showMenu)(clss *, mWidget *owner);
00051
00052 struct _mMenuToolItemClass
00053 {
00054 mMenuToolItemClassHeader(mMenuToolItem, mPushToolItem)
00055 };
00056
00057 #define mMenuToolItemHeader(clss) \
00058 mPushToolItemHeader(clss) \
00059 mPopMenuMgr * popmenu;
00060
00061 struct _mMenuToolItem
00062 {
00063 mMenuToolItemHeader(mMenuToolItem)
00064 };
00065
00066 MGNCS_EXPORT extern mMenuToolItemClass g_stmMenuToolItemCls;
00067
00068
00069
00070 #endif
00071
00072