#include <color_preview.hpp>
Simple widget that shows a preview of a color
Definition at line 33 of file color_preview.hpp.
◆ DisplayMode
Enumerator |
---|
NoAlpha | Show current color with no transparency.
|
AllAlpha | show current color with transparency
|
SplitAlpha | Show both solid and transparent side by side.
|
SplitColor | Show current and comparison colors side by side.
|
Definition at line 42 of file color_preview.hpp.
◆ ColorPreview()
color_widgets::ColorPreview::ColorPreview |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ ~ColorPreview()
color_widgets::ColorPreview::~ColorPreview |
( |
| ) |
|
◆ background()
QBrush color_widgets::ColorPreview::background |
( |
| ) |
const |
Get the background visible under transparent colors.
◆ clicked
void color_widgets::ColorPreview::clicked |
( |
| ) |
|
|
signal |
Emitted when the user clicks on the widget.
◆ color()
QColor color_widgets::ColorPreview::color |
( |
| ) |
const |
◆ colorChanged
void color_widgets::ColorPreview::colorChanged |
( |
QColor |
| ) |
|
|
signal |
◆ comparisonColor()
QColor color_widgets::ColorPreview::comparisonColor |
( |
| ) |
const |
Get the comparison color.
◆ displayMode()
◆ mouseMoveEvent()
void color_widgets::ColorPreview::mouseMoveEvent |
( |
QMouseEvent * |
ev | ) |
|
|
protected |
◆ mouseReleaseEvent()
void color_widgets::ColorPreview::mouseReleaseEvent |
( |
QMouseEvent * |
ev | ) |
|
|
protected |
◆ paint()
void color_widgets::ColorPreview::paint |
( |
QPainter & |
painter, |
|
|
QRect |
rect |
|
) |
| const |
◆ paintEvent()
void color_widgets::ColorPreview::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
protected |
◆ resizeEvent()
void color_widgets::ColorPreview::resizeEvent |
( |
QResizeEvent * |
| ) |
|
|
protected |
◆ setBackground()
void color_widgets::ColorPreview::setBackground |
( |
const QBrush & |
bk | ) |
|
Change the background visible under transparent colors.
Definition at line 56 of file color_preview.cpp.
◆ setColor
void color_widgets::ColorPreview::setColor |
( |
const QColor & |
c | ) |
|
|
slot |
◆ setComparisonColor
void color_widgets::ColorPreview::setComparisonColor |
( |
const QColor & |
c | ) |
|
|
slot |
◆ setDisplayMode()
void color_widgets::ColorPreview::setDisplayMode |
( |
DisplayMode |
dm | ) |
|
◆ sizeHint()
QSize color_widgets::ColorPreview::sizeHint |
( |
| ) |
const |
Private* const color_widgets::ColorPreview::p |
|
private |
◆ background
QBrush color_widgets::ColorPreview::background |
|
readwrite |
◆ color
QColor color_widgets::ColorPreview::color |
|
readwrite |
◆ comparisonColor
QColor color_widgets::ColorPreview::comparisonColor |
|
readwrite |
◆ display_mode
The documentation for this class was generated from the following files: