io.qt.widgets.QGraphicsRectItem Maven / Gradle / Ivy
package io.qt.widgets;
/**
* Rectangle item that you can add to a QGraphicsScene
* Java wrapper for Qt class QGraphicsRectItem
*/
public class QGraphicsRectItem extends io.qt.widgets.QAbstractGraphicsShapeItem
{
/**
* Overloaded constructor for {@link #QGraphicsRectItem(io.qt.widgets.QGraphicsItem)}
* with parent = null
.
*/
public QGraphicsRectItem() {
this((io.qt.widgets.QGraphicsItem)null);
}
/**
* See QGraphicsRectItem::QGraphicsRectItem(QGraphicsItem*)
*/
public QGraphicsRectItem(io.qt.widgets.QGraphicsItem parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
if (parent != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this);
}
private native static void initialize_native(QGraphicsRectItem instance, io.qt.widgets.QGraphicsItem parent);
/**
* Overloaded constructor for {@link #QGraphicsRectItem(io.qt.core.QRectF, io.qt.widgets.QGraphicsItem)}
* with parent = null
.
*/
public QGraphicsRectItem(io.qt.core.QRectF rect) {
this(rect, (io.qt.widgets.QGraphicsItem)null);
}
/**
* See QGraphicsRectItem::QGraphicsRectItem(QRectF,QGraphicsItem*)
*/
public QGraphicsRectItem(io.qt.core.QRectF rect, io.qt.widgets.QGraphicsItem parent){
super((QPrivateConstructor)null);
initialize_native(this, rect, parent);
if (parent != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this);
}
private native static void initialize_native(QGraphicsRectItem instance, io.qt.core.QRectF rect, io.qt.widgets.QGraphicsItem parent);
/**
* Overloaded constructor for {@link #QGraphicsRectItem(double, double, double, double, io.qt.widgets.QGraphicsItem)}
* with parent = null
.
*/
public QGraphicsRectItem(double x, double y, double w, double h) {
this(x, y, w, h, (io.qt.widgets.QGraphicsItem)null);
}
/**
* See QGraphicsRectItem::QGraphicsRectItem(qreal,qreal,qreal,qreal,QGraphicsItem*)
*/
public QGraphicsRectItem(double x, double y, double w, double h, io.qt.widgets.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(QGraphicsRectItem instance, double x, double y, double w, double h, io.qt.widgets.QGraphicsItem parent);
/**
* See QGraphicsRectItem::rect()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRectF rect(){
return rect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QRectF rect_native_constfct(long __this__nativeId);
/**
* See QGraphicsRectItem::setRect(QRectF)
*/
@io.qt.QtUninvokable
public final void setRect(io.qt.core.QRectF rect){
setRect_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native void setRect_native_cref_QRectF(long __this__nativeId, long rect);
/**
* See QGraphicsRectItem::setRect(qreal,qreal,qreal,qreal)
*/
@io.qt.QtUninvokable
public final void setRect(double x, double y, double w, double h){
setRect_native_qtjambireal_qtjambireal_qtjambireal_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, w, h);
}
@io.qt.QtUninvokable
private native void setRect_native_qtjambireal_qtjambireal_qtjambireal_qtjambireal(long __this__nativeId, double x, double y, double w, double h);
/**
* See QGraphicsItem::boundingRect()const
*/
@io.qt.QtUninvokable
public io.qt.core.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
*/
@io.qt.QtUninvokable
public boolean contains(io.qt.core.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);
@io.qt.QtUninvokable
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
*/
@io.qt.QtUninvokable
public boolean isObscuredBy(io.qt.widgets.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
*/
@io.qt.QtUninvokable
public io.qt.gui.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*)
*/
@io.qt.QtUninvokable
public void paint(io.qt.gui.QPainter painter, io.qt.widgets.QStyleOptionGraphicsItem option, io.qt.widgets.QWidget widget){
paint_native_QPainter_ptr_const_QStyleOptionGraphicsItem_ptr_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), option, QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
private native static void paint_native_QPainter_ptr_const_QStyleOptionGraphicsItem_ptr_QWidget_ptr(long __this__nativeId, long painter, io.qt.widgets.QStyleOptionGraphicsItem option, long widget);
@io.qt.QtUninvokable
protected void setExtension(io.qt.widgets.QGraphicsItem.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
*/
@io.qt.QtUninvokable
public io.qt.gui.QPainterPath shape(){
return shape_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.gui.QPainterPath shape_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
protected boolean supportsExtension(io.qt.widgets.QGraphicsItem.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
.
*/
@io.qt.NativeAccess
protected QGraphicsRectItem(QPrivateConstructor p) { super(p); }
}