Public Member Functions | |
qreal | inner_radius () const |
Calculate inner wheel radius from idget center. | |
QLineF | line_to_point (const QPoint &p) const |
return line from center to given point | |
qreal | outer_radius () const |
Calculate outer wheel radius from idget center. | |
Private (ColorWheel *widget) | |
void | render_inner_selector () |
Updates the inner image that displays the saturation-value selector. | |
void | render_ring () |
Updates the outer ring that displays the hue selector. | |
void | render_square () |
void | render_triangle () |
renders the selector as a triangle | |
qreal | selector_image_angle () |
Rotation of the selector image. | |
QPointF | selector_image_offset () |
Offset of the selector image. | |
QSizeF | selector_size () |
Size of the selector when rendered to the screen. | |
void | set_color (const QColor &c) |
qreal | square_size () const |
Calculate the edge length of the inner square. | |
qreal | triangle_height () const |
Calculate the height of the inner triangle. | |
qreal | triangle_side () const |
Calculate the side of the inner triangle. | |
Public Attributes | |
QColor(* | color_from )(qreal, qreal, qreal, qreal) |
DisplayFlags | display_flags |
qreal | hue |
QPixmap | hue_ring |
QImage | inner_selector |
int | max_size = 128 |
MouseStatus | mouse_status |
QColor(* | rainbow_from_hue )(qreal) |
qreal | sat |
qreal | val |
unsigned int | wheel_width |
Private Attributes | |
ColorWheel *const | w |
Definition at line 45 of file color_wheel.cpp.
color_widgets::ColorWheel::Private::Private | ( | ColorWheel * | widget | ) | [inline] |
Definition at line 61 of file color_wheel.cpp.
qreal color_widgets::ColorWheel::Private::inner_radius | ( | ) | const [inline] |
Calculate inner wheel radius from idget center.
Definition at line 75 of file color_wheel.cpp.
QLineF color_widgets::ColorWheel::Private::line_to_point | ( | const QPoint & | p | ) | const [inline] |
return line from center to given point
Definition at line 99 of file color_wheel.cpp.
qreal color_widgets::ColorWheel::Private::outer_radius | ( | ) | const [inline] |
Calculate outer wheel radius from idget center.
Definition at line 69 of file color_wheel.cpp.
void color_widgets::ColorWheel::Private::render_inner_selector | ( | ) | [inline] |
Updates the inner image that displays the saturation-value selector.
Definition at line 148 of file color_wheel.cpp.
void color_widgets::ColorWheel::Private::render_ring | ( | ) | [inline] |
Updates the outer ring that displays the hue selector.
Definition at line 194 of file color_wheel.cpp.
void color_widgets::ColorWheel::Private::render_square | ( | ) | [inline] |
Definition at line 104 of file color_wheel.cpp.
void color_widgets::ColorWheel::Private::render_triangle | ( | ) | [inline] |
renders the selector as a triangle
Definition at line 124 of file color_wheel.cpp.
qreal color_widgets::ColorWheel::Private::selector_image_angle | ( | ) | [inline] |
Rotation of the selector image.
Definition at line 176 of file color_wheel.cpp.
QPointF color_widgets::ColorWheel::Private::selector_image_offset | ( | ) | [inline] |
Offset of the selector image.
Definition at line 157 of file color_wheel.cpp.
QSizeF color_widgets::ColorWheel::Private::selector_size | ( | ) | [inline] |
Size of the selector when rendered to the screen.
Definition at line 167 of file color_wheel.cpp.
void color_widgets::ColorWheel::Private::set_color | ( | const QColor & | c | ) | [inline] |
Definition at line 224 of file color_wheel.cpp.
qreal color_widgets::ColorWheel::Private::square_size | ( | ) | const [inline] |
Calculate the edge length of the inner square.
Definition at line 81 of file color_wheel.cpp.
qreal color_widgets::ColorWheel::Private::triangle_height | ( | ) | const [inline] |
Calculate the height of the inner triangle.
Definition at line 87 of file color_wheel.cpp.
qreal color_widgets::ColorWheel::Private::triangle_side | ( | ) | const [inline] |
Calculate the side of the inner triangle.
Definition at line 93 of file color_wheel.cpp.
QColor(* color_widgets::ColorWheel::Private::color_from)(qreal, qreal, qreal, qreal) |
Definition at line 57 of file color_wheel.cpp.
DisplayFlags color_widgets::ColorWheel::Private::display_flags |
Definition at line 56 of file color_wheel.cpp.
Definition at line 51 of file color_wheel.cpp.
Definition at line 54 of file color_wheel.cpp.
Definition at line 55 of file color_wheel.cpp.
Definition at line 59 of file color_wheel.cpp.
Definition at line 53 of file color_wheel.cpp.
QColor(* color_widgets::ColorWheel::Private::rainbow_from_hue)(qreal) |
Definition at line 58 of file color_wheel.cpp.
Definition at line 51 of file color_wheel.cpp.
Definition at line 51 of file color_wheel.cpp.
ColorWheel* const color_widgets::ColorWheel::Private::w [private] |
Definition at line 48 of file color_wheel.cpp.
unsigned int color_widgets::ColorWheel::Private::wheel_width |
Definition at line 52 of file color_wheel.cpp.