Subversion Repositories Kolibri OS

Rev

Rev 5520 | Rev 5611 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. //BOX_LIB - Asper
  2. #ifndef INCLUDE_BOX_LIB_H
  3. #define INCLUDE_BOX_LIB_H
  4.  
  5. #ifndef INCLUDE_KOLIBRI_H
  6. #include "../lib/kolibri.h"
  7. #endif
  8.  
  9. #ifndef INCLUDE_DLL_H
  10. #include "../lib/dll.h"
  11. #endif
  12.  
  13. dword boxlib = #aEdit_box_lib;
  14. char aEdit_box_lib[]="/sys/lib/box_lib.obj";
  15.  
  16. dword box_lib_init   = #aboxlib_init;
  17.  
  18. dword edit_box_draw  = #aEdit_box_draw;
  19. dword edit_box_key   = #aEdit_box_key;
  20. dword edit_box_mouse = #aEdit_box_mouse;
  21. dword version_ed     = #aVersion_ed;
  22.  
  23. dword scrollbar_v_draw  = #aScrollbar_v_draw;
  24. dword scrollbar_v_mouse = #aScrollbar_v_mouse;
  25. dword scrollbar_h_draw  = #aScrollbar_h_draw;
  26. dword scrollbar_h_mouse = #aScrollbar_h_mouse;
  27. dword version_scrollbar = #aVersion_scrollbar;
  28.  
  29. dword PathShow_prepare = #aPathShow_prepare;
  30. dword PathShow_draw    = #aPathShow_draw;
  31.  
  32. dword progressbar_draw = #aProgressbar_draw;
  33. dword progressbar_progress = #aProgressbar_progress;
  34.  
  35. dword check_box_draw = #aCheck_box_draw;
  36. dword check_box_mouse = #aCheck_box_mouse;
  37. dword version_ch = #aVersion_ch;
  38.  
  39. dword frame_draw = #aFrame_draw;
  40.  
  41. $DD 2 dup 0
  42.  
  43. char aEdit_box_draw []    = "edit_box";
  44. char aEdit_box_key  []    = "edit_box_key";
  45. char aEdit_box_mouse[]    = "edit_box_mouse";
  46. char aVersion_ed    []    = "version_ed";
  47.  
  48. char aboxlib_init[]        = "lib_init";
  49. char aScrollbar_v_draw [] = "scrollbar_v_draw";
  50. char aScrollbar_v_mouse[] = "scrollbar_v_mouse";
  51. char aScrollbar_h_draw [] = "scrollbar_h_draw";
  52. char aScrollbar_h_mouse[] = "scrollbar_h_mouse";
  53. char aVersion_scrollbar[] = "version_scrollbar";
  54.  
  55. char aCheck_box_draw   [] = "check_box_draw2";
  56. char aCheck_box_mouse  [] = "check_box_mouse2";
  57. char aVersion_ch       [] = "version_ch2";
  58.  
  59. char aOption_box_draw  [] = "option_box_draw";
  60. char aOption_box_mouse [] = "option_box_mouse";
  61. char aVersion_op       [] = "version_op" ;
  62.  
  63. char aPathShow_prepare [] = "PathShow_prepare";
  64. char aPathShow_draw    [] = "PathShow_draw";
  65.  
  66. char aProgressbar_draw  [] = "progressbar_draw";
  67. char aProgressbar_progress[] = "progressbar_progress";
  68.  
  69. char aFrame_draw[] = "frame_draw";
  70.  
  71.  
  72. struct PathShow_data
  73. {
  74. dword type;
  75. word start_y,
  76.         start_x,
  77.         font_size_x,    // 6 - for font 0, 8 - for font 1
  78.         area_size_x;
  79. dword font_number,  // 0 - monospace, 1 - variable
  80.         background_flag,
  81.         font_color,
  82.         background_color,
  83.         text_pointer,
  84.         work_area_pointer,
  85.         temp_text_length;
  86. };
  87. /*
  88. char temp[128];
  89. PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0};
  90. PathShow_prepare stdcall(#PathShow);
  91. PathShow_draw stdcall(#PathShow);
  92. */
  93.  
  94.  
  95. struct edit_box{
  96. dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
  97. text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
  98. };
  99.  
  100. struct checkbox2
  101. {
  102.   dword
  103.         left_s,
  104.         top_s,
  105.         ch_text_margin,
  106.         color,
  107.         border_color,
  108.         text_color,
  109.         text,
  110.         flags,
  111.         size_of_str;
  112. };
  113.  
  114. //flags for checkbox2
  115. #define CH_FLAG_EN 10b      
  116. #define CH_FLAG_TOP 0x0    
  117. #define CH_FLAG_MIDDLE 100b
  118. #define CH_FLAG_BOTTOM 1000b
  119.  
  120. struct scroll_bar
  121. {
  122.         word size_x,
  123.         start_x,
  124.         size_y,
  125.         start_y;
  126.         dword btn_height,
  127.         type,
  128.         max_area,
  129.         cur_area,
  130.         position,
  131.         bckg_col,
  132.         frnt_col,
  133.         line_col,
  134.         redraw;
  135.         word delta,
  136.         delta2,
  137.         r_size_x,
  138.         r_start_x,
  139.         r_size_y,
  140.         r_start_y;
  141.         dword m_pos,
  142.         m_pos_2,
  143.         m_keys,
  144.         run_size,
  145.         position2,
  146.         work_size,
  147.         all_redraw,
  148.         ar_offset;
  149. };
  150.  
  151. struct progress_bar
  152. {
  153.   dword
  154.         value,
  155.         left,
  156.         top,
  157.         width,
  158.         height,
  159.         style,
  160.         min,
  161.         max,
  162.         back_color,
  163.         progress_color,
  164.         frame_color;
  165. };
  166.  
  167. struct frame
  168. {
  169.         dword type;
  170.         word size_x;                  
  171.         word start_x;                
  172.         word size_y;                  
  173.         word start_y;                
  174.         dword ext_col;            
  175.         dword int_col;            
  176.         dword draw_text_flag;  // 0-not,1-yes
  177.         dword text_pointer;          
  178.         dword text_position;   //  0-up,1-bottom
  179.         dword font_number;     //  0-monospace,1-variable
  180.         dword font_size_y;          
  181.         dword font_color;            
  182.         dword font_backgr_color;
  183. };    
  184.  
  185. #endif