io.qt.widgets.QGraphicsProxyWidget Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Proxy layer for embedding a QWidget in a QGraphicsScene
* Java wrapper for Qt class QGraphicsProxyWidget
*/
public class QGraphicsProxyWidget extends io.qt.widgets.QGraphicsWidget
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QGraphicsProxyWidget.class);
/**
* See QGraphicsProxyWidget:: QGraphicsProxyWidget(QGraphicsItem*, Qt::WindowFlags)
*/
public QGraphicsProxyWidget(io.qt.widgets.@Nullable QGraphicsItem parent, io.qt.core.Qt.@NonNull WindowFlags wFlags){
super((QPrivateConstructor)null);
initialize_native(this, parent, wFlags);
}
private native static void initialize_native(QGraphicsProxyWidget instance, io.qt.widgets.QGraphicsItem parent, io.qt.core.Qt.WindowFlags wFlags);
/**
* See QGraphicsProxyWidget:: createProxyForChildWidget(QWidget*)
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QGraphicsProxyWidget createProxyForChildWidget(io.qt.widgets.@Nullable QWidget child){
return createProxyForChildWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(child));
}
@QtUninvokable
private native io.qt.widgets.QGraphicsProxyWidget createProxyForChildWidget_native_QWidget_ptr(long __this__nativeId, long child);
/**
* See QGraphicsProxyWidget:: newProxyWidget(const QWidget*)
*/
protected final io.qt.widgets.@Nullable QGraphicsProxyWidget newProxyWidget(io.qt.widgets.@Nullable QWidget arg__1){
return newProxyWidget_native_const_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
private native io.qt.widgets.QGraphicsProxyWidget newProxyWidget_native_const_QWidget_ptr(long __this__nativeId, long arg__1);
/**
* See QGraphicsProxyWidget:: setWidget(QWidget*)
*/
@QtUninvokable
public final void setWidget(io.qt.widgets.@Nullable QWidget widget){
if (widget != null)
QtJambi_LibraryUtilities.internal.setCppOwnership(widget);
else if (widget() != null)
QtJambi_LibraryUtilities.internal.setDefaultOwnership(widget());
setWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void setWidget_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* See QGraphicsProxyWidget:: subWidgetRect(const QWidget*)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QRectF subWidgetRect(io.qt.widgets.@Nullable QWidget widget){
return subWidgetRect_native_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native io.qt.core.QRectF subWidgetRect_native_const_QWidget_ptr_constfct(long __this__nativeId, long widget);
/**
* See QGraphicsProxyWidget:: widget()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget widget(){
return widget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QWidget widget_native_constfct(long __this__nativeId);
/**
* See QGraphicsItem:: contextMenuEvent(QGraphicsSceneContextMenuEvent*)
*/
@QtUninvokable
@Override
protected void contextMenuEvent(io.qt.widgets.@Nullable QGraphicsSceneContextMenuEvent event){
contextMenuEvent_native_QGraphicsSceneContextMenuEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void contextMenuEvent_native_QGraphicsSceneContextMenuEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: dragEnterEvent(QGraphicsSceneDragDropEvent*)
*/
@QtUninvokable
@Override
protected void dragEnterEvent(io.qt.widgets.@Nullable QGraphicsSceneDragDropEvent event){
dragEnterEvent_native_QGraphicsSceneDragDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void dragEnterEvent_native_QGraphicsSceneDragDropEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: dragLeaveEvent(QGraphicsSceneDragDropEvent*)
*/
@QtUninvokable
@Override
protected void dragLeaveEvent(io.qt.widgets.@Nullable QGraphicsSceneDragDropEvent event){
dragLeaveEvent_native_QGraphicsSceneDragDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void dragLeaveEvent_native_QGraphicsSceneDragDropEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: dragMoveEvent(QGraphicsSceneDragDropEvent*)
*/
@QtUninvokable
@Override
protected void dragMoveEvent(io.qt.widgets.@Nullable QGraphicsSceneDragDropEvent event){
dragMoveEvent_native_QGraphicsSceneDragDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void dragMoveEvent_native_QGraphicsSceneDragDropEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: dropEvent(QGraphicsSceneDragDropEvent*)
*/
@QtUninvokable
@Override
protected void dropEvent(io.qt.widgets.@Nullable QGraphicsSceneDragDropEvent event){
dropEvent_native_QGraphicsSceneDragDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void dropEvent_native_QGraphicsSceneDragDropEvent_ptr(long __this__nativeId, long event);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent event){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long event);
/**
* See QObject:: eventFilter(QObject*, QEvent*)
*/
@QtUninvokable
@Override
public boolean eventFilter(io.qt.core.@Nullable QObject object, io.qt.core.@Nullable QEvent event){
return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long object, long event);
/**
* See QGraphicsItem:: focusInEvent(QFocusEvent*)
*/
@QtUninvokable
@Override
protected void focusInEvent(io.qt.gui.@Nullable QFocusEvent event){
focusInEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void focusInEvent_native_QFocusEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsWidget:: focusNextPrevChild(bool)
*/
@QtUninvokable
@Override
protected boolean focusNextPrevChild(boolean next){
return focusNextPrevChild_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), next);
}
@QtUninvokable
private native boolean focusNextPrevChild_native_bool(long __this__nativeId, boolean next);
/**
* See QGraphicsItem:: focusOutEvent(QFocusEvent*)
*/
@QtUninvokable
@Override
protected void focusOutEvent(io.qt.gui.@Nullable QFocusEvent event){
focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsWidget:: grabMouseEvent(QEvent*)
*/
@QtUninvokable
@Override
protected void grabMouseEvent(io.qt.core.@Nullable QEvent event){
grabMouseEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void grabMouseEvent_native_QEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsWidget:: hideEvent(QHideEvent*)
*/
@QtUninvokable
@Override
protected void hideEvent(io.qt.gui.@Nullable QHideEvent event){
hideEvent_native_QHideEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void hideEvent_native_QHideEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: hoverEnterEvent(QGraphicsSceneHoverEvent*)
*/
@QtUninvokable
@Override
protected void hoverEnterEvent(io.qt.widgets.@Nullable QGraphicsSceneHoverEvent event){
hoverEnterEvent_native_QGraphicsSceneHoverEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void hoverEnterEvent_native_QGraphicsSceneHoverEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: hoverLeaveEvent(QGraphicsSceneHoverEvent*)
*/
@QtUninvokable
@Override
protected void hoverLeaveEvent(io.qt.widgets.@Nullable QGraphicsSceneHoverEvent event){
hoverLeaveEvent_native_QGraphicsSceneHoverEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void hoverLeaveEvent_native_QGraphicsSceneHoverEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: hoverMoveEvent(QGraphicsSceneHoverEvent*)
*/
@QtUninvokable
@Override
protected void hoverMoveEvent(io.qt.widgets.@Nullable QGraphicsSceneHoverEvent event){
hoverMoveEvent_native_QGraphicsSceneHoverEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void hoverMoveEvent_native_QGraphicsSceneHoverEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: inputMethodEvent(QInputMethodEvent*)
*/
@QtUninvokable
@Override
protected void inputMethodEvent(io.qt.gui.@Nullable QInputMethodEvent event){
inputMethodEvent_native_QInputMethodEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void inputMethodEvent_native_QInputMethodEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: inputMethodQuery(Qt::InputMethodQuery)const
*/
@QtUninvokable
@Override
protected java.lang.Object inputMethodQuery(io.qt.core.Qt.@NonNull InputMethodQuery query){
return inputMethodQuery_native_Qt_InputMethodQuery_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), query.value());
}
private native static java.lang.Object inputMethodQuery_native_Qt_InputMethodQuery_constfct(long __this__nativeId, int query);
/**
* See QGraphicsItem:: itemChange(QGraphicsItem::GraphicsItemChange, QVariant)
*/
@QtUninvokable
@Override
protected java.lang.Object itemChange(io.qt.widgets.QGraphicsItem.@NonNull GraphicsItemChange change, java.lang.Object value){
return itemChange_native_QGraphicsItem_GraphicsItemChange_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), change.value(), value);
}
private native static java.lang.Object itemChange_native_QGraphicsItem_GraphicsItemChange_cref_QVariant(long __this__nativeId, int change, java.lang.Object value);
/**
* See QGraphicsItem:: keyPressEvent(QKeyEvent*)
*/
@QtUninvokable
@Override
protected void keyPressEvent(io.qt.gui.@Nullable QKeyEvent event){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: keyReleaseEvent(QKeyEvent*)
*/
@QtUninvokable
@Override
protected void keyReleaseEvent(io.qt.gui.@Nullable QKeyEvent event){
keyReleaseEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void keyReleaseEvent_native_QKeyEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: mouseDoubleClickEvent(QGraphicsSceneMouseEvent*)
*/
@QtUninvokable
@Override
protected void mouseDoubleClickEvent(io.qt.widgets.@Nullable QGraphicsSceneMouseEvent event){
mouseDoubleClickEvent_native_QGraphicsSceneMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void mouseDoubleClickEvent_native_QGraphicsSceneMouseEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: mouseMoveEvent(QGraphicsSceneMouseEvent*)
*/
@QtUninvokable
@Override
protected void mouseMoveEvent(io.qt.widgets.@Nullable QGraphicsSceneMouseEvent event){
mouseMoveEvent_native_QGraphicsSceneMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void mouseMoveEvent_native_QGraphicsSceneMouseEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: mousePressEvent(QGraphicsSceneMouseEvent*)
*/
@QtUninvokable
@Override
protected void mousePressEvent(io.qt.widgets.@Nullable QGraphicsSceneMouseEvent event){
mousePressEvent_native_QGraphicsSceneMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void mousePressEvent_native_QGraphicsSceneMouseEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: mouseReleaseEvent(QGraphicsSceneMouseEvent*)
*/
@QtUninvokable
@Override
protected void mouseReleaseEvent(io.qt.widgets.@Nullable QGraphicsSceneMouseEvent event){
mouseReleaseEvent_native_QGraphicsSceneMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void mouseReleaseEvent_native_QGraphicsSceneMouseEvent_ptr(long __this__nativeId, long event);
/**
* 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 QGraphicsWidget:: resizeEvent(QGraphicsSceneResizeEvent*)
*/
@QtUninvokable
@Override
protected void resizeEvent(io.qt.widgets.@Nullable QGraphicsSceneResizeEvent event){
resizeEvent_native_QGraphicsSceneResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void resizeEvent_native_QGraphicsSceneResizeEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsLayoutItem:: setGeometry(QRectF)
*/
@QtUninvokable
@Override
public void setGeometry(io.qt.core.@NonNull QRectF rect){
setGeometry_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
private native static void setGeometry_native_cref_QRectF(long __this__nativeId, long rect);
/**
* See QGraphicsWidget:: showEvent(QShowEvent*)
*/
@QtUninvokable
@Override
protected void showEvent(io.qt.gui.@Nullable QShowEvent event){
showEvent_native_QShowEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void showEvent_native_QShowEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsLayoutItem:: sizeHint(Qt::SizeHint, QSizeF)const
*/
@QtUninvokable
@Override
protected io.qt.core.@NonNull QSizeF sizeHint(io.qt.core.Qt.@NonNull SizeHint which, io.qt.core.@NonNull QSizeF constraint){
return sizeHint_native_Qt_SizeHint_cref_QSizeF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), which.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(constraint));
}
private native static io.qt.core.QSizeF sizeHint_native_Qt_SizeHint_cref_QSizeF_constfct(long __this__nativeId, int which, long constraint);
/**
* See QGraphicsWidget:: ungrabMouseEvent(QEvent*)
*/
@QtUninvokable
@Override
protected void ungrabMouseEvent(io.qt.core.@Nullable QEvent event){
ungrabMouseEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void ungrabMouseEvent_native_QEvent_ptr(long __this__nativeId, long event);
/**
* See QGraphicsItem:: wheelEvent(QGraphicsSceneWheelEvent*)
*/
@QtUninvokable
@Override
protected void wheelEvent(io.qt.widgets.@Nullable QGraphicsSceneWheelEvent event){
wheelEvent_native_QGraphicsSceneWheelEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static void wheelEvent_native_QGraphicsSceneWheelEvent_ptr(long __this__nativeId, long event);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QGraphicsProxyWidget(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QGraphicsProxyWidget(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QGraphicsProxyWidget instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QGraphicsProxyWidget(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.WindowFlags)}
* with wFlags = new io.qt.core.Qt.WindowFlags(0)
.
*/
public QGraphicsProxyWidget(io.qt.widgets.@Nullable QGraphicsItem parent) {
this(parent, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QGraphicsProxyWidget(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.WindowFlags)}
* with:
* parent = null
* wFlags = new io.qt.core.Qt.WindowFlags(0)
*
*/
public QGraphicsProxyWidget() {
this((io.qt.widgets.QGraphicsItem)null, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QGraphicsProxyWidget(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.WindowFlags)}.
*/
public QGraphicsProxyWidget(io.qt.widgets.@Nullable QGraphicsItem parent, io.qt.core.Qt.@NonNull WindowType @NonNull... wFlags) {
this(parent, new io.qt.core.Qt.WindowFlags(wFlags));
}
}