ms_slidex.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:3k
- /***********************************************************************/
- /* File: */
- /* Copyright (c) 2002 ZORAN Corporation, All Rights Reserved */
- /* THIS IS PROPRIETARY SOURCE CODE OF ZORAN CORPORATION */
- /* */
- /* =========== */
- /* Descripton: */
- /* =========== */
- /* */
- /* Log: */
- /* === */
- /* $Name: $
- /* $Header: /SourceCode/I64_Common/I64_Reference/UI/Menu_sys/ms_slidex.h 2 03-02-19 21:48 Rogerl $
- /* $Log: /SourceCode/I64_Common/I64_Reference/UI/Menu_sys/ms_slidex.h $
- *
- * 2 03-02-19 21:48 Rogerl
- * Add MS_SLIDER_EX_HLP support
- *
- * 1 03-01-17 11:54 Rogerl
- * Add New widgets: MS_COMBO_BUTTON,MS_EXT_BUTTON,MS_choice_ex,ms_slider_e
- * x
- / *
-
- /***********************************************************************/
- #ifndef _MS_SLIDEX_H
- #define _MS_SLIDEX_H
- //
- // -|- scale
- // |
- // -=- marker
- // |
- // -|-
- // |
- // -|-
- //
- // vertical slider
- //
- //
- typedef struct ms_slider_ex {
- MS_SLIDER slider;
- void** scale_list;
- } MS_SLIDER_EX;
- typedef struct ms_slider_ex_hlp {
- MS_SLIDER_EX slider_ex;
- MS_STATIC *helptext;
- const MS_TEXT_LIST *help_list;
- } MS_SLIDER_EX_HLP;
- #define MS_SLIDER_EX_VERTICAL 0x10
- #define MS_SLIDER_EX_SCALE 0x20
- #define MS_IS_VSLIDER(widget) ((((MS_WIDGET *)(widget))->attr & MS_SLIDER_EX_VERTICAL) == MS_SLIDER_EX_VERTICAL)
- #define MS_SLIDER_WITH_SCALE(widget) ((((MS_WIDGET *)(widget))->attr & MS_SLIDER_EX_SCALE ) == MS_SLIDER_EX_SCALE )
- MS_SLIDER_EX *MS_create_slider_ex(MS_POS *pos,
- MS_COLOR color,
- unsigned char max_value,
- unsigned char cur_ratio,
- unsigned char step,
- void (* action)(unsigned char cur_ratio),
- int tick_ratio,
- unsigned char attr,
- void** scale_list );
- MS_UOP slider_ex_user_op(MS_WIDGET *widget,MS_UOP uop,char param) ;
- MS_SLIDER_EX_HLP *MS_create_slider_ex_hlp(MS_POS *pos,
- MS_COLOR color,
- unsigned char max_value,
- unsigned char cur_ratio,
- unsigned char step,
- void (* action)(unsigned char cur_ratio),
- int tick_ratio,
- unsigned char attr,
- void** scale_list ,
- MS_STATIC * helptext,
- MS_TEXT_LIST *help_list);
- MS_UOP slider_ex_hlp_user_op(MS_WIDGET *widget,MS_UOP uop,char param) ;
- #endif