Rename the hash table to thumbs_hash_table.
[gliv.git] / src / include / options.h
blobc53e8915c99db9d67f17c20ac6a5ab67305402b6
1 #ifndef OPTIONS_H
2 #define OPTIONS_H
4 #include "gliv.h"
6 /* Links between the option dialog buttons and the options values. */
7 #define OPTION_FULLSCREEN (&new_options->fullscreen)
8 #define OPTION_MENU_BAR (&new_options->menu_bar)
9 #define OPTION_SCROLLBARS (&new_options->scrollbars)
10 #define OPTION_STATUS_BAR (&new_options->status_bar)
11 #define OPTION_DELAY_CURSOR (&new_options->delay)
12 #define OPTION_DITHERING (&new_options->dither)
13 #define OPTION_SCALE_DOWN (&new_options->scaledown)
14 #define OPTION_FORCE_LOAD (&new_options->force)
15 #define OPTION_ALPHA_CHECKS (&new_options->alpha_checks)
16 #define OPTION_ONE_IMAGE (&new_options->one_image)
17 #define OPTION_MIPMAPS (&new_options->mipmap)
18 #define OPTION_MAXIMIZE (&new_options->maximize)
19 #define OPTION_RESIZE_WIN (&new_options->resize_win)
20 #define OPTION_IMAGES_MENUS_STARTUP (&new_options->build_menus)
21 #define OPTION_IMAGES_MENUS_MNEMONICS (&new_options->mnemonics)
22 #define OPTION_THUMBNAILS (&new_options->thumbnails)
23 #define OPTION_THUMBNAILS_WIDTH (&new_options->thumb_width)
24 #define OPTION_THUMBNAILS_HEIGHT (&new_options->thumb_height)
25 #define OPTION_ZOOM_POINTER (&new_options->zoom_pointer)
26 #define OPTION_MAX_FPS (&new_options->fps)
27 #define OPTION_HISTORY_LENGTH (&new_options->history_size)
28 #define OPTION_START_SLIDE_SHOW (&new_options->start_show)
29 #define OPTION_SLIDE_SHOW_LOOP (&new_options->loop)
30 #define OPTION_SLIDE_SHOW_DELAY (&new_options->duration)
31 #define OPTION_BACKGROUND (&new_options->bg_col)
32 #define OPTION_ALPHA1 (&new_options->alpha1)
33 #define OPTION_ALPHA2 (&new_options->alpha2)
34 #define OPTION_SAVE (&save_options)
36 /* Options controlled by the user. */
37 typedef struct {
38 gboolean fullscreen;
39 gboolean maximize;
40 gboolean scaledown;
41 gboolean menu_bar;
42 gboolean status_bar;
43 gboolean scrollbars;
44 gboolean zoom_pointer;
45 gboolean alpha_checks;
46 gboolean dither;
47 gboolean force;
48 gboolean build_menus;
49 gboolean mipmap;
50 gboolean mnemonics;
51 gboolean loop;
52 gboolean one_image;
53 gboolean start_show;
54 gboolean thumbnails;
55 gboolean resize_win;
56 gint thumb_width;
57 gint thumb_height;
58 gint delay;
59 gint duration;
60 gint history_size;
61 gint fps;
62 GdkColor bg_col;
63 GdkColor alpha1;
64 GdkColor alpha2;
65 } options_struct;
67 /* Some global flags and variables. */
68 typedef struct {
69 gboolean cursor_hidden;
70 gboolean help;
71 gboolean alpha_checks_changed;
72 gboolean filtering_enabled;
73 gint max_texture_size;
74 GtkAllocation *wid_size;
75 gint scr_width;
76 gint scr_height;
77 } rt_struct;
79 void show_options(void);
81 #endif