home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / programs / patches / newbar / Source / NewBar / h / options < prev    next >
Encoding:
Text File  |  1998-08-07  |  1.7 KB  |  81 lines

  1.  
  2. /* options.h */
  3.  
  4. #ifndef thiniconbar_options_H
  5. #define thiniconbar_options_H
  6.  
  7.  
  8. #include "Dreamscape:bool.h"
  9.  
  10. #define scroll_type_NONE    0 /* Scrolling disabled */
  11. #define scroll_type_LINEAR    1 /* Linear scroll per poll */
  12. #define scroll_type_LINEAR_S    2 /* Linear scroll speed */
  13. #define scroll_type_PROP    3 /* Proportional scroll per poll */
  14. #define scroll_type_MOVE    4 /* Move with pointer */
  15.  
  16. #define border_type_NONE    0
  17. #define border_type_PLAIN    1
  18. #define border_type_SLAB_OUT    2
  19. #define border_type_SLAB_IN    3
  20.  
  21. #define arrangement_TEXT_BOTTOM    0
  22. #define arrangement_TEXT_RIGHT    1
  23.  
  24. typedef struct thiniconbar_options thiniconbar_options;
  25. struct thiniconbar_options {
  26.     /* Gaps */
  27.   int    end_gap,
  28.     between_gap,
  29.     central_gap,
  30.     top_gap,
  31.     sprite_margin,
  32.     text_margin,
  33.     sprite_text_gap,
  34.     icon_h_margins,
  35.     /* Heights */
  36.     icon_height,
  37.     window_height,
  38.     /* Scrolling */
  39.     scroll_type,
  40.     scroll_margin,
  41.     scroll_step,
  42.     scroll_speed,
  43.     /* Colours */
  44.     text_colour,
  45.     icon_bg_colour,
  46.     window_bg_colour,
  47.     /* Borders */
  48.     icon_borders,
  49.     border_size;
  50.   bool    window_border;
  51.     /* Menus */
  52.   int    menu_y_offset;
  53.     /* Misc */
  54.   bool    small_icons;
  55.   bool    use_task_name;
  56.   int    text_height;
  57.   char *font;
  58.   double font_size,
  59.     font_width;
  60.   int    arrangement;
  61.     /* Pinboard */
  62.   bool    patch_pinboard;
  63.   int    pinboard_bg_colour;
  64. };
  65.  
  66.  
  67. extern thiniconbar_options *options;
  68.  
  69. /* Create (a default) options object (may return 0); and destroy one. */
  70. thiniconbar_options *thiniconbar_options_create(void);
  71. void thiniconbar_options_destroy(thiniconbar_options *obj);
  72.  
  73. /* Methods of reading options.  Both return true if something failed. */
  74. bool thiniconbar_options_from_file(thiniconbar_options *obj,
  75.     const char *filename);
  76. bool thiniconbar_options_from_cli(thiniconbar_options *obj,
  77.     int argc, char *argv[]);
  78.  
  79.  
  80. #endif
  81.