home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek 6
/
Geek-006.iso
/
linux
/
video
/
xmovie-1.5.3.tar.gz
/
xmovie-1.5.3.tar
/
xmovie-1.5.3
/
guicast
/
bcresources.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-11-29
|
3KB
|
153 lines
#ifndef BCRESOURCES_H
#define BCRESOURCES_H
#include "bcresources.inc"
#include "bcwindowbase.inc"
#include "vframe.inc"
#include <X11/Xlib.h>
typedef struct
{
char *suffix;
int icon_type;
} suffix_to_type_t;
class BC_Resources
{
public:
BC_Resources(); // The window parameter is used to get the display information initially
~BC_Resources();
int initialize_display(BC_WindowBase *window);
int get_bg_color(); // window backgrounds
int get_bg_shadow1(); // border for windows
int get_bg_shadow2();
int get_bg_light1();
int get_bg_light2();
// These values should be changed before the first window is created.
// colors
int bg_color; // window backgrounds
int bg_shadow1; // border for windows
int bg_shadow2;
int bg_light1;
int bg_light2;
// beveled box colors
int button_light;
int button_highlighted;
int button_down;
int button_up;
int button_shadow;
// highlighting
int highlight_inverse;
int text_highlight;
// for menus
int menu_light;
int menu_highlighted;
int menu_down;
int menu_up;
int menu_shadow;
// ms for double click
long double_click;
// ms for cursor flash
int blink_rate;
// ms for scroll repeats
int scroll_repeat;
// ms before tooltip
int tooltip_delay;
int tooltip_bg_color;
int tooltips_enabled;
int text_default; // default color of text
int text_background; // background color of textboxes and list boxes
// Background images
static VFrame *bg_image;
static VFrame *menu_bg;
// Buttons
VFrame **ok_images;
VFrame **cancel_images;
VFrame **filebox_text_images;
VFrame **filebox_icons_images;
VFrame **filebox_updir_images;
VFrame **filebox_newfolder_images;
VFrame **generic_button_images;
// Toggles
VFrame **checkbox_images;
VFrame **radial_images;
VFrame **label_images;
VFrame **tumble_data;
int tumble_duration;
// Listbox
VFrame *listbox_bg;
VFrame **listbox_button;
// Sliders
VFrame **horizontal_slider;
VFrame **vertical_slider;
// Pans
VFrame *pan_bg;
VFrame *pan_bg_hi;
VFrame *pan_stick;
VFrame *pan_channel;
// Pots
VFrame **pot_images;
int pot_x1, pot_y1, pot_r;
// Meters
VFrame **meter_images;
// Progress bar
VFrame **progress_images;
// Motion required to start a drag
int drag_radius;
// Filebox
static suffix_to_type_t suffix_to_type[TOTAL_SUFFIXES];
static VFrame *type_to_icon[TOTAL_ICONS];
// Display mode for fileboxes
int filebox_mode;
// Filter currently used in filebox
char filebox_filter[BCTEXTLEN];
int filebox_w;
int filebox_h;
// fonts
static char *large_font;
static char *medium_font;
static char *small_font;
static char *large_fontset;
static char *medium_fontset;
static char *small_fontset;
VFrame **medium_7segment;
int use_fontset;
// Available display extensions
int use_shm;
static int error;
// If the program uses recursive_resizing
int recursive_resizing;
private:
// Test for availability of shared memory pixmaps
int init_shm(BC_WindowBase *window);
static int x_error_handler(Display *display, XErrorEvent *event);
};
#endif