mwidgetwrapperpiece.h
00001
00002 #ifndef _MGUI_NCSCTRL_WIDGETWRAPPERPIECE_H
00003 #define _MGUI_NCSCTRL_WIDGETWRAPPERPIECE_H
00004
00005 #ifdef __cplusplus
00006 extern "C" {
00007 #endif
00008
00009 typedef struct _mWidgetWrapperPieceClass mWidgetWrapperPieceClass;
00010 typedef struct _mWidgetWrapperPiece mWidgetWrapperPiece;
00011
00012 #define mWidgetWrapperPieceClassHeader(clss, superCls) \
00013 mHotPieceClassHeader(clss, superCls)
00014
00015 struct _mWidgetWrapperPieceClass
00016 {
00017 mWidgetWrapperPieceClassHeader(mWidgetWrapperPiece, mHotPiece)
00018 };
00019
00020 MGNCS_EXPORT extern mWidgetWrapperPieceClass g_stmWidgetWrapperPieceCls;
00021
00022 #define mWidgetWrapperPieceHeader(clss) \
00023 mHotPieceHeader(clss) \
00024 mObject * widget;
00025
00026 struct _mWidgetWrapperPiece
00027 {
00028 mWidgetWrapperPieceHeader(mWidgetWrapperPiece)
00029 };
00030
00031 #define MSG_SETPIECE_PROPERTY MSG_USER + 1234
00032 #define MSG_GETPIECE_PROPERTY MSG_USER + 1235
00033
00034 #define RAISE_EVENT(obj,id, param) _c(obj)->raiseEvent(obj, id, param)
00035
00036 #ifdef __cplusplus
00037 }
00038 #endif
00039
00040 #endif
00041