io.qt.gui.QInputMethod Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Access to the active text input method
* Java wrapper for Qt class QInputMethod
*/
public final class QInputMethod extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QInputMethod.class);
/**
* Java wrapper for Qt enum QInputMethod::Action
*/
public enum Action implements QtEnumerator {
/**
* Representing QInputMethod:: Click
*/
Click(0),
/**
* Representing QInputMethod:: ContextMenu
*/
ContextMenu(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private Action(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Action resolve(int value) {
switch (value) {
case 0: return Click;
case 1: return ContextMenu;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QInputMethod:: anchorRectangleChanged()
*/
@QtPropertyNotify(name="anchorRectangle")
public final @NonNull Signal0 anchorRectangleChanged = new Signal0();
/**
* See QInputMethod:: animatingChanged()
*/
@QtPropertyNotify(name="animating")
public final @NonNull Signal0 animatingChanged = new Signal0();
/**
* See QInputMethod:: cursorRectangleChanged()
*/
@QtPropertyNotify(name="cursorRectangle")
public final @NonNull Signal0 cursorRectangleChanged = new Signal0();
/**
* See QInputMethod:: inputDirectionChanged(Qt::LayoutDirection)
*/
@QtPropertyNotify(name="inputDirection")
public final @NonNull Signal1 inputDirectionChanged = new Signal1<>();
/**
* See QInputMethod:: inputItemClipRectangleChanged()
*/
@QtPropertyNotify(name="inputItemClipRectangle")
public final @NonNull Signal0 inputItemClipRectangleChanged = new Signal0();
/**
* See QInputMethod:: keyboardRectangleChanged()
*/
@QtPropertyNotify(name="keyboardRectangle")
public final @NonNull Signal0 keyboardRectangleChanged = new Signal0();
/**
* See QInputMethod:: localeChanged()
*/
@QtPropertyNotify(name="locale")
public final @NonNull Signal0 localeChanged = new Signal0();
/**
* See QInputMethod:: visibleChanged()
*/
@QtPropertyNotify(name="visible")
public final @NonNull Signal0 visibleChanged = new Signal0();
/**
* See QInputMethod:: anchorRectangle()const
*/
@QtPropertyReader(name="anchorRectangle")
@QtUninvokable
public final io.qt.core.@NonNull QRectF anchorRectangle(){
return anchorRectangle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRectF anchorRectangle_native_constfct(long __this__nativeId);
/**
*
*/
public final void commit(){
commit_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void commit_native(long __this__nativeId);
/**
* See QInputMethod:: cursorRectangle()const
*/
@QtPropertyReader(name="cursorRectangle")
@QtUninvokable
public final io.qt.core.@NonNull QRectF cursorRectangle(){
return cursorRectangle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRectF cursorRectangle_native_constfct(long __this__nativeId);
/**
*
*/
public final void hide(){
hide_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void hide_native(long __this__nativeId);
/**
* See QInputMethod:: inputDirection()const
*/
@QtPropertyReader(name="inputDirection")
@QtUninvokable
public final io.qt.core.Qt.@NonNull LayoutDirection inputDirection(){
return io.qt.core.Qt.LayoutDirection.resolve(inputDirection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int inputDirection_native_constfct(long __this__nativeId);
/**
* See QInputMethod:: inputItemClipRectangle()const
*/
@QtPropertyReader(name="inputItemClipRectangle")
@QtUninvokable
public final io.qt.core.@NonNull QRectF inputItemClipRectangle(){
return inputItemClipRectangle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRectF inputItemClipRectangle_native_constfct(long __this__nativeId);
/**
* See QInputMethod:: inputItemRectangle()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QRectF inputItemRectangle(){
return inputItemRectangle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRectF inputItemRectangle_native_constfct(long __this__nativeId);
/**
* See QInputMethod:: inputItemTransform()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTransform inputItemTransform(){
return inputItemTransform_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTransform inputItemTransform_native_constfct(long __this__nativeId);
/**
* See QInputMethod:: invokeAction(QInputMethod::Action, int)
*/
public final void invokeAction(io.qt.gui.QInputMethod.@NonNull Action a, int cursorPosition){
invokeAction_native_QInputMethod_Action_int(QtJambi_LibraryUtilities.internal.nativeId(this), a.value(), cursorPosition);
}
private native void invokeAction_native_QInputMethod_Action_int(long __this__nativeId, int a, int cursorPosition);
/**
* See QInputMethod:: isAnimating()const
*/
@QtPropertyReader(name="animating")
@QtUninvokable
public final boolean isAnimating(){
return isAnimating_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isAnimating_native_constfct(long __this__nativeId);
/**
* See QInputMethod:: isVisible()const
*/
@QtPropertyReader(name="visible")
@QtUninvokable
public final boolean isVisible(){
return isVisible_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isVisible_native_constfct(long __this__nativeId);
/**
* See QInputMethod:: keyboardRectangle()const
*/
@QtPropertyReader(name="keyboardRectangle")
@QtUninvokable
public final io.qt.core.@NonNull QRectF keyboardRectangle(){
return keyboardRectangle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRectF keyboardRectangle_native_constfct(long __this__nativeId);
/**
* See QInputMethod:: locale()const
*/
@QtPropertyReader(name="locale")
@QtUninvokable
public final io.qt.core.@NonNull QLocale locale(){
return locale_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QLocale locale_native_constfct(long __this__nativeId);
/**
*
*/
public final void reset(){
reset_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void reset_native(long __this__nativeId);
/**
* See QInputMethod:: setInputItemRectangle(QRectF)
*/
@QtUninvokable
public final void setInputItemRectangle(io.qt.core.@NonNull QRectF rect){
setInputItemRectangle_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@QtUninvokable
private native void setInputItemRectangle_native_cref_QRectF(long __this__nativeId, long rect);
/**
* See QInputMethod:: setInputItemTransform(QTransform)
*/
@QtUninvokable
public final void setInputItemTransform(io.qt.gui.@NonNull QTransform transform){
setInputItemTransform_native_cref_QTransform(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(transform));
}
@QtUninvokable
private native void setInputItemTransform_native_cref_QTransform(long __this__nativeId, long transform);
/**
* See QInputMethod:: setVisible(bool)
*/
@QtUninvokable
public final void setVisible(boolean visible){
setVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible);
}
@QtUninvokable
private native void setVisible_native_bool(long __this__nativeId, boolean visible);
/**
*
*/
public final void show(){
show_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void show_native(long __this__nativeId);
/**
* See QInputMethod:: update(Qt::InputMethodQueries)
*/
public final void update(io.qt.core.Qt.@NonNull InputMethodQueries queries){
update_native_Qt_InputMethodQueries(QtJambi_LibraryUtilities.internal.nativeId(this), queries.value());
}
private native void update_native_Qt_InputMethodQueries(long __this__nativeId, int queries);
/**
* See QInputMethod:: queryFocusObject(Qt::InputMethodQuery, QVariant)
*/
public static java.lang.Object queryFocusObject(io.qt.core.Qt.@NonNull InputMethodQuery query, java.lang.Object argument){
return queryFocusObject_native_Qt_InputMethodQuery_cref_QVariant(query.value(), argument);
}
private native static java.lang.Object queryFocusObject_native_Qt_InputMethodQuery_cref_QVariant(int query, java.lang.Object argument);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
private QInputMethod(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #anchorRectangle()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QRectF getAnchorRectangle() {
return anchorRectangle();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #cursorRectangle()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QRectF getCursorRectangle() {
return cursorRectangle();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #inputDirection()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull LayoutDirection getInputDirection() {
return inputDirection();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #inputItemClipRectangle()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QRectF getInputItemClipRectangle() {
return inputItemClipRectangle();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isAnimating()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getAnimating() {
return isAnimating();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isVisible()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getVisible() {
return isVisible();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #keyboardRectangle()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QRectF getKeyboardRectangle() {
return keyboardRectangle();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #locale()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QLocale getLocale() {
return locale();
}
/**
* Overloaded function for {@link #setInputItemRectangle(io.qt.core.QRectF)}.
*/
@QtUninvokable
public final void setInputItemRectangle(io.qt.core.@NonNull QRect rect) {
setInputItemRectangle(new io.qt.core.QRectF(rect));
}
/**
* Overloaded function for {@link #update(io.qt.core.Qt.InputMethodQueries)}.
*/
public final void update(io.qt.core.Qt.@NonNull InputMethodQuery @NonNull... queries) {
update(new io.qt.core.Qt.InputMethodQueries(queries));
}
}