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

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

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


/**
 * 

Parameters for input method events

*

Java wrapper for Qt class QInputMethodEvent

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

Java wrapper for Qt enum QInputMethodEvent::AttributeType

*/ public enum AttributeType implements io.qt.QtEnumerator { TextFormat(0), Cursor(1), Language(2), Ruby(3), Selection(4); private AttributeType(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 AttributeType resolve(int value) { switch (value) { case 0: return TextFormat; case 1: return Cursor; case 2: return Language; case 3: return Ruby; case 4: return Selection; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

QInputMethodEvent::Attribute class stores an input method attribute

*

Java wrapper for Qt class QInputMethodEvent::Attribute

*/ public static class Attribute extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } public Attribute(io.qt.gui.QInputMethodEvent.AttributeType typ, int s, int l){ super((QPrivateConstructor)null); initialize_native(this, typ, s, l); } private native static void initialize_native(Attribute instance, io.qt.gui.QInputMethodEvent.AttributeType typ, int s, int l); /** *

See QInputMethodEvent::Attribute::Attribute(QInputMethodEvent::AttributeType,int,int,QVariant)

*/ public Attribute(io.qt.gui.QInputMethodEvent.AttributeType typ, int s, int l, java.lang.Object val){ super((QPrivateConstructor)null); initialize_native(this, typ, s, l, val); } private native static void initialize_native(Attribute instance, io.qt.gui.QInputMethodEvent.AttributeType typ, int s, int l, java.lang.Object val); @io.qt.QtUninvokable public final void setLength(int length){ setLength_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), length); } @io.qt.QtUninvokable private native void setLength_native_int(long __this__nativeId, int length); @io.qt.QtUninvokable public final int length(){ return length_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int length_native(long __this__nativeId); @io.qt.QtUninvokable public final void setStart(int start){ setStart_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), start); } @io.qt.QtUninvokable private native void setStart_native_int(long __this__nativeId, int start); @io.qt.QtUninvokable public final int start(){ return start_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int start_native(long __this__nativeId); @io.qt.QtUninvokable public final void setType(io.qt.gui.QInputMethodEvent.AttributeType type){ setType_native_cref_QInputMethodEvent_AttributeType(QtJambi_LibraryUtilities.internal.nativeId(this), type.value()); } @io.qt.QtUninvokable private native void setType_native_cref_QInputMethodEvent_AttributeType(long __this__nativeId, int type); @io.qt.QtUninvokable public final io.qt.gui.QInputMethodEvent.AttributeType type(){ return io.qt.gui.QInputMethodEvent.AttributeType.resolve(type_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int type_native(long __this__nativeId); @io.qt.QtUninvokable public final void setValue(java.lang.Object value){ setValue_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), value); } @io.qt.QtUninvokable private native void setValue_native_cref_QVariant(long __this__nativeId, java.lang.Object value); @io.qt.QtUninvokable public final java.lang.Object value(){ return value_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.Object value_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected Attribute(QPrivateConstructor p) { super(p); } @Override public Attribute clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native Attribute clone_native(long __this_nativeId); } /** *

See QInputMethodEvent::QInputMethodEvent()

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

See QInputMethodEvent::QInputMethodEvent(QString,QList<QInputMethodEvent::Attribute>)

*/ public QInputMethodEvent(java.lang.String preeditText, java.util.Collection attributes){ super((QPrivateConstructor)null); initialize_native(this, preeditText, attributes); } private native static void initialize_native(QInputMethodEvent instance, java.lang.String preeditText, java.util.Collection attributes); /** *

See QInputMethodEvent::attributes()const

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

See QInputMethodEvent::commitString()const

*/ @io.qt.QtUninvokable public final java.lang.String commitString(){ return commitString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String commitString_native_constfct(long __this__nativeId); @io.qt.QtUninvokable protected final void set(io.qt.gui.QInputMethodEvent other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); set_native_cref_QInputMethodEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void set_native_cref_QInputMethodEvent(long __this__nativeId, long other); /** *

See QInputMethodEvent::preeditString()const

*/ @io.qt.QtUninvokable public final java.lang.String preeditString(){ return preeditString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String preeditString_native_constfct(long __this__nativeId); /** *

See QInputMethodEvent::replacementLength()const

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

See QInputMethodEvent::replacementStart()const

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

Overloaded function for {@link #setCommitString(java.lang.String, int, int)} * with replaceLength = 0.

*/ @io.qt.QtUninvokable public final void setCommitString(java.lang.String commitString, int replaceFrom) { setCommitString(commitString, replaceFrom, (int)0); } /** *

Overloaded function for {@link #setCommitString(java.lang.String, int, int)}

*

with:

    *
  • replaceFrom = 0
  • *
  • replaceLength = 0
  • *
*/ @io.qt.QtUninvokable public final void setCommitString(java.lang.String commitString) { setCommitString(commitString, (int)0, (int)0); } /** *

See QInputMethodEvent::setCommitString(QString,int,int)

*/ @io.qt.QtUninvokable public final void setCommitString(java.lang.String commitString, int replaceFrom, int replaceLength){ setCommitString_native_cref_QString_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), commitString, replaceFrom, replaceLength); } @io.qt.QtUninvokable private native void setCommitString_native_cref_QString_int_int(long __this__nativeId, java.lang.String commitString, int replaceFrom, int replaceLength); /** *

See QEvent::clone()const

*/ @io.qt.QtUninvokable public io.qt.gui.QInputMethodEvent clone(){ return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QInputMethodEvent clone_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QInputMethodEvent(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 - 2025 Weber Informatics LLC | Privacy Policy