io.qt.gui.QKeyCombination Maven / Gradle / Ivy
The newest version!
package io.qt.gui;
/**
* Stores a combination of a key with optional modifiers
* Java wrapper for Qt class QKeyCombination
*/
public class QKeyCombination extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* 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.KeyboardModifiers modifiers) {
this(modifiers, io.qt.core.Qt.Key.Key_unknown);
}
/**
* See QKeyCombination::QKeyCombination(Qt::KeyboardModifiers,Qt::Key)
*/
public QKeyCombination(io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.Qt.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);
/**
* 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);
}
/**
* See QKeyCombination::QKeyCombination(Qt::Key)
*/
public QKeyCombination(io.qt.core.Qt.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::key()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.Key key(){
return io.qt.core.Qt.Key.resolve(key_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int key_native_constfct(long __this__nativeId);
/**
* See QKeyCombination::keyboardModifiers()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.KeyboardModifiers keyboardModifiers(){
return new io.qt.core.Qt.KeyboardModifiers(keyboardModifiers_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int keyboardModifiers_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long s);
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.gui.QKeyCombination rhs){
return operator_equal_native_QKeyCombination(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_QKeyCombination(long __this__nativeId, long rhs);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long s);
/**
* See QKeyCombination::toCombined()const
*/
@io.qt.QtUninvokable
public final int toCombined(){
return toCombined_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int toCombined_native_constfct(long __this__nativeId);
/**
* See QKeyCombination::fromCombined(int)
*/
public native static io.qt.gui.QKeyCombination fromCombined(int combined);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QKeyCombination(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QKeyCombination) {
return operator_equal((io.qt.gui.QKeyCombination) other);
}
return false;
}
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@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);
@Override
public QKeyCombination clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QKeyCombination clone_native(long __this_nativeId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy