#include <colorpicker.h>
Inherits Thread.
Inherited by ChromaKeyColorThread, ChromaKeyColorThread, GradientInColorThread, GradientOutColorThread, ThresholdHighColorThread, ThresholdLowColorThread, ThresholdMidColorThread, TitleColorStrokeThread, and TitleColorThread.

Public Member Functions | |
| ColorThread (int do_alpha=0, char *title=0) | |
| ~ColorThread () | |
| void | run () |
| void | start_window (int output, int alpha) |
| virtual int | handle_new_color (int output, int alpha) |
| void | update_gui (int output, int alpha) |
Private Attributes | |
| ColorWindow * | window |
| Condition * | completion |
| Mutex * | mutex |
| int | output |
| int | alpha |
| int | do_alpha |
| char * | title |
Friends | |
| class | ColorWindow |
Definition at line 22 of file colorpicker.h.
| ColorThread::ColorThread | ( | int | do_alpha = 0, |
|
| char * | title = 0 | |||
| ) |
Definition at line 14 of file colorpicker.C.
References completion, mutex, Thread::set_synchronous(), and window.

| ColorThread::~ColorThread | ( | ) |
Definition at line 25 of file colorpicker.C.
References completion, Condition::lock(), mutex, Thread::running(), BC_WindowBase::set_done(), Condition::unlock(), and window.

| void ColorThread::run | ( | ) | [virtual] |
Implements Thread.
Definition at line 56 of file colorpicker.C.
References _, BCTEXTLEN, ColorWindow, completion, ColorWindow::create_objects(), BC_DisplayInfo::get_abs_cursor_x(), BC_DisplayInfo::get_abs_cursor_y(), Mutex::lock(), mutex, BC_WindowBase::run_window(), title, Condition::unlock(), Mutex::unlock(), and window.

| void ColorThread::start_window | ( | int | output, | |
| int | alpha | |||
| ) |
Definition at line 37 of file colorpicker.C.
References completion, BC_WindowBase::flush(), Condition::lock(), Mutex::lock(), mutex, BC_WindowBase::raise_window(), Thread::running(), Thread::start(), Mutex::unlock(), and window.
Referenced by TitleColorButton::handle_event(), ThresholdHighColorButton::handle_event(), ThresholdMidColorButton::handle_event(), ThresholdLowColorButton::handle_event(), GradientOutColorButton::handle_event(), GradientInColorButton::handle_event(), and ChromaKeyColor::handle_event().

| int ColorThread::handle_new_color | ( | int | output, | |
| int | alpha | |||
| ) | [virtual] |
Reimplemented in ChromaKeyColorThread, ChromaKeyColorThread, GradientInColorThread, GradientOutColorThread, ThresholdLowColorThread, ThresholdMidColorThread, ThresholdHighColorThread, and TitleColorThread.
Definition at line 99 of file colorpicker.C.
Referenced by ColorWindow::handle_event().
| void ColorThread::update_gui | ( | int | output, | |
| int | alpha | |||
| ) |
Definition at line 84 of file colorpicker.C.
References ColorWindow::change_values(), Mutex::lock(), BC_WindowBase::lock_window(), mutex, Mutex::unlock(), BC_WindowBase::unlock_window(), ColorWindow::update_display(), and window.

friend class ColorWindow [friend] |
ColorWindow* ColorThread::window [private] |
Reimplemented in GradientInColorThread, GradientOutColorThread, ThresholdLowColorThread, ThresholdMidColorThread, ThresholdHighColorThread, TitleColorThread, and TitleColorStrokeThread.
Definition at line 37 of file colorpicker.h.
Referenced by ColorThread(), run(), start_window(), update_gui(), and ~ColorThread().
Condition* ColorThread::completion [private] |
Definition at line 38 of file colorpicker.h.
Referenced by ColorThread(), run(), start_window(), and ~ColorThread().
Mutex* ColorThread::mutex [private] |
Definition at line 40 of file colorpicker.h.
Referenced by ColorThread(), run(), start_window(), update_gui(), and ~ColorThread().
int ColorThread::output [private] |
int ColorThread::alpha [private] |
int ColorThread::do_alpha [private] |
Definition at line 44 of file colorpicker.h.
Referenced by ColorWindow::create_objects(), and ColorWindow::update_display().
char* ColorThread::title [private] |
1.5.5