io.qt.widgets.QGraphicsSceneMouseEvent Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Mouse events in the graphics view framework
* Java wrapper for Qt class QGraphicsSceneMouseEvent
*/
public class QGraphicsSceneMouseEvent extends io.qt.widgets.QGraphicsSceneEvent
{
/**
* See QGraphicsSceneMouseEvent:: QGraphicsSceneMouseEvent(QEvent::Type)
*/
public QGraphicsSceneMouseEvent(io.qt.core.QEvent.@NonNull Type type){
super((QPrivateConstructor)null);
initialize_native(this, type);
}
private native static void initialize_native(QGraphicsSceneMouseEvent instance, io.qt.core.QEvent.Type type);
/**
* See QGraphicsSceneMouseEvent:: button()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull MouseButton button(){
return io.qt.core.Qt.MouseButton.resolve(button_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int button_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneMouseEvent:: buttonDownPos(Qt::MouseButton)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF buttonDownPos(io.qt.core.Qt.@NonNull MouseButton button){
return buttonDownPos_native_Qt_MouseButton_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), button.value());
}
@QtUninvokable
private native io.qt.core.QPointF buttonDownPos_native_Qt_MouseButton_constfct(long __this__nativeId, int button);
/**
* See QGraphicsSceneMouseEvent:: buttonDownScenePos(Qt::MouseButton)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF buttonDownScenePos(io.qt.core.Qt.@NonNull MouseButton button){
return buttonDownScenePos_native_Qt_MouseButton_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), button.value());
}
@QtUninvokable
private native io.qt.core.QPointF buttonDownScenePos_native_Qt_MouseButton_constfct(long __this__nativeId, int button);
/**
* See QGraphicsSceneMouseEvent:: buttonDownScreenPos(Qt::MouseButton)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPoint buttonDownScreenPos(io.qt.core.Qt.@NonNull MouseButton button){
return buttonDownScreenPos_native_Qt_MouseButton_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), button.value());
}
@QtUninvokable
private native io.qt.core.QPoint buttonDownScreenPos_native_Qt_MouseButton_constfct(long __this__nativeId, int button);
/**
* See QGraphicsSceneMouseEvent:: buttons()const
*/
@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 QGraphicsSceneMouseEvent:: flags()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull MouseEventFlags flags(){
return new io.qt.core.Qt.MouseEventFlags(flags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int flags_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneMouseEvent:: lastPos()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF lastPos(){
return lastPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF lastPos_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneMouseEvent:: lastScenePos()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF lastScenePos(){
return lastScenePos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF lastScenePos_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneMouseEvent:: lastScreenPos()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPoint lastScreenPos(){
return lastScreenPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint lastScreenPos_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneMouseEvent:: modifiers()const
*/
@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 QGraphicsSceneMouseEvent:: pos()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF pos(){
return pos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF pos_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneMouseEvent:: scenePos()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF scenePos(){
return scenePos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF scenePos_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneMouseEvent:: screenPos()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPoint screenPos(){
return screenPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint screenPos_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneMouseEvent:: setButton(Qt::MouseButton)
*/
@QtUninvokable
public final void setButton(io.qt.core.Qt.@NonNull MouseButton button){
setButton_native_Qt_MouseButton(QtJambi_LibraryUtilities.internal.nativeId(this), button.value());
}
@QtUninvokable
private native void setButton_native_Qt_MouseButton(long __this__nativeId, int button);
/**
* See QGraphicsSceneMouseEvent:: setButtonDownPos(Qt::MouseButton, QPointF)
*/
@QtUninvokable
public final void setButtonDownPos(io.qt.core.Qt.@NonNull MouseButton button, io.qt.core.@NonNull QPointF pos){
setButtonDownPos_native_Qt_MouseButton_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), button.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setButtonDownPos_native_Qt_MouseButton_cref_QPointF(long __this__nativeId, int button, long pos);
/**
* See QGraphicsSceneMouseEvent:: setButtonDownScenePos(Qt::MouseButton, QPointF)
*/
@QtUninvokable
public final void setButtonDownScenePos(io.qt.core.Qt.@NonNull MouseButton button, io.qt.core.@NonNull QPointF pos){
setButtonDownScenePos_native_Qt_MouseButton_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), button.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setButtonDownScenePos_native_Qt_MouseButton_cref_QPointF(long __this__nativeId, int button, long pos);
/**
* See QGraphicsSceneMouseEvent:: setButtonDownScreenPos(Qt::MouseButton, QPoint)
*/
@QtUninvokable
public final void setButtonDownScreenPos(io.qt.core.Qt.@NonNull MouseButton button, io.qt.core.@NonNull QPoint pos){
setButtonDownScreenPos_native_Qt_MouseButton_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), button.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setButtonDownScreenPos_native_Qt_MouseButton_cref_QPoint(long __this__nativeId, int button, long pos);
/**
* See QGraphicsSceneMouseEvent:: setButtons(Qt::MouseButtons)
*/
@QtUninvokable
public final void setButtons(io.qt.core.Qt.@NonNull MouseButtons buttons){
setButtons_native_Qt_MouseButtons(QtJambi_LibraryUtilities.internal.nativeId(this), buttons.value());
}
@QtUninvokable
private native void setButtons_native_Qt_MouseButtons(long __this__nativeId, int buttons);
/**
* See QGraphicsSceneMouseEvent:: setFlags(Qt::MouseEventFlags)
*/
@QtUninvokable
public final void setFlags(io.qt.core.Qt.@NonNull MouseEventFlags arg__1){
setFlags_native_Qt_MouseEventFlags(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native void setFlags_native_Qt_MouseEventFlags(long __this__nativeId, int arg__1);
/**
* See QGraphicsSceneMouseEvent:: setLastPos(QPointF)
*/
@QtUninvokable
public final void setLastPos(io.qt.core.@NonNull QPointF pos){
setLastPos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setLastPos_native_cref_QPointF(long __this__nativeId, long pos);
/**
* See QGraphicsSceneMouseEvent:: setLastScenePos(QPointF)
*/
@QtUninvokable
public final void setLastScenePos(io.qt.core.@NonNull QPointF pos){
setLastScenePos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setLastScenePos_native_cref_QPointF(long __this__nativeId, long pos);
/**
* See QGraphicsSceneMouseEvent:: setLastScreenPos(QPoint)
*/
@QtUninvokable
public final void setLastScreenPos(io.qt.core.@NonNull QPoint pos){
setLastScreenPos_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setLastScreenPos_native_cref_QPoint(long __this__nativeId, long pos);
/**
* See QGraphicsSceneMouseEvent:: setModifiers(Qt::KeyboardModifiers)
*/
@QtUninvokable
public final void setModifiers(io.qt.core.Qt.@NonNull KeyboardModifiers modifiers){
setModifiers_native_Qt_KeyboardModifiers(QtJambi_LibraryUtilities.internal.nativeId(this), modifiers.value());
}
@QtUninvokable
private native void setModifiers_native_Qt_KeyboardModifiers(long __this__nativeId, int modifiers);
/**
* See QGraphicsSceneMouseEvent:: setPos(QPointF)
*/
@QtUninvokable
public final void setPos(io.qt.core.@NonNull QPointF pos){
setPos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setPos_native_cref_QPointF(long __this__nativeId, long pos);
/**
* See QGraphicsSceneMouseEvent:: setScenePos(QPointF)
*/
@QtUninvokable
public final void setScenePos(io.qt.core.@NonNull QPointF pos){
setScenePos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setScenePos_native_cref_QPointF(long __this__nativeId, long pos);
/**
* See QGraphicsSceneMouseEvent:: setScreenPos(QPoint)
*/
@QtUninvokable
public final void setScreenPos(io.qt.core.@NonNull QPoint pos){
setScreenPos_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setScreenPos_native_cref_QPoint(long __this__nativeId, long pos);
/**
* See QGraphicsSceneMouseEvent:: setSource(Qt::MouseEventSource)
*/
@QtUninvokable
public final void setSource(io.qt.core.Qt.@NonNull MouseEventSource source){
setSource_native_Qt_MouseEventSource(QtJambi_LibraryUtilities.internal.nativeId(this), source.value());
}
@QtUninvokable
private native void setSource_native_Qt_MouseEventSource(long __this__nativeId, int source);
/**
* See QGraphicsSceneMouseEvent:: source()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull MouseEventSource source(){
return io.qt.core.Qt.MouseEventSource.resolve(source_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int source_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QGraphicsSceneMouseEvent(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QGraphicsSceneMouseEvent(io.qt.core.QEvent.Type)}
* with type = io.qt.core.QEvent.Type.None
.
*/
public QGraphicsSceneMouseEvent() {
this(io.qt.core.QEvent.Type.None);
}
/**
* Overloaded function for {@link #setButtonDownPos(io.qt.core.Qt.MouseButton, io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setButtonDownPos(io.qt.core.Qt.@NonNull MouseButton button, io.qt.core.@NonNull QPoint pos) {
setButtonDownPos(button, new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #setButtonDownScenePos(io.qt.core.Qt.MouseButton, io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setButtonDownScenePos(io.qt.core.Qt.@NonNull MouseButton button, io.qt.core.@NonNull QPoint pos) {
setButtonDownScenePos(button, new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #setButtons(io.qt.core.Qt.MouseButtons)}.
*/
@QtUninvokable
public final void setButtons(io.qt.core.Qt.@NonNull MouseButton @NonNull... buttons) {
setButtons(new io.qt.core.Qt.MouseButtons(buttons));
}
/**
* Overloaded function for {@link #setFlags(io.qt.core.Qt.MouseEventFlags)}.
*/
@QtUninvokable
public final void setFlags(io.qt.core.Qt.@NonNull MouseEventFlag @NonNull... arg__1) {
setFlags(new io.qt.core.Qt.MouseEventFlags(arg__1));
}
/**
* Overloaded function for {@link #setLastPos(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setLastPos(io.qt.core.@NonNull QPoint pos) {
setLastPos(new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #setLastScenePos(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setLastScenePos(io.qt.core.@NonNull QPoint pos) {
setLastScenePos(new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #setModifiers(io.qt.core.Qt.KeyboardModifiers)}.
*/
@QtUninvokable
public final void setModifiers(io.qt.core.Qt.@NonNull KeyboardModifier @NonNull... modifiers) {
setModifiers(new io.qt.core.Qt.KeyboardModifiers(modifiers));
}
/**
* Overloaded function for {@link #setPos(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setPos(io.qt.core.@NonNull QPoint pos) {
setPos(new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #setScenePos(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setScenePos(io.qt.core.@NonNull QPoint pos) {
setScenePos(new io.qt.core.QPointF(pos));
}
}