io.qt.gui.QConicalGradient 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 conical gradient brush
* Java wrapper for Qt class QConicalGradient
*/
public class QConicalGradient extends io.qt.gui.QGradient
implements java.lang.Cloneable
{
/**
* See QConicalGradient:: QConicalGradient()
*/
public QConicalGradient(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QConicalGradient instance);
/**
* See QConicalGradient:: QConicalGradient(QConicalGradient)
*/
public QConicalGradient(io.qt.gui.@NonNull QConicalGradient other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QConicalGradient instance, io.qt.gui.QConicalGradient other);
/**
* See QConicalGradient:: QConicalGradient(QPointF, qreal)
*/
public QConicalGradient(io.qt.core.@NonNull QPointF center, double startAngle){
super((QPrivateConstructor)null);
initialize_native(this, center, startAngle);
}
private native static void initialize_native(QConicalGradient instance, io.qt.core.QPointF center, double startAngle);
/**
* See QConicalGradient:: QConicalGradient(qreal, qreal, qreal)
*/
public QConicalGradient(double cx, double cy, double startAngle){
super((QPrivateConstructor)null);
initialize_native(this, cx, cy, startAngle);
}
private native static void initialize_native(QConicalGradient instance, double cx, double cy, double startAngle);
/**
* See QConicalGradient:: angle()const
*/
@QtUninvokable
public final double angle(){
return angle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double angle_native_constfct(long __this__nativeId);
/**
* See QConicalGradient:: center()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF center(){
return center_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF center_native_constfct(long __this__nativeId);
/**
* See QConicalGradient:: setAngle(qreal)
*/
@QtUninvokable
public final void setAngle(double angle){
setAngle_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), angle);
}
@QtUninvokable
private native void setAngle_native_qreal(long __this__nativeId, double angle);
/**
* See QConicalGradient:: setCenter(QPointF)
*/
@QtUninvokable
public final void setCenter(io.qt.core.@NonNull QPointF center){
setCenter_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(center));
}
@QtUninvokable
private native void setCenter_native_cref_QPointF(long __this__nativeId, long center);
/**
* See QConicalGradient:: setCenter(qreal, qreal)
*/
@QtUninvokable
public final void setCenter(double x, double y){
setCenter_native_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), x, y);
}
@QtUninvokable
private native void setCenter_native_qreal_qreal(long __this__nativeId, double x, double y);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QConicalGradient(QPrivateConstructor p) { super(p); }
/**
* Returns the objects's hash code computed by qHash(QConicalGradient)
.
*/
@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 QConicalGradient:: QConicalGradient(QConicalGradient)
*/
@QtUninvokable
@Override
public QConicalGradient clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QConicalGradient clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QConicalGradient(io.qt.core.QPointF, double)}.
*/
public QConicalGradient(io.qt.core.@NonNull QPoint center, double startAngle) {
this(new io.qt.core.QPointF(center), startAngle);
}
/**
* Overloaded function for {@link #setCenter(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setCenter(io.qt.core.@NonNull QPoint center) {
setCenter(new io.qt.core.QPointF(center));
}
}