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;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QDrag.class);
/**
* See QDrag::actionChanged(Qt::DropAction)
*/
public final Signal1 actionChanged = new Signal1<>();
/**
* See QDrag::targetChanged(QObject*)
*/
public final Signal1 targetChanged = new Signal1<>();
/**
*
*/
public QDrag(io.qt.core.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
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.DropAction defaultAction(){
return io.qt.core.Qt.DropAction.resolve(defaultAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int defaultAction_native_constfct(long __this__nativeId);
/**
* See QDrag::dragCursor(Qt::DropAction)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap dragCursor(io.qt.core.Qt.DropAction action){
return dragCursor_native_Qt_DropAction_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), action.value());
}
@io.qt.QtUninvokable
private native io.qt.gui.QPixmap dragCursor_native_Qt_DropAction_constfct(long __this__nativeId, int action);
/**
* Overloaded function for {@link #exec(io.qt.core.Qt.DropActions)}.
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.DropAction exec(io.qt.core.Qt.DropAction ... supportedActions){
return exec(new io.qt.core.Qt.DropActions(supportedActions));
}
/**
* Overloaded function for {@link #exec(io.qt.core.Qt.DropActions)}
* with supportedActions = new io.qt.core.Qt.DropActions(2)
.
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.DropAction exec() {
return exec(new io.qt.core.Qt.DropActions(2));
}
/**
* See QDrag::exec(Qt::DropActions)
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.DropAction exec(io.qt.core.Qt.DropActions supportedActions){
return io.qt.core.Qt.DropAction.resolve(exec_native_QFlags_Qt_DropAction_(QtJambi_LibraryUtilities.internal.nativeId(this), supportedActions.value()));
}
@io.qt.QtUninvokable
private native int exec_native_QFlags_Qt_DropAction_(long __this__nativeId, int supportedActions);
/**
* See QDrag::exec(Qt::DropActions,Qt::DropAction)
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.DropAction exec(io.qt.core.Qt.DropActions supportedActions, io.qt.core.Qt.DropAction defaultAction){
return io.qt.core.Qt.DropAction.resolve(exec_native_QFlags_Qt_DropAction__Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), supportedActions.value(), defaultAction.value()));
}
@io.qt.QtUninvokable
private native int exec_native_QFlags_Qt_DropAction__Qt_DropAction(long __this__nativeId, int supportedActions, int defaultAction);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint hotSpot(){
return hotSpot_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint hotSpot_native_constfct(long __this__nativeId);
/**
*
*/
@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.gui.QPixmap pixmap(){
return pixmap_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QPixmap pixmap_native_constfct(long __this__nativeId);
/**
* See QDrag::setDragCursor(QPixmap,Qt::DropAction)
*/
@io.qt.QtUninvokable
public final void setDragCursor(io.qt.gui.QPixmap cursor, io.qt.core.Qt.DropAction action){
setDragCursor_native_cref_QPixmap_Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(cursor), action.value());
}
@io.qt.QtUninvokable
private native void setDragCursor_native_cref_QPixmap_Qt_DropAction(long __this__nativeId, long cursor, int action);
/**
*
*/
@io.qt.QtUninvokable
public final void setHotSpot(io.qt.core.QPoint hotspot){
setHotSpot_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(hotspot));
}
@io.qt.QtUninvokable
private native void setHotSpot_native_cref_QPoint(long __this__nativeId, long hotspot);
/**
* See QDrag::setMimeData(QMimeData*)
*/
@io.qt.QtUninvokable
public final void setMimeData(io.qt.core.QMimeData data){
setMimeData_native_QMimeData_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data));
}
@io.qt.QtUninvokable
private native void setMimeData_native_QMimeData_ptr(long __this__nativeId, long data);
/**
*
*/
@io.qt.QtUninvokable
public final void setPixmap(io.qt.gui.QPixmap arg__1){
setPixmap_native_cref_QPixmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void setPixmap_native_cref_QPixmap(long __this__nativeId, long arg__1);
/**
*
*/
@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);
/**
* See QDrag::supportedActions()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.DropActions supportedActions(){
return new io.qt.core.Qt.DropActions(supportedActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int supportedActions_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QObject target(){
return target_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.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
.
*/
@io.qt.NativeAccess
protected QDrag(QPrivateConstructor p) { super(p); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy