ImFusion C++ SDK 4.4.0
ImFusion::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 ImFusion::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 ImFusion::CompositeSlider
 CompositeSlider (Qt::Orientation orientation, QWidget *parent=nullptr)

Protected Member Functions

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

Protected Attributes

QLinearGradient m_background
QColor m_backgroundColor

Member Function Documentation

◆ paintBackground()

void ImFusion::OpacitySlider::paintBackground ( QPainter & painter)
overrideprotectedvirtual

Reimplemented from ImFusion::CompositeSlider.


The documentation for this class was generated from the following file:
  • ImFusion/GUI/CoreWidgets/HsvColorPicker.h
Search Tab / S to search, Esc to close