#include <colorpicker.h>
Inherits BC_Window.

Public Member Functions | |
| ColorWindow (ColorThread *thread, int x, int y, char *title) | |
| void | create_objects () |
| void | change_values () |
| int | close_event () |
| void | update_display () |
| void | update_rgb () |
| int | handle_event () |
Data Fields | |
| ColorThread * | thread |
| PaletteWheel * | wheel |
| PaletteWheelValue * | wheel_value |
| PaletteOutput * | output |
| PaletteHue * | hue |
| PaletteSaturation * | saturation |
| PaletteValue * | value |
| PaletteRed * | red |
| PaletteGreen * | green |
| PaletteBlue * | blue |
| PaletteAlpha * | alpha |
| VFrame * | value_bitmap |
| float | h |
| float | s |
| float | v |
| float | r |
| float | g |
| float | b |
| float | a |
Definition at line 48 of file colorpicker.h.
| ColorWindow::ColorWindow | ( | ColorThread * | thread, | |
| int | x, | |||
| int | y, | |||
| char * | title | |||
| ) |
Definition at line 109 of file colorpicker.C.
| void ColorWindow::create_objects | ( | ) |
Definition at line 124 of file colorpicker.C.
References _, BC_WindowBase::add_tool(), alpha, BC_WindowBase::BC_Title, blue, change_values(), PaletteOutput::create_objects(), PaletteWheelValue::create_objects(), PaletteWheel::create_objects(), ColorThread::do_alpha, BC_WindowBase::flush(), green, hue, output, red, saturation, BC_WindowBase::show_window(), SMALLFONT, thread, value, wheel, wheel_value, BC_WindowBase::x, and BC_WindowBase::y.
Referenced by ColorThread::run().

| void ColorWindow::change_values | ( | ) |
Definition at line 201 of file colorpicker.C.
References a, ColorThread::alpha, b, g, h, ColorThread::output, r, HSV::rgb_to_hsv(), s, thread, and v.
Referenced by create_objects(), and ColorThread::update_gui().

| int ColorWindow::close_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 211 of file colorpicker.C.
References BC_WindowBase::set_done().

| void ColorWindow::update_display | ( | ) |
Definition at line 229 of file colorpicker.C.
References a, alpha, b, blue, ColorThread::do_alpha, PaletteOutput::draw(), PaletteWheelValue::draw(), PaletteWheel::draw(), BC_WindowBase::flash(), g, green, h, HSV::hsv_to_rgb(), hue, PaletteWheel::oldhue, PaletteWheel::oldsaturation, output, r, red, s, saturation, thread, BC_FSlider::update(), BC_ISlider::update(), v, value, wheel, and wheel_value.
Referenced by PaletteWheelValue::cursor_motion_event(), PaletteWheel::cursor_motion_event(), PaletteValue::handle_event(), PaletteSaturation::handle_event(), PaletteHue::handle_event(), ColorThread::update_gui(), and update_rgb().

| void ColorWindow::update_rgb | ( | ) |
Definition at line 218 of file colorpicker.C.
References blue, BC_FSlider::get_value(), green, h, red, HSV::rgb_to_hsv(), s, update_display(), and v.
Referenced by PaletteBlue::handle_event(), PaletteGreen::handle_event(), and PaletteRed::handle_event().

| int ColorWindow::handle_event | ( | ) |
Definition at line 265 of file colorpicker.C.
References a, b, g, h, ColorThread::handle_new_color(), HSV::hsv_to_rgb(), r, s, thread, and v.
Referenced by PaletteWheelValue::cursor_motion_event(), PaletteWheel::cursor_motion_event(), PaletteAlpha::handle_event(), PaletteBlue::handle_event(), PaletteGreen::handle_event(), PaletteRed::handle_event(), PaletteValue::handle_event(), PaletteSaturation::handle_event(), and PaletteHue::handle_event().

Definition at line 60 of file colorpicker.h.
Referenced by change_values(), create_objects(), handle_event(), and update_display().
Definition at line 68 of file colorpicker.h.
Referenced by create_objects(), update_display(), and update_rgb().
Definition at line 69 of file colorpicker.h.
Referenced by create_objects(), update_display(), and update_rgb().
Definition at line 70 of file colorpicker.h.
Referenced by create_objects(), update_display(), and update_rgb().
Definition at line 72 of file colorpicker.h.
| float ColorWindow::h |
Reimplemented from BC_WindowBase.
Definition at line 73 of file colorpicker.h.
Referenced by change_values(), PaletteWheelValue::create_objects(), PaletteWheel::create_objects(), PaletteWheel::cursor_motion_event(), PaletteOutput::draw(), PaletteHue::handle_event(), handle_event(), update_display(), and update_rgb().
| float ColorWindow::s |
Definition at line 73 of file colorpicker.h.
Referenced by change_values(), PaletteWheelValue::create_objects(), PaletteWheel::create_objects(), PaletteWheel::cursor_motion_event(), PaletteOutput::draw(), PaletteSaturation::handle_event(), handle_event(), update_display(), and update_rgb().
| float ColorWindow::v |
Definition at line 73 of file colorpicker.h.
Referenced by change_values(), PaletteWheelValue::create_objects(), PaletteWheelValue::cursor_motion_event(), PaletteOutput::draw(), PaletteValue::handle_event(), handle_event(), update_display(), and update_rgb().
| float ColorWindow::r |
Definition at line 73 of file colorpicker.h.
Referenced by change_values(), handle_event(), and update_display().
| float ColorWindow::g |
Definition at line 73 of file colorpicker.h.
Referenced by change_values(), handle_event(), and update_display().
| float ColorWindow::b |
Definition at line 73 of file colorpicker.h.
Referenced by change_values(), handle_event(), and update_display().
| float ColorWindow::a |
Definition at line 73 of file colorpicker.h.
Referenced by change_values(), PaletteAlpha::handle_event(), handle_event(), and update_display().
1.5.5