java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QGradient
io.qt.gui.QLinearGradient
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QLinearGradient extends QGradient implements Cloneable
Used in combination with QBrush to specify a linear gradient brush
Java wrapper for Qt class QLinearGradient
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.gui.QGradient
QGradient.CoordinateMode, QGradient.InterpolationMode, QGradient.Preset, QGradient.Spread
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description QLinearGradient()
QLinearGradient(double xStart, double yStart, double xFinalStop, double yFinalStop)
QLinearGradient(QPointF start, QPointF finalStop)
protected
QLinearGradient(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QLinearGradient
clone()
QPointF
finalStop()
int
hashCode()
void
setFinalStop(double x, double y)
void
setFinalStop(QPointF stop)
void
setStart(double x, double y)
void
setStart(QPointF start)
QPointF
start()
Methods inherited from class io.qt.gui.QGradient
coordinateMode, create, equals, interpolationMode, setColorAt, setCoordinateMode, setInterpolationMode, setSpread, setStops, spread, stops
-
Constructor Details
-
QLinearGradient
public QLinearGradient() -
QLinearGradient
-
QLinearGradient
public QLinearGradient(double xStart, double yStart, double xFinalStop, double yFinalStop) -
QLinearGradient
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details