mtrackbar.h

Go to the documentation of this file.
00001 
00018 #ifdef _MGNCSCTRL_TRACKBAR
00019 
00020 #ifndef _MGUI_NCSCTRL_TRACKBAR_H
00021 #define _MGUI_NCSCTRL_TRACKBAR_H
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif  /* __cplusplus */
00026 
00032 /*
00033  * \def NCSCTRL_TRACKBAR
00034  * \brief the name of TrackBar control
00035 */
00036 #define NCSCTRL_TRACKBAR   NCSCLASSNAME("trackbar")
00037 
00038 typedef struct _mTrackBar            mTrackBar;
00039 typedef struct _mTrackBarClass       mTrackBarClass;
00040 typedef struct _mTrackBarRenderer    mTrackBarRenderer;
00041 
00042 #define mTrackBarHeader(Class) \
00043     mSliderHeader(Class)
00044 
00051 struct _mTrackBar
00052 {
00053         mTrackBarHeader(mTrackBar)
00054 };
00055 
00056 #define mTrackBarClassHeader(clsName, parentClass) \
00057         mSliderClassHeader(clsName, parentClass)
00058 
00065 struct _mTrackBarClass
00066 {
00067         mTrackBarClassHeader(mTrackBar, mSlider)
00068 };
00069 
00076 MGNCS_EXPORT extern mTrackBarClass g_stmTrackBarCls;
00077 
00078 #define mHTrackBar mTrackBar
00079 #define mHTrackBarClass mTrackBarClass
00080 #define g_stmHTrackBarCls  g_stmTrackBarCls
00081 #define mVTrackBar mTrackBar
00082 #define mVTrackBarClass mTrackBarClass
00083 #define g_stmVTrackBarCls  g_stmTrackBarCls
00084 
00085 
00086 #define mTrackBarRendererHeader(clsName, parentClass) \
00087         mSliderRendererHeader(clsName, parentClass)
00088 
00095 struct _mTrackBarRenderer
00096 {
00097         mTrackBarRendererHeader(mTrackBar, mSlider)
00098 };
00099 
00100 enum mTrackBarCalcArea {
00101         NCSTRACKBAR_AREA_TRICK = 0x10
00102 };
00103 
00104 
00109 #define NCSP_TRKBAR_MAXPOS              NCSP_SLIDER_MAXPOS
00110 
00114 #define NCSP_TRKBAR_MINPOS              NCSP_SLIDER_MINPOS
00115 
00119 #define NCSP_TRKBAR_CURPOS              NCSP_SLIDER_CURPOS
00120 
00124 #define NCSP_TRKBAR_LINESTEP    NCSP_SLIDER_LINESTEP
00125 
00129 #define NCSP_TRKBAR_PAGESTEP    NCSP_SLIDER_PAGESTEP
00130 
00135 enum mTrackBarProp{
00137         NCSP_TRKBAR_THUMB_WIDTH = NCSP_SLIDER_MAX + 1,
00139         NCSP_TRKBAR_THUMB_HEIGHT,
00143         NCSP_TRKBAR_MAX
00144 };
00145 
00161 #define NCSS_TRKBAR_HORIZONTAL NCSS_SLIDER_HORIZONTAL
00162 
00167 #define NCSS_TRKBAR_VERTICAL   NCSS_SLIDER_VERTICAL
00168 
00173 #define NCSS_TRKBAR_NOTICK     (0x0001L<<NCSS_SLIDER_SHIFT)
00174 
00175 #define NCSS_TRKBAR_SHIFT      NCSS_SLIDER_SHIFT + 1
00176 
00181 #define NCSN_TRKBAR_CHANGED    NCSN_SLIDER_CHANGED
00182 
00187 #define NCSN_TRKBAR_REACHMAX   NCSN_SLIDER_REACHMAX
00188 
00193 #define NCSN_TRKBAR_REACHMIN   NCSN_SLIDER_REACHMIN
00194 
00199 //#define       NCSN_TRKBAR_STARTDRAG  NCSN_SLIDER_STARTDRAG
00200 
00205 //#define       NCSN_TRKBAR_STOPDRAG   NCSN_SLIDER_STOPDRAG
00206 
00207 #define NCSN_TRKBAR_MAX        NCSN_SLIDER_MAX
00208 
00209 
00210 #define HORZ_SLIDER_W           24
00211 #define HORZ_SLIDER_H           12
00212 
00213 #define VERT_SLIDER_W           12
00214 #define VERT_SLIDER_H           24
00215 
00216 #define VERT_TRACK_W            6
00217 #define HORZ_TRACK_H            6
00218 
00219 #define LEN_TICK                4
00220 #define GAP_TICK_SLIDER         6
00221 
00224 #ifdef __cplusplus
00225 }
00226 #endif  /* __cplusplus */
00227 
00228 #endif /* _MGUI_NCSCTRL_TRACKBAR_H */
00229 #endif //_MGNCSCTRL_TRACKBAR
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3