java.lang.Object
io.qt.QtObject
io.qt.gui.QGradient
io.qt.gui.QLinearGradient
- All Implemented Interfaces:
QtObjectInterface
,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
Fields inherited from class io.qt.gui.QGradient
staticMetaObject
-
Constructor Summary
ConstructorDescriptionQLinearGradient
(double xStart, double yStart, double xFinalStop, double yFinalStop) QLinearGradient
(QPointF start, QPoint finalStop) Overloaded constructor forQLinearGradient(io.qt.core.QPointF, io.qt.core.QPointF)
.QLinearGradient
(QPointF start, QPointF finalStop) QLinearGradient
(QPoint start, QPoint finalStop) Overloaded constructor forQLinearGradient(io.qt.core.QPointF, io.qt.core.QPointF)
.QLinearGradient
(QPoint start, QPointF finalStop) Overloaded constructor forQLinearGradient(io.qt.core.QPointF, io.qt.core.QPointF)
.QLinearGradient
(QLinearGradient other) SeeQLinearGradient::
QLinearGradient(QLinearGradient) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final QPointF
int
hashCode()
Returns the objects's hash code computed byqHash(QLinearGradient)
.final void
setFinalStop
(double x, double y) final void
setFinalStop
(QPoint stop) Overloaded function forsetFinalStop(io.qt.core.QPointF)
.final void
setFinalStop
(QPointF stop) final void
setStart
(double x, double y) final void
Overloaded function forsetStart(io.qt.core.QPointF)
.final void
final QPointF
start()
Methods inherited from class io.qt.gui.QGradient
coordinateMode, create, equals, interpolationMode, setColorAt, setColorAt, setColorAt, setColorAt, setCoordinateMode, setInterpolationMode, setSpread, setStops, spread, stops
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QLinearGradient
public QLinearGradient() -
QLinearGradient
See
QLinearGradient::
QLinearGradient(QLinearGradient) - Parameters:
other
-
-
QLinearGradient
- Parameters:
start
-finalStop
-
-
QLinearGradient
public QLinearGradient(double xStart, double yStart, double xFinalStop, double yFinalStop) - Parameters:
xStart
-yStart
-xFinalStop
-yFinalStop
-
-
QLinearGradient
Overloaded constructor for
QLinearGradient(io.qt.core.QPointF, io.qt.core.QPointF)
. -
QLinearGradient
Overloaded constructor for
QLinearGradient(io.qt.core.QPointF, io.qt.core.QPointF)
. -
QLinearGradient
Overloaded constructor for
QLinearGradient(io.qt.core.QPointF, io.qt.core.QPointF)
.
-
-
Method Details
-
finalStop
- Returns:
-
setFinalStop
- Parameters:
stop
-- Since:
- This function was introduced in Qt 4.2.
-
setFinalStop
- Parameters:
x
-y
-- Since:
- This function was introduced in Qt 4.2.
-
setStart
- Parameters:
start
-- Since:
- This function was introduced in Qt 4.2.
-
setStart
- Parameters:
x
-y
-- Since:
- This function was introduced in Qt 4.2.
-
start
- Returns:
-
hashCode
Returns the objects's hash code computed byqHash(QLinearGradient)
. -
clone
Creates and returns a copy of this object.
See
QLinearGradient::
QLinearGradient(QLinearGradient) -
setFinalStop
Overloaded function for
setFinalStop(io.qt.core.QPointF)
. -
setStart
Overloaded function for
setStart(io.qt.core.QPointF)
.
-