io.qt.gui.QDropEvent Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* 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();
}
@QtPropertyMember(enabled=false)
private Object __rcMimeData = null;
/**
* See QDropEvent:: QDropEvent(QDropEvent)
*/
protected QDropEvent(io.qt.gui.@StrictNonNull 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);
/**
*
*/
public QDropEvent(io.qt.core.@NonNull QPointF pos, io.qt.core.Qt.@NonNull DropActions actions, io.qt.core.@Nullable QMimeData data, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.QEvent.@NonNull 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()
*/
@QtUninvokable
public final void acceptProposedAction(){
acceptProposedAction_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void acceptProposedAction_native(long __this__nativeId);
/**
* See QDropEvent:: buttons()const
* This function was introduced in Qt 6.0.
*/
@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 QDropEvent:: 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 QDropEvent:: keyboardModifiers()const
*
* @deprecated Use {@link io.qt.gui.QDropEvent#modifiers()} instead
*/
@Deprecated
@QtUninvokable
public final io.qt.core.Qt.@NonNull KeyboardModifiers keyboardModifiers(){
return new io.qt.core.Qt.KeyboardModifiers(keyboardModifiers_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@Deprecated
@QtUninvokable
private native int keyboardModifiers_native_constfct(long __this__nativeId);
/**
* See QDropEvent:: 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 QDropEvent:: modifiers()const
* This function was introduced in Qt 6.0.
*/
@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 QDropEvent:: mouseButtons()const
*
* @deprecated Use {@link io.qt.gui.QDropEvent#buttons()} instead
*/
@Deprecated
@QtUninvokable
public final io.qt.core.Qt.@NonNull MouseButtons mouseButtons(){
return new io.qt.core.Qt.MouseButtons(mouseButtons_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@Deprecated
@QtUninvokable
private native int mouseButtons_native_constfct(long __this__nativeId);
/**
* See QDropEvent:: operator=(QDropEvent)
*/
@QtUninvokable
protected final void assign(io.qt.gui.@StrictNonNull QDropEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
assign_native_cref_QDropEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QDropEvent(long __this__nativeId, long other);
/**
* See QDropEvent:: pos()const
*
* @deprecated Use position().toPoint()
*/
@Deprecated
@QtUninvokable
public final io.qt.core.@NonNull QPoint pos(){
return pos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@QtUninvokable
private native io.qt.core.QPoint pos_native_constfct(long __this__nativeId);
/**
* See QDropEvent:: posF()const
*
* @deprecated Use {@link io.qt.gui.QDropEvent#position()} instead
*/
@Deprecated
@QtUninvokable
public final io.qt.core.@NonNull QPointF posF(){
return posF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@QtUninvokable
private native io.qt.core.QPointF posF_native_constfct(long __this__nativeId);
/**
* See QDropEvent:: position()const
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF position(){
return position_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF position_native_constfct(long __this__nativeId);
/**
* See QDropEvent:: 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 QDropEvent:: 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 QDropEvent:: 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);
/**
*
*/
@QtUninvokable
public final io.qt.core.@Nullable QObject source(){
return source_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QObject source_native_constfct(long __this__nativeId);
/**
*
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
@Override
public io.qt.gui.@Nullable QDropEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QDropEvent clone_native_constfct(long __this__nativeId);
/**
* See QDropEvent:: m_actions
*/
@QtUninvokable
protected final void setPossibleActions(io.qt.core.Qt.@NonNull DropActions possibleActions){
setPossibleActions_native_cref_Qt_DropActions(QtJambi_LibraryUtilities.internal.nativeId(this), possibleActions.value());
}
@QtUninvokable
private native void setPossibleActions_native_cref_Qt_DropActions(long __this__nativeId, int possibleActions);
/**
* See QDropEvent:: m_data
*/
@QtUninvokable
protected final void setMimeData(io.qt.core.@Nullable QMimeData mimeData){
setMimeData_native_const_QMimeData_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(mimeData));
__rcMimeData = mimeData;
}
@QtUninvokable
private native void setMimeData_native_const_QMimeData_ptr(long __this__nativeId, long mimeData);
/**
* See QDropEvent:: m_defaultAction
*/
@QtUninvokable
protected final void setProposedAction(io.qt.core.Qt.@NonNull DropAction proposedAction){
setProposedAction_native_cref_Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), proposedAction.value());
}
@QtUninvokable
private native void setProposedAction_native_cref_Qt_DropAction(long __this__nativeId, int proposedAction);
/**
* See QDropEvent:: m_modState
*/
@QtUninvokable
protected final void setKeyboardModifiers(io.qt.core.Qt.@NonNull KeyboardModifiers keyboardModifiers){
setKeyboardModifiers_native_cref_Qt_KeyboardModifiers(QtJambi_LibraryUtilities.internal.nativeId(this), keyboardModifiers.value());
}
@QtUninvokable
private native void setKeyboardModifiers_native_cref_Qt_KeyboardModifiers(long __this__nativeId, int keyboardModifiers);
/**
* See QDropEvent:: m_mouseState
*/
@QtUninvokable
protected final void setMouseButtons(io.qt.core.Qt.@NonNull MouseButtons mouseButtons){
setMouseButtons_native_cref_Qt_MouseButtons(QtJambi_LibraryUtilities.internal.nativeId(this), mouseButtons.value());
}
@QtUninvokable
private native void setMouseButtons_native_cref_Qt_MouseButtons(long __this__nativeId, int mouseButtons);
/**
* See QDropEvent:: m_pos
*/
@QtUninvokable
protected final void setPosition(io.qt.core.@NonNull QPointF position){
setPosition_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(position));
}
@QtUninvokable
private native void setPosition_native_cref_QPointF(long __this__nativeId, long position);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QDropEvent(QPrivateConstructor p) { super(p); }
/**
* 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.@NonNull QPointF pos, io.qt.core.Qt.@NonNull DropActions actions, io.qt.core.@Nullable QMimeData data, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers) {
this(pos, actions, data, buttons, modifiers, io.qt.core.QEvent.Type.Drop);
}
/**
* Overloaded constructor for {@link #QDropEvent(io.qt.core.QPoint, 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.@NonNull QPoint pos, io.qt.core.Qt.@NonNull DropActions actions, io.qt.core.@Nullable QMimeData data, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers) {
this(pos, actions, data, buttons, modifiers, io.qt.core.QEvent.Type.Drop);
}
/**
* 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)}.
*/
public QDropEvent(io.qt.core.@NonNull QPoint pos, io.qt.core.Qt.@NonNull DropActions actions, io.qt.core.@Nullable QMimeData data, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.QEvent.@NonNull Type type) {
this(new io.qt.core.QPointF(pos), actions, data, buttons, modifiers, type);
}
/**
* @deprecated Use {@link #assign(io.qt.gui.QDropEvent)} instead.
*/
@Deprecated
@QtUninvokable
protected final void set(io.qt.gui.@StrictNonNull QDropEvent other) {
assign(other);
}
/**
* Overloaded function for {@link #setPossibleActions(io.qt.core.Qt.DropActions)}.
*/
@QtUninvokable
protected final void setPossibleActions(io.qt.core.Qt.@NonNull DropAction @NonNull... possibleActions) {
setPossibleActions(new io.qt.core.Qt.DropActions(possibleActions));
}
/**
* Overloaded function for {@link #setKeyboardModifiers(io.qt.core.Qt.KeyboardModifiers)}.
*/
@QtUninvokable
protected final void setKeyboardModifiers(io.qt.core.Qt.@NonNull KeyboardModifier @NonNull... keyboardModifiers) {
setKeyboardModifiers(new io.qt.core.Qt.KeyboardModifiers(keyboardModifiers));
}
/**
* Overloaded function for {@link #setMouseButtons(io.qt.core.Qt.MouseButtons)}.
*/
@QtUninvokable
protected final void setMouseButtons(io.qt.core.Qt.@NonNull MouseButton @NonNull... mouseButtons) {
setMouseButtons(new io.qt.core.Qt.MouseButtons(mouseButtons));
}
/**
* Overloaded function for {@link #setPosition(io.qt.core.QPointF)}.
*/
@QtUninvokable
protected final void setPosition(io.qt.core.@NonNull QPoint position) {
setPosition(new io.qt.core.QPointF(position));
}
}