Public Member Functions | Protected Member Functions | Properties | List of all members
pqColorOverlay Class Reference

pqColorOverlay defines a widget with a uniform color and an opacity. More...

#include <pqColorOverlay.h>

Inherits QWidget.

Public Member Functions

 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...
 

Protected Member Functions

void paintEvent (QPaintEvent *) override
 

Properties

QColor rgb
 
int opacity
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ pqColorOverlay()

pqColorOverlay::pqColorOverlay ( QWidget *  parent = nullptr)

Member Function Documentation

◆ 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

Property Documentation

◆ rgb

QColor pqColorOverlay::rgb
readwrite

Definition at line 19 of file pqColorOverlay.h.

◆ opacity

int pqColorOverlay::opacity
readwrite

Definition at line 20 of file pqColorOverlay.h.


The documentation for this class was generated from the following file: