#include <histogramwindow.h>
Inherits BC_SubWindow.

Public Types | |
| enum | { NONE, DRAG_INPUT, DRAG_MIN_OUTPUT, DRAG_MAX_OUTPUT } |
Public Member Functions | |
| HistogramSlider (HistogramMain *plugin, HistogramWindow *gui, int x, int y, int w, int h, int is_input) | |
| void | update () |
| int | button_press_event () |
| int | button_release_event () |
| int | cursor_motion_event () |
| int | input_to_pixel (float input) |
Data Fields | |
| int | operation |
| int | is_input |
| HistogramMain * | plugin |
| HistogramWindow * | gui |
Definition at line 12 of file histogramwindow.h.
| anonymous enum |
Definition at line 30 of file histogramwindow.h.
| HistogramSlider::HistogramSlider | ( | HistogramMain * | plugin, | |
| HistogramWindow * | gui, | |||
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | is_input | |||
| ) |
| void HistogramSlider::update | ( | ) |
Definition at line 693 of file histogramwindow.C.
References b, BC_WindowBase::clear_box(), BC_WindowBase::draw_line(), BC_WindowBase::draw_pixmap(), BC_WindowBase::flash(), BC_WindowBase::flush(), BC_WindowBase::get_h(), BC_Pixmap::get_w(), BC_WindowBase::get_w(), gui, BC_WindowBase::h, input_to_pixel(), HistogramWindow::max_picon, min, HistogramWindow::min_picon, HistogramMain::mode, plugin, r, BC_WindowBase::set_color(), and BC_WindowBase::w.
Referenced by HistogramWindow::create_objects(), and HistogramWindow::update_output().

| int HistogramSlider::button_press_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 615 of file histogramwindow.C.
References BC_WindowBase::cursor_inside(), BC_WindowBase::deactivate(), DRAG_MAX_OUTPUT, DRAG_MIN_OUTPUT, BC_WindowBase::get_cursor_x(), BC_WindowBase::get_cursor_y(), BC_WindowBase::get_h(), BC_Pixmap::get_w(), BC_WindowBase::get_w(), gui, BC_WindowBase::h, input_to_pixel(), BC_WindowBase::is_event_win(), HistogramWindow::mid_picon, min, HistogramMain::mode, NONE, operation, plugin, and BC_WindowBase::w.

| int HistogramSlider::button_release_event | ( | ) | [virtual] |
| int HistogramSlider::cursor_motion_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 665 of file histogramwindow.C.
References CLAMP, DRAG_MAX_OUTPUT, DRAG_MIN_OUTPUT, BC_WindowBase::get_cursor_x(), BC_WindowBase::get_w(), gui, MAX, MIN, HistogramMain::mode, NONE, operation, plugin, PluginClient::send_configure_change(), and HistogramWindow::update_output().

| int HistogramSlider::input_to_pixel | ( | float | input | ) |
Definition at line 610 of file histogramwindow.C.
References BC_WindowBase::get_w().
Referenced by button_press_event(), and update().

Definition at line 29 of file histogramwindow.h.
Referenced by button_press_event(), button_release_event(), cursor_motion_event(), and HistogramSlider().
Definition at line 37 of file histogramwindow.h.
Definition at line 38 of file histogramwindow.h.
Referenced by button_press_event(), cursor_motion_event(), and update().
Definition at line 39 of file histogramwindow.h.
Referenced by button_press_event(), cursor_motion_event(), and update().
1.5.5