io.qt.gui.QShortcutEvent Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* 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();
}
/**
* See QShortcutEvent:: QShortcutEvent(QKeySequence, const QShortcut*, bool)
* This function was introduced in Qt 6.5.
*/
public QShortcutEvent(io.qt.gui.@NonNull QKeySequence key, io.qt.gui.@Nullable QShortcut shortcut, boolean ambiguous){
super((QPrivateConstructor)null);
initialize_native(this, key, shortcut, ambiguous);
}
private native static void initialize_native(QShortcutEvent instance, io.qt.gui.QKeySequence key, io.qt.gui.QShortcut shortcut, boolean ambiguous);
/**
* See QShortcutEvent:: QShortcutEvent(QKeySequence, int, bool)
* This function was introduced in Qt 6.5.
*/
public QShortcutEvent(io.qt.gui.@NonNull 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);
/**
* See QShortcutEvent:: QShortcutEvent(QShortcutEvent)
* This function was introduced in Qt 6.5.
*/
protected QShortcutEvent(io.qt.gui.@StrictNonNull 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
*/
@QtUninvokable
public final boolean isAmbiguous(){
return isAmbiguous_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isAmbiguous_native_constfct(long __this__nativeId);
/**
* See QShortcutEvent:: key()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QKeySequence key(){
return key_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QKeySequence key_native_constfct(long __this__nativeId);
/**
* See QShortcutEvent:: operator=(QShortcutEvent)
*/
@QtUninvokable
protected final void assign(io.qt.gui.@StrictNonNull QShortcutEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
assign_native_cref_QShortcutEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QShortcutEvent(long __this__nativeId, long other);
/**
* See QShortcutEvent:: shortcutId()const
*/
@QtUninvokable
public final int shortcutId(){
return shortcutId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int shortcutId_native_constfct(long __this__nativeId);
/**
*
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
@Override
public io.qt.gui.@Nullable QShortcutEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QShortcutEvent clone_native_constfct(long __this__nativeId);
/**
* See QShortcutEvent:: m_ambiguous
*/
@QtUninvokable
protected final void setAmbiguous(boolean ambiguous){
setAmbiguous_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), ambiguous);
}
@QtUninvokable
private native void setAmbiguous_native_bool(long __this__nativeId, boolean ambiguous);
/**
* See QShortcutEvent:: m_sequence
*/
@QtUninvokable
protected final void setKey(io.qt.gui.@NonNull QKeySequence key){
setKey_native_cref_QKeySequence(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key));
}
@QtUninvokable
private native void setKey_native_cref_QKeySequence(long __this__nativeId, long key);
/**
* See QShortcutEvent:: m_shortcutId
*/
@QtUninvokable
protected final void setShortcutId(int shortcutId){
setShortcutId_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), shortcutId);
}
@QtUninvokable
private native void setShortcutId_native_int(long __this__nativeId, int shortcutId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QShortcutEvent(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, io.qt.gui.QShortcut, boolean)}
* with ambiguous = false
.
*/
public QShortcutEvent(io.qt.gui.@NonNull QKeySequence key, io.qt.gui.@Nullable QShortcut shortcut) {
this(key, shortcut, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, io.qt.gui.QShortcut, boolean)}
* with:
* shortcut = null
* ambiguous = false
*
*/
public QShortcutEvent(io.qt.gui.@NonNull QKeySequence key) {
this(key, (io.qt.gui.QShortcut)null, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(java.lang.String, io.qt.gui.QShortcut, boolean)}
* with ambiguous = false
.
*/
public QShortcutEvent(java.lang.@NonNull String key, io.qt.gui.@Nullable QShortcut shortcut) {
this(key, shortcut, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(java.lang.String, io.qt.gui.QShortcut, boolean)}
* with:
* shortcut = null
* ambiguous = false
*
*/
public QShortcutEvent(java.lang.@NonNull String key) {
this(key, (io.qt.gui.QShortcut)null, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, io.qt.gui.QShortcut, boolean)}.
*/
public QShortcutEvent(java.lang.@NonNull String key, io.qt.gui.@Nullable QShortcut shortcut, boolean ambiguous) {
this(new io.qt.gui.QKeySequence(key), shortcut, ambiguous);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(int, io.qt.gui.QShortcut, boolean)}
* with ambiguous = false
.
*/
public QShortcutEvent(int key, io.qt.gui.@Nullable QShortcut shortcut) {
this(key, shortcut, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(int, io.qt.gui.QShortcut, boolean)}
* with:
* shortcut = null
* ambiguous = false
*
*/
public QShortcutEvent(int key) {
this(key, (io.qt.gui.QShortcut)null, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, io.qt.gui.QShortcut, boolean)}.
*/
public QShortcutEvent(int key, io.qt.gui.@Nullable QShortcut shortcut, boolean ambiguous) {
this(new io.qt.gui.QKeySequence(key), shortcut, ambiguous);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeyCombination, io.qt.gui.QShortcut, boolean)}
* with ambiguous = false
.
*/
public QShortcutEvent(io.qt.gui.@NonNull QKeyCombination key, io.qt.gui.@Nullable QShortcut shortcut) {
this(key, shortcut, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeyCombination, io.qt.gui.QShortcut, boolean)}
* with:
* shortcut = null
* ambiguous = false
*
*/
public QShortcutEvent(io.qt.gui.@NonNull QKeyCombination key) {
this(key, (io.qt.gui.QShortcut)null, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, io.qt.gui.QShortcut, boolean)}.
*/
public QShortcutEvent(io.qt.gui.@NonNull QKeyCombination key, io.qt.gui.@Nullable QShortcut shortcut, boolean ambiguous) {
this(new io.qt.gui.QKeySequence(key), shortcut, ambiguous);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence.StandardKey, io.qt.gui.QShortcut, boolean)}
* with ambiguous = false
.
*/
public QShortcutEvent(io.qt.gui.QKeySequence.@NonNull StandardKey key, io.qt.gui.@Nullable QShortcut shortcut) {
this(key, shortcut, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence.StandardKey, io.qt.gui.QShortcut, boolean)}
* with:
* shortcut = null
* ambiguous = false
*
*/
public QShortcutEvent(io.qt.gui.QKeySequence.@NonNull StandardKey key) {
this(key, (io.qt.gui.QShortcut)null, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, io.qt.gui.QShortcut, boolean)}.
*/
public QShortcutEvent(io.qt.gui.QKeySequence.@NonNull StandardKey key, io.qt.gui.@Nullable QShortcut shortcut, boolean ambiguous) {
this(new io.qt.gui.QKeySequence(key), shortcut, ambiguous);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, int, boolean)}
* with ambiguous = false
.
*/
public QShortcutEvent(io.qt.gui.@NonNull QKeySequence key, int id) {
this(key, id, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(java.lang.String, int, boolean)}
* with ambiguous = false
.
*/
public QShortcutEvent(java.lang.@NonNull String key, int id) {
this(key, id, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, int, boolean)}.
*/
public QShortcutEvent(java.lang.@NonNull String key, int id, boolean ambiguous) {
this(new io.qt.gui.QKeySequence(key), id, ambiguous);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(int, int, boolean)}
* with ambiguous = false
.
*/
public QShortcutEvent(int key, int id) {
this(key, id, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, int, boolean)}.
*/
public QShortcutEvent(int key, int id, boolean ambiguous) {
this(new io.qt.gui.QKeySequence(key), id, ambiguous);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeyCombination, int, boolean)}
* with ambiguous = false
.
*/
public QShortcutEvent(io.qt.gui.@NonNull QKeyCombination key, int id) {
this(key, id, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, int, boolean)}.
*/
public QShortcutEvent(io.qt.gui.@NonNull QKeyCombination key, int id, boolean ambiguous) {
this(new io.qt.gui.QKeySequence(key), id, ambiguous);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence.StandardKey, int, boolean)}
* with ambiguous = false
.
*/
public QShortcutEvent(io.qt.gui.QKeySequence.@NonNull StandardKey key, int id) {
this(key, id, (boolean)false);
}
/**
* Overloaded constructor for {@link #QShortcutEvent(io.qt.gui.QKeySequence, int, boolean)}.
*/
public QShortcutEvent(io.qt.gui.QKeySequence.@NonNull StandardKey key, int id, boolean ambiguous) {
this(new io.qt.gui.QKeySequence(key), id, ambiguous);
}
/**
* @deprecated Use {@link #assign(io.qt.gui.QShortcutEvent)} instead.
*/
@Deprecated
@QtUninvokable
protected final void set(io.qt.gui.@StrictNonNull QShortcutEvent other) {
assign(other);
}
/**
* Overloaded function for {@link #setKey(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
protected final void setKey(java.lang.@NonNull String key) {
setKey(new io.qt.gui.QKeySequence(key));
}
/**
* Overloaded function for {@link #setKey(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
protected final void setKey(int key) {
setKey(new io.qt.gui.QKeySequence(key));
}
/**
* Overloaded function for {@link #setKey(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
protected final void setKey(io.qt.gui.@NonNull QKeyCombination key) {
setKey(new io.qt.gui.QKeySequence(key));
}
/**
* Overloaded function for {@link #setKey(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
protected final void setKey(io.qt.gui.QKeySequence.@NonNull StandardKey key) {
setKey(new io.qt.gui.QKeySequence(key));
}
}