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

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

The newest version!
package io.qt.widgets;


/**
 * 

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 io.qt.QtEnumerator { Mouse(0), Keyboard(1), Other(2); 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 Reason resolve(int value) { switch (value) { case 0: return Mouse; case 1: return Keyboard; case 2: return Other; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

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); } public QGraphicsSceneContextMenuEvent(io.qt.core.QEvent.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

*/ @io.qt.QtUninvokable public final io.qt.core.Qt.KeyboardModifiers modifiers(){ return new io.qt.core.Qt.KeyboardModifiers(modifiers_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int modifiers_native_constfct(long __this__nativeId); /** *

See QGraphicsSceneContextMenuEvent::pos()const

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

See QGraphicsSceneContextMenuEvent::reason()const

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

See QGraphicsSceneContextMenuEvent::scenePos()const

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

See QGraphicsSceneContextMenuEvent::screenPos()const

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

Overloaded function for {@link #setModifiers(io.qt.core.Qt.KeyboardModifiers)}.

*/ @io.qt.QtUninvokable public final void setModifiers(io.qt.core.Qt.KeyboardModifier ... modifiers){ setModifiers(new io.qt.core.Qt.KeyboardModifiers(modifiers)); } @io.qt.QtUninvokable public final void setModifiers(io.qt.core.Qt.KeyboardModifiers modifiers){ setModifiers_native_QFlags_Qt_KeyboardModifier_(QtJambi_LibraryUtilities.internal.nativeId(this), modifiers.value()); } @io.qt.QtUninvokable private native void setModifiers_native_QFlags_Qt_KeyboardModifier_(long __this__nativeId, int modifiers); @io.qt.QtUninvokable public final void setPos(io.qt.core.QPointF pos){ setPos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos)); } @io.qt.QtUninvokable private native void setPos_native_cref_QPointF(long __this__nativeId, long pos); @io.qt.QtUninvokable public final void setReason(io.qt.widgets.QGraphicsSceneContextMenuEvent.Reason reason){ setReason_native_QGraphicsSceneContextMenuEvent_Reason(QtJambi_LibraryUtilities.internal.nativeId(this), reason.value()); } @io.qt.QtUninvokable private native void setReason_native_QGraphicsSceneContextMenuEvent_Reason(long __this__nativeId, int reason); @io.qt.QtUninvokable public final void setScenePos(io.qt.core.QPointF pos){ setScenePos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos)); } @io.qt.QtUninvokable private native void setScenePos_native_cref_QPointF(long __this__nativeId, long pos); @io.qt.QtUninvokable public final void setScreenPos(io.qt.core.QPoint pos){ setScreenPos_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos)); } @io.qt.QtUninvokable private native void setScreenPos_native_cref_QPoint(long __this__nativeId, long pos); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QGraphicsSceneContextMenuEvent(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 - 2024 Weber Informatics LLC | Privacy Policy