io.qt.gui.QLinearGradient Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Used in combination with QBrush to specify a linear gradient brush
* Java wrapper for Qt class QLinearGradient
*/
public class QLinearGradient extends io.qt.gui.QGradient
implements java.lang.Cloneable
{
/**
* See QLinearGradient:: QLinearGradient()
*/
public QLinearGradient(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QLinearGradient instance);
/**
* See QLinearGradient:: QLinearGradient(QLinearGradient)
*/
public QLinearGradient(io.qt.gui.@NonNull QLinearGradient other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QLinearGradient instance, io.qt.gui.QLinearGradient other);
/**
* See QLinearGradient:: QLinearGradient(QPointF, QPointF)
*/
public QLinearGradient(io.qt.core.@NonNull QPointF start, io.qt.core.@NonNull QPointF finalStop){
super((QPrivateConstructor)null);
initialize_native(this, start, finalStop);
}
private native static void initialize_native(QLinearGradient instance, io.qt.core.QPointF start, io.qt.core.QPointF finalStop);
/**
* See QLinearGradient:: QLinearGradient(qreal, qreal, qreal, qreal)
*/
public QLinearGradient(double xStart, double yStart, double xFinalStop, double yFinalStop){
super((QPrivateConstructor)null);
initialize_native(this, xStart, yStart, xFinalStop, yFinalStop);
}
private native static void initialize_native(QLinearGradient instance, double xStart, double yStart, double xFinalStop, double yFinalStop);
/**
* See QLinearGradient:: finalStop()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF finalStop(){
return finalStop_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF finalStop_native_constfct(long __this__nativeId);
/**
* See QLinearGradient:: setFinalStop(QPointF)
*/
@QtUninvokable
public final void setFinalStop(io.qt.core.@NonNull QPointF stop){
setFinalStop_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(stop));
}
@QtUninvokable
private native void setFinalStop_native_cref_QPointF(long __this__nativeId, long stop);
/**
* See QLinearGradient:: setFinalStop(qreal, qreal)
*/
@QtUninvokable
public final void setFinalStop(double x, double y){
setFinalStop_native_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), x, y);
}
@QtUninvokable
private native void setFinalStop_native_qreal_qreal(long __this__nativeId, double x, double y);
/**
* See QLinearGradient:: setStart(QPointF)
*/
@QtUninvokable
public final void setStart(io.qt.core.@NonNull QPointF start){
setStart_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(start));
}
@QtUninvokable
private native void setStart_native_cref_QPointF(long __this__nativeId, long start);
/**
* See QLinearGradient:: setStart(qreal, qreal)
*/
@QtUninvokable
public final void setStart(double x, double y){
setStart_native_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), x, y);
}
@QtUninvokable
private native void setStart_native_qreal_qreal(long __this__nativeId, double x, double y);
/**
* See QLinearGradient:: start()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF start(){
return start_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF start_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QLinearGradient(QPrivateConstructor p) { super(p); }
/**
* Returns the objects's hash code computed by qHash(QLinearGradient)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QLinearGradient:: QLinearGradient(QLinearGradient)
*/
@QtUninvokable
@Override
public QLinearGradient clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QLinearGradient clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QLinearGradient(io.qt.core.QPointF, io.qt.core.QPointF)}.
*/
public QLinearGradient(io.qt.core.@NonNull QPoint start, io.qt.core.@NonNull QPointF finalStop) {
this(new io.qt.core.QPointF(start), finalStop);
}
/**
* Overloaded constructor for {@link #QLinearGradient(io.qt.core.QPointF, io.qt.core.QPointF)}.
*/
public QLinearGradient(io.qt.core.@NonNull QPointF start, io.qt.core.@NonNull QPoint finalStop) {
this(start, new io.qt.core.QPointF(finalStop));
}
/**
* Overloaded constructor for {@link #QLinearGradient(io.qt.core.QPointF, io.qt.core.QPointF)}.
*/
public QLinearGradient(io.qt.core.@NonNull QPoint start, io.qt.core.@NonNull QPoint finalStop) {
this(new io.qt.core.QPointF(start), new io.qt.core.QPointF(finalStop));
}
/**
* Overloaded function for {@link #setFinalStop(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setFinalStop(io.qt.core.@NonNull QPoint stop) {
setFinalStop(new io.qt.core.QPointF(stop));
}
/**
* Overloaded function for {@link #setStart(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setStart(io.qt.core.@NonNull QPoint start) {
setStart(new io.qt.core.QPointF(start));
}
}