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

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

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

import io.qt.*;


/**
 * 

Contains event parameters for widget focus events

*

Java wrapper for Qt class QFocusEvent

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

See QFocusEvent::QFocusEvent(QEvent::Type,Qt::FocusReason)

*/ public QFocusEvent(io.qt.core.QEvent.@NonNull Type type, io.qt.core.Qt.@NonNull FocusReason reason){ super((QPrivateConstructor)null); initialize_native(this, type, reason); } private native static void initialize_native(QFocusEvent instance, io.qt.core.QEvent.Type type, io.qt.core.Qt.FocusReason reason); /** *

See QFocusEvent::QFocusEvent(QFocusEvent)

*/ protected QFocusEvent(io.qt.gui.@StrictNonNull QFocusEvent 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(QFocusEvent instance, io.qt.gui.QFocusEvent arg__1); /** *

See QFocusEvent::gotFocus()const

*/ @QtUninvokable public final boolean gotFocus(){ return gotFocus_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean gotFocus_native_constfct(long __this__nativeId); /** *

See QFocusEvent::lostFocus()const

*/ @QtUninvokable public final boolean lostFocus(){ return lostFocus_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean lostFocus_native_constfct(long __this__nativeId); /** *

See QFocusEvent::operator=(QFocusEvent)

*/ @QtUninvokable protected final void assign(io.qt.gui.@StrictNonNull QFocusEvent other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); assign_native_cref_QFocusEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QFocusEvent(long __this__nativeId, long other); /** *

See QFocusEvent::reason()const

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

See QEvent::clone()const

*/ @QtUninvokable @Override public io.qt.gui.@Nullable QFocusEvent clone(){ return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QFocusEvent clone_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QFocusEvent(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #QFocusEvent(io.qt.core.QEvent.Type, io.qt.core.Qt.FocusReason)} * with reason = io.qt.core.Qt.FocusReason.OtherFocusReason.

*/ public QFocusEvent(io.qt.core.QEvent.@NonNull Type type) { this(type, io.qt.core.Qt.FocusReason.OtherFocusReason); } /** * @deprecated Use {@link #assign(io.qt.gui.QFocusEvent)} instead. */ @Deprecated @QtUninvokable protected final void set(io.qt.gui.@StrictNonNull QFocusEvent other) { assign(other); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy