ms_slidex.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:3k
源码类别:

DVD

开发平台:

Others

  1. /***********************************************************************/
  2. /* File:    */
  3. /*   Copyright (c) 2002 ZORAN Corporation, All Rights Reserved    */
  4. /*   THIS IS PROPRIETARY SOURCE CODE OF ZORAN CORPORATION             */
  5. /*    */
  6. /* ===========                                                         */
  7. /* Descripton:                                                         */
  8. /* ===========                                                         */
  9. /*                                                                     */
  10. /* Log:                                                                */
  11. /* ===                                                                 */
  12. /* $Name: $                                                            
  13. /* $Header: /SourceCode/I64_Common/I64_Reference/UI/Menu_sys/ms_slidex.h 2     03-02-19 21:48 Rogerl $                                                          
  14. /* $Log: /SourceCode/I64_Common/I64_Reference/UI/Menu_sys/ms_slidex.h $                        
  15.  * 
  16.  * 2     03-02-19 21:48 Rogerl
  17.  * Add MS_SLIDER_EX_HLP support
  18.  * 
  19.  * 1     03-01-17 11:54 Rogerl
  20.  * Add New widgets: MS_COMBO_BUTTON,MS_EXT_BUTTON,MS_choice_ex,ms_slider_e
  21.  * x
  22. / * 
  23.                        
  24. /***********************************************************************/
  25. #ifndef _MS_SLIDEX_H
  26. #define  _MS_SLIDEX_H
  27. //
  28. //    -|-  scale  
  29. //      |     
  30. //    -=- marker
  31. //      |   
  32. //    -|- 
  33. //   |
  34. //    -|-
  35. //
  36.  // vertical slider
  37.  //
  38.  //
  39. typedef struct  ms_slider_ex {
  40. MS_SLIDER slider;
  41. void** scale_list;
  42. } MS_SLIDER_EX;
  43. typedef struct  ms_slider_ex_hlp {
  44. MS_SLIDER_EX  slider_ex;
  45. MS_STATIC *helptext;
  46. const  MS_TEXT_LIST  *help_list;
  47. } MS_SLIDER_EX_HLP;
  48. #define MS_SLIDER_EX_VERTICAL 0x10
  49. #define MS_SLIDER_EX_SCALE 0x20
  50. #define MS_IS_VSLIDER(widget) ((((MS_WIDGET *)(widget))->attr & MS_SLIDER_EX_VERTICAL) == MS_SLIDER_EX_VERTICAL)
  51. #define MS_SLIDER_WITH_SCALE(widget) ((((MS_WIDGET *)(widget))->attr & MS_SLIDER_EX_SCALE ) == MS_SLIDER_EX_SCALE )
  52. MS_SLIDER_EX *MS_create_slider_ex(MS_POS *pos,
  53. MS_COLOR color,
  54. unsigned char max_value,
  55. unsigned char cur_ratio,
  56. unsigned char step,
  57. void (* action)(unsigned char cur_ratio),
  58. int tick_ratio,
  59. unsigned char attr,
  60. void** scale_list );
  61. MS_UOP slider_ex_user_op(MS_WIDGET *widget,MS_UOP uop,char param) ;
  62. MS_SLIDER_EX_HLP *MS_create_slider_ex_hlp(MS_POS *pos,
  63. MS_COLOR color,
  64. unsigned char max_value,
  65. unsigned char cur_ratio,
  66. unsigned char step,
  67. void (* action)(unsigned char cur_ratio),
  68. int tick_ratio,
  69. unsigned char attr,
  70. void** scale_list ,
  71. MS_STATIC * helptext,
  72. MS_TEXT_LIST *help_list);
  73. MS_UOP slider_ex_hlp_user_op(MS_WIDGET *widget,MS_UOP uop,char param) ;
  74. #endif