class PaletteGrabButton;
class PaletteHistory;
-class ColorThread : public BC_DialogThread
+class ColorPicker : public BC_DialogThread
{
public:
- ColorThread(int do_alpha = 0, const char *title = 0);
- ~ColorThread();
+ ColorPicker(int do_alpha = 0, const char *title = 0);
+ ~ColorPicker();
void start_window(int output, int alpha, int do_okcancel=0);
virtual int handle_new_color(int output, int alpha);
class ColorWindow : public BC_Window
{
public:
- ColorWindow(ColorThread *thread, int x, int y, int w, int h, const char *title);
+ ColorWindow(ColorPicker *thread, int x, int y, int w, int h, const char *title);
~ColorWindow();
void create_objects();
void update_hsv();
void update_yuv();
int handle_event();
+ void get_screen_sample();
+ int cursor_motion_event();
int button_press_event();
int button_release_event();
void update_rgb_hex(const char *hex);
int rgb888();
- ColorThread *thread;
+ ColorPicker *thread;
PaletteWheel *wheel;
PaletteWheelValue *wheel_value;
PaletteOutput *output;