pqColorOverlay defines a widget with a uniform color and an opacity.
More...
#include <pqColorOverlay.h>
Inherits QWidget.
|
| pqColorOverlay (QWidget *parent=nullptr) |
|
|
QColor | rgb () const |
| Get/Set the red, green and blue values of the overlay Defaults to white (255, 255, 255) More...
|
|
void | setRgb (int r, int g, int b) |
| Get/Set the red, green and blue values of the overlay Defaults to white (255, 255, 255) More...
|
|
void | setRgb (QColor Rgb) |
| Get/Set the red, green and blue values of the overlay Defaults to white (255, 255, 255) More...
|
|
|
int | opacity () const |
| Get/Set the opacity of the overlay Default to 255. More...
|
|
void | setOpacity (int opacity) |
| Get/Set the opacity of the overlay Default to 255. More...
|
|
pqColorOverlay defines a widget with a uniform color and an opacity.
The color and the opacity are exposed as properties so they can be animated with a QPropertyAnimation
Definition at line 16 of file pqColorOverlay.h.
◆ pqColorOverlay()
pqColorOverlay::pqColorOverlay |
( |
QWidget * |
parent = nullptr | ) |
|
◆ rgb()
QColor pqColorOverlay::rgb |
( |
| ) |
const |
Get/Set the red, green and blue values of the overlay Defaults to white (255, 255, 255)
◆ setRgb() [1/2]
void pqColorOverlay::setRgb |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b |
|
) |
| |
Get/Set the red, green and blue values of the overlay Defaults to white (255, 255, 255)
◆ setRgb() [2/2]
void pqColorOverlay::setRgb |
( |
QColor |
Rgb | ) |
|
Get/Set the red, green and blue values of the overlay Defaults to white (255, 255, 255)
◆ opacity()
int pqColorOverlay::opacity |
( |
| ) |
const |
Get/Set the opacity of the overlay Default to 255.
◆ setOpacity()
void pqColorOverlay::setOpacity |
( |
int |
opacity | ) |
|
Get/Set the opacity of the overlay Default to 255.
◆ paintEvent()
void pqColorOverlay::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
overrideprotected |
◆ rgb
QColor pqColorOverlay::rgb |
|
readwrite |
◆ opacity
int pqColorOverlay::opacity |
|
readwrite |
The documentation for this class was generated from the following file: