#include <colorpicker.h>
Inherits BC_SubWindow.

Public Member Functions | |
| PaletteWheel (ColorWindow *window, int x, int y) | |
| ~PaletteWheel () | |
| int | button_press_event () |
| int | cursor_motion_event () |
| int | button_release_event () |
| int | create_objects () |
| int | draw (float hue, float saturation) |
| int | get_angle (float x1, float y1, float x2, float y2) |
| float | torads (float angle) |
Data Fields | |
| ColorWindow * | window |
| float | oldhue |
| float | oldsaturation |
| int | button_down |
Definition at line 77 of file colorpicker.h.
| PaletteWheel::PaletteWheel | ( | ColorWindow * | window, | |
| int | x, | |||
| int | y | |||
| ) |
| PaletteWheel::~PaletteWheel | ( | ) |
Definition at line 288 of file colorpicker.C.
| int PaletteWheel::button_press_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 292 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 PaletteWheel::cursor_motion_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 305 of file colorpicker.C.
References button_down, get_angle(), BC_WindowBase::get_cursor_x(), BC_WindowBase::get_cursor_y(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), ColorWindow::h, ColorWindow::handle_event(), BC_WindowBase::is_event_win(), ColorWindow::s, ColorWindow::update_display(), and window.
Referenced by button_press_event().

| int PaletteWheel::button_release_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 326 of file colorpicker.C.
References button_down.
| int PaletteWheel::create_objects | ( | ) |
Definition at line 336 of file colorpicker.C.
References b, BC_RGBA8888, draw(), BC_WindowBase::draw_vframe(), BC_WindowBase::flash(), get_angle(), BC_Resources::get_bg_color(), BC_WindowBase::get_h(), BC_WindowBase::get_resources(), VFrame::get_rows(), BC_WindowBase::get_w(), ColorWindow::h, BC_WindowBase::h, HSV::hsv_to_rgb(), oldhue, oldsaturation, r, ColorWindow::s, s, and window.
Referenced by ColorWindow::create_objects().

| int PaletteWheel::draw | ( | float | hue, | |
| float | saturation | |||
| ) |
Definition at line 409 of file colorpicker.C.
References BC_WindowBase::draw_circle(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), BC_WindowBase::h, BC_WindowBase::set_color(), BC_WindowBase::set_inverse(), BC_WindowBase::set_opaque(), torads(), BC_WindowBase::w, WHITE, BC_WindowBase::x, and BC_WindowBase::y.
Referenced by create_objects(), and ColorWindow::update_display().

| int PaletteWheel::get_angle | ( | float | x1, | |
| float | y1, | |||
| float | x2, | |||
| float | y2 | |||
| ) |
Definition at line 470 of file colorpicker.C.
References M_PI.
Referenced by create_objects(), and cursor_motion_event().
| float PaletteWheel::torads | ( | float | angle | ) |
Definition at line 90 of file colorpicker.h.
Referenced by create_objects(), and cursor_motion_event().
| float PaletteWheel::oldhue |
Definition at line 91 of file colorpicker.h.
Referenced by create_objects(), PaletteWheel(), and ColorWindow::update_display().
Definition at line 92 of file colorpicker.h.
Referenced by create_objects(), PaletteWheel(), and ColorWindow::update_display().
Reimplemented from BC_WindowBase.
Definition at line 93 of file colorpicker.h.
Referenced by button_press_event(), button_release_event(), cursor_motion_event(), and PaletteWheel().
1.5.5