#include <colorpicker.h>
Inherits BC_SubWindow.

Public Member Functions | |
| PaletteWheelValue (ColorWindow *window, int x, int y) | |
| ~PaletteWheelValue () | |
| int | create_objects () |
| int | button_press_event () |
| int | cursor_motion_event () |
| int | button_release_event () |
| int | draw (float hue, float saturation, float value) |
Data Fields | |
| ColorWindow * | window |
| int | button_down |
| VFrame * | frame |
Definition at line 96 of file colorpicker.h.
| PaletteWheelValue::PaletteWheelValue | ( | ColorWindow * | window, | |
| int | x, | |||
| int | y | |||
| ) |
| PaletteWheelValue::~PaletteWheelValue | ( | ) |
| int PaletteWheelValue::create_objects | ( | ) |
Definition at line 489 of file colorpicker.C.
References BC_RGB888, draw(), BC_WindowBase::flash(), frame, BC_WindowBase::get_h(), BC_WindowBase::get_w(), ColorWindow::h, ColorWindow::s, ColorWindow::v, and window.
Referenced by ColorWindow::create_objects().

| int PaletteWheelValue::button_press_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 497 of file colorpicker.C.
References button_down, cursor_motion_event(), BC_WindowBase::get_cursor_x(), BC_WindowBase::get_cursor_y(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), and BC_WindowBase::is_event_win().

| int PaletteWheelValue::cursor_motion_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 512 of file colorpicker.C.
References button_down, BC_WindowBase::get_cursor_y(), BC_WindowBase::get_h(), ColorWindow::handle_event(), BC_WindowBase::is_event_win(), ColorWindow::update_display(), ColorWindow::v, and window.
Referenced by button_press_event().

| int PaletteWheelValue::button_release_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 526 of file colorpicker.C.
References button_down.
| int PaletteWheelValue::draw | ( | float | hue, | |
| float | saturation, | |||
| float | value | |||
| ) |
Definition at line 537 of file colorpicker.C.
References b, BLACK, BC_WindowBase::draw_line(), BC_WindowBase::draw_vframe(), frame, BC_WindowBase::get_h(), VFrame::get_rows(), BC_WindowBase::get_w(), HSV::hsv_to_rgb(), r, and BC_WindowBase::set_color().
Referenced by create_objects(), and ColorWindow::update_display().

Definition at line 106 of file colorpicker.h.
Referenced by create_objects(), and cursor_motion_event().
Reimplemented from BC_WindowBase.
Definition at line 107 of file colorpicker.h.
Referenced by button_press_event(), button_release_event(), cursor_motion_event(), and PaletteWheelValue().
Definition at line 109 of file colorpicker.h.
Referenced by create_objects(), draw(), and ~PaletteWheelValue().
1.5.5