java.lang.Object
io.qt.QtObject
io.qt.gui.QGradient
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QConicalGradient
,QLinearGradient
,QRadialGradient
Used in combination with QBrush to specify gradient fills
Java wrapper for Qt class QGradient
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQGradient::CoordinateMode
static enum
Java wrapper for Qt enumQGradient::InterpolationMode
static enum
Java wrapper for Qt enumQGradient::Preset
static enum
Java wrapper for Qt enumQGradient::Spread
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final QGradient.CoordinateMode
static QGradient
create
(QGradient.Preset preset) boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QGradient)
.SeeQGradient::
interpolationMode()const final void
setColorAt
(double pos, Qt.GlobalColor color) Overloaded function forsetColorAt(double, io.qt.gui.QColor)
.final void
setColorAt
(double pos, QColor color) final void
setColorAt
(double pos, QRgba64 color) Overloaded function forsetColorAt(double, io.qt.gui.QColor)
.final void
setColorAt
(double pos, String color) Overloaded function forsetColorAt(double, io.qt.gui.QColor)
.final void
final void
SeeQGradient::
setInterpolationMode(QGradient::InterpolationMode) final void
setSpread
(QGradient.Spread spread) final void
setStops
(Collection<? extends QPair<@QtPrimitiveType Double, QColor>> stops) final QGradient.Spread
spread()
final QVector<QPair<@QtPrimitiveType Double,
QColor>> stops()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QGradient
- Parameters:
other
-- Since:
- This function was introduced in Qt 5.12.
-
-
Method Details
-
coordinateMode
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
interpolationMode
See
QGradient::
interpolationMode()const - Returns:
-
setColorAt
- Parameters:
pos
-color
-
-
setCoordinateMode
- Parameters:
mode
-- Since:
- This function was introduced in Qt 4.4.
-
setInterpolationMode
See
QGradient::
setInterpolationMode(QGradient::InterpolationMode) - Parameters:
mode
-
-
setSpread
- Parameters:
spread
-
-
setStops
@QtUninvokable public final void setStops(Collection<? extends QPair<@QtPrimitiveType Double, QColor>> stops) - Parameters:
stops
-
-
spread
- Returns:
-
stops
- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QGradient)
. -
create
-
clone
Creates and returns a copy of this object.
-
setColorAt
Overloaded function for
setColorAt(double, io.qt.gui.QColor)
. -
setColorAt
Overloaded function for
setColorAt(double, io.qt.gui.QColor)
. -
setColorAt
Overloaded function for
setColorAt(double, io.qt.gui.QColor)
.
-