5 #include "bcresources.inc"
6 #include "bcwindowbase.inc"
21 // Set pointer to binary object containing images and contents.
22 // Immediately loads the contents from the object.
23 void set_data(unsigned char *ptr
);
25 // Compose widgets using standard images.
26 // The arguments are copied into new VFrames for a new image set.
27 // The image set is put in the image table only if the title is nonzero.
28 VFrame
** new_button(char *overlay_path
,
33 VFrame
** new_button4(char *overlay_path
,
39 VFrame
** new_button(char *overlay_path
,
44 VFrame
** new_toggle(char *overlay_path
,
51 VFrame
** new_toggle(char *overlay_path
,
60 // The two main routines for creating images are new_image_set and new_image.
61 // If the title already exists in the table, the existing entry is returned.
62 // These create image sets which are stored in the set table.
63 // Takes comma delimited char* pointers to filenames.
64 VFrame
** new_image_set(char *title
, int total
, va_list *args
);
65 VFrame
** new_image_set(char *title
, int total
, ...);
66 VFrame
** new_image_set(int total
, ...);
67 // Creates an image set from VFrame pointers.
68 // The images are considered not references and deleted with the image set.
69 // If the title already exists, the existing entry is deleted and overridden.
70 VFrame
** new_image_set_images(char *title
, int total
, ...);
72 // Decompresses image and puts on images table before returning it.
73 VFrame
* new_image(char *title
, char *path
);
74 VFrame
* new_image(char *path
);
77 // These retrieve images based on case sensitive title
78 VFrame
* get_image(char *title
, int use_default
= 1);
79 VFrame
** get_image_set(char *title
, int use_default
= 1);
80 BC_ThemeSet
* get_image_set_object(char *title
);
82 // Loads compressed data into temporary
83 unsigned char* get_image_data(char *title
);
85 // Verify all images have been used after initialization.
89 BC_Resources
* get_resources();
92 void overlay(VFrame
*dst
, VFrame
*src
, int in_x1
= -1, int in_x2
= -1, int shift
= 0);
97 // Decompressed image storage.
99 ArrayList
<BC_ThemeSet
*> image_sets
;
101 // Compressed images are loaded in here.
104 ArrayList
<char*> contents
;
105 ArrayList
<unsigned char*> pointers
;
108 unsigned char *last_pointer
;
114 // Set is_reference if the images are going to be created by new_image
115 BC_ThemeSet(int total
, int is_reference
, char *title
);