io.qt.gui.QLinearGradient Maven / Gradle / Ivy
The newest version!
package io.qt.gui;
/**
* 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(QPointF,QPointF)
*/
public QLinearGradient(io.qt.core.QPointF start, io.qt.core.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
*/
@io.qt.QtUninvokable
public final io.qt.core.QPointF finalStop(){
return finalStop_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPointF finalStop_native_constfct(long __this__nativeId);
/**
* See QLinearGradient::setFinalStop(QPointF)
*/
@io.qt.QtUninvokable
public final void setFinalStop(io.qt.core.QPointF stop){
setFinalStop_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(stop));
}
@io.qt.QtUninvokable
private native void setFinalStop_native_cref_QPointF(long __this__nativeId, long stop);
/**
* See QLinearGradient::setFinalStop(qreal,qreal)
*/
@io.qt.QtUninvokable
public final void setFinalStop(double x, double y){
setFinalStop_native_qtjambireal_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), x, y);
}
@io.qt.QtUninvokable
private native void setFinalStop_native_qtjambireal_qtjambireal(long __this__nativeId, double x, double y);
/**
* See QLinearGradient::setStart(QPointF)
*/
@io.qt.QtUninvokable
public final void setStart(io.qt.core.QPointF start){
setStart_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(start));
}
@io.qt.QtUninvokable
private native void setStart_native_cref_QPointF(long __this__nativeId, long start);
/**
* See QLinearGradient::setStart(qreal,qreal)
*/
@io.qt.QtUninvokable
public final void setStart(double x, double y){
setStart_native_qtjambireal_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), x, y);
}
@io.qt.QtUninvokable
private native void setStart_native_qtjambireal_qtjambireal(long __this__nativeId, double x, double y);
/**
* See QLinearGradient::start()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QPointF start(){
return start_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPointF start_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QLinearGradient(QPrivateConstructor p) { super(p); }
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@Override
public QLinearGradient clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QLinearGradient clone_native(long __this_nativeId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy