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

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

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

import io.qt.*;


/**
 * 

Stores a combination of a key with optional modifiers

*

Java wrapper for Qt class QKeyCombination

*

This class was introduced in Qt 6.0.

*/ public class QKeyCombination extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QKeyCombination::QKeyCombination(QKeyCombination)

*/ public QKeyCombination(io.qt.gui.@NonNull QKeyCombination other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QKeyCombination instance, io.qt.gui.QKeyCombination other); /** *

See QKeyCombination::QKeyCombination(Qt::Key)

*/ public QKeyCombination(io.qt.core.Qt.@NonNull Key key){ super((QPrivateConstructor)null); initialize_native(this, key); } private native static void initialize_native(QKeyCombination instance, io.qt.core.Qt.Key key); /** *

See QKeyCombination::QKeyCombination(Qt::KeyboardModifiers,Qt::Key)

*/ public QKeyCombination(io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull Key key){ super((QPrivateConstructor)null); initialize_native(this, modifiers, key); } private native static void initialize_native(QKeyCombination instance, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.Qt.Key key); /** *

See QKeyCombination::key()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull Key key(){ return io.qt.core.Qt.Key.resolve(key_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int key_native_constfct(long __this__nativeId); /** *

See QKeyCombination::keyboardModifiers()const

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

See operator<<(QDataStream&,QKeyCombination)

*/ @QtUninvokable public void writeTo(io.qt.core.@StrictNonNull QDataStream s){ java.util.Objects.requireNonNull(s, "Argument 's': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s)); } @QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long s); /** *

See operator==(QKeyCombination,QKeyCombination)

*/ @QtUninvokable public final boolean equals(io.qt.gui.@NonNull QKeyCombination rhs){ return equals_native_QKeyCombination(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean equals_native_QKeyCombination(long __this__nativeId, long rhs); /** *

See operator>>(QDataStream&,QKeyCombination&)

*/ @QtUninvokable public void readFrom(io.qt.core.@StrictNonNull QDataStream s){ java.util.Objects.requireNonNull(s, "Argument 's': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s)); } @QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long s); /** *

See QKeyCombination::toCombined()const

*/ @QtUninvokable public final int toCombined(){ return toCombined_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int toCombined_native_constfct(long __this__nativeId); /** *

See QKeyCombination::fromCombined(int)

*/ public native static io.qt.gui.@NonNull QKeyCombination fromCombined(int combined); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QKeyCombination(QPrivateConstructor p) { super(p); } /** *

See operator==(QKeyCombination,QKeyCombination)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other==null || other instanceof io.qt.gui.QKeyCombination) { return equals((io.qt.gui.QKeyCombination) other); } return false; } /** * Returns the objects's hash code computed by qHash(QKeyCombination). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

See operator<<(QDebug,QKeyCombination)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QKeyCombination::QKeyCombination(QKeyCombination)

*/ @QtUninvokable @Override public QKeyCombination clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QKeyCombination clone_native(long __this_nativeId); /** *

Overloaded constructor for {@link #QKeyCombination(io.qt.core.Qt.Key)} * with key = io.qt.core.Qt.Key.Key_unknown.

*/ public QKeyCombination() { this(io.qt.core.Qt.Key.Key_unknown); } /** *

Overloaded constructor for {@link #QKeyCombination(io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.Key)} * with key = io.qt.core.Qt.Key.Key_unknown.

*/ public QKeyCombination(io.qt.core.Qt.@NonNull KeyboardModifiers modifiers) { this(modifiers, io.qt.core.Qt.Key.Key_unknown); } /** *

Overloaded function for {@link #equals(io.qt.gui.QKeyCombination)}.

*/ @QtUninvokable public final boolean equals(io.qt.core.Qt.@NonNull Key rhs) { return equals(new io.qt.gui.QKeyCombination(rhs)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy