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

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

The newest version!
package io.qt.gui;


/**
 * 

Event which is generated when the user presses a key combination

*

Java wrapper for Qt class QShortcutEvent

*/ public class QShortcutEvent extends io.qt.core.QEvent { static { QtJambi_LibraryUtilities.initialize(); } /** *

Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, int, boolean)} * with ambiguous = false.

*/ public QShortcutEvent(io.qt.gui.QKeySequence key, int id) { this(key, id, (boolean)false); } /** *

See QShortcutEvent::QShortcutEvent(QKeySequence,int,bool)

*/ public QShortcutEvent(io.qt.gui.QKeySequence key, int id, boolean ambiguous){ super((QPrivateConstructor)null); initialize_native(this, key, id, ambiguous); } private native static void initialize_native(QShortcutEvent instance, io.qt.gui.QKeySequence key, int id, boolean ambiguous); protected QShortcutEvent(io.qt.gui.QShortcutEvent 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(QShortcutEvent instance, io.qt.gui.QShortcutEvent arg__1); /** *

See QShortcutEvent::isAmbiguous()const

*/ @io.qt.QtUninvokable public final boolean isAmbiguous(){ return isAmbiguous_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isAmbiguous_native_constfct(long __this__nativeId); /** *

See QShortcutEvent::key()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QKeySequence key(){ return key_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QKeySequence key_native_constfct(long __this__nativeId); @io.qt.QtUninvokable protected final void set(io.qt.gui.QShortcutEvent other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); set_native_cref_QShortcutEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void set_native_cref_QShortcutEvent(long __this__nativeId, long other); /** *

See QShortcutEvent::shortcutId()const

*/ @io.qt.QtUninvokable public final int shortcutId(){ return shortcutId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int shortcutId_native_constfct(long __this__nativeId); /** *

See QEvent::clone()const

*/ @io.qt.QtUninvokable public io.qt.gui.QShortcutEvent clone(){ return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QShortcutEvent clone_native_constfct(long __this__nativeId); @io.qt.QtUninvokable protected final void setAmbiguous(boolean ambiguous){ setAmbiguous_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), ambiguous); } @io.qt.QtUninvokable private native void setAmbiguous_native_bool(long __this__nativeId, boolean ambiguous); @io.qt.QtUninvokable protected final void setKey(io.qt.gui.QKeySequence key){ setKey_native_cref_QKeySequence(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @io.qt.QtUninvokable private native void setKey_native_cref_QKeySequence(long __this__nativeId, long key); @io.qt.QtUninvokable protected final void setShortcutId(int shortcutId){ setShortcutId_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), shortcutId); } @io.qt.QtUninvokable private native void setShortcutId_native_int(long __this__nativeId, int shortcutId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QShortcutEvent(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