java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QGradient
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QConicalGradient
,QLinearGradient
,QRadialGradient
public class QGradient extends QtObject implements Cloneable
Used in combination with QBrush to specify gradient fills
Java wrapper for Qt class QGradient
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QGradient.CoordinateMode
Java wrapper for Qt enum QGradient::CoordinateModestatic class
QGradient.InterpolationMode
Java wrapper for Qt enum QGradient::InterpolationModestatic class
QGradient.Preset
Java wrapper for Qt enum QGradient::Presetstatic class
QGradient.Spread
Java wrapper for Qt enum QGradient::Spread -
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
Constructors Modifier Constructor Description protected
QGradient(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QGradient
clone()
QGradient.CoordinateMode
coordinateMode()
static QGradient
create(QGradient.Preset preset)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
hashCode()
QGradient.InterpolationMode
interpolationMode()
void
setColorAt(double pos, QColor color)
void
setCoordinateMode(QGradient.CoordinateMode mode)
void
setInterpolationMode(QGradient.InterpolationMode mode)
void
setSpread(QGradient.Spread spread)
void
setStops(Collection<QPair<Double,QColor>> stops)
QGradient.Spread
spread()
QList<QPair<Double,QColor>>
stops()
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QGradient
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
coordinateMode
-
interpolationMode
-
setColorAt
-
setCoordinateMode
-
setInterpolationMode
-
setSpread
-
setStops
-
spread
-
stops
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
create
-
clone
-