All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QSinglePointEvent Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
package io.qt.gui;


/**
 * 

A base class for pointer events containing a single point, such as mouse events

*

Java wrapper for Qt class QSinglePointEvent

*/ public class QSinglePointEvent extends io.qt.gui.QPointerEvent { @io.qt.QtPropertyMember(enabled=false) private Object __rcExclusiveGrabber = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSinglePointEvent.class); protected QSinglePointEvent(io.qt.core.QEvent.Type type, io.qt.gui.QPointingDevice dev, io.qt.gui.QEventPoint point, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.Qt.MouseEventSource source){ super((QPrivateConstructor)null); initialize_native(this, type, dev, point, button, buttons, modifiers, source); } private native static void initialize_native(QSinglePointEvent instance, io.qt.core.QEvent.Type type, io.qt.gui.QPointingDevice dev, io.qt.gui.QEventPoint point, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.Qt.MouseEventSource source); /** *

Overloaded constructor for {@link #QSinglePointEvent(io.qt.core.QEvent.Type, io.qt.gui.QPointingDevice, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.Qt.MouseButton, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.MouseEventSource)} * with source = io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized.

*/ protected QSinglePointEvent(io.qt.core.QEvent.Type type, io.qt.gui.QPointingDevice dev, io.qt.core.QPointF localPos, io.qt.core.QPointF scenePos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers) { this(type, dev, localPos, scenePos, globalPos, button, buttons, modifiers, io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized); } protected QSinglePointEvent(io.qt.core.QEvent.Type type, io.qt.gui.QPointingDevice dev, io.qt.core.QPointF localPos, io.qt.core.QPointF scenePos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.Qt.MouseEventSource source){ super((QPrivateConstructor)null); initialize_native(this, type, dev, localPos, scenePos, globalPos, button, buttons, modifiers, source); } private native static void initialize_native(QSinglePointEvent instance, io.qt.core.QEvent.Type type, io.qt.gui.QPointingDevice dev, io.qt.core.QPointF localPos, io.qt.core.QPointF scenePos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.Qt.MouseEventSource source); protected QSinglePointEvent(io.qt.gui.QSinglePointEvent 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(QSinglePointEvent instance, io.qt.gui.QSinglePointEvent arg__1); /** *

See QSinglePointEvent::button()const

*/ @io.qt.QtUninvokable public final io.qt.core.Qt.MouseButton button(){ return io.qt.core.Qt.MouseButton.resolve(button_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int button_native_constfct(long __this__nativeId); /** *

See QSinglePointEvent::buttons()const

*/ @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 QSinglePointEvent::exclusivePointGrabber()const

*/ @io.qt.QtPropertyReader(name="exclusivePointGrabber") @io.qt.QtUninvokable public final io.qt.core.QObject exclusivePointGrabber(){ return exclusivePointGrabber_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QObject exclusivePointGrabber_native_constfct(long __this__nativeId); /** *

See QSinglePointEvent::globalPosition()const

*/ @io.qt.QtUninvokable public final io.qt.core.QPointF globalPosition(){ return globalPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QPointF globalPosition_native_constfct(long __this__nativeId); @io.qt.QtUninvokable protected final void set(io.qt.gui.QSinglePointEvent other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); set_native_cref_QSinglePointEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void set_native_cref_QSinglePointEvent(long __this__nativeId, long other); /** *

See QSinglePointEvent::position()const

*/ @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 QSinglePointEvent::scenePosition()const

*/ @io.qt.QtUninvokable public final io.qt.core.QPointF scenePosition(){ return scenePosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QPointF scenePosition_native_constfct(long __this__nativeId); /** *

See QSinglePointEvent::setExclusivePointGrabber(QObject*)

*/ @io.qt.QtPropertyWriter(name="exclusivePointGrabber") @io.qt.QtUninvokable public final void setExclusivePointGrabber(io.qt.core.QObject exclusiveGrabber){ setExclusivePointGrabber_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(exclusiveGrabber)); __rcExclusiveGrabber = exclusiveGrabber; } @io.qt.QtUninvokable private native void setExclusivePointGrabber_native_QObject_ptr(long __this__nativeId, long exclusiveGrabber); /** *

See QEvent::clone()const

*/ @io.qt.QtUninvokable public io.qt.gui.QSinglePointEvent clone(){ return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QSinglePointEvent clone_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public boolean isBeginEvent(){ return isBeginEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isBeginEvent_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public boolean isEndEvent(){ return isEndEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isEndEvent_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public boolean isUpdateEvent(){ return isUpdateEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isUpdateEvent_native_constfct(long __this__nativeId); @io.qt.QtUninvokable protected final void setButton(io.qt.core.Qt.MouseButton button){ setButton_native_cref_Qt_MouseButton(QtJambi_LibraryUtilities.internal.nativeId(this), button.value()); } @io.qt.QtUninvokable private native void setButton_native_cref_Qt_MouseButton(long __this__nativeId, int button); @io.qt.QtUninvokable protected final void setDoubleClick(boolean doubleClick){ setDoubleClick_native_unsigned_short(QtJambi_LibraryUtilities.internal.nativeId(this), doubleClick); } @io.qt.QtUninvokable private native void setDoubleClick_native_unsigned_short(long __this__nativeId, boolean doubleClick); @io.qt.QtUninvokable protected final boolean doubleClick(){ return doubleClick_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean doubleClick_native(long __this__nativeId); @io.qt.QtUninvokable protected final void setInvertedScrolling(boolean invertedScrolling){ setInvertedScrolling_native_unsigned_short(QtJambi_LibraryUtilities.internal.nativeId(this), invertedScrolling); } @io.qt.QtUninvokable private native void setInvertedScrolling_native_unsigned_short(long __this__nativeId, boolean invertedScrolling); @io.qt.QtUninvokable protected final boolean invertedScrolling(){ return invertedScrolling_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean invertedScrolling_native(long __this__nativeId); /** *

Overloaded function for {@link #setButtons(io.qt.core.Qt.MouseButtons)}.

*/ @io.qt.QtUninvokable protected final void setButtons(io.qt.core.Qt.MouseButton ... buttons){ setButtons(new io.qt.core.Qt.MouseButtons(buttons)); } @io.qt.QtUninvokable protected final void setButtons(io.qt.core.Qt.MouseButtons buttons){ setButtons_native_cref_QFlags_Qt_MouseButton_(QtJambi_LibraryUtilities.internal.nativeId(this), buttons.value()); } @io.qt.QtUninvokable private native void setButtons_native_cref_QFlags_Qt_MouseButton_(long __this__nativeId, int buttons); @io.qt.QtUninvokable protected final void setPhaseFlag(short phaseFlag){ setPhaseFlag_native_unsigned_short(QtJambi_LibraryUtilities.internal.nativeId(this), phaseFlag); } @io.qt.QtUninvokable private native void setPhaseFlag_native_unsigned_short(long __this__nativeId, short phaseFlag); @io.qt.QtUninvokable protected final short phaseFlag(){ return phaseFlag_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native short phaseFlag_native(long __this__nativeId); @io.qt.QtUninvokable protected final void setSourceFlag(io.qt.core.Qt.MouseEventSource sourceFlag){ setSourceFlag_native_cref_Qt_MouseEventSource(QtJambi_LibraryUtilities.internal.nativeId(this), sourceFlag.value()); } @io.qt.QtUninvokable private native void setSourceFlag_native_cref_Qt_MouseEventSource(long __this__nativeId, int sourceFlag); @io.qt.QtUninvokable protected final io.qt.core.Qt.MouseEventSource sourceFlag(){ return io.qt.core.Qt.MouseEventSource.resolve(sourceFlag_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int sourceFlag_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QSinglePointEvent(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); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy