
io.qt.widgets.QGraphicsScene Maven / Gradle / Ivy
package io.qt.widgets;
import io.qt.core.*;
import io.qt.gui.*;
/**
* Surface for managing a large number of 2D graphical items
* Java wrapper for Qt class QGraphicsScene
*/
public class QGraphicsScene extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.QtPropertyMember(enabled=false)
private Object __rcFocusItem = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QGraphicsScene.class);
/**
* Java wrapper for Qt enum QGraphicsScene::ItemIndexMethod
*/
public enum ItemIndexMethod implements io.qt.QtEnumerator {
BspTreeIndex(0),
NoIndex(-1);
private ItemIndexMethod(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static ItemIndexMethod resolve(int value) {
switch (value) {
case 0: return BspTreeIndex;
case -1: return NoIndex;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QGraphicsScene::SceneLayer
*
* @see SceneLayers
*/
public enum SceneLayer implements io.qt.QtFlagEnumerator {
ItemLayer(1),
BackgroundLayer(2),
ForegroundLayer(4),
AllLayers(65535);
private SceneLayer(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public SceneLayers asFlags() {
return new SceneLayers(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public SceneLayers combined(SceneLayer e) {
return new SceneLayers(this, e);
}
/**
* Creates a new {@link SceneLayers} from the entries.
* @param values entries
* @return new flag
*/
public static SceneLayers flags(SceneLayer ... values) {
return new SceneLayers(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static SceneLayer resolve(int value) {
switch (value) {
case 1: return ItemLayer;
case 2: return BackgroundLayer;
case 4: return ForegroundLayer;
case 65535: return AllLayers;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link SceneLayer}
*/
public static final class SceneLayers extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0x5176f5639c8a5e4fL;
/**
* Creates a new SceneLayers where the flags in args
are set.
* @param args enum entries
*/
public SceneLayers(SceneLayer ... args){
super(args);
}
/**
* Creates a new SceneLayers with given value
.
* @param value
*/
public SceneLayers(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new SceneLayers
*/
@Override
public final SceneLayers combined(SceneLayer e){
return new SceneLayers(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final SceneLayers setFlag(SceneLayer e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final SceneLayers setFlag(SceneLayer e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this SceneLayers.
* @return array of enum entries
*/
@Override
public final SceneLayer[] flags(){
return super.flags(SceneLayer.values());
}
/**
* {@inheritDoc}
*/
@Override
public final SceneLayers clone(){
return new SceneLayers(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(SceneLayers other){
return Integer.compare(value(), other.value());
}
}
/**
* See QGraphicsScene::changed(QList<QRectF>)
*/
public final Signal1> changed = new Signal1<>();
/**
* See QGraphicsScene::focusItemChanged(QGraphicsItem*,QGraphicsItem*,Qt::FocusReason)
*/
public final Signal3 focusItemChanged = new Signal3<>();
/**
* See QGraphicsScene::sceneRectChanged(QRectF)
*/
public final Signal1 sceneRectChanged = new Signal1<>();
/**
* See QGraphicsScene::selectionChanged()
*/
public final Signal0 selectionChanged = new Signal0();
/**
* Overloaded constructor for {@link #QGraphicsScene(io.qt.core.QObject)}
* with parent = null
.
*/
public QGraphicsScene() {
this((io.qt.core.QObject)null);
}
/**
* See QGraphicsScene::QGraphicsScene(QObject*)
*/
public QGraphicsScene(io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QGraphicsScene instance, io.qt.core.QObject parent);
/**
* Overloaded constructor for {@link #QGraphicsScene(io.qt.core.QRectF, io.qt.core.QObject)}
* with parent = null
.
*/
public QGraphicsScene(io.qt.core.QRectF sceneRect) {
this(sceneRect, (io.qt.core.QObject)null);
}
/**
* See QGraphicsScene::QGraphicsScene(QRectF,QObject*)
*/
public QGraphicsScene(io.qt.core.QRectF sceneRect, io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, sceneRect, parent);
}
private native static void initialize_native(QGraphicsScene instance, io.qt.core.QRectF sceneRect, io.qt.core.QObject parent);
/**
* Overloaded constructor for {@link #QGraphicsScene(double, double, double, double, io.qt.core.QObject)}
* with parent = null
.
*/
public QGraphicsScene(double x, double y, double width, double height) {
this(x, y, width, height, (io.qt.core.QObject)null);
}
/**
* See QGraphicsScene::QGraphicsScene(qreal,qreal,qreal,qreal,QObject*)
*/
public QGraphicsScene(double x, double y, double width, double height, io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, x, y, width, height, parent);
}
private native static void initialize_native(QGraphicsScene instance, double x, double y, double width, double height, io.qt.core.QObject parent);
/**
* See QGraphicsScene::activePanel()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsItem activePanel(){
return activePanel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsItem activePanel_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::activeWindow()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsWidget activeWindow(){
return activeWindow_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsWidget activeWindow_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::addItem(QGraphicsItem*)
*/
@io.qt.QtUninvokable
public final void addItem(io.qt.widgets.QGraphicsItem item){
addItem_native_QGraphicsItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@io.qt.QtUninvokable
private native void addItem_native_QGraphicsItem_ptr(long __this__nativeId, long item);
/**
* Overloaded function for {@link #addWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsProxyWidget addWidget(io.qt.widgets.QWidget widget, io.qt.core.Qt.WindowType ... wFlags){
return addWidget(widget, new io.qt.core.Qt.WindowFlags(wFlags));
}
/**
* Overloaded function for {@link #addWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with wFlags = new io.qt.core.Qt.WindowFlags(0)
.
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsProxyWidget addWidget(io.qt.widgets.QWidget widget) {
return addWidget(widget, new io.qt.core.Qt.WindowFlags(0));
}
/**
* See QGraphicsScene::addWidget(QWidget*,Qt::WindowFlags)
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsProxyWidget addWidget(io.qt.widgets.QWidget widget, io.qt.core.Qt.WindowFlags wFlags){
io.qt.widgets.QGraphicsProxyWidget __qt_return_value = addWidget_native_QWidget_ptr_QFlags_Qt_WindowType_(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget), wFlags.value());
QtJambi_LibraryUtilities.internal.setCppOwnership(widget);
QtJambi_LibraryUtilities.internal.setCppOwnership(__qt_return_value);
return __qt_return_value;
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsProxyWidget addWidget_native_QWidget_ptr_QFlags_Qt_WindowType_(long __this__nativeId, long widget, int wFlags);
/**
*
*/
public final void advance(){
advance_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void advance_native(long __this__nativeId);
/**
* See QGraphicsScene::backgroundBrush()const
*/
@io.qt.QtPropertyReader(name="backgroundBrush")
@io.qt.QtUninvokable
public final io.qt.gui.QBrush backgroundBrush(){
return backgroundBrush_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QBrush backgroundBrush_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::bspTreeDepth()const
*/
@io.qt.QtPropertyReader(name="bspTreeDepth")
@io.qt.QtUninvokable
public final int bspTreeDepth(){
return bspTreeDepth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int bspTreeDepth_native_constfct(long __this__nativeId);
/**
*
*/
public final void clear(){
clear_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void clear_native(long __this__nativeId);
/**
* See QGraphicsScene::clearFocus()
*/
@io.qt.QtUninvokable
public final void clearFocus(){
clearFocus_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void clearFocus_native(long __this__nativeId);
/**
* See QGraphicsScene::clearSelection()
*/
public final void clearSelection(){
clearSelection_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void clearSelection_native(long __this__nativeId);
/**
* Overloaded function for {@link #collidingItems(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.ItemSelectionMode)}
* with mode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QList collidingItems(io.qt.widgets.QGraphicsItem item) {
return collidingItems(item, io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape);
}
/**
* See QGraphicsScene::collidingItems(const QGraphicsItem*,Qt::ItemSelectionMode)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList collidingItems(io.qt.widgets.QGraphicsItem item, io.qt.core.Qt.ItemSelectionMode mode){
return collidingItems_native_const_QGraphicsItem_ptr_Qt_ItemSelectionMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), mode.value());
}
@io.qt.QtUninvokable
private native io.qt.core.QList collidingItems_native_const_QGraphicsItem_ptr_Qt_ItemSelectionMode_constfct(long __this__nativeId, long item, int mode);
/**
* See QGraphicsScene::createItemGroup(QList<QGraphicsItem*>)
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsItemGroup createItemGroup(java.util.Collection items){
return createItemGroup_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), items);
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsItemGroup createItemGroup_native_cref_QList(long __this__nativeId, java.util.Collection items);
/**
* See QGraphicsScene::destroyItemGroup(QGraphicsItemGroup*)
*/
@io.qt.QtUninvokable
public final void destroyItemGroup(io.qt.widgets.QGraphicsItemGroup group){
destroyItemGroup_native_QGraphicsItemGroup_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(group));
}
@io.qt.QtUninvokable
private native void destroyItemGroup_native_QGraphicsItemGroup_ptr(long __this__nativeId, long group);
/**
* See QGraphicsScene::focusItem()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsItem focusItem(){
return focusItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsItem focusItem_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::focusOnTouch()const
*/
@io.qt.QtPropertyReader(name="focusOnTouch")
@io.qt.QtUninvokable
public final boolean focusOnTouch(){
return focusOnTouch_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean focusOnTouch_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::font()const
*/
@io.qt.QtPropertyReader(name="font")
@io.qt.QtUninvokable
public final io.qt.gui.QFont font(){
return font_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QFont font_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::foregroundBrush()const
*/
@io.qt.QtPropertyReader(name="foregroundBrush")
@io.qt.QtUninvokable
public final io.qt.gui.QBrush foregroundBrush(){
return foregroundBrush_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QBrush foregroundBrush_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::hasFocus()const
*/
@io.qt.QtUninvokable
public final boolean hasFocus(){
return hasFocus_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean hasFocus_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::height()const
*/
@io.qt.QtUninvokable
public final double height(){
return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double height_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #invalidate(io.qt.core.QRectF, io.qt.widgets.QGraphicsScene.SceneLayers)}.
*/
public final void invalidate(io.qt.core.QRectF rect, io.qt.widgets.QGraphicsScene.SceneLayer ... layers){
invalidate(rect, new io.qt.widgets.QGraphicsScene.SceneLayers(layers));
}
/**
* Overloaded function for {@link #invalidate(io.qt.core.QRectF, io.qt.widgets.QGraphicsScene.SceneLayers)}
* with layers = new io.qt.widgets.QGraphicsScene.SceneLayers(65535)
.
*/
public final void invalidate(io.qt.core.QRectF rect) {
invalidate(rect, new io.qt.widgets.QGraphicsScene.SceneLayers(65535));
}
/**
* Overloaded function for {@link #invalidate(io.qt.core.QRectF, io.qt.widgets.QGraphicsScene.SceneLayers)}
* with:
* rect = new io.qt.core.QRectF()
* layers = new io.qt.widgets.QGraphicsScene.SceneLayers(65535)
*
*/
public final void invalidate() {
invalidate(new io.qt.core.QRectF(), new io.qt.widgets.QGraphicsScene.SceneLayers(65535));
}
/**
* See QGraphicsScene::invalidate(QRectF,SceneLayers)
*/
public final void invalidate(io.qt.core.QRectF rect, io.qt.widgets.QGraphicsScene.SceneLayers layers){
invalidate_native_cref_QRectF_QFlags_QGraphicsScene_SceneLayer_(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), layers.value());
}
private native void invalidate_native_cref_QRectF_QFlags_QGraphicsScene_SceneLayer_(long __this__nativeId, long rect, int layers);
/**
* Overloaded function for {@link #invalidate(double, double, double, double, io.qt.widgets.QGraphicsScene.SceneLayers)}.
*/
@io.qt.QtUninvokable
public final void invalidate(double x, double y, double w, double h, io.qt.widgets.QGraphicsScene.SceneLayer ... layers){
invalidate(x, y, w, h, new io.qt.widgets.QGraphicsScene.SceneLayers(layers));
}
/**
* Overloaded function for {@link #invalidate(double, double, double, double, io.qt.widgets.QGraphicsScene.SceneLayers)}
* with layers = new io.qt.widgets.QGraphicsScene.SceneLayers(65535)
.
*/
@io.qt.QtUninvokable
public final void invalidate(double x, double y, double w, double h) {
invalidate(x, y, w, h, new io.qt.widgets.QGraphicsScene.SceneLayers(65535));
}
/**
* See QGraphicsScene::invalidate(qreal,qreal,qreal,qreal,SceneLayers)
*/
@io.qt.QtUninvokable
public final void invalidate(double x, double y, double w, double h, io.qt.widgets.QGraphicsScene.SceneLayers layers){
invalidate_native_qtjambireal_qtjambireal_qtjambireal_qtjambireal_QFlags_QGraphicsScene_SceneLayer_(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, w, h, layers.value());
}
@io.qt.QtUninvokable
private native void invalidate_native_qtjambireal_qtjambireal_qtjambireal_qtjambireal_QFlags_QGraphicsScene_SceneLayer_(long __this__nativeId, double x, double y, double w, double h, int layers);
/**
* See QGraphicsScene::isActive()const
*/
@io.qt.QtUninvokable
public final boolean isActive(){
return isActive_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isActive_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::itemAt(QPointF,QTransform)const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsItem itemAt(io.qt.core.QPointF pos, io.qt.gui.QTransform deviceTransform){
return itemAt_native_cref_QPointF_cref_QTransform_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos), QtJambi_LibraryUtilities.internal.checkedNativeId(deviceTransform));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsItem itemAt_native_cref_QPointF_cref_QTransform_constfct(long __this__nativeId, long pos, long deviceTransform);
/**
* See QGraphicsScene::itemAt(qreal,qreal,QTransform)const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsItem itemAt(double x, double y, io.qt.gui.QTransform deviceTransform){
return itemAt_native_qtjambireal_qtjambireal_cref_QTransform_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, QtJambi_LibraryUtilities.internal.checkedNativeId(deviceTransform));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsItem itemAt_native_qtjambireal_qtjambireal_cref_QTransform_constfct(long __this__nativeId, double x, double y, long deviceTransform);
/**
* See QGraphicsScene::itemIndexMethod()const
*/
@io.qt.QtPropertyReader(name="itemIndexMethod")
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsScene.ItemIndexMethod itemIndexMethod(){
return io.qt.widgets.QGraphicsScene.ItemIndexMethod.resolve(itemIndexMethod_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int itemIndexMethod_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #items(io.qt.core.Qt.SortOrder)}
* with order = io.qt.core.Qt.SortOrder.DescendingOrder
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items() {
return items(io.qt.core.Qt.SortOrder.DescendingOrder);
}
/**
* See QGraphicsScene::items(Qt::SortOrder)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.core.Qt.SortOrder order){
return items_native_Qt_SortOrder_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), order.value());
}
@io.qt.QtUninvokable
private native io.qt.core.QList items_native_Qt_SortOrder_constfct(long __this__nativeId, int order);
/**
* Overloaded function for {@link #items(io.qt.gui.QPainterPath, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with deviceTransform = new io.qt.gui.QTransform()
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.gui.QPainterPath path, io.qt.core.Qt.ItemSelectionMode mode, io.qt.core.Qt.SortOrder order) {
return items(path, mode, order, new io.qt.gui.QTransform());
}
/**
* Overloaded function for {@link #items(io.qt.gui.QPainterPath, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with:
* order = io.qt.core.Qt.SortOrder.DescendingOrder
* deviceTransform = new io.qt.gui.QTransform()
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.gui.QPainterPath path, io.qt.core.Qt.ItemSelectionMode mode) {
return items(path, mode, io.qt.core.Qt.SortOrder.DescendingOrder, new io.qt.gui.QTransform());
}
/**
* Overloaded function for {@link #items(io.qt.gui.QPainterPath, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with:
* mode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
* order = io.qt.core.Qt.SortOrder.DescendingOrder
* deviceTransform = new io.qt.gui.QTransform()
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.gui.QPainterPath path) {
return items(path, io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape, io.qt.core.Qt.SortOrder.DescendingOrder, new io.qt.gui.QTransform());
}
/**
* Returns all visible items that, depending on mode, are either inside or intersect with the specified path, in a list sorted using order. In this case, "visible" defines items for which: isVisible() returns true, effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it
* See QGraphicsScene::items(QPainterPath,Qt::ItemSelectionMode,Qt::SortOrder,QTransform)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.gui.QPainterPath path, io.qt.core.Qt.ItemSelectionMode mode, io.qt.core.Qt.SortOrder order, io.qt.gui.QTransform deviceTransform){
return items_native_cref_QPainterPath_Qt_ItemSelectionMode_Qt_SortOrder_cref_QTransform_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(path), mode.value(), order.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(deviceTransform));
}
@io.qt.QtUninvokable
private native io.qt.core.QList items_native_cref_QPainterPath_Qt_ItemSelectionMode_Qt_SortOrder_cref_QTransform_constfct(long __this__nativeId, long path, int mode, int order, long deviceTransform);
/**
* Overloaded function for {@link #items(io.qt.core.QPointF, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with deviceTransform = new io.qt.gui.QTransform()
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.core.QPointF pos, io.qt.core.Qt.ItemSelectionMode mode, io.qt.core.Qt.SortOrder order) {
return items(pos, mode, order, new io.qt.gui.QTransform());
}
/**
* Overloaded function for {@link #items(io.qt.core.QPointF, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with:
* order = io.qt.core.Qt.SortOrder.DescendingOrder
* deviceTransform = new io.qt.gui.QTransform()
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.core.QPointF pos, io.qt.core.Qt.ItemSelectionMode mode) {
return items(pos, mode, io.qt.core.Qt.SortOrder.DescendingOrder, new io.qt.gui.QTransform());
}
/**
* Overloaded function for {@link #items(io.qt.core.QPointF, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with:
* mode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
* order = io.qt.core.Qt.SortOrder.DescendingOrder
* deviceTransform = new io.qt.gui.QTransform()
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.core.QPointF pos) {
return items(pos, io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape, io.qt.core.Qt.SortOrder.DescendingOrder, new io.qt.gui.QTransform());
}
/**
* Returns all visible items that, depending on mode, are at the specified pos in a list sorted using order. In this case, "visible" defines items for which: isVisible() returns true, effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it
* See QGraphicsScene::items(QPointF,Qt::ItemSelectionMode,Qt::SortOrder,QTransform)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.core.QPointF pos, io.qt.core.Qt.ItemSelectionMode mode, io.qt.core.Qt.SortOrder order, io.qt.gui.QTransform deviceTransform){
return items_native_cref_QPointF_Qt_ItemSelectionMode_Qt_SortOrder_cref_QTransform_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos), mode.value(), order.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(deviceTransform));
}
@io.qt.QtUninvokable
private native io.qt.core.QList items_native_cref_QPointF_Qt_ItemSelectionMode_Qt_SortOrder_cref_QTransform_constfct(long __this__nativeId, long pos, int mode, int order, long deviceTransform);
/**
* Overloaded function for {@link #items(io.qt.gui.QPolygonF, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with deviceTransform = new io.qt.gui.QTransform()
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.gui.QPolygonF polygon, io.qt.core.Qt.ItemSelectionMode mode, io.qt.core.Qt.SortOrder order) {
return items(polygon, mode, order, new io.qt.gui.QTransform());
}
/**
* Overloaded function for {@link #items(io.qt.gui.QPolygonF, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with:
* order = io.qt.core.Qt.SortOrder.DescendingOrder
* deviceTransform = new io.qt.gui.QTransform()
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.gui.QPolygonF polygon, io.qt.core.Qt.ItemSelectionMode mode) {
return items(polygon, mode, io.qt.core.Qt.SortOrder.DescendingOrder, new io.qt.gui.QTransform());
}
/**
* Overloaded function for {@link #items(io.qt.gui.QPolygonF, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with:
* mode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
* order = io.qt.core.Qt.SortOrder.DescendingOrder
* deviceTransform = new io.qt.gui.QTransform()
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.gui.QPolygonF polygon) {
return items(polygon, io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape, io.qt.core.Qt.SortOrder.DescendingOrder, new io.qt.gui.QTransform());
}
/**
* Returns all visible items that, depending on mode, are either inside or intersect with the specified polygon, in a list sorted using order. In this case, "visible" defines items for which: isVisible() returns true, effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it
* See QGraphicsScene::items(QPolygonF,Qt::ItemSelectionMode,Qt::SortOrder,QTransform)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.gui.QPolygonF polygon, io.qt.core.Qt.ItemSelectionMode mode, io.qt.core.Qt.SortOrder order, io.qt.gui.QTransform deviceTransform){
return items_native_cref_QPolygonF_Qt_ItemSelectionMode_Qt_SortOrder_cref_QTransform_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(polygon), mode.value(), order.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(deviceTransform));
}
@io.qt.QtUninvokable
private native io.qt.core.QList items_native_cref_QPolygonF_Qt_ItemSelectionMode_Qt_SortOrder_cref_QTransform_constfct(long __this__nativeId, long polygon, int mode, int order, long deviceTransform);
/**
* Overloaded function for {@link #items(io.qt.core.QRectF, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with deviceTransform = new io.qt.gui.QTransform()
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.core.QRectF rect, io.qt.core.Qt.ItemSelectionMode mode, io.qt.core.Qt.SortOrder order) {
return items(rect, mode, order, new io.qt.gui.QTransform());
}
/**
* Overloaded function for {@link #items(io.qt.core.QRectF, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with:
* order = io.qt.core.Qt.SortOrder.DescendingOrder
* deviceTransform = new io.qt.gui.QTransform()
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.core.QRectF rect, io.qt.core.Qt.ItemSelectionMode mode) {
return items(rect, mode, io.qt.core.Qt.SortOrder.DescendingOrder, new io.qt.gui.QTransform());
}
/**
* Overloaded function for {@link #items(io.qt.core.QRectF, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with:
* mode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
* order = io.qt.core.Qt.SortOrder.DescendingOrder
* deviceTransform = new io.qt.gui.QTransform()
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.core.QRectF rect) {
return items(rect, io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape, io.qt.core.Qt.SortOrder.DescendingOrder, new io.qt.gui.QTransform());
}
/**
* Returns all visible items that, depending on mode, are either inside or intersect with the specified rect, in a list sorted using order. In this case, "visible" defines items for which: isVisible() returns true, effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it
* See QGraphicsScene::items(QRectF,Qt::ItemSelectionMode,Qt::SortOrder,QTransform)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(io.qt.core.QRectF rect, io.qt.core.Qt.ItemSelectionMode mode, io.qt.core.Qt.SortOrder order, io.qt.gui.QTransform deviceTransform){
return items_native_cref_QRectF_Qt_ItemSelectionMode_Qt_SortOrder_cref_QTransform_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), mode.value(), order.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(deviceTransform));
}
@io.qt.QtUninvokable
private native io.qt.core.QList items_native_cref_QRectF_Qt_ItemSelectionMode_Qt_SortOrder_cref_QTransform_constfct(long __this__nativeId, long rect, int mode, int order, long deviceTransform);
/**
* Overloaded function for {@link #items(double, double, double, double, io.qt.core.Qt.ItemSelectionMode, io.qt.core.Qt.SortOrder, io.qt.gui.QTransform)}
* with deviceTransform = new io.qt.gui.QTransform()
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(double x, double y, double w, double h, io.qt.core.Qt.ItemSelectionMode mode, io.qt.core.Qt.SortOrder order) {
return items(x, y, w, h, mode, order, new io.qt.gui.QTransform());
}
/**
* Returns all visible items that, depending on mode, are either inside or intersect with the rectangle defined by x, y, w and h, in a list sorted using order. In this case, "visible" defines items for which: isVisible() returns true, effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it
* See QGraphicsScene::items(qreal,qreal,qreal,qreal,Qt::ItemSelectionMode,Qt::SortOrder,QTransform)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList items(double x, double y, double w, double h, io.qt.core.Qt.ItemSelectionMode mode, io.qt.core.Qt.SortOrder order, io.qt.gui.QTransform deviceTransform){
return items_native_qtjambireal_qtjambireal_qtjambireal_qtjambireal_Qt_ItemSelectionMode_Qt_SortOrder_cref_QTransform_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, w, h, mode.value(), order.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(deviceTransform));
}
@io.qt.QtUninvokable
private native io.qt.core.QList items_native_qtjambireal_qtjambireal_qtjambireal_qtjambireal_Qt_ItemSelectionMode_Qt_SortOrder_cref_QTransform_constfct(long __this__nativeId, double x, double y, double w, double h, int mode, int order, long deviceTransform);
/**
* See QGraphicsScene::itemsBoundingRect()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRectF itemsBoundingRect(){
return itemsBoundingRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QRectF itemsBoundingRect_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::minimumRenderSize()const
*/
@io.qt.QtPropertyReader(name="minimumRenderSize")
@io.qt.QtUninvokable
public final double minimumRenderSize(){
return minimumRenderSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double minimumRenderSize_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::mouseGrabberItem()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsItem mouseGrabberItem(){
return mouseGrabberItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsItem mouseGrabberItem_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::palette()const
*/
@io.qt.QtPropertyReader(name="palette")
@io.qt.QtUninvokable
public final io.qt.gui.QPalette palette(){
return palette_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QPalette palette_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::removeItem(QGraphicsItem*)
*/
@io.qt.QtUninvokable
public final void removeItem(io.qt.widgets.QGraphicsItem item){
removeItem_native_QGraphicsItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setDefaultOwnership(item);
}
@io.qt.QtUninvokable
private native void removeItem_native_QGraphicsItem_ptr(long __this__nativeId, long item);
/**
* Overloaded function for {@link #render(io.qt.gui.QPainter, io.qt.core.QRectF, io.qt.core.QRectF, io.qt.core.Qt.AspectRatioMode)}
* with aspectRatioMode = io.qt.core.Qt.AspectRatioMode.KeepAspectRatio
.
*/
@io.qt.QtUninvokable
public final void render(io.qt.gui.QPainter painter, io.qt.core.QRectF target, io.qt.core.QRectF source) {
render(painter, target, source, io.qt.core.Qt.AspectRatioMode.KeepAspectRatio);
}
/**
* Overloaded function for {@link #render(io.qt.gui.QPainter, io.qt.core.QRectF, io.qt.core.QRectF, io.qt.core.Qt.AspectRatioMode)}
* with:
* source = new io.qt.core.QRectF()
* aspectRatioMode = io.qt.core.Qt.AspectRatioMode.KeepAspectRatio
*
*/
@io.qt.QtUninvokable
public final void render(io.qt.gui.QPainter painter, io.qt.core.QRectF target) {
render(painter, target, new io.qt.core.QRectF(), io.qt.core.Qt.AspectRatioMode.KeepAspectRatio);
}
/**
* Overloaded function for {@link #render(io.qt.gui.QPainter, io.qt.core.QRectF, io.qt.core.QRectF, io.qt.core.Qt.AspectRatioMode)}
* with:
* target = new io.qt.core.QRectF()
* source = new io.qt.core.QRectF()
* aspectRatioMode = io.qt.core.Qt.AspectRatioMode.KeepAspectRatio
*
*/
@io.qt.QtUninvokable
public final void render(io.qt.gui.QPainter painter) {
render(painter, new io.qt.core.QRectF(), new io.qt.core.QRectF(), io.qt.core.Qt.AspectRatioMode.KeepAspectRatio);
}
/**
* See QGraphicsScene::render(QPainter*,QRectF,QRectF,Qt::AspectRatioMode)
*/
@io.qt.QtUninvokable
public final void render(io.qt.gui.QPainter painter, io.qt.core.QRectF target, io.qt.core.QRectF source, io.qt.core.Qt.AspectRatioMode aspectRatioMode){
render_native_QPainter_ptr_cref_QRectF_cref_QRectF_Qt_AspectRatioMode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(target), QtJambi_LibraryUtilities.internal.checkedNativeId(source), aspectRatioMode.value());
}
@io.qt.QtUninvokable
private native void render_native_QPainter_ptr_cref_QRectF_cref_QRectF_Qt_AspectRatioMode(long __this__nativeId, long painter, long target, long source, int aspectRatioMode);
/**
* See QGraphicsScene::sceneRect()const
*/
@io.qt.QtPropertyReader(name="sceneRect")
@io.qt.QtUninvokable
public final io.qt.core.QRectF sceneRect(){
return sceneRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QRectF sceneRect_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::selectedItems()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList selectedItems(){
return selectedItems_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList selectedItems_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::selectionArea()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPainterPath selectionArea(){
return selectionArea_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QPainterPath selectionArea_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::sendEvent(QGraphicsItem*,QEvent*)
*/
@io.qt.QtUninvokable
public final boolean sendEvent(io.qt.widgets.QGraphicsItem item, io.qt.core.QEvent event){
return sendEvent_native_QGraphicsItem_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native boolean sendEvent_native_QGraphicsItem_ptr_QEvent_ptr(long __this__nativeId, long item, long event);
/**
* See QGraphicsScene::setActivePanel(QGraphicsItem*)
*/
@io.qt.QtUninvokable
public final void setActivePanel(io.qt.widgets.QGraphicsItem item){
setActivePanel_native_QGraphicsItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@io.qt.QtUninvokable
private native void setActivePanel_native_QGraphicsItem_ptr(long __this__nativeId, long item);
/**
* See QGraphicsScene::setActiveWindow(QGraphicsWidget*)
*/
@io.qt.QtUninvokable
public final void setActiveWindow(io.qt.widgets.QGraphicsWidget widget){
setActiveWindow_native_QGraphicsWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@io.qt.QtUninvokable
private native void setActiveWindow_native_QGraphicsWidget_ptr(long __this__nativeId, long widget);
/**
* See QGraphicsScene::setBackgroundBrush(QBrush)
*/
@io.qt.QtPropertyWriter(name="backgroundBrush")
@io.qt.QtUninvokable
public final void setBackgroundBrush(io.qt.gui.QBrush brush){
setBackgroundBrush_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@io.qt.QtUninvokable
private native void setBackgroundBrush_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QGraphicsScene::setBspTreeDepth(int)
*/
@io.qt.QtPropertyWriter(name="bspTreeDepth")
@io.qt.QtUninvokable
public final void setBspTreeDepth(int depth){
setBspTreeDepth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), depth);
}
@io.qt.QtUninvokable
private native void setBspTreeDepth_native_int(long __this__nativeId, int depth);
/**
* Overloaded function for {@link #setFocus(io.qt.core.Qt.FocusReason)}
* with focusReason = io.qt.core.Qt.FocusReason.OtherFocusReason
.
*/
@io.qt.QtUninvokable
public final void setFocus() {
setFocus(io.qt.core.Qt.FocusReason.OtherFocusReason);
}
/**
* See QGraphicsScene::setFocus(Qt::FocusReason)
*/
@io.qt.QtUninvokable
public final void setFocus(io.qt.core.Qt.FocusReason focusReason){
setFocus_native_Qt_FocusReason(QtJambi_LibraryUtilities.internal.nativeId(this), focusReason.value());
}
@io.qt.QtUninvokable
private native void setFocus_native_Qt_FocusReason(long __this__nativeId, int focusReason);
/**
* Overloaded function for {@link #setFocusItem(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.FocusReason)}
* with focusReason = io.qt.core.Qt.FocusReason.OtherFocusReason
.
*/
@io.qt.QtUninvokable
public final void setFocusItem(io.qt.widgets.QGraphicsItem item) {
setFocusItem(item, io.qt.core.Qt.FocusReason.OtherFocusReason);
}
/**
* See QGraphicsScene::setFocusItem(QGraphicsItem*,Qt::FocusReason)
*/
@io.qt.QtUninvokable
public final void setFocusItem(io.qt.widgets.QGraphicsItem item, io.qt.core.Qt.FocusReason focusReason){
setFocusItem_native_QGraphicsItem_ptr_Qt_FocusReason(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), focusReason.value());
__rcFocusItem = item;
}
@io.qt.QtUninvokable
private native void setFocusItem_native_QGraphicsItem_ptr_Qt_FocusReason(long __this__nativeId, long item, int focusReason);
/**
* See QGraphicsScene::setFocusOnTouch(bool)
*/
@io.qt.QtPropertyWriter(name="focusOnTouch")
@io.qt.QtUninvokable
public final void setFocusOnTouch(boolean enabled){
setFocusOnTouch_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@io.qt.QtUninvokable
private native void setFocusOnTouch_native_bool(long __this__nativeId, boolean enabled);
/**
* See QGraphicsScene::setFont(QFont)
*/
@io.qt.QtPropertyWriter(name="font")
@io.qt.QtUninvokable
public final void setFont(io.qt.gui.QFont font){
setFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(font));
}
@io.qt.QtUninvokable
private native void setFont_native_cref_QFont(long __this__nativeId, long font);
/**
* See QGraphicsScene::setForegroundBrush(QBrush)
*/
@io.qt.QtPropertyWriter(name="foregroundBrush")
@io.qt.QtUninvokable
public final void setForegroundBrush(io.qt.gui.QBrush brush){
setForegroundBrush_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@io.qt.QtUninvokable
private native void setForegroundBrush_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QGraphicsScene::setItemIndexMethod(QGraphicsScene::ItemIndexMethod)
*/
@io.qt.QtPropertyWriter(name="itemIndexMethod")
@io.qt.QtUninvokable
public final void setItemIndexMethod(io.qt.widgets.QGraphicsScene.ItemIndexMethod method){
setItemIndexMethod_native_QGraphicsScene_ItemIndexMethod(QtJambi_LibraryUtilities.internal.nativeId(this), method.value());
}
@io.qt.QtUninvokable
private native void setItemIndexMethod_native_QGraphicsScene_ItemIndexMethod(long __this__nativeId, int method);
/**
* See QGraphicsScene::setMinimumRenderSize(qreal)
*/
@io.qt.QtPropertyWriter(name="minimumRenderSize")
@io.qt.QtUninvokable
public final void setMinimumRenderSize(double minSize){
setMinimumRenderSize_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), minSize);
}
@io.qt.QtUninvokable
private native void setMinimumRenderSize_native_qtjambireal(long __this__nativeId, double minSize);
/**
* See QGraphicsScene::setPalette(QPalette)
*/
@io.qt.QtPropertyWriter(name="palette")
@io.qt.QtUninvokable
public final void setPalette(io.qt.gui.QPalette palette){
setPalette_native_cref_QPalette(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(palette));
}
@io.qt.QtUninvokable
private native void setPalette_native_cref_QPalette(long __this__nativeId, long palette);
/**
* See QGraphicsScene::setSceneRect(QRectF)
*/
@io.qt.QtPropertyWriter(name="sceneRect")
@io.qt.QtUninvokable
public final void setSceneRect(io.qt.core.QRectF rect){
setSceneRect_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native void setSceneRect_native_cref_QRectF(long __this__nativeId, long rect);
/**
* See QGraphicsScene::setSceneRect(qreal,qreal,qreal,qreal)
*/
@io.qt.QtPropertyWriter(name="sceneRect")
@io.qt.QtUninvokable
public final void setSceneRect(double x, double y, double w, double h){
setSceneRect_native_qtjambireal_qtjambireal_qtjambireal_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, w, h);
}
@io.qt.QtUninvokable
private native void setSceneRect_native_qtjambireal_qtjambireal_qtjambireal_qtjambireal(long __this__nativeId, double x, double y, double w, double h);
/**
* Overloaded function for {@link #setSelectionArea(io.qt.gui.QPainterPath, io.qt.core.Qt.ItemSelectionOperation, io.qt.core.Qt.ItemSelectionMode, io.qt.gui.QTransform)}
* with deviceTransform = new io.qt.gui.QTransform()
.
*/
@io.qt.QtUninvokable
public final void setSelectionArea(io.qt.gui.QPainterPath path, io.qt.core.Qt.ItemSelectionOperation selectionOperation, io.qt.core.Qt.ItemSelectionMode mode) {
setSelectionArea(path, selectionOperation, mode, new io.qt.gui.QTransform());
}
/**
* Overloaded function for {@link #setSelectionArea(io.qt.gui.QPainterPath, io.qt.core.Qt.ItemSelectionOperation, io.qt.core.Qt.ItemSelectionMode, io.qt.gui.QTransform)}
* with:
* mode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
* deviceTransform = new io.qt.gui.QTransform()
*
*/
@io.qt.QtUninvokable
public final void setSelectionArea(io.qt.gui.QPainterPath path, io.qt.core.Qt.ItemSelectionOperation selectionOperation) {
setSelectionArea(path, selectionOperation, io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape, new io.qt.gui.QTransform());
}
/**
* Overloaded function for {@link #setSelectionArea(io.qt.gui.QPainterPath, io.qt.core.Qt.ItemSelectionOperation, io.qt.core.Qt.ItemSelectionMode, io.qt.gui.QTransform)}
* with:
* selectionOperation = io.qt.core.Qt.ItemSelectionOperation.ReplaceSelection
* mode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
* deviceTransform = new io.qt.gui.QTransform()
*
*/
@io.qt.QtUninvokable
public final void setSelectionArea(io.qt.gui.QPainterPath path) {
setSelectionArea(path, io.qt.core.Qt.ItemSelectionOperation.ReplaceSelection, io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape, new io.qt.gui.QTransform());
}
/**
*
*/
@io.qt.QtUninvokable
public final void setSelectionArea(io.qt.gui.QPainterPath path, io.qt.core.Qt.ItemSelectionOperation selectionOperation, io.qt.core.Qt.ItemSelectionMode mode, io.qt.gui.QTransform deviceTransform){
setSelectionArea_native_cref_QPainterPath_Qt_ItemSelectionOperation_Qt_ItemSelectionMode_cref_QTransform(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(path), selectionOperation.value(), mode.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(deviceTransform));
}
@io.qt.QtUninvokable
private native void setSelectionArea_native_cref_QPainterPath_Qt_ItemSelectionOperation_Qt_ItemSelectionMode_cref_QTransform(long __this__nativeId, long path, int selectionOperation, int mode, long deviceTransform);
/**
* See QGraphicsScene::setSelectionArea(QPainterPath,QTransform)
*/
@io.qt.QtUninvokable
public final void setSelectionArea(io.qt.gui.QPainterPath path, io.qt.gui.QTransform deviceTransform){
setSelectionArea_native_cref_QPainterPath_cref_QTransform(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(path), QtJambi_LibraryUtilities.internal.checkedNativeId(deviceTransform));
}
@io.qt.QtUninvokable
private native void setSelectionArea_native_cref_QPainterPath_cref_QTransform(long __this__nativeId, long path, long deviceTransform);
/**
* See QGraphicsScene::setStickyFocus(bool)
*/
@io.qt.QtPropertyWriter(name="stickyFocus")
@io.qt.QtUninvokable
public final void setStickyFocus(boolean enabled){
setStickyFocus_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@io.qt.QtUninvokable
private native void setStickyFocus_native_bool(long __this__nativeId, boolean enabled);
/**
* See QGraphicsScene::setStyle(QStyle*)
*/
@io.qt.QtUninvokable
public final void setStyle(io.qt.widgets.QStyle style){
setStyle_native_QStyle_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(style));
}
@io.qt.QtUninvokable
private native void setStyle_native_QStyle_ptr(long __this__nativeId, long style);
/**
* See QGraphicsScene::stickyFocus()const
*/
@io.qt.QtPropertyReader(name="stickyFocus")
@io.qt.QtUninvokable
public final boolean stickyFocus(){
return stickyFocus_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean stickyFocus_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::style()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QStyle style(){
return style_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QStyle style_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #update(io.qt.core.QRectF)}
* with rect = new io.qt.core.QRectF()
.
*/
public final void update() {
update(new io.qt.core.QRectF());
}
/**
* See QGraphicsScene::update(QRectF)
*/
public final void update(io.qt.core.QRectF rect){
update_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
private native void update_native_cref_QRectF(long __this__nativeId, long rect);
/**
* See QGraphicsScene::update(qreal,qreal,qreal,qreal)
*/
@io.qt.QtUninvokable
public final void update(double x, double y, double w, double h){
update_native_qtjambireal_qtjambireal_qtjambireal_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, w, h);
}
@io.qt.QtUninvokable
private native void update_native_qtjambireal_qtjambireal_qtjambireal_qtjambireal(long __this__nativeId, double x, double y, double w, double h);
/**
* See QGraphicsScene::views()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList views(){
return views_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList views_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::width()const
*/
@io.qt.QtUninvokable
public final double width(){
return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double width_native_constfct(long __this__nativeId);
/**
* See QGraphicsScene::contextMenuEvent(QGraphicsSceneContextMenuEvent*)
*/
@io.qt.QtUninvokable
protected void contextMenuEvent(io.qt.widgets.QGraphicsSceneContextMenuEvent event){
contextMenuEvent_native_QGraphicsSceneContextMenuEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void contextMenuEvent_native_QGraphicsSceneContextMenuEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::dragEnterEvent(QGraphicsSceneDragDropEvent*)
*/
@io.qt.QtUninvokable
protected void dragEnterEvent(io.qt.widgets.QGraphicsSceneDragDropEvent event){
dragEnterEvent_native_QGraphicsSceneDragDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void dragEnterEvent_native_QGraphicsSceneDragDropEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::dragLeaveEvent(QGraphicsSceneDragDropEvent*)
*/
@io.qt.QtUninvokable
protected void dragLeaveEvent(io.qt.widgets.QGraphicsSceneDragDropEvent event){
dragLeaveEvent_native_QGraphicsSceneDragDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void dragLeaveEvent_native_QGraphicsSceneDragDropEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::dragMoveEvent(QGraphicsSceneDragDropEvent*)
*/
@io.qt.QtUninvokable
protected void dragMoveEvent(io.qt.widgets.QGraphicsSceneDragDropEvent event){
dragMoveEvent_native_QGraphicsSceneDragDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void dragMoveEvent_native_QGraphicsSceneDragDropEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::drawBackground(QPainter*,QRectF)
*/
@io.qt.QtUninvokable
protected void drawBackground(io.qt.gui.QPainter painter, io.qt.core.QRectF rect){
drawBackground_native_QPainter_ptr_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native void drawBackground_native_QPainter_ptr_cref_QRectF(long __this__nativeId, long painter, long rect);
/**
* See QGraphicsScene::drawForeground(QPainter*,QRectF)
*/
@io.qt.QtUninvokable
protected void drawForeground(io.qt.gui.QPainter painter, io.qt.core.QRectF rect){
drawForeground_native_QPainter_ptr_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native void drawForeground_native_QPainter_ptr_cref_QRectF(long __this__nativeId, long painter, long rect);
/**
* Overloaded function for {@link #drawItems(io.qt.gui.QPainter, io.qt.widgets.QGraphicsItem[], io.qt.widgets.QStyleOptionGraphicsItem[], io.qt.widgets.QWidget)}
* with widget = null
.
*/
@io.qt.QtUninvokable
protected final void drawItems(io.qt.gui.QPainter painter, io.qt.widgets.QGraphicsItem[] items, io.qt.widgets.QStyleOptionGraphicsItem[] options) {
drawItems(painter, items, options, (io.qt.widgets.QWidget)null);
}
@io.qt.QtUninvokable
protected void drawItems(io.qt.gui.QPainter painter, io.qt.widgets.QGraphicsItem[] items, io.qt.widgets.QStyleOptionGraphicsItem[] options, io.qt.widgets.QWidget widget){
drawItems_native_QPainter_ptr_int_QGraphicsItem_ptr_ptr_const_QStyleOptionGraphicsItem_ptr_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), items, options, QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@io.qt.QtUninvokable
private native void drawItems_native_QPainter_ptr_int_QGraphicsItem_ptr_ptr_const_QStyleOptionGraphicsItem_ptr_QWidget_ptr(long __this__nativeId, long painter, io.qt.widgets.QGraphicsItem[] items, io.qt.widgets.QStyleOptionGraphicsItem[] options, long widget);
/**
* See QGraphicsScene::dropEvent(QGraphicsSceneDragDropEvent*)
*/
@io.qt.QtUninvokable
protected void dropEvent(io.qt.widgets.QGraphicsSceneDragDropEvent event){
dropEvent_native_QGraphicsSceneDragDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void dropEvent_native_QGraphicsSceneDragDropEvent_ptr(long __this__nativeId, long event);
/**
*
*/
@io.qt.QtUninvokable
public boolean event(io.qt.core.QEvent event){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long event);
/**
* See QObject::eventFilter(QObject*,QEvent*)
*/
@io.qt.QtUninvokable
public boolean eventFilter(io.qt.core.QObject watched, io.qt.core.QEvent event){
return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(watched), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long watched, long event);
/**
* See QGraphicsScene::focusInEvent(QFocusEvent*)
*/
@io.qt.QtUninvokable
protected void focusInEvent(io.qt.gui.QFocusEvent event){
focusInEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void focusInEvent_native_QFocusEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::focusNextPrevChild(bool)
*/
protected boolean focusNextPrevChild(boolean next){
return focusNextPrevChild_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), next);
}
private native boolean focusNextPrevChild_native_bool(long __this__nativeId, boolean next);
/**
* See QGraphicsScene::focusOutEvent(QFocusEvent*)
*/
@io.qt.QtUninvokable
protected void focusOutEvent(io.qt.gui.QFocusEvent event){
focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::helpEvent(QGraphicsSceneHelpEvent*)
*/
@io.qt.QtUninvokable
protected void helpEvent(io.qt.widgets.QGraphicsSceneHelpEvent event){
helpEvent_native_QGraphicsSceneHelpEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void helpEvent_native_QGraphicsSceneHelpEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::inputMethodEvent(QInputMethodEvent*)
*/
@io.qt.QtUninvokable
protected void inputMethodEvent(io.qt.gui.QInputMethodEvent event){
inputMethodEvent_native_QInputMethodEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void inputMethodEvent_native_QInputMethodEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::inputMethodQuery(Qt::InputMethodQuery)const
*/
@io.qt.QtUninvokable
public java.lang.Object inputMethodQuery(io.qt.core.Qt.InputMethodQuery query){
return inputMethodQuery_native_Qt_InputMethodQuery_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), query.value());
}
@io.qt.QtUninvokable
private native java.lang.Object inputMethodQuery_native_Qt_InputMethodQuery_constfct(long __this__nativeId, int query);
/**
* See QGraphicsScene::keyPressEvent(QKeyEvent*)
*/
@io.qt.QtUninvokable
protected void keyPressEvent(io.qt.gui.QKeyEvent event){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::keyReleaseEvent(QKeyEvent*)
*/
@io.qt.QtUninvokable
protected void keyReleaseEvent(io.qt.gui.QKeyEvent event){
keyReleaseEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void keyReleaseEvent_native_QKeyEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::mouseDoubleClickEvent(QGraphicsSceneMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseDoubleClickEvent(io.qt.widgets.QGraphicsSceneMouseEvent event){
mouseDoubleClickEvent_native_QGraphicsSceneMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void mouseDoubleClickEvent_native_QGraphicsSceneMouseEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::mouseMoveEvent(QGraphicsSceneMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseMoveEvent(io.qt.widgets.QGraphicsSceneMouseEvent event){
mouseMoveEvent_native_QGraphicsSceneMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void mouseMoveEvent_native_QGraphicsSceneMouseEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mousePressEvent(io.qt.widgets.QGraphicsSceneMouseEvent event){
mousePressEvent_native_QGraphicsSceneMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void mousePressEvent_native_QGraphicsSceneMouseEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseReleaseEvent(io.qt.widgets.QGraphicsSceneMouseEvent event){
mouseReleaseEvent_native_QGraphicsSceneMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void mouseReleaseEvent_native_QGraphicsSceneMouseEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsScene::wheelEvent(QGraphicsSceneWheelEvent*)
*/
@io.qt.QtUninvokable
protected void wheelEvent(io.qt.widgets.QGraphicsSceneWheelEvent event){
wheelEvent_native_QGraphicsSceneWheelEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void wheelEvent_native_QGraphicsSceneWheelEvent_ptr(long __this__nativeId, long event);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QGraphicsScene(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QGraphicsScene(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QGraphicsScene instance, QDeclarativeConstructor constructor);
/**
* Equivalent to addEllipse(rect, null, null)
*/
public final QGraphicsEllipseItem addEllipse(io.qt.core.QRectF rect) {
return addEllipse(rect, null);
}
/**
* Equivalent to addEllipse(rect, pen, null)
*/
public final QGraphicsEllipseItem addEllipse(io.qt.core.QRectF rect, QPen pen) {
return addEllipse(rect, pen, null);
}
/**
* Creates and adds an ellipse item to the scene, and returns the item
* reference. The geometry of the ellipse is defined by rect, and its pen
* and brush are initialized to pen and brush.
*
* Note that the item's geometry is provided in item coordinates, and its
* position is initialized to (0, 0).
*
* If the item is visible (i.e., QGraphicsItem::isVisible() returns true),
* QGraphicsScene will emit changed() once control goes back to the event
* loop.
*
* @param rect The bounding rectangle of the ellipse.
* @param pen The pen for the resulting QGraphicsEllipseItem.
* @param brush The brush for the resulting QGraphicsEllipseItem.
* @return The resulting item.
*/
public final QGraphicsEllipseItem addEllipse(io.qt.core.QRectF rect, QPen pen, QBrush brush) {
return addEllipse(rect.x(), rect.y(), rect.width(), rect.height(), pen, brush);
}
/**
* Equivalent to addEllipse(x, y, w, h, null, null)
*/
public final QGraphicsEllipseItem addEllipse(double x, double y, double w, double h) {
return addEllipse(x, y, w, h, null);
}
/**
* Equivalent to addEllipse(x, y, w, h, pen, null)
*/
public final QGraphicsEllipseItem addEllipse(double x, double y, double w, double h, QPen pen) {
return addEllipse(x, y, w, h, pen, null);
}
/**
* Creates and adds an ellipse item to the scene, and returns the item
* reference. The geometry of the ellipse is defined by x, y, w, h, and its pen
* and brush are initialized to pen and brush.
*
* Note that the item's geometry is provided in item coordinates, and its
* position is initialized to (0, 0).
*
* If the item is visible (i.e., QGraphicsItem.isVisible() returns true),
* QGraphicsScene will emit changed once control goes back to the event
* loop.
*
* @param x The left horizontal coordinate of the ellipse's bounding rectangle.
* @param y The top vertical coordinate of the ellipse's bounding rectangle.
* @param w The width of the ellipse's bounding rectangle.
* @param h The height of the ellipse's bounding rectangle.
* @param pen The pen for the resulting QGraphicsEllipseItem.
* @param brush The brush for the resulting QGraphicsEllipseItem.
* @return The resulting item.
*/
public final QGraphicsEllipseItem addEllipse(double x, double y, double w, double h, QPen pen, QBrush brush) {
QGraphicsEllipseItem item = new QGraphicsEllipseItem(x, y, w, h);
item.setPen(pen);
item.setBrush(brush);
addItem(item);
return item;
}
/**
* Equivalent to addLine(line, null)
*/
public final QGraphicsLineItem addLine(QLineF line) {
return addLine(line, null);
}
/**
* Creates and adds a line item to the scene, and returns the item
* reference. The geometry of the line is defined by line, and its pen
* is initialized to pen.
*
* Note that the item's geometry is provided in item coordinates, and its
* position is initialized to (0, 0).
*
* If the item is visible (i.e., QGraphicsItem.isVisible() returns true),
* QGraphicsScene will emit changed once control goes back to the event
* loop.
*
* @param line The definition of the line.
* @param pen The pen with which to draw the line.
* @return The resulting item.
*/
public final QGraphicsLineItem addLine(QLineF line, QPen pen) {
return addLine(line.x1(), line.y1(), line.x2(), line.y2(), pen);
}
/**
* Equivalent to addLine(x1, y1, x2, y2, null)
*/
public final QGraphicsLineItem addLine(double x1, double y1, double x2, double y2) {
return addLine(x1, y1, x2, y2, null);
}
/**
* Creates and adds a line item to the scene, and returns the item
* reference. The geometry of the line is defined by x1, y1, x2, y2, and its pen
* is initialized to pen.
*
* Note that the item's geometry is provided in item coordinates, and its
* position is initialized to (0, 0).
*
* If the item is visible (i.e., QGraphicsItem.isVisible() returns true),
* QGraphicsScene will emit changed once control goes back to the event
* loop.
*
* @param x1 The first horizontal coordinate of the line.
* @param y1 The first vertical coordinate of the line.
* @param x2 The second horizontal coordinate of the line.
* @param y2 The second vertical coordinate of the line.
* @param pen The pen with which to draw the line.
* @return The resulting item.
*/
public final QGraphicsLineItem addLine(double x1, double y1, double x2, double y2, QPen pen) {
QGraphicsLineItem item = new QGraphicsLineItem(x1, y1, x2, y2);
item.setPen(pen);
addItem(item);
return item;
}
/**
* Equivalent to addPath(path, null, null)
*/
public final QGraphicsPathItem addPath(QPainterPath path) {
return addPath(path, null);
}
/**
* Equivalent to addPath(path, pen, null)
*/
public final QGraphicsPathItem addPath(QPainterPath path, QPen pen) {
return addPath(path, pen, null);
}
/**
* Creates and adds a path item to the scene, and returns the item
* reference. The geometry of the path is defined by path, and its pen and
* brush are initialized to pen and brush.
*
* Note that the item's geometry is provided in item coordinates, and its
* position is initialized to (0, 0).
*
* If the item is visible (i.e., QGraphicsItem.isVisible() returns true),
* QGraphicsScene will emit changed once control goes back to the event
* loop.
*
* @param path The definition of the path.
* @param pen The pen for drawing the path.
* @param brush The brush for drawing the path.
* @return The resulting item.
*/
public final QGraphicsPathItem addPath(QPainterPath path, QPen pen, QBrush brush) {
QGraphicsPathItem item = new QGraphicsPathItem(path);
item.setPen(pen);
item.setBrush(brush);
addItem(item);
return item;
}
/**
* Creates and adds a pixmap item to the scene, and returns the item
* reference. The pixmap is defined by pixmap.
*
* Note that the item's geometry is provided in item coordinates, and its
* position is initialized to (0, 0).
*
* If the item is visible (i.e., QGraphicsItem.isVisible() returns true),
* QGraphicsScene will emit changed once control goes back to the event
* loop.
*
* @param pixmap The pixmap for which to create a graphics item.
* @return The resulting item.
*/
public final QGraphicsPixmapItem addPixmap(QPixmap pixmap) {
QGraphicsPixmapItem item = new QGraphicsPixmapItem(pixmap);
addItem(item);
return item;
}
/**
* Equivalent to addPolygon(polygon, null, null)
*/
public final QGraphicsPolygonItem addPolygon(QPolygonF polygon) {
return addPolygon(polygon, null);
}
/**
* Equivalent to addPolygon(polygon, pen, null)
*/
public final QGraphicsPolygonItem addPolygon(QPolygonF polygon, QPen pen) {
return addPolygon(polygon, pen, null);
}
/**
* Creates and adds a polygon item to the scene, and returns the item
* reference. The polygon is defined by polygon, and its pen and
* brush are initialized to pen and brush.
*
* Note that the item's geometry is provided in item coordinates, and its
* position is initialized to (0, 0).
*
* If the item is visible (i.e., QGraphicsItem.isVisible() returns true),
* QGraphicsScene will emit changed once control goes back to the event
* loop.
*
* @param polygon The definition of the polygon.
* @param pen The pen with which to draw the polygon.
* @param brush The brush with which to draw the polygon.
* @return The resulting item.
*/
public final QGraphicsPolygonItem addPolygon(QPolygonF polygon, QPen pen, QBrush brush) {
QGraphicsPolygonItem item = new QGraphicsPolygonItem(polygon);
item.setPen(pen);
item.setBrush(brush);
addItem(item);
return item;
}
/**
* Equivalent to addRect(rect, null, null)
*/
public final QGraphicsRectItem addRect(io.qt.core.QRectF rect) {
return addRect(rect, null);
}
/**
* Equivalent to addRect(rect, pen, null)
*/
public final QGraphicsRectItem addRect(io.qt.core.QRectF rect, QPen pen) {
return addRect(rect, pen, null);
}
/**
* Creates and adds a rectangle item to the scene, and returns the item
* reference. The geometry of the rectangle is defined by rect, and its pen
* and brush are initialized to pen and brush.
*
* Note that the item's geometry is provided in item coordinates, and its
* position is initialized to (0, 0). For example, if a QRect(50, 50, 100,
* 100) is added, its top-left corner will be at (50, 50) relative to the
* origin in the item's coordinate system.
*
* If the item is visible (i.e., QGraphicsItem.isVisible() returns true),
* QGraphicsScene will emit changed once control goes back to the event
* loop.
*
* @param rect The definition of the rectangle.
* @param pen The pen with which to draw the rectangle.
* @param brush The brush with which to draw the rectangle.
* @return The resulting item.
*/
public final QGraphicsRectItem addRect(io.qt.core.QRectF rect, QPen pen, QBrush brush) {
return addRect(rect.x(), rect.y(), rect.width(), rect.height(), pen, brush);
}
/**
* Equivalent to addRect(x, y, w, h, null, null)
*/
public final QGraphicsRectItem addRect(double x, double y, double w, double h) {
return addRect(x, y, w, h, null);
}
/**
* Equivalent to addRect(x, y, w, h, pen, null)
*/
public final QGraphicsRectItem addRect(double x, double y, double w, double h, QPen pen) {
return addRect(x, y, w, h, pen, null);
}
/**
* Creates and adds a rectangle item to the scene, and returns the item
* reference. The geometry of the rectangle is defined by x, y, w, h, and its pen
* and brush are initialized to pen and brush.
*
* Note that the item's geometry is provided in item coordinates, and its
* position is initialized to (0, 0).
*
* If the item is visible (i.e., QGraphicsItem.isVisible() returns true),
* QGraphicsScene will emit changed once control goes back to the event
* loop.
*
* @param x The left horizontal coordinate of the rectangle.
* @param y The top vertical coordinate of the rectangle.
* @param w The width of the rectangle.
* @param h The height of the rectangle.
* @param pen The pen with which to draw the rectangle.
* @param brush The brush with which to draw the rectangle.
* @return The resulting item.
*/
public final QGraphicsRectItem addRect(double x, double y, double w, double h, QPen pen, QBrush brush) {
QGraphicsRectItem item = new QGraphicsRectItem(x, y, w, h);
item.setPen(pen);
item.setBrush(brush);
addItem(item);
return item;
}
/**
* Equivalent to addSimpleText(text, null)
*/
public final QGraphicsSimpleTextItem addSimpleText(String text) {
return addSimpleText(text, null);
}
/**
* Creates and adds a QGraphicsSimpleTextItem to the scene, and returns the
* item reference. The text string is initialized to text, and its font is
* initialized to font.
*
* The item's position is initialized to (0, 0).
*
* If the item is visible (i.e., QGraphicsItem.isVisible() returns true),
* QGraphicsScene will emit changed once control goes back to the event
* loop.
*
* @param text The text to add to the scene.
* @param font The font to use for displaying the text.
* @return The resulting item.
*/
public final QGraphicsSimpleTextItem addSimpleText(String text, QFont font) {
QGraphicsSimpleTextItem item = new QGraphicsSimpleTextItem(text);
item.setFont(font);
addItem(item);
return item;
}
/**
* Equivalent to addText(text, null)
*/
public final QGraphicsTextItem addText(String text) {
return addText(text, null);
}
/**
* Creates and adds a text item to the scene, and returns the item
* reference. The text string is initialized to text, and its font
* is initialized to font.
*
* The item's position is initialized to (0, 0).
*
* If the item is visible (i.e., QGraphicsItem.isVisible() returns true),
* QGraphicsScene will emit changed once control goes back to the event
* loop.
*
* @param text The text to add to the scene.
* @param font The font to use for displaying the text.
* @return The resulting item.
*/
public final QGraphicsTextItem addText(String text, QFont font) {
QGraphicsTextItem item = new QGraphicsTextItem(text);
item.setFont(font);
addItem(item);
return item;
}
}