ColorPicker(int do_alpha = 0, const char *title = 0);
~ColorPicker();
void start_window(int color, int alpha, int ok_cancel=0);
+ virtual void create_objects(ColorWindow *window) {}
virtual void update_gui(int color, int alpha);
virtual int handle_new_color(int color, int alpha);
BC_Window* new_gui();
void update_gui(int color, int alpha);
int handle_new_color(int color, int alpha);
+ void create_objects();
int close_event() { return close_gui(); }
int cursor_motion_event() { return cursor_motion_gui(); }
ColorPicker *thread;
};
+class ColorOK : public BC_OKButton
+{
+public:
+ ColorOK(ColorGUI *gui, BC_WindowBase *window);
+ int handle_event();
+
+ BC_WindowBase *window;
+ ColorGUI *gui;
+};
+
+class ColorCancel : public BC_CancelButton
+{
+public:
+ ColorCancel(ColorGUI *gui, BC_WindowBase *window);
+ int handle_event();
+
+ BC_WindowBase *window;
+ ColorGUI *gui;
+};
class PaletteWheel : public BC_SubWindow
{