io.qt.gui.QActionEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui;
import io.qt.*;
/**
* Event that is generated when a QAction is added, removed, or changed
* Java wrapper for Qt class QActionEvent
*/
public class QActionEvent extends io.qt.core.QEvent
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QActionEvent:: QActionEvent(QActionEvent)
*/
protected QActionEvent(io.qt.gui.@StrictNonNull QActionEvent 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(QActionEvent instance, io.qt.gui.QActionEvent arg__1);
/**
* See QActionEvent:: QActionEvent(int, QAction*, QAction*)
*/
public QActionEvent(int type, io.qt.gui.@Nullable QAction action, io.qt.gui.@Nullable QAction before){
super((QPrivateConstructor)null);
initialize_native(this, type, action, before);
}
private native static void initialize_native(QActionEvent instance, int type, io.qt.gui.QAction action, io.qt.gui.QAction before);
/**
* See QActionEvent:: action()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QAction action(){
return action_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QAction action_native_constfct(long __this__nativeId);
/**
* See QActionEvent:: before()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QAction before(){
return before_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QAction before_native_constfct(long __this__nativeId);
/**
* See QActionEvent:: operator=(QActionEvent)
*/
@QtUninvokable
protected final void assign(io.qt.gui.@StrictNonNull QActionEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
assign_native_cref_QActionEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QActionEvent(long __this__nativeId, long other);
/**
*
*/
@QtUninvokable
@Override
public io.qt.gui.@Nullable QActionEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QActionEvent clone_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QActionEvent(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QActionEvent(int, io.qt.gui.QAction, io.qt.gui.QAction)}
* with before = null
.
*/
public QActionEvent(int type, io.qt.gui.@Nullable QAction action) {
this(type, action, (io.qt.gui.QAction)null);
}
/**
* @deprecated Use {@link #assign(io.qt.gui.QActionEvent)} instead.
*/
@Deprecated
@QtUninvokable
protected final void set(io.qt.gui.@StrictNonNull QActionEvent other) {
assign(other);
}
}