io.qt.gui.QDrag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui;
import io.qt.*;
/**
* Support for MIME-based drag and drop data transfer
* Java wrapper for Qt class QDrag
*/
public class QDrag extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QDrag.class);
/**
* See QDrag:: actionChanged(Qt::DropAction)
*/
public final @NonNull Signal1 actionChanged = new Signal1<>();
/**
* See QDrag:: targetChanged(QObject*)
*/
public final @NonNull Signal1 targetChanged = new Signal1<>();
/**
*
*/
public QDrag(io.qt.core.@Nullable QObject dragSource){
super((QPrivateConstructor)null);
initialize_native(this, dragSource);
}
private native static void initialize_native(QDrag instance, io.qt.core.QObject dragSource);
/**
* See QDrag:: defaultAction()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull DropAction defaultAction(){
return io.qt.core.Qt.DropAction.resolve(defaultAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int defaultAction_native_constfct(long __this__nativeId);
/**
* See QDrag:: dragCursor(Qt::DropAction)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPixmap dragCursor(io.qt.core.Qt.@NonNull DropAction action){
return dragCursor_native_Qt_DropAction_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), action.value());
}
@QtUninvokable
private native io.qt.gui.QPixmap dragCursor_native_Qt_DropAction_constfct(long __this__nativeId, int action);
/**
* See QDrag:: exec(Qt::DropActions)
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull DropAction exec(io.qt.core.Qt.@NonNull DropActions supportedActions){
return io.qt.core.Qt.DropAction.resolve(exec_native_Qt_DropActions(QtJambi_LibraryUtilities.internal.nativeId(this), supportedActions.value()));
}
@QtUninvokable
private native int exec_native_Qt_DropActions(long __this__nativeId, int supportedActions);
/**
* See QDrag:: exec(Qt::DropActions, Qt::DropAction)
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull DropAction exec(io.qt.core.Qt.@NonNull DropActions supportedActions, io.qt.core.Qt.@NonNull DropAction defaultAction){
return io.qt.core.Qt.DropAction.resolve(exec_native_Qt_DropActions_Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), supportedActions.value(), defaultAction.value()));
}
@QtUninvokable
private native int exec_native_Qt_DropActions_Qt_DropAction(long __this__nativeId, int supportedActions, int defaultAction);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QPoint hotSpot(){
return hotSpot_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint hotSpot_native_constfct(long __this__nativeId);
/**
*
*/
@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);
/**
*
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPixmap pixmap(){
return pixmap_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QPixmap pixmap_native_constfct(long __this__nativeId);
/**
* See QDrag:: setDragCursor(QPixmap, Qt::DropAction)
*/
@QtUninvokable
public final void setDragCursor(io.qt.gui.@NonNull QPixmap cursor, io.qt.core.Qt.@NonNull DropAction action){
setDragCursor_native_cref_QPixmap_Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(cursor), action.value());
}
@QtUninvokable
private native void setDragCursor_native_cref_QPixmap_Qt_DropAction(long __this__nativeId, long cursor, int action);
/**
*
*/
@QtUninvokable
public final void setHotSpot(io.qt.core.@NonNull QPoint hotspot){
setHotSpot_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(hotspot));
}
@QtUninvokable
private native void setHotSpot_native_cref_QPoint(long __this__nativeId, long hotspot);
/**
* See QDrag:: setMimeData(QMimeData*)
*/
@QtUninvokable
public final void setMimeData(io.qt.core.@Nullable QMimeData data){
setMimeData_native_QMimeData_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data));
}
@QtUninvokable
private native void setMimeData_native_QMimeData_ptr(long __this__nativeId, long data);
/**
*
*/
@QtUninvokable
public final void setPixmap(io.qt.gui.@NonNull QPixmap arg__1){
setPixmap_native_cref_QPixmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void setPixmap_native_cref_QPixmap(long __this__nativeId, long arg__1);
/**
*
*/
@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);
/**
* See QDrag:: supportedActions()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull DropActions supportedActions(){
return new io.qt.core.Qt.DropActions(supportedActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int supportedActions_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.@Nullable QObject target(){
return target_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QObject target_native_constfct(long __this__nativeId);
/**
* See QDrag:: cancel()
*/
public native static void cancel();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QDrag(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #exec(io.qt.core.Qt.DropActions)}
* with supportedActions = new io.qt.core.Qt.DropActions(2)
.
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull DropAction exec() {
return exec(new io.qt.core.Qt.DropActions(2));
}
/**
* Overloaded function for {@link #exec(io.qt.core.Qt.DropActions)}.
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull DropAction exec(io.qt.core.Qt.@NonNull DropAction @NonNull... supportedActions) {
return exec(new io.qt.core.Qt.DropActions(supportedActions));
}
}