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

io.qt.widgets.QGraphicsEllipseItem Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.widgets;

import io.qt.*;


/**
 * 

Ellipse item that you can add to a QGraphicsScene

*

Java wrapper for Qt class QGraphicsEllipseItem

*/ public class QGraphicsEllipseItem extends io.qt.widgets.QAbstractGraphicsShapeItem { /** *

See QGraphicsEllipseItem::QGraphicsEllipseItem(QGraphicsItem*)

*/ public QGraphicsEllipseItem(io.qt.widgets.@Nullable QGraphicsItem parent){ super((QPrivateConstructor)null); initialize_native(this, parent); if (parent != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this); } private native static void initialize_native(QGraphicsEllipseItem instance, io.qt.widgets.QGraphicsItem parent); /** *

See QGraphicsEllipseItem::QGraphicsEllipseItem(QRectF,QGraphicsItem*)

*/ public QGraphicsEllipseItem(io.qt.core.@NonNull QRectF rect, io.qt.widgets.@Nullable QGraphicsItem parent){ super((QPrivateConstructor)null); initialize_native(this, rect, parent); if (parent != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this); } private native static void initialize_native(QGraphicsEllipseItem instance, io.qt.core.QRectF rect, io.qt.widgets.QGraphicsItem parent); /** *

See QGraphicsEllipseItem::QGraphicsEllipseItem(qreal,qreal,qreal,qreal,QGraphicsItem*)

*/ public QGraphicsEllipseItem(double x, double y, double w, double h, io.qt.widgets.@Nullable QGraphicsItem parent){ super((QPrivateConstructor)null); initialize_native(this, x, y, w, h, parent); if (parent != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this); } private native static void initialize_native(QGraphicsEllipseItem instance, double x, double y, double w, double h, io.qt.widgets.QGraphicsItem parent); /** *

See QGraphicsEllipseItem::rect()const

*/ @QtUninvokable public final io.qt.core.@NonNull QRectF rect(){ return rect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QRectF rect_native_constfct(long __this__nativeId); /** *

See QGraphicsEllipseItem::setRect(QRectF)

*/ @QtUninvokable public final void setRect(io.qt.core.@NonNull QRectF rect){ setRect_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect)); } @QtUninvokable private native void setRect_native_cref_QRectF(long __this__nativeId, long rect); /** *

See QGraphicsEllipseItem::setRect(qreal,qreal,qreal,qreal)

*/ @QtUninvokable public final void setRect(double x, double y, double w, double h){ setRect_native_qreal_qreal_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, w, h); } @QtUninvokable private native void setRect_native_qreal_qreal_qreal_qreal(long __this__nativeId, double x, double y, double w, double h); /** *

See QGraphicsEllipseItem::setSpanAngle(int)

*/ @QtUninvokable public final void setSpanAngle(int angle){ setSpanAngle_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), angle); } @QtUninvokable private native void setSpanAngle_native_int(long __this__nativeId, int angle); /** *

See QGraphicsEllipseItem::setStartAngle(int)

*/ @QtUninvokable public final void setStartAngle(int angle){ setStartAngle_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), angle); } @QtUninvokable private native void setStartAngle_native_int(long __this__nativeId, int angle); /** *

See QGraphicsEllipseItem::spanAngle()const

*/ @QtUninvokable public final int spanAngle(){ return spanAngle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int spanAngle_native_constfct(long __this__nativeId); /** *

See QGraphicsEllipseItem::startAngle()const

*/ @QtUninvokable public final int startAngle(){ return startAngle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int startAngle_native_constfct(long __this__nativeId); /** *

See QGraphicsItem::boundingRect()const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QRectF boundingRect(){ return boundingRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.core.QRectF boundingRect_native_constfct(long __this__nativeId); /** *

See QGraphicsItem::contains(QPointF)const

*/ @QtUninvokable @Override public boolean contains(io.qt.core.@NonNull QPointF point){ return contains_native_cref_QPointF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point)); } private native static boolean contains_native_cref_QPointF_constfct(long __this__nativeId, long point); /** *

See QGraphicsItem::extension(QVariant)const

*/ @QtUninvokable @Override protected java.lang.Object extension(java.lang.Object variant){ return extension_native_cref_QVariant_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), variant); } private native static java.lang.Object extension_native_cref_QVariant_constfct(long __this__nativeId, java.lang.Object variant); /** *

See QGraphicsItem::isObscuredBy(const QGraphicsItem*)const

*/ @QtUninvokable @Override public boolean isObscuredBy(io.qt.widgets.@Nullable QGraphicsItem item){ return isObscuredBy_native_const_QGraphicsItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item)); } private native static boolean isObscuredBy_native_const_QGraphicsItem_ptr_constfct(long __this__nativeId, long item); /** *

See QGraphicsItem::opaqueArea()const

*/ @QtUninvokable @Override public io.qt.gui.@NonNull QPainterPath opaqueArea(){ return opaqueArea_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.gui.QPainterPath opaqueArea_native_constfct(long __this__nativeId); /** *

See QGraphicsItem::paint(QPainter*,const QStyleOptionGraphicsItem*,QWidget*)

*/ @QtUninvokable @Override public void paint(io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@Nullable QStyleOptionGraphicsItem option, io.qt.widgets.@Nullable QWidget widget){ paint_native_QPainter_ptr_const_QStyleOptionGraphicsItem_ptr_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); } private native static void paint_native_QPainter_ptr_const_QStyleOptionGraphicsItem_ptr_QWidget_ptr(long __this__nativeId, long painter, long option, long widget); /** *

See QGraphicsItem::setExtension(QGraphicsItem::Extension,QVariant)

*/ @QtUninvokable @Override protected void setExtension(io.qt.widgets.QGraphicsItem.@NonNull Extension extension, java.lang.Object variant){ setExtension_native_QGraphicsItem_Extension_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), extension.value(), variant); } private native static void setExtension_native_QGraphicsItem_Extension_cref_QVariant(long __this__nativeId, int extension, java.lang.Object variant); /** *

See QGraphicsItem::shape()const

*/ @QtUninvokable @Override public io.qt.gui.@NonNull QPainterPath shape(){ return shape_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.gui.QPainterPath shape_native_constfct(long __this__nativeId); /** *

See QGraphicsItem::supportsExtension(QGraphicsItem::Extension)const

*/ @QtUninvokable @Override protected boolean supportsExtension(io.qt.widgets.QGraphicsItem.@NonNull Extension extension){ return supportsExtension_native_QGraphicsItem_Extension_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), extension.value()); } private native static boolean supportsExtension_native_QGraphicsItem_Extension_constfct(long __this__nativeId, int extension); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QGraphicsEllipseItem(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #QGraphicsEllipseItem(io.qt.widgets.QGraphicsItem)} * with parent = null.

*/ public QGraphicsEllipseItem() { this((io.qt.widgets.QGraphicsItem)null); } /** *

Overloaded constructor for {@link #QGraphicsEllipseItem(io.qt.core.QRectF, io.qt.widgets.QGraphicsItem)} * with parent = null.

*/ public QGraphicsEllipseItem(io.qt.core.@NonNull QRectF rect) { this(rect, (io.qt.widgets.QGraphicsItem)null); } /** *

Overloaded constructor for {@link #QGraphicsEllipseItem(io.qt.core.QRect, io.qt.widgets.QGraphicsItem)} * with parent = null.

*/ public QGraphicsEllipseItem(io.qt.core.@NonNull QRect rect) { this(rect, (io.qt.widgets.QGraphicsItem)null); } /** *

Overloaded constructor for {@link #QGraphicsEllipseItem(io.qt.core.QRectF, io.qt.widgets.QGraphicsItem)}.

*/ public QGraphicsEllipseItem(io.qt.core.@NonNull QRect rect, io.qt.widgets.@Nullable QGraphicsItem parent) { this(new io.qt.core.QRectF(rect), parent); } /** *

Overloaded constructor for {@link #QGraphicsEllipseItem(double, double, double, double, io.qt.widgets.QGraphicsItem)} * with parent = null.

*/ public QGraphicsEllipseItem(double x, double y, double w, double h) { this(x, y, w, h, (io.qt.widgets.QGraphicsItem)null); } /** *

Overloaded function for {@link #setRect(io.qt.core.QRectF)}.

*/ @QtUninvokable public final void setRect(io.qt.core.@NonNull QRect rect) { setRect(new io.qt.core.QRectF(rect)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy