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

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

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

import io.qt.*;


/**
 * 

Events for drag and drop in the graphics view framework

*

Java wrapper for Qt class QGraphicsSceneDragDropEvent

*/ public class QGraphicsSceneDragDropEvent extends io.qt.widgets.QGraphicsSceneEvent { @QtPropertyMember(enabled=false) private Object __rcMimeData = null; @QtPropertyMember(enabled=false) private Object __rcSource = null; /** *

See QGraphicsSceneDragDropEvent::QGraphicsSceneDragDropEvent(QEvent::Type)

*/ public QGraphicsSceneDragDropEvent(io.qt.core.QEvent.@NonNull Type type){ super((QPrivateConstructor)null); initialize_native(this, type); } private native static void initialize_native(QGraphicsSceneDragDropEvent instance, io.qt.core.QEvent.Type type); /** *

See QGraphicsSceneDragDropEvent::acceptProposedAction()

*/ @QtUninvokable public final void acceptProposedAction(){ acceptProposedAction_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void acceptProposedAction_native(long __this__nativeId); /** *

See QGraphicsSceneDragDropEvent::buttons()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull MouseButtons buttons(){ return new io.qt.core.Qt.MouseButtons(buttons_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int buttons_native_constfct(long __this__nativeId); /** *

See QGraphicsSceneDragDropEvent::dropAction()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull DropAction dropAction(){ return io.qt.core.Qt.DropAction.resolve(dropAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int dropAction_native_constfct(long __this__nativeId); /** *

See QGraphicsSceneDragDropEvent::mimeData()const

*/ @QtUninvokable public final io.qt.core.@Nullable QMimeData mimeData(){ return mimeData_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QMimeData mimeData_native_constfct(long __this__nativeId); /** *

See QGraphicsSceneDragDropEvent::modifiers()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull KeyboardModifiers modifiers(){ return new io.qt.core.Qt.KeyboardModifiers(modifiers_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int modifiers_native_constfct(long __this__nativeId); /** *

See QGraphicsSceneDragDropEvent::pos()const

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

See QGraphicsSceneDragDropEvent::possibleActions()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull DropActions possibleActions(){ return new io.qt.core.Qt.DropActions(possibleActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int possibleActions_native_constfct(long __this__nativeId); /** *

See QGraphicsSceneDragDropEvent::proposedAction()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull DropAction proposedAction(){ return io.qt.core.Qt.DropAction.resolve(proposedAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int proposedAction_native_constfct(long __this__nativeId); /** *

See QGraphicsSceneDragDropEvent::scenePos()const

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

See QGraphicsSceneDragDropEvent::screenPos()const

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

See QGraphicsSceneDragDropEvent::setButtons(Qt::MouseButtons)

*/ @QtUninvokable public final void setButtons(io.qt.core.Qt.@NonNull MouseButtons buttons){ setButtons_native_Qt_MouseButtons(QtJambi_LibraryUtilities.internal.nativeId(this), buttons.value()); } @QtUninvokable private native void setButtons_native_Qt_MouseButtons(long __this__nativeId, int buttons); /** *

See QGraphicsSceneDragDropEvent::setDropAction(Qt::DropAction)

*/ @QtUninvokable public final void setDropAction(io.qt.core.Qt.@NonNull DropAction action){ setDropAction_native_Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), action.value()); } @QtUninvokable private native void setDropAction_native_Qt_DropAction(long __this__nativeId, int action); /** *

See QGraphicsSceneDragDropEvent::setMimeData(const QMimeData*)

*/ @QtUninvokable public final void setMimeData(io.qt.core.@Nullable QMimeData data){ setMimeData_native_const_QMimeData_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data)); __rcMimeData = data; } @QtUninvokable private native void setMimeData_native_const_QMimeData_ptr(long __this__nativeId, long data); /** *

See QGraphicsSceneDragDropEvent::setModifiers(Qt::KeyboardModifiers)

*/ @QtUninvokable public final void setModifiers(io.qt.core.Qt.@NonNull KeyboardModifiers modifiers){ setModifiers_native_Qt_KeyboardModifiers(QtJambi_LibraryUtilities.internal.nativeId(this), modifiers.value()); } @QtUninvokable private native void setModifiers_native_Qt_KeyboardModifiers(long __this__nativeId, int modifiers); /** *

See QGraphicsSceneDragDropEvent::setPos(QPointF)

*/ @QtUninvokable public final void setPos(io.qt.core.@NonNull QPointF pos){ setPos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos)); } @QtUninvokable private native void setPos_native_cref_QPointF(long __this__nativeId, long pos); /** *

See QGraphicsSceneDragDropEvent::setPossibleActions(Qt::DropActions)

*/ @QtUninvokable public final void setPossibleActions(io.qt.core.Qt.@NonNull DropActions actions){ setPossibleActions_native_Qt_DropActions(QtJambi_LibraryUtilities.internal.nativeId(this), actions.value()); } @QtUninvokable private native void setPossibleActions_native_Qt_DropActions(long __this__nativeId, int actions); /** *

See QGraphicsSceneDragDropEvent::setProposedAction(Qt::DropAction)

*/ @QtUninvokable public final void setProposedAction(io.qt.core.Qt.@NonNull DropAction action){ setProposedAction_native_Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), action.value()); } @QtUninvokable private native void setProposedAction_native_Qt_DropAction(long __this__nativeId, int action); /** *

See QGraphicsSceneDragDropEvent::setScenePos(QPointF)

*/ @QtUninvokable public final void setScenePos(io.qt.core.@NonNull QPointF pos){ setScenePos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos)); } @QtUninvokable private native void setScenePos_native_cref_QPointF(long __this__nativeId, long pos); /** *

See QGraphicsSceneDragDropEvent::setScreenPos(QPoint)

*/ @QtUninvokable public final void setScreenPos(io.qt.core.@NonNull QPoint pos){ setScreenPos_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos)); } @QtUninvokable private native void setScreenPos_native_cref_QPoint(long __this__nativeId, long pos); /** *

See QGraphicsSceneDragDropEvent::setSource(QWidget*)

*/ @QtUninvokable public final void setSource(io.qt.widgets.@Nullable QWidget source){ setSource_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(source)); __rcSource = source; } @QtUninvokable private native void setSource_native_QWidget_ptr(long __this__nativeId, long source); /** *

See QGraphicsSceneDragDropEvent::source()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QWidget source(){ return source_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QWidget source_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QGraphicsSceneDragDropEvent(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #QGraphicsSceneDragDropEvent(io.qt.core.QEvent.Type)} * with type = io.qt.core.QEvent.Type.None.

*/ public QGraphicsSceneDragDropEvent() { this(io.qt.core.QEvent.Type.None); } /** *

Overloaded function for {@link #setButtons(io.qt.core.Qt.MouseButtons)}.

*/ @QtUninvokable public final void setButtons(io.qt.core.Qt.@NonNull MouseButton @NonNull... buttons) { setButtons(new io.qt.core.Qt.MouseButtons(buttons)); } /** *

Overloaded function for {@link #setModifiers(io.qt.core.Qt.KeyboardModifiers)}.

*/ @QtUninvokable public final void setModifiers(io.qt.core.Qt.@NonNull KeyboardModifier @NonNull... modifiers) { setModifiers(new io.qt.core.Qt.KeyboardModifiers(modifiers)); } /** *

Overloaded function for {@link #setPos(io.qt.core.QPointF)}.

*/ @QtUninvokable public final void setPos(io.qt.core.@NonNull QPoint pos) { setPos(new io.qt.core.QPointF(pos)); } /** *

Overloaded function for {@link #setPossibleActions(io.qt.core.Qt.DropActions)}.

*/ @QtUninvokable public final void setPossibleActions(io.qt.core.Qt.@NonNull DropAction @NonNull... actions) { setPossibleActions(new io.qt.core.Qt.DropActions(actions)); } /** *

Overloaded function for {@link #setScenePos(io.qt.core.QPointF)}.

*/ @QtUninvokable public final void setScenePos(io.qt.core.@NonNull QPoint pos) { setScenePos(new io.qt.core.QPointF(pos)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy