Subversion Repositories Kolibri OS

Rev

Rev 5598 | Rev 5621 | 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 menu_bar_draw             = #aMenu_bar_draw;
  24. dword menu_bar_activate         = #aMenu_bar_activate;
  25. dword menu_bar_mouse            = #aMenu_bar_mouse;
  26. dword version_menu_bar          = #aVersion_menu_bar;
  27.  
  28. dword scrollbar_v_draw  = #aScrollbar_v_draw;
  29. dword scrollbar_v_mouse = #aScrollbar_v_mouse;
  30. dword scrollbar_h_draw  = #aScrollbar_h_draw;
  31. dword scrollbar_h_mouse = #aScrollbar_h_mouse;
  32. dword version_scrollbar = #aVersion_scrollbar;
  33.  
  34. dword PathShow_prepare = #aPathShow_prepare;
  35. dword PathShow_draw    = #aPathShow_draw;
  36.  
  37. dword progressbar_draw = #aProgressbar_draw;
  38. dword progressbar_progress = #aProgressbar_progress;
  39.  
  40. dword check_box_draw = #aCheck_box_draw;
  41. dword check_box_mouse = #aCheck_box_mouse;
  42. dword version_ch = #aVersion_ch;
  43.  
  44. dword frame_draw = #aFrame_draw;
  45.  
  46. $DD 2 dup 0
  47.  
  48. char aEdit_box_draw []    = "edit_box";
  49. char aEdit_box_key  []    = "edit_box_key";
  50. char aEdit_box_mouse[]    = "edit_box_mouse";
  51. char aVersion_ed    []    = "version_ed";
  52.  
  53. char aMenu_bar_draw    []    = "menu_bar_draw";
  54. char aMenu_bar_activate[]    = "menu_bar_activate";
  55. char aMenu_bar_mouse   []    = "menu_bar_mouse";
  56. char aVersion_menu_bar []    = "version_menu_bar";
  57.  
  58. char aboxlib_init[]        = "lib_init";
  59. char aScrollbar_v_draw [] = "scrollbar_v_draw";
  60. char aScrollbar_v_mouse[] = "scrollbar_v_mouse";
  61. char aScrollbar_h_draw [] = "scrollbar_h_draw";
  62. char aScrollbar_h_mouse[] = "scrollbar_h_mouse";
  63. char aVersion_scrollbar[] = "version_scrollbar";
  64.  
  65. char aCheck_box_draw   [] = "check_box_draw2";
  66. char aCheck_box_mouse  [] = "check_box_mouse2";
  67. char aVersion_ch       [] = "version_ch2";
  68.  
  69. char aOption_box_draw  [] = "option_box_draw";
  70. char aOption_box_mouse [] = "option_box_mouse";
  71. char aVersion_op       [] = "version_op" ;
  72.  
  73. char aPathShow_prepare [] = "PathShow_prepare";
  74. char aPathShow_draw    [] = "PathShow_draw";
  75.  
  76. char aProgressbar_draw  [] = "progressbar_draw";
  77. char aProgressbar_progress[] = "progressbar_progress";
  78.  
  79. char aFrame_draw[] = "frame_draw";
  80.  
  81.  
  82. struct PathShow_data
  83. {
  84. dword type;
  85. word start_y,
  86.         start_x,
  87.         font_size_x,    // 6 - for font 0, 8 - for font 1
  88.         area_size_x;
  89. dword font_number,  // 0 - monospace, 1 - variable
  90.         background_flag,
  91.         font_color,
  92.         background_color,
  93.         text_pointer,
  94.         work_area_pointer,
  95.         temp_text_length;
  96. };
  97. /*
  98. char temp[128];
  99. PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0};
  100. PathShow_prepare stdcall(#PathShow);
  101. PathShow_draw stdcall(#PathShow);
  102. */
  103.  
  104. struct menu_data
  105. {
  106.         dword type;
  107.        
  108.         word size_x;
  109.         word start_x;
  110.        
  111.         word size_y;
  112.         word start_y;
  113.         dword text_pointer;
  114.         dword pos_pointer;
  115.         dword text_end;
  116.         dword mouse_pos;
  117.         dword mouse_keys;
  118.        
  119.         word size_x1;
  120.         word start_x1;
  121.        
  122.         word size_y1;
  123.         word start_y1;
  124.         dword bckg_col;
  125.         dword frnt_col;
  126.         dword menu_col;
  127.         dword select;
  128.         dword out_select;
  129.         dword buf_adress;
  130.         dword procinfo;
  131.         dword click;
  132.         dword cursor;
  133.         dword cursor_old;
  134.         dword interval;
  135.         dword cursor_max;
  136.         dword extended_key;
  137.         dword menu_sel_col;
  138.         dword bckg_text_col;
  139.         dword frnt_text_col;
  140.         dword mouse_keys_old;
  141.         dword font_height;
  142.         dword cursor_out;
  143.         dword get_mouse_flag;
  144. };
  145.  
  146. struct edit_box{
  147. dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
  148. text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
  149. };
  150.  
  151. struct checkbox2
  152. {
  153.   dword
  154.         left_s,
  155.         top_s,
  156.         ch_text_margin,
  157.         color,
  158.         border_color,
  159.         text_color,
  160.         text,
  161.         flags,
  162.         size_of_str;
  163. };
  164.  
  165. //flags for checkbox2
  166. #define CH_FLAG_EN 10b      
  167. #define CH_FLAG_TOP 0x0    
  168. #define CH_FLAG_MIDDLE 100b
  169. #define CH_FLAG_BOTTOM 1000b
  170.  
  171. struct scroll_bar
  172. {
  173.         word size_x,
  174.         start_x,
  175.         size_y,
  176.         start_y;
  177.         dword btn_height,
  178.         type,
  179.         max_area,
  180.         cur_area,
  181.         position,
  182.         bckg_col,
  183.         frnt_col,
  184.         line_col,
  185.         redraw;
  186.         word delta,
  187.         delta2,
  188.         r_size_x,
  189.         r_start_x,
  190.         r_size_y,
  191.         r_start_y;
  192.         dword m_pos,
  193.         m_pos_2,
  194.         m_keys,
  195.         run_size,
  196.         position2,
  197.         work_size,
  198.         all_redraw,
  199.         ar_offset;
  200. };
  201.  
  202. struct progress_bar
  203. {
  204.   dword
  205.         value,
  206.         left,
  207.         top,
  208.         width,
  209.         height,
  210.         style,
  211.         min,
  212.         max,
  213.         back_color,
  214.         progress_color,
  215.         frame_color;
  216. };
  217.  
  218. struct frame
  219. {
  220.         dword type;
  221.         word size_x;                  
  222.         word start_x;                
  223.         word size_y;                  
  224.         word start_y;                
  225.         dword ext_col;            
  226.         dword int_col;            
  227.         dword draw_text_flag;  // 0-not,1-yes
  228.         dword text_pointer;          
  229.         dword text_position;   //  0-up,1-bottom
  230.         dword font_number;     //  0-monospace,1-variable
  231.         dword font_size_y;          
  232.         dword font_color;            
  233.         dword font_backgr_color;
  234. };    
  235.  
  236. #endif