ImFusion SDK 4.3
OpacitySlider Class Reference

#include <ImFusion/GUI/CoreWidgets/HsvColorPicker.h>

Specialized version of a CompositeSlider that renders a checkerboard blended with the given color as background. More...

+ Inheritance diagram for OpacitySlider:

Detailed Description

Specialized version of a CompositeSlider that renders a checkerboard blended with the given color as background.

See also
HsvColorPicker2d, ColorPickerWidget, ColorButton

Public Member Functions

 OpacitySlider (Qt::Orientation orientation, QWidget *parent=nullptr)
 
void setBackgroundColor (QColor col)
 
- Public Member Functions inherited from CompositeSlider
 CompositeSlider (Qt::Orientation orientation, QWidget *parent=nullptr)
 

Protected Member Functions

void paintBackground (QPainter &painter) override
 
- Protected Member Functions inherited from CompositeSlider
void paintEvent (QPaintEvent *event) override
 

Protected Attributes

QLinearGradient m_background
 
QColor m_backgroundColor
 

Member Function Documentation

◆ paintBackground()

void paintBackground ( QPainter & painter)
overrideprotectedvirtual

Reimplemented from CompositeSlider.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close