io.qt.gui.QDropEvent Maven / Gradle / Ivy
package io.qt.gui;
/**
* Event which is sent when a drag and drop action is completed
* Java wrapper for Qt class QDropEvent
*/
public class QDropEvent extends io.qt.core.QEvent
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.QtPropertyMember(enabled=false)
private Object __rcMimeData = null;
protected QDropEvent(io.qt.gui.QDropEvent arg__1){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
initialize_native(this, arg__1);
}
private native static void initialize_native(QDropEvent instance, io.qt.gui.QDropEvent arg__1);
/**
* Overloaded constructor for {@link #QDropEvent(io.qt.core.QPointF, io.qt.core.Qt.DropActions, io.qt.core.QMimeData, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.QEvent.Type)}
* with type = io.qt.core.QEvent.Type.Drop
.
*/
public QDropEvent(io.qt.core.QPointF pos, io.qt.core.Qt.DropActions actions, io.qt.core.QMimeData data, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers) {
this(pos, actions, data, buttons, modifiers, io.qt.core.QEvent.Type.Drop);
}
/**
*
*/
public QDropEvent(io.qt.core.QPointF pos, io.qt.core.Qt.DropActions actions, io.qt.core.QMimeData data, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.QEvent.Type type){
super((QPrivateConstructor)null);
initialize_native(this, pos, actions, data, buttons, modifiers, type);
}
private native static void initialize_native(QDropEvent instance, io.qt.core.QPointF pos, io.qt.core.Qt.DropActions actions, io.qt.core.QMimeData data, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.QEvent.Type type);
/**
* See QDropEvent::acceptProposedAction()
*/
@io.qt.QtUninvokable
public final void acceptProposedAction(){
acceptProposedAction_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void acceptProposedAction_native(long __this__nativeId);
@io.qt.QtUninvokable
public final io.qt.core.Qt.MouseButtons buttons(){
return new io.qt.core.Qt.MouseButtons(buttons_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int buttons_native_constfct(long __this__nativeId);
/**
* See QDropEvent::dropAction()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.DropAction dropAction(){
return io.qt.core.Qt.DropAction.resolve(dropAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int dropAction_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QDropEvent#modifiers()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.Qt.KeyboardModifiers keyboardModifiers(){
return new io.qt.core.Qt.KeyboardModifiers(keyboardModifiers_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@Deprecated
@io.qt.QtUninvokable
private native int keyboardModifiers_native_constfct(long __this__nativeId);
/**
* See QDropEvent::mimeData()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QMimeData mimeData(){
return mimeData_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QMimeData mimeData_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public final io.qt.core.Qt.KeyboardModifiers modifiers(){
return new io.qt.core.Qt.KeyboardModifiers(modifiers_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int modifiers_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QDropEvent#buttons()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.Qt.MouseButtons mouseButtons(){
return new io.qt.core.Qt.MouseButtons(mouseButtons_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@Deprecated
@io.qt.QtUninvokable
private native int mouseButtons_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
protected final void set(io.qt.gui.QDropEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
set_native_cref_QDropEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void set_native_cref_QDropEvent(long __this__nativeId, long other);
/**
* @deprecated Use position().toPoint()
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.QPoint pos(){
return pos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@io.qt.QtUninvokable
private native io.qt.core.QPoint pos_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QDropEvent#position()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.QPointF posF(){
return posF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@io.qt.QtUninvokable
private native io.qt.core.QPointF posF_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public final io.qt.core.QPointF position(){
return position_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPointF position_native_constfct(long __this__nativeId);
/**
* See QDropEvent::possibleActions()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.DropActions possibleActions(){
return new io.qt.core.Qt.DropActions(possibleActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int possibleActions_native_constfct(long __this__nativeId);
/**
* See QDropEvent::proposedAction()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.DropAction proposedAction(){
return io.qt.core.Qt.DropAction.resolve(proposedAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int proposedAction_native_constfct(long __this__nativeId);
/**
* See QDropEvent::setDropAction(Qt::DropAction)
*/
@io.qt.QtUninvokable
public final void setDropAction(io.qt.core.Qt.DropAction action){
setDropAction_native_Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), action.value());
}
@io.qt.QtUninvokable
private native void setDropAction_native_Qt_DropAction(long __this__nativeId, int action);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QObject source(){
return source_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QObject source_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public io.qt.gui.QDropEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QDropEvent clone_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #setPossibleActions(io.qt.core.Qt.DropActions)}.
*/
@io.qt.QtUninvokable
protected final void setPossibleActions(io.qt.core.Qt.DropAction ... possibleActions){
setPossibleActions(new io.qt.core.Qt.DropActions(possibleActions));
}
@io.qt.QtUninvokable
protected final void setPossibleActions(io.qt.core.Qt.DropActions possibleActions){
setPossibleActions_native_cref_QFlags_Qt_DropAction_(QtJambi_LibraryUtilities.internal.nativeId(this), possibleActions.value());
}
@io.qt.QtUninvokable
private native void setPossibleActions_native_cref_QFlags_Qt_DropAction_(long __this__nativeId, int possibleActions);
@io.qt.QtUninvokable
protected final void setMimeData(io.qt.core.QMimeData mimeData){
setMimeData_native_const_QMimeData_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(mimeData));
__rcMimeData = mimeData;
}
@io.qt.QtUninvokable
private native void setMimeData_native_const_QMimeData_ptr(long __this__nativeId, long mimeData);
@io.qt.QtUninvokable
protected final void setProposedAction(io.qt.core.Qt.DropAction proposedAction){
setProposedAction_native_cref_Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), proposedAction.value());
}
@io.qt.QtUninvokable
private native void setProposedAction_native_cref_Qt_DropAction(long __this__nativeId, int proposedAction);
/**
* Overloaded function for {@link #setKeyboardModifiers(io.qt.core.Qt.KeyboardModifiers)}.
*/
@io.qt.QtUninvokable
protected final void setKeyboardModifiers(io.qt.core.Qt.KeyboardModifier ... keyboardModifiers){
setKeyboardModifiers(new io.qt.core.Qt.KeyboardModifiers(keyboardModifiers));
}
@io.qt.QtUninvokable
protected final void setKeyboardModifiers(io.qt.core.Qt.KeyboardModifiers keyboardModifiers){
setKeyboardModifiers_native_cref_QFlags_Qt_KeyboardModifier_(QtJambi_LibraryUtilities.internal.nativeId(this), keyboardModifiers.value());
}
@io.qt.QtUninvokable
private native void setKeyboardModifiers_native_cref_QFlags_Qt_KeyboardModifier_(long __this__nativeId, int keyboardModifiers);
/**
* Overloaded function for {@link #setMouseButtons(io.qt.core.Qt.MouseButtons)}.
*/
@io.qt.QtUninvokable
protected final void setMouseButtons(io.qt.core.Qt.MouseButton ... mouseButtons){
setMouseButtons(new io.qt.core.Qt.MouseButtons(mouseButtons));
}
@io.qt.QtUninvokable
protected final void setMouseButtons(io.qt.core.Qt.MouseButtons mouseButtons){
setMouseButtons_native_cref_QFlags_Qt_MouseButton_(QtJambi_LibraryUtilities.internal.nativeId(this), mouseButtons.value());
}
@io.qt.QtUninvokable
private native void setMouseButtons_native_cref_QFlags_Qt_MouseButton_(long __this__nativeId, int mouseButtons);
@io.qt.QtUninvokable
protected final void setPosition(io.qt.core.QPointF position){
setPosition_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(position));
}
@io.qt.QtUninvokable
private native void setPosition_native_cref_QPointF(long __this__nativeId, long position);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QDropEvent(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
}