mscrollbar.h

Go to the documentation of this file.
00001 
00018 #ifdef _MGNCSCTRL_SCROLLBAR
00019 
00020 #ifndef _MGUI_NCSCTRL_SCRLBR_H
00021 #define _MGUI_NCSCTRL_SCRLBR_H
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif  /* __cplusplus */
00026 
00032 /*
00033  * \def NCSCTRL_SCROLLBAR
00034  * \brief the name of scrollbar control
00035 */
00036 #define NCSCTRL_SCROLLBAR   NCSCLASSNAME("scrollbar")
00037 
00038 typedef struct _mScrollBar            mScrollBar;
00039 typedef struct _mScrollBarClass       mScrollBarClass;
00040 typedef struct _mScrollBarRenderer    mScrollBarRenderer;
00041 
00042 #define mScrollBarHeader(Class) \
00043     mSliderHeader(Class)
00044 
00051 struct _mScrollBar
00052 {
00053         mScrollBarHeader(mScrollBar)
00054 };
00055 
00056 #define mScrollBarClassHeader(clsName, parentClass) \
00057         mSliderClassHeader(clsName, parentClass)
00058 
00065 struct _mScrollBarClass
00066 {
00067         mScrollBarClassHeader(mScrollBar, mSlider)
00068 };
00069 
00076 MGNCS_EXPORT extern mScrollBarClass g_stmScrollBarCls;
00077 
00078 
00079 #define mHScrollBar mScrollBar
00080 #define mHScrollBarClass mScrollBarClass
00081 #define g_stmHScrollBarCls  g_stmScrollBarCls
00082 #define mVScrollBar mScrollBar
00083 #define mVScrollBarClass mScrollBarClass
00084 #define g_stmVScrollBarCls  g_stmScrollBarCls
00085 
00086 
00087 #define mScrollBarRendererHeader(clsName, parentClass) \
00088         mSliderRendererHeader(clsName, parentClass)
00089 
00096 struct _mScrollBarRenderer
00097 {
00098         mScrollBarRendererHeader(mScrollBar, mSlider)
00099 };
00100 
00101 
00106 #define NCSP_SCRLBR_MAXPOS              NCSP_SLIDER_MAXPOS
00107 
00111 #define NCSP_SCRLBR_MINPOS              NCSP_SLIDER_MINPOS
00112 
00116 #define NCSP_SCRLBR_CURPOS              NCSP_SLIDER_CURPOS
00117 
00121 #define NCSP_SCRLBR_LINESTEP    NCSP_SLIDER_LINESTEP
00122 
00126 #define NCSP_SCRLBR_PAGESTEP    NCSP_SLIDER_PAGESTEP
00127 
00128 #define NCSP_SCRLBR_MAX        (NCSP_SLIDER_MAX + 1)
00129 
00130 
00135 #define NCSS_SCRLBR_HORIZONTAL       NCSS_SLIDER_HORIZONTAL
00136 
00140 #define NCSS_SCRLBR_ARROWS           (1<<NCSS_SLIDER_SHIFT)
00141 
00146 #define NCSS_SCRLBR_LEFTDBLARROWS    (2<<NCSS_SLIDER_SHIFT)
00147 
00152 #define NCSS_SCRLBR_UPDBLARROWS      NCSS_SCRLBR_LEFTDBLARROWS
00153 
00158 #define NCSS_SCRLBR_RIGHTDBLARROWS   (4<<NCSS_SLIDER_SHIFT)
00159 
00164 #define NCSS_SCRLBR_DOWNDBLARROWS     NCSS_SCRLBR_RIGHTDBLARROWS
00165 #define NCSS_SCRLBR_SHIFT            (3+NCSS_SLIDER_SHIFT)
00166 
00171 #define NCSS_SCRLBR_VERTICAL   NCSS_SLIDER_VERTICAL
00172 
00177 #define NCSN_SCRLBR_CHANGED    NCSN_SLIDER_CHANGED
00178 
00183 #define NCSN_SCRLBR_REACHMAX   NCSN_SLIDER_REACHMAX
00184 
00189 #define NCSN_SCRLBR_REACHMIN   NCSN_SLIDER_REACHMIN
00190 
00195 //#define       NCSN_SCRLBR_STARTDRAG  NCSN_SLIDER_STARTDRAG
00196 
00201 //#define       NCSN_SCRLBR_STOPDRAG   NCSN_SLIDER_STOPDRAG
00202 
00203 #define NCSN_SCRLBR_MAX        NCSN_SLIDER_MAX
00204 
00207 #ifdef __cplusplus
00208 }
00209 #endif  /* __cplusplus */
00210 
00211 #endif /* _MGUI_NCSCTRL_SCRLBR_H */
00212 #endif //_MGNCSCTRL_SCROLLBAR
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3