home *** CD-ROM | disk | FTP | other *** search
-
- /* options.h */
-
- #ifndef thiniconbar_options_H
- #define thiniconbar_options_H
-
-
- #include "Dreamscape:bool.h"
-
- #define scroll_type_NONE 0 /* Scrolling disabled */
- #define scroll_type_LINEAR 1 /* Linear scroll per poll */
- #define scroll_type_LINEAR_S 2 /* Linear scroll speed */
- #define scroll_type_PROP 3 /* Proportional scroll per poll */
- #define scroll_type_MOVE 4 /* Move with pointer */
-
- #define border_type_NONE 0
- #define border_type_PLAIN 1
- #define border_type_SLAB_OUT 2
- #define border_type_SLAB_IN 3
-
- #define arrangement_TEXT_BOTTOM 0
- #define arrangement_TEXT_RIGHT 1
-
- typedef struct thiniconbar_options thiniconbar_options;
- struct thiniconbar_options {
- /* Gaps */
- int end_gap,
- between_gap,
- central_gap,
- top_gap,
- sprite_margin,
- text_margin,
- sprite_text_gap,
- icon_h_margins,
- /* Heights */
- icon_height,
- window_height,
- /* Scrolling */
- scroll_type,
- scroll_margin,
- scroll_step,
- scroll_speed,
- /* Colours */
- text_colour,
- icon_bg_colour,
- window_bg_colour,
- /* Borders */
- icon_borders,
- border_size;
- bool window_border;
- /* Menus */
- int menu_y_offset;
- /* Misc */
- bool small_icons;
- bool use_task_name;
- int text_height;
- char *font;
- double font_size,
- font_width;
- int arrangement;
- /* Pinboard */
- bool patch_pinboard;
- int pinboard_bg_colour;
- };
-
-
- extern thiniconbar_options *options;
-
- /* Create (a default) options object (may return 0); and destroy one. */
- thiniconbar_options *thiniconbar_options_create(void);
- void thiniconbar_options_destroy(thiniconbar_options *obj);
-
- /* Methods of reading options. Both return true if something failed. */
- bool thiniconbar_options_from_file(thiniconbar_options *obj,
- const char *filename);
- bool thiniconbar_options_from_cli(thiniconbar_options *obj,
- int argc, char *argv[]);
-
-
- #endif
-