1#ifndef QELINEARGRADIENT_HPP
2#define QELINEARGRADIENT_HPP
6#include <QLinearGradient>
108 void SetStops(QGradientStops stops);
130 void paintEvent(QPaintEvent *event) override;
133 QLinearGradient m_gradient;
QColor GetStartColor() const
GetStartColor returns the Start color of the gradient: position 0.0.
Definition QeLinearGradient.cpp:67
void SetColorAt(float pos, QColor colorAt)
Sets color at specified position in the gradient.
Definition QeLinearGradient.cpp:61
QColor GetStopColor() const
GetStopColor returns the Stop color of the gradient: position 1.0.
Definition QeLinearGradient.cpp:87
void StopColorChanged()
StopColorChanged Signal emitted when StopColor property changes.
void SetStopColor(const QColor &newStopColor)
Replaces or sets the color at position 1.0.
Definition QeLinearGradient.cpp:92
void SetStartColor(const QColor &newStartColor)
Replaces or sets the color at position 0.0.
Definition QeLinearGradient.cpp:72
void SetStops(QGradientStops stops)
Resets Gradient with entries in QGradientStops.
Definition QeLinearGradient.cpp:54
void ResetStopColor()
ResetStartColor resets the value to its default: black (0, 0, 0)
Definition QeLinearGradient.cpp:102
QColor startColor
Start color (0.0) of the gradient.
Definition QeLinearGradient.hpp:28
QeLinearGradient(QWidget *parent=nullptr)
QeLinearGradient default constructor.
Definition QeLinearGradient.cpp:10
bool IsVertical() const
IsVertical returns the value of the vertical property.
Definition QeLinearGradient.cpp:35
void StartColorChanged()
StartColorChanged Signal emitted when StartColor property changes.
void SetVertical(bool newVertical)
SetVertical sets a new state for rendering the gradient.
Definition QeLinearGradient.cpp:40
void ResetStartColor()
ResetStartColor resets the value to its default: white (255, 255, 255)
Definition QeLinearGradient.cpp:82
QColor stopColor
Stop color (1.0) of the gradient.
Definition QeLinearGradient.hpp:34
void ResetVertical()
ResetVertical resets the value to its default: true.
Definition QeLinearGradient.cpp:49
void VerticalChanged()
VerticalChanged Signal emitted when vertical property changes.
bool vertical
Determines if the gradient is drawn vertically or horizontally.
Definition QeLinearGradient.hpp:22