All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QPen Maven / Gradle / Ivy

There is a newer version: 6.8.1
Show newest version
package io.qt.gui;


/**
 * 

Defines how a QPainter should draw lines and outlines of shapes

*

Java wrapper for Qt class QPen

*/ public class QPen extends io.qt.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(Qt::PenStyle)

*/ public QPen(io.qt.core.Qt.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); /** *

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.QBrush brush, double width, io.qt.core.Qt.PenStyle s, io.qt.core.Qt.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.QBrush brush, double width, io.qt.core.Qt.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.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); } /** *

See QPen::QPen(QBrush,qreal,Qt::PenStyle,Qt::PenCapStyle,Qt::PenJoinStyle)

*/ public QPen(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){ 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); /** *

See QPen::QPen(QColor)

*/ public QPen(io.qt.gui.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.QPen pen){ super((QPrivateConstructor)null); initialize_native(this, pen); } private native static void initialize_native(QPen instance, io.qt.gui.QPen pen); /** *

See QPen::brush()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QBrush brush(){ return brush_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QBrush brush_native_constfct(long __this__nativeId); /** *

See QPen::capStyle()const

*/ @io.qt.QtUninvokable public final io.qt.core.Qt.PenCapStyle capStyle(){ return io.qt.core.Qt.PenCapStyle.resolve(capStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int capStyle_native_constfct(long __this__nativeId); /** *

See QPen::color()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QColor color(){ return color_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QColor color_native_constfct(long __this__nativeId); /** *

See QPen::dashOffset()const

*/ @io.qt.QtUninvokable public final double dashOffset(){ return dashOffset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double dashOffset_native_constfct(long __this__nativeId); /** *

See QPen::dashPattern()const

*/ @io.qt.QtUninvokable public final io.qt.core.QList dashPattern(){ return dashPattern_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QList dashPattern_native_constfct(long __this__nativeId); /** *

See QPen::isCosmetic()const

*/ @io.qt.QtUninvokable public final boolean isCosmetic(){ return isCosmetic_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isCosmetic_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final boolean isDetached(){ return isDetached_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isDetached_native(long __this__nativeId); /** *

See QPen::isSolid()const

*/ @io.qt.QtUninvokable public final boolean isSolid(){ return isSolid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isSolid_native_constfct(long __this__nativeId); /** *

See QPen::joinStyle()const

*/ @io.qt.QtUninvokable public final io.qt.core.Qt.PenJoinStyle joinStyle(){ return io.qt.core.Qt.PenJoinStyle.resolve(joinStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int joinStyle_native_constfct(long __this__nativeId); /** *

See QPen::miterLimit()const

*/ @io.qt.QtUninvokable public final double miterLimit(){ return miterLimit_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double miterLimit_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public void writeTo(io.qt.core.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)); } @io.qt.QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QPen::operator==(QPen)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(io.qt.gui.QPen p){ return operator_equal_native_cref_QPen_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QPen_constfct(long __this__nativeId, long p); @io.qt.QtUninvokable public void readFrom(io.qt.core.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)); } @io.qt.QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QPen::setBrush(QBrush)

*/ @io.qt.QtUninvokable public final void setBrush(io.qt.gui.QBrush brush){ setBrush_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush)); } @io.qt.QtUninvokable private native void setBrush_native_cref_QBrush(long __this__nativeId, long brush); /** *

See QPen::setCapStyle(Qt::PenCapStyle)

*/ @io.qt.QtUninvokable public final void setCapStyle(io.qt.core.Qt.PenCapStyle pcs){ setCapStyle_native_Qt_PenCapStyle(QtJambi_LibraryUtilities.internal.nativeId(this), pcs.value()); } @io.qt.QtUninvokable private native void setCapStyle_native_Qt_PenCapStyle(long __this__nativeId, int pcs); /** *

See QPen::setColor(QColor)

*/ @io.qt.QtUninvokable public final void setColor(io.qt.gui.QColor color){ setColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color)); } @io.qt.QtUninvokable private native void setColor_native_cref_QColor(long __this__nativeId, long color); /** *

See QPen::setCosmetic(bool)

*/ @io.qt.QtUninvokable public final void setCosmetic(boolean cosmetic){ setCosmetic_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), cosmetic); } @io.qt.QtUninvokable private native void setCosmetic_native_bool(long __this__nativeId, boolean cosmetic); /** *

See QPen::setDashOffset(qreal)

*/ @io.qt.QtUninvokable public final void setDashOffset(double doffset){ setDashOffset_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), doffset); } @io.qt.QtUninvokable private native void setDashOffset_native_qtjambireal(long __this__nativeId, double doffset); /** *

See QPen::setDashPattern(QList<qreal>)

*/ @io.qt.QtUninvokable public final void setDashPattern(java.util.Collection pattern){ setDashPattern_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), pattern); } @io.qt.QtUninvokable private native void setDashPattern_native_cref_QList(long __this__nativeId, java.util.Collection pattern); /** *

See QPen::setJoinStyle(Qt::PenJoinStyle)

*/ @io.qt.QtUninvokable public final void setJoinStyle(io.qt.core.Qt.PenJoinStyle pcs){ setJoinStyle_native_Qt_PenJoinStyle(QtJambi_LibraryUtilities.internal.nativeId(this), pcs.value()); } @io.qt.QtUninvokable private native void setJoinStyle_native_Qt_PenJoinStyle(long __this__nativeId, int pcs); /** *

See QPen::setMiterLimit(qreal)

*/ @io.qt.QtUninvokable public final void setMiterLimit(double limit){ setMiterLimit_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), limit); } @io.qt.QtUninvokable private native void setMiterLimit_native_qtjambireal(long __this__nativeId, double limit); /** *

See QPen::setStyle(Qt::PenStyle)

*/ @io.qt.QtUninvokable public final void setStyle(io.qt.core.Qt.PenStyle arg__1){ setStyle_native_Qt_PenStyle(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @io.qt.QtUninvokable private native void setStyle_native_Qt_PenStyle(long __this__nativeId, int arg__1); /** *

See QPen::setWidth(int)

*/ @io.qt.QtUninvokable public final void setWidth(int width){ setWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), width); } @io.qt.QtUninvokable private native void setWidth_native_int(long __this__nativeId, int width); /** *

See QPen::setWidthF(qreal)

*/ @io.qt.QtUninvokable public final void setWidthF(double width){ setWidthF_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), width); } @io.qt.QtUninvokable private native void setWidthF_native_qtjambireal(long __this__nativeId, double width); /** *

See QPen::style()const

*/ @io.qt.QtUninvokable public final io.qt.core.Qt.PenStyle style(){ return io.qt.core.Qt.PenStyle.resolve(style_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int style_native_constfct(long __this__nativeId); /** *

See QPen::swap(QPen&)

*/ @io.qt.QtUninvokable public final void swap(io.qt.gui.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)); } @io.qt.QtUninvokable private native void swap_native_ref_QPen(long __this__nativeId, long other); /** *

See QPen::width()const

*/ @io.qt.QtUninvokable public final int width(){ return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int width_native_constfct(long __this__nativeId); /** *

See QPen::widthF()const

*/ @io.qt.QtUninvokable public final double widthF(){ return widthF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double widthF_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QPen(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QPen) { return operator_equal((io.qt.gui.QPen) other); } return false; } @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); public QPen(QColor color, double width, io.qt.core.Qt.PenStyle s, io.qt.core.Qt.PenCapStyle c, io.qt.core.Qt.PenJoinStyle j) { this(new QBrush(color), width, s, c, j); } public QPen(QColor color, double width, io.qt.core.Qt.PenStyle s, io.qt.core.Qt.PenCapStyle c) { this(new QBrush(color), width, s, c); } public QPen(QColor color, double width, io.qt.core.Qt.PenStyle s) { this(new QBrush(color), width, s); } public QPen(QColor color, double width) { this(new QBrush(color), width); } // public static final QPen NoPen = new QPen(io.qt.core.Qt.PenStyle.NoPen); @Override @io.qt.QtUninvokable public String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private static native String toString_native(long __this_nativeId); @Override public QPen clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QPen clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy