io.qt.gui.QPen Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Defines how a QPainter should draw lines and outlines of shapes
* Java wrapper for Qt class QPen
*/
public class QPen extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QPen:: QPen()
*/
public QPen(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QPen instance);
/**
* See QPen:: QPen(QBrush, qreal, Qt::PenStyle, Qt::PenCapStyle, Qt::PenJoinStyle)
*/
public QPen(io.qt.gui.@NonNull QBrush brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c, io.qt.core.Qt.@NonNull PenJoinStyle j){
super((QPrivateConstructor)null);
initialize_native(this, brush, width, s, c, j);
}
private native static void initialize_native(QPen instance, io.qt.gui.QBrush brush, double width, io.qt.core.Qt.PenStyle s, io.qt.core.Qt.PenCapStyle c, io.qt.core.Qt.PenJoinStyle j);
/**
*
*/
public QPen(io.qt.gui.@NonNull QColor color){
super((QPrivateConstructor)null);
initialize_native(this, color);
}
private native static void initialize_native(QPen instance, io.qt.gui.QColor color);
/**
* See QPen:: QPen(QPen)
*/
public QPen(io.qt.gui.@NonNull QPen pen){
super((QPrivateConstructor)null);
initialize_native(this, pen);
}
private native static void initialize_native(QPen instance, io.qt.gui.QPen pen);
/**
*
*/
public QPen(io.qt.core.Qt.@NonNull PenStyle arg__1){
super((QPrivateConstructor)null);
initialize_native(this, arg__1);
}
private native static void initialize_native(QPen instance, io.qt.core.Qt.PenStyle arg__1);
/**
*
*/
@QtUninvokable
public final io.qt.gui.@NonNull QBrush brush(){
return brush_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QBrush brush_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull PenCapStyle capStyle(){
return io.qt.core.Qt.PenCapStyle.resolve(capStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int capStyle_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.gui.@NonNull QColor color(){
return color_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QColor color_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final double dashOffset(){
return dashOffset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double dashOffset_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QList dashPattern(){
return dashPattern_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList dashPattern_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean isCosmetic(){
return isCosmetic_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isCosmetic_native_constfct(long __this__nativeId);
/**
* See QPen:: isDetached()
*/
@QtUninvokable
public final boolean isDetached(){
return isDetached_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDetached_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean isSolid(){
return isSolid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSolid_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull PenJoinStyle joinStyle(){
return io.qt.core.Qt.PenJoinStyle.resolve(joinStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int joinStyle_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final double miterLimit(){
return miterLimit_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double miterLimit_native_constfct(long __this__nativeId);
/**
* See operator<<(QDataStream&, QPen)
*/
@QtUninvokable
public void writeTo(io.qt.core.@StrictNonNull QDataStream arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
*
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QPen pen){
assign_native_cref_QPen(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pen));
}
@QtUninvokable
private native void assign_native_cref_QPen(long __this__nativeId, long pen);
/**
* See QPen:: operator==(QPen)const
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QPen p){
return equals_native_cref_QPen_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@QtUninvokable
private native boolean equals_native_cref_QPen_constfct(long __this__nativeId, long p);
/**
* See operator>>(QDataStream&, QPen&)
*/
@QtUninvokable
public void readFrom(io.qt.core.@StrictNonNull QDataStream arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
*
*/
@QtUninvokable
public final void setBrush(io.qt.gui.@NonNull QBrush brush){
setBrush_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@QtUninvokable
private native void setBrush_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QPen:: setCapStyle(Qt::PenCapStyle)
*/
@QtUninvokable
public final void setCapStyle(io.qt.core.Qt.@NonNull PenCapStyle pcs){
setCapStyle_native_Qt_PenCapStyle(QtJambi_LibraryUtilities.internal.nativeId(this), pcs.value());
}
@QtUninvokable
private native void setCapStyle_native_Qt_PenCapStyle(long __this__nativeId, int pcs);
/**
*
*/
@QtUninvokable
public final void setColor(io.qt.gui.@NonNull QColor color){
setColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
@QtUninvokable
private native void setColor_native_cref_QColor(long __this__nativeId, long color);
/**
*
*/
@QtUninvokable
public final void setCosmetic(boolean cosmetic){
setCosmetic_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), cosmetic);
}
@QtUninvokable
private native void setCosmetic_native_bool(long __this__nativeId, boolean cosmetic);
/**
* See QPen:: setDashOffset(qreal)
*/
@QtUninvokable
public final void setDashOffset(double doffset){
setDashOffset_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), doffset);
}
@QtUninvokable
private native void setDashOffset_native_qreal(long __this__nativeId, double doffset);
/**
* See QPen:: setDashPattern(QList<qreal>)
*/
@QtUninvokable
public final void setDashPattern(java.util.@NonNull Collection pattern){
setDashPattern_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), pattern);
}
@QtUninvokable
private native void setDashPattern_native_cref_QList(long __this__nativeId, java.util.Collection pattern);
/**
* See QPen:: setJoinStyle(Qt::PenJoinStyle)
*/
@QtUninvokable
public final void setJoinStyle(io.qt.core.Qt.@NonNull PenJoinStyle pcs){
setJoinStyle_native_Qt_PenJoinStyle(QtJambi_LibraryUtilities.internal.nativeId(this), pcs.value());
}
@QtUninvokable
private native void setJoinStyle_native_Qt_PenJoinStyle(long __this__nativeId, int pcs);
/**
* See QPen:: setMiterLimit(qreal)
*/
@QtUninvokable
public final void setMiterLimit(double limit){
setMiterLimit_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), limit);
}
@QtUninvokable
private native void setMiterLimit_native_qreal(long __this__nativeId, double limit);
/**
* See QPen:: setStyle(Qt::PenStyle)
*/
@QtUninvokable
public final void setStyle(io.qt.core.Qt.@NonNull PenStyle arg__1){
setStyle_native_Qt_PenStyle(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native void setStyle_native_Qt_PenStyle(long __this__nativeId, int arg__1);
/**
*
*/
@QtUninvokable
public final void setWidth(int width){
setWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), width);
}
@QtUninvokable
private native void setWidth_native_int(long __this__nativeId, int width);
/**
*
*/
@QtUninvokable
public final void setWidthF(double width){
setWidthF_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width);
}
@QtUninvokable
private native void setWidthF_native_qreal(long __this__nativeId, double width);
/**
*
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull PenStyle style(){
return io.qt.core.Qt.PenStyle.resolve(style_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int style_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void swap(io.qt.gui.@StrictNonNull QPen other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QPen(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QPen(long __this__nativeId, long other);
/**
*
*/
@QtUninvokable
public final int width(){
return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int width_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final double widthF(){
return widthF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double widthF_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QPen(QPrivateConstructor p) { super(p); }
/**
* See QPen:: operator==(QPen)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QPen) {
return equals((io.qt.gui.QPen) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QPen)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* See operator<<(QDebug, QPen)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QPen:: QPen(QPen)
*/
@QtUninvokable
@Override
public QPen clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QPen clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with j = io.qt.core.Qt.PenJoinStyle.BevelJoin
.
*/
public QPen(io.qt.gui.@NonNull QBrush brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c) {
this(brush, width, s, c, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.gui.@NonNull QBrush brush, double width, io.qt.core.Qt.@NonNull PenStyle s) {
this(brush, width, s, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* s = io.qt.core.Qt.PenStyle.SolidLine
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.gui.@NonNull QBrush brush, double width) {
this(brush, width, io.qt.core.Qt.PenStyle.SolidLine, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.core.Qt.BrushStyle, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with j = io.qt.core.Qt.PenJoinStyle.BevelJoin
.
*/
public QPen(io.qt.core.Qt.@NonNull BrushStyle brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c) {
this(brush, width, s, c, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.core.Qt.BrushStyle, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.core.Qt.@NonNull BrushStyle brush, double width, io.qt.core.Qt.@NonNull PenStyle s) {
this(brush, width, s, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.core.Qt.BrushStyle, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* s = io.qt.core.Qt.PenStyle.SolidLine
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.core.Qt.@NonNull BrushStyle brush, double width) {
this(brush, width, io.qt.core.Qt.PenStyle.SolidLine, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}.
*/
public QPen(io.qt.core.Qt.@NonNull BrushStyle brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c, io.qt.core.Qt.@NonNull PenJoinStyle j) {
this(new io.qt.gui.QBrush(brush), width, s, c, j);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QColor, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with j = io.qt.core.Qt.PenJoinStyle.BevelJoin
.
*/
public QPen(io.qt.gui.@NonNull QColor brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c) {
this(brush, width, s, c, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QColor, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.gui.@NonNull QColor brush, double width, io.qt.core.Qt.@NonNull PenStyle s) {
this(brush, width, s, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QColor, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* s = io.qt.core.Qt.PenStyle.SolidLine
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.gui.@NonNull QColor brush, double width) {
this(brush, width, io.qt.core.Qt.PenStyle.SolidLine, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}.
*/
public QPen(io.qt.gui.@NonNull QColor brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c, io.qt.core.Qt.@NonNull PenJoinStyle j) {
this(new io.qt.gui.QBrush(brush), width, s, c, j);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.core.Qt.GlobalColor, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with j = io.qt.core.Qt.PenJoinStyle.BevelJoin
.
*/
public QPen(io.qt.core.Qt.@NonNull GlobalColor brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c) {
this(brush, width, s, c, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.core.Qt.GlobalColor, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.core.Qt.@NonNull GlobalColor brush, double width, io.qt.core.Qt.@NonNull PenStyle s) {
this(brush, width, s, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.core.Qt.GlobalColor, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* s = io.qt.core.Qt.PenStyle.SolidLine
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.core.Qt.@NonNull GlobalColor brush, double width) {
this(brush, width, io.qt.core.Qt.PenStyle.SolidLine, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}.
*/
public QPen(io.qt.core.Qt.@NonNull GlobalColor brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c, io.qt.core.Qt.@NonNull PenJoinStyle j) {
this(new io.qt.gui.QBrush(brush), width, s, c, j);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QPixmap, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with j = io.qt.core.Qt.PenJoinStyle.BevelJoin
.
*/
public QPen(io.qt.gui.@NonNull QPixmap brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c) {
this(brush, width, s, c, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QPixmap, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.gui.@NonNull QPixmap brush, double width, io.qt.core.Qt.@NonNull PenStyle s) {
this(brush, width, s, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QPixmap, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* s = io.qt.core.Qt.PenStyle.SolidLine
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.gui.@NonNull QPixmap brush, double width) {
this(brush, width, io.qt.core.Qt.PenStyle.SolidLine, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}.
*/
public QPen(io.qt.gui.@NonNull QPixmap brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c, io.qt.core.Qt.@NonNull PenJoinStyle j) {
this(new io.qt.gui.QBrush(brush), width, s, c, j);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QImage, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with j = io.qt.core.Qt.PenJoinStyle.BevelJoin
.
*/
public QPen(io.qt.gui.@NonNull QImage brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c) {
this(brush, width, s, c, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QImage, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.gui.@NonNull QImage brush, double width, io.qt.core.Qt.@NonNull PenStyle s) {
this(brush, width, s, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QImage, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* s = io.qt.core.Qt.PenStyle.SolidLine
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.gui.@NonNull QImage brush, double width) {
this(brush, width, io.qt.core.Qt.PenStyle.SolidLine, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}.
*/
public QPen(io.qt.gui.@NonNull QImage brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c, io.qt.core.Qt.@NonNull PenJoinStyle j) {
this(new io.qt.gui.QBrush(brush), width, s, c, j);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QGradient, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with j = io.qt.core.Qt.PenJoinStyle.BevelJoin
.
*/
public QPen(io.qt.gui.@NonNull QGradient brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c) {
this(brush, width, s, c, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QGradient, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.gui.@NonNull QGradient brush, double width, io.qt.core.Qt.@NonNull PenStyle s) {
this(brush, width, s, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QGradient, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}
* with:
* s = io.qt.core.Qt.PenStyle.SolidLine
* c = io.qt.core.Qt.PenCapStyle.SquareCap
* j = io.qt.core.Qt.PenJoinStyle.BevelJoin
*
*/
public QPen(io.qt.gui.@NonNull QGradient brush, double width) {
this(brush, width, io.qt.core.Qt.PenStyle.SolidLine, io.qt.core.Qt.PenCapStyle.SquareCap, io.qt.core.Qt.PenJoinStyle.BevelJoin);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)}.
*/
public QPen(io.qt.gui.@NonNull QGradient brush, double width, io.qt.core.Qt.@NonNull PenStyle s, io.qt.core.Qt.@NonNull PenCapStyle c, io.qt.core.Qt.@NonNull PenJoinStyle j) {
this(new io.qt.gui.QBrush(brush), width, s, c, j);
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QColor)}.
*/
public QPen(io.qt.core.Qt.@NonNull GlobalColor color) {
this(new io.qt.gui.QColor(color));
}
/**
* Overloaded constructor for {@link #QPen(io.qt.gui.QColor)}.
*/
public QPen(io.qt.gui.@NonNull QRgba64 color) {
this(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #assign(io.qt.gui.QPen)}.
*/
@QtUninvokable
public final void assign(io.qt.core.Qt.@NonNull PenStyle pen) {
assign(new io.qt.gui.QPen(pen));
}
/**
* Overloaded function for {@link #assign(io.qt.gui.QPen)}.
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QColor pen) {
assign(new io.qt.gui.QPen(pen));
}
/**
* Overloaded function for {@link #equals(io.qt.gui.QPen)}.
*/
@QtUninvokable
public final boolean equals(io.qt.core.Qt.@NonNull PenStyle p) {
return equals(new io.qt.gui.QPen(p));
}
/**
* Overloaded function for {@link #equals(io.qt.gui.QPen)}.
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QColor p) {
return equals(new io.qt.gui.QPen(p));
}
/**
* Overloaded function for {@link #setBrush(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBrush(io.qt.core.Qt.@NonNull BrushStyle brush) {
setBrush(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBrush(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBrush(io.qt.gui.@NonNull QColor brush) {
setBrush(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBrush(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBrush(io.qt.core.Qt.@NonNull GlobalColor brush) {
setBrush(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBrush(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBrush(io.qt.gui.@NonNull QPixmap brush) {
setBrush(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBrush(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBrush(io.qt.gui.@NonNull QImage brush) {
setBrush(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBrush(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBrush(io.qt.gui.@NonNull QGradient brush) {
setBrush(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColor(io.qt.core.Qt.@NonNull GlobalColor color) {
setColor(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColor(io.qt.gui.@NonNull QRgba64 color) {
setColor(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColor(java.lang.@NonNull String color) {
setColor(new io.qt.gui.QColor(color));
}
}