io.qt.gui.QCursor Maven / Gradle / Ivy
The newest version!
package io.qt.gui;
/**
* Mouse cursor with an arbitrary shape
* Java wrapper for Qt class QCursor
*/
public class QCursor extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
*
*/
public QCursor(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QCursor instance);
/**
* See QCursor::QCursor(Qt::CursorShape)
*/
public QCursor(io.qt.core.Qt.CursorShape shape){
super((QPrivateConstructor)null);
initialize_native(this, shape);
}
private native static void initialize_native(QCursor instance, io.qt.core.Qt.CursorShape shape);
/**
* Overloaded constructor for {@link #QCursor(io.qt.gui.QBitmap, io.qt.gui.QBitmap, int, int)}
* with hotY = -1
.
*/
public QCursor(io.qt.gui.QBitmap bitmap, io.qt.gui.QBitmap mask, int hotX) {
this(bitmap, mask, hotX, (int)-1);
}
/**
* Overloaded constructor for {@link #QCursor(io.qt.gui.QBitmap, io.qt.gui.QBitmap, int, int)}
* with:
* hotX = -1
* hotY = -1
*
*/
public QCursor(io.qt.gui.QBitmap bitmap, io.qt.gui.QBitmap mask) {
this(bitmap, mask, (int)-1, (int)-1);
}
/**
* See QCursor::QCursor(QBitmap,QBitmap,int,int)
*/
public QCursor(io.qt.gui.QBitmap bitmap, io.qt.gui.QBitmap mask, int hotX, int hotY){
super((QPrivateConstructor)null);
initialize_native(this, bitmap, mask, hotX, hotY);
}
private native static void initialize_native(QCursor instance, io.qt.gui.QBitmap bitmap, io.qt.gui.QBitmap mask, int hotX, int hotY);
/**
*
*/
public QCursor(io.qt.gui.QCursor cursor){
super((QPrivateConstructor)null);
initialize_native(this, cursor);
}
private native static void initialize_native(QCursor instance, io.qt.gui.QCursor cursor);
/**
* Overloaded constructor for {@link #QCursor(io.qt.gui.QPixmap, int, int)}
* with hotY = -1
.
*/
public QCursor(io.qt.gui.QPixmap pixmap, int hotX) {
this(pixmap, hotX, (int)-1);
}
/**
* Overloaded constructor for {@link #QCursor(io.qt.gui.QPixmap, int, int)}
* with:
* hotX = -1
* hotY = -1
*
*/
public QCursor(io.qt.gui.QPixmap pixmap) {
this(pixmap, (int)-1, (int)-1);
}
/**
* See QCursor::QCursor(QPixmap,int,int)
*/
public QCursor(io.qt.gui.QPixmap pixmap, int hotX, int hotY){
super((QPrivateConstructor)null);
initialize_native(this, pixmap, hotX, hotY);
}
private native static void initialize_native(QCursor instance, io.qt.gui.QPixmap pixmap, int hotX, int hotY);
@io.qt.QtUninvokable
public final io.qt.gui.QBitmap bitmap(){
return bitmap_native_Qt_ReturnByValueConstant_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QBitmap bitmap_native_Qt_ReturnByValueConstant_constfct(long __this__nativeId);
/**
*
*/
@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.gui.QBitmap mask(){
return mask_native_Qt_ReturnByValueConstant_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QBitmap mask_native_Qt_ReturnByValueConstant_constfct(long __this__nativeId);
@io.qt.QtUninvokable
private final boolean operator_not_equal(io.qt.gui.QCursor rhs){
return operator_not_equal_native_cref_QCursor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@io.qt.QtUninvokable
private native boolean operator_not_equal_native_cref_QCursor(long __this__nativeId, long rhs);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.QDataStream outS){
java.util.Objects.requireNonNull(outS, "Argument 'outS': null not expected.");
writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(outS));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long outS);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.QDataStream inS){
java.util.Objects.requireNonNull(inS, "Argument 'inS': null not expected.");
readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(inS));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long inS);
/**
*
*/
@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 QCursor::setShape(Qt::CursorShape)
*/
@io.qt.QtUninvokable
public final void setShape(io.qt.core.Qt.CursorShape newShape){
setShape_native_Qt_CursorShape(QtJambi_LibraryUtilities.internal.nativeId(this), newShape.value());
}
@io.qt.QtUninvokable
private native void setShape_native_Qt_CursorShape(long __this__nativeId, int newShape);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.CursorShape shape(){
return io.qt.core.Qt.CursorShape.resolve(shape_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int shape_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final void swap(io.qt.gui.QCursor other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QCursor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void swap_native_ref_QCursor(long __this__nativeId, long other);
/**
* See QCursor::pos()
*/
public native static io.qt.core.QPoint pos();
public static io.qt.core.QPoint pos(io.qt.gui.QScreen screen){
return pos_native_const_QScreen_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(screen));
}
private native static io.qt.core.QPoint pos_native_const_QScreen_ptr(long screen);
/**
* See QCursor::setPos(QScreen*,QPoint)
*/
public static void setPos(io.qt.gui.QScreen screen, io.qt.core.QPoint p){
setPos_native_QScreen_ptr_cref_QPoint(QtJambi_LibraryUtilities.internal.checkedNativeId(screen), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
private native static void setPos_native_QScreen_ptr_cref_QPoint(long screen, long p);
/**
* See QCursor::setPos(QScreen*,int,int)
*/
public static void setPos(io.qt.gui.QScreen screen, int x, int y){
setPos_native_QScreen_ptr_int_int(QtJambi_LibraryUtilities.internal.checkedNativeId(screen), x, y);
}
private native static void setPos_native_QScreen_ptr_int_int(long screen, int x, int y);
/**
*
*/
public static void setPos(io.qt.core.QPoint p){
setPos_native_cref_QPoint(QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
private native static void setPos_native_cref_QPoint(long p);
/**
*
*/
public native static void setPos(int x, int y);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QCursor(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QCursor) {
return !operator_not_equal((io.qt.gui.QCursor) other);
}
return false;
}
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@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);
@Override
public QCursor clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QCursor clone_native(long __this_nativeId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy