X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fcolorpicker.h;h=0ae021edc6a31696785a5cfc88a2876c70769b24;hp=94386e8ef7cabc20020e25b5eb37a49573b57257;hb=502b6f3b6fd04f6b01c6d70dcb81aa304dd0db1c;hpb=4f7f413cbc1c6ea5da27cb75ca27a3ab317243ec diff --git a/cinelerra-5.1/cinelerra/colorpicker.h b/cinelerra-5.1/cinelerra/colorpicker.h index 94386e8e..0ae021ed 100644 --- a/cinelerra-5.1/cinelerra/colorpicker.h +++ b/cinelerra-5.1/cinelerra/colorpicker.h @@ -58,11 +58,11 @@ class PaletteHex; 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); @@ -77,7 +77,7 @@ public: 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(); @@ -88,6 +88,8 @@ public: 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(); @@ -101,7 +103,7 @@ public: void update_rgb_hex(const char *hex); int rgb888(); - ColorThread *thread; + ColorPicker *thread; PaletteWheel *wheel; PaletteWheelValue *wheel_value; PaletteOutput *output;