KSeExpr 6.0.0.0
Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ExprCSwatchFrame Class Reference

#include <ExprColorCurve.h>

Inheritance diagram for ExprCSwatchFrame:

Signals

void selValChangedSignal (KSeExpr::Vec3d value)
 
void swatchChanged (QColor color)
 

Public Member Functions

 ExprCSwatchFrame (KSeExpr::Vec3d value, QWidget *parent=nullptr)
 
 ~ExprCSwatchFrame () override=default
 
void setValue (const KSeExpr::Vec3d &value)
 
KSeExpr::Vec3d getValue () const
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 

Private Attributes

KSeExpr::Vec3d _value
 
QColor _color
 

Detailed Description

Definition at line 111 of file ExprColorCurve.h.

Constructor & Destructor Documentation

◆ ExprCSwatchFrame()

ExprCSwatchFrame::ExprCSwatchFrame ( KSeExpr::Vec3d  value,
QWidget *  parent = nullptr 
)

Definition at line 342 of file ExprColorCurve.cpp.

References _color, and _value.

◆ ~ExprCSwatchFrame()

ExprCSwatchFrame::~ExprCSwatchFrame ( )
overridedefault

Member Function Documentation

◆ getValue()

KSeExpr::Vec3d ExprCSwatchFrame::getValue ( ) const

Definition at line 357 of file ExprColorCurve.cpp.

References _value.

Referenced by ExprColorCurve::getSwatchColor(), and VectorControl::swatchChanged().

◆ mousePressEvent()

void ExprCSwatchFrame::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 362 of file ExprColorCurve.cpp.

References _color, _value, selValChangedSignal(), and swatchChanged().

◆ paintEvent()

void ExprCSwatchFrame::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 335 of file ExprColorCurve.cpp.

References _color, and p.

◆ selValChangedSignal

void ExprCSwatchFrame::selValChangedSignal ( KSeExpr::Vec3d  value)
signal

Referenced by mousePressEvent().

◆ setValue()

void ExprCSwatchFrame::setValue ( const KSeExpr::Vec3d value)

◆ swatchChanged

void ExprCSwatchFrame::swatchChanged ( QColor  color)
signal

Referenced by mousePressEvent().

Member Data Documentation

◆ _color

QColor ExprCSwatchFrame::_color
private

Definition at line 131 of file ExprColorCurve.h.

Referenced by ExprCSwatchFrame(), mousePressEvent(), paintEvent(), and setValue().

◆ _value

KSeExpr::Vec3d ExprCSwatchFrame::_value
private

Definition at line 130 of file ExprColorCurve.h.

Referenced by ExprCSwatchFrame(), getValue(), mousePressEvent(), and setValue().


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