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

io.qt.widgets.QGraphicsSceneContextMenuEvent Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.widgets;

import io.qt.*;


/**
 * 

Context menu events in the graphics view framework

*

Java wrapper for Qt class QGraphicsSceneContextMenuEvent

*/ public class QGraphicsSceneContextMenuEvent extends io.qt.widgets.QGraphicsSceneEvent { /** *

Java wrapper for Qt enum QGraphicsSceneContextMenuEvent::Reason

*/ public enum Reason implements QtEnumerator { /** *

Representing QGraphicsSceneContextMenuEvent::Mouse

*/ Mouse(0), /** *

Representing QGraphicsSceneContextMenuEvent::Keyboard

*/ Keyboard(1), /** *

Representing QGraphicsSceneContextMenuEvent::Other

*/ Other(2); static { QtJambi_LibraryUtilities.initialize(); } private Reason(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Reason resolve(int value) { switch (value) { case 0: return Mouse; case 1: return Keyboard; case 2: return Other; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QGraphicsSceneContextMenuEvent::QGraphicsSceneContextMenuEvent(QEvent::Type)

*/ public QGraphicsSceneContextMenuEvent(io.qt.core.QEvent.@NonNull Type type){ super((QPrivateConstructor)null); initialize_native(this, type); } private native static void initialize_native(QGraphicsSceneContextMenuEvent instance, io.qt.core.QEvent.Type type); /** *

See QGraphicsSceneContextMenuEvent::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 QGraphicsSceneContextMenuEvent::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 QGraphicsSceneContextMenuEvent::reason()const

*/ @QtUninvokable public final io.qt.widgets.QGraphicsSceneContextMenuEvent.@NonNull Reason reason(){ return io.qt.widgets.QGraphicsSceneContextMenuEvent.Reason.resolve(reason_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int reason_native_constfct(long __this__nativeId); /** *

See QGraphicsSceneContextMenuEvent::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 QGraphicsSceneContextMenuEvent::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 QGraphicsSceneContextMenuEvent::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 QGraphicsSceneContextMenuEvent::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 QGraphicsSceneContextMenuEvent::setReason(QGraphicsSceneContextMenuEvent::Reason)

*/ @QtUninvokable public final void setReason(io.qt.widgets.QGraphicsSceneContextMenuEvent.@NonNull Reason reason){ setReason_native_QGraphicsSceneContextMenuEvent_Reason(QtJambi_LibraryUtilities.internal.nativeId(this), reason.value()); } @QtUninvokable private native void setReason_native_QGraphicsSceneContextMenuEvent_Reason(long __this__nativeId, int reason); /** *

See QGraphicsSceneContextMenuEvent::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 QGraphicsSceneContextMenuEvent::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); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QGraphicsSceneContextMenuEvent(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #QGraphicsSceneContextMenuEvent(io.qt.core.QEvent.Type)} * with type = io.qt.core.QEvent.Type.None.

*/ public QGraphicsSceneContextMenuEvent() { this(io.qt.core.QEvent.Type.None); } /** *

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)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy