io.qt.gui.QAction Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Abstraction for user commands that can be added to different user interface components
* Java wrapper for Qt class QAction
* This class was introduced in Qt 6.0.
*/
public class QAction extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcMenu = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAction.class);
/**
* Java wrapper for Qt enum QAction::ActionEvent
*/
@QtUnlistedEnum
public enum ActionEvent implements QtEnumerator {
/**
* Representing QAction:: Trigger
*/
Trigger(0),
/**
* Representing QAction:: Hover
*/
Hover(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private ActionEvent(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 ActionEvent resolve(int value) {
switch (value) {
case 0: return Trigger;
case 1: return Hover;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QAction::MenuRole
*/
public enum MenuRole implements QtEnumerator {
/**
* Representing QAction:: NoRole
*/
NoRole(0),
/**
* Representing QAction:: TextHeuristicRole
*/
TextHeuristicRole(1),
/**
* Representing QAction:: ApplicationSpecificRole
*/
ApplicationSpecificRole(2),
/**
* Representing QAction:: AboutQtRole
*/
AboutQtRole(3),
/**
* Representing QAction:: AboutRole
*/
AboutRole(4),
/**
* Representing QAction:: PreferencesRole
*/
PreferencesRole(5),
/**
* Representing QAction:: QuitRole
*/
QuitRole(6);
static {
QtJambi_LibraryUtilities.initialize();
}
private MenuRole(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 MenuRole resolve(int value) {
switch (value) {
case 0: return NoRole;
case 1: return TextHeuristicRole;
case 2: return ApplicationSpecificRole;
case 3: return AboutQtRole;
case 4: return AboutRole;
case 5: return PreferencesRole;
case 6: return QuitRole;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QAction::Priority
*/
public enum Priority implements QtEnumerator {
/**
* Representing QAction:: LowPriority
*/
LowPriority(0),
/**
* Representing QAction:: NormalPriority
*/
NormalPriority(128),
/**
* Representing QAction:: HighPriority
*/
HighPriority(256);
static {
QtJambi_LibraryUtilities.initialize();
}
private Priority(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 Priority resolve(int value) {
switch (value) {
case 0: return LowPriority;
case 128: return NormalPriority;
case 256: return HighPriority;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
*
*/
@QtPropertyNotify(name="icon")
public final @NonNull Signal0 changed = new Signal0();
/**
* See QAction:: checkableChanged(bool)
*/
@QtPropertyNotify(name="checkable")
public final @NonNull Signal1 checkableChanged = new Signal1<>();
/**
* See QAction:: enabledChanged(bool)
*/
@QtPropertyNotify(name="enabled")
public final @NonNull Signal1 enabledChanged = new Signal1<>();
/**
*
*/
public final @NonNull Signal0 hovered = new Signal0();
/**
*
*/
@QtPropertyNotify(name="checked")
public final @NonNull Signal1 toggled = new Signal1<>();
/**
*
*/
public final @NonNull Signal1Default1 triggered = new Signal1Default1<>(()->false);
/**
*
*/
@QtPropertyNotify(name="visible")
public final @NonNull Signal0 visibleChanged = new Signal0();
/**
* See QAction:: QAction(QIcon, QString, QObject*)
*/
public QAction(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text, io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, icon, text, parent);
}
private native static void initialize_native(QAction instance, io.qt.gui.QIcon icon, java.lang.String text, io.qt.core.QObject parent);
/**
* See QAction:: QAction(QObject*)
*/
public QAction(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QAction instance, io.qt.core.QObject parent);
/**
* See QAction:: QAction(QString, QObject*)
*/
public QAction(java.lang.@NonNull String text, io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, text, parent);
}
private native static void initialize_native(QAction instance, java.lang.String text, io.qt.core.QObject parent);
/**
* See QAction:: actionGroup()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QActionGroup actionGroup(){
return actionGroup_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QActionGroup actionGroup_native_constfct(long __this__nativeId);
/**
* See QAction:: activate(QAction::ActionEvent)
*/
@QtUninvokable
public final void activate(io.qt.gui.QAction.@NonNull ActionEvent event){
activate_native_QAction_ActionEvent(QtJambi_LibraryUtilities.internal.nativeId(this), event.value());
}
@QtUninvokable
private native void activate_native_QAction_ActionEvent(long __this__nativeId, int event);
/**
* See QAction:: associatedGraphicsWidgets<T>()const
*
* @deprecated Use associatedObjects() with qobject_cast() instead
*/
@Deprecated
@QtUninvokable
public final io.qt.core.@NonNull QList associatedGraphicsWidgets(){
return associatedGraphicsWidgets_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@QtUninvokable
private native io.qt.core.@NonNull QList associatedGraphicsWidgets_native_constfct(long __this__nativeId);
/**
* See QAction:: associatedObjects()const
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
public final io.qt.core.@NonNull QList associatedObjects(){
return associatedObjects_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList associatedObjects_native_constfct(long __this__nativeId);
/**
* See QAction:: associatedWidgets<T>()const
*
* @deprecated Use associatedObjects() with qobject_cast() instead
*/
@Deprecated
@QtUninvokable
public final io.qt.core.@NonNull QList associatedWidgets(){
return associatedWidgets_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@QtUninvokable
private native io.qt.core.@NonNull QList associatedWidgets_native_constfct(long __this__nativeId);
/**
* See QAction:: autoRepeat()const
*/
@QtPropertyReader(name="autoRepeat")
@QtUninvokable
public final boolean autoRepeat(){
return autoRepeat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean autoRepeat_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final java.lang.Object data(){
return data_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.Object data_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="font")
@QtUninvokable
public final io.qt.gui.@NonNull QFont font(){
return font_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QFont font_native_constfct(long __this__nativeId);
/**
* See QAction:: hover()
*/
public final void hover(){
hover_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void hover_native(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="icon")
@QtUninvokable
public final io.qt.gui.@NonNull QIcon icon(){
return icon_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QIcon icon_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="iconText")
@QtUninvokable
public final java.lang.@NonNull String iconText(){
return iconText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String iconText_native_constfct(long __this__nativeId);
/**
* See QAction:: isCheckable()const
*/
@QtPropertyReader(name="checkable")
@QtUninvokable
public final boolean isCheckable(){
return isCheckable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isCheckable_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="checked")
@QtUninvokable
public final boolean isChecked(){
return isChecked_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isChecked_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="enabled")
@QtUninvokable
public final boolean isEnabled(){
return isEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isEnabled_native_constfct(long __this__nativeId);
/**
* See QAction:: isIconVisibleInMenu()const
*/
@QtPropertyReader(name="iconVisibleInMenu")
@QtUninvokable
public final boolean isIconVisibleInMenu(){
return isIconVisibleInMenu_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isIconVisibleInMenu_native_constfct(long __this__nativeId);
/**
* See QAction:: isSeparator()const
*/
@QtUninvokable
public final boolean isSeparator(){
return isSeparator_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSeparator_native_constfct(long __this__nativeId);
/**
* See QAction:: isShortcutVisibleInContextMenu()const
*/
@QtPropertyReader(name="shortcutVisibleInContextMenu")
@QtUninvokable
public final boolean isShortcutVisibleInContextMenu(){
return isShortcutVisibleInContextMenu_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isShortcutVisibleInContextMenu_native_constfct(long __this__nativeId);
/**
*
*/
@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);
/**
*
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QMenu menu(){
return menu_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.@Nullable QMenu menu_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="menuRole")
@QtUninvokable
public final io.qt.gui.QAction.@NonNull MenuRole menuRole(){
return io.qt.gui.QAction.MenuRole.resolve(menuRole_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int menuRole_native_constfct(long __this__nativeId);
/**
* See QAction:: parentWidget<T>()const
*
* @deprecated Use parent() with qobject_cast() instead
*/
@Deprecated
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget parentWidget(){
return parentWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@QtUninvokable
private native io.qt.widgets.@Nullable QWidget parentWidget_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="priority")
@QtUninvokable
public final io.qt.gui.QAction.@NonNull Priority priority(){
return io.qt.gui.QAction.Priority.resolve(priority_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int priority_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyResetter(name="enabled")
public final void resetEnabled(){
resetEnabled_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void resetEnabled_native(long __this__nativeId);
/**
* See QAction:: setActionGroup(QActionGroup*)
*/
@QtUninvokable
public final void setActionGroup(io.qt.gui.@Nullable QActionGroup group){
setActionGroup_native_QActionGroup_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(group));
if (__rcActionGroup != null) {
QtJambi_LibraryUtilities.internal.removeFromCollectionReferenceCount(__rcActionGroup, QActionGroup.class, "__rcActions", false, this);
}
__rcActionGroup = group;
if (__rcActionGroup != null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(__rcActionGroup, QActionGroup.class, "__rcActions", false, false, this);
}
}
@QtUninvokable
private native void setActionGroup_native_QActionGroup_ptr(long __this__nativeId, long group);
/**
* See QAction:: setAutoRepeat(bool)
*/
@QtPropertyWriter(name="autoRepeat")
@QtUninvokable
public final void setAutoRepeat(boolean arg__1){
setAutoRepeat_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setAutoRepeat_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAction:: setCheckable(bool)
*/
@QtPropertyWriter(name="checkable")
@QtUninvokable
public final void setCheckable(boolean arg__1){
setCheckable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setCheckable_native_bool(long __this__nativeId, boolean arg__1);
/**
*
*/
@QtPropertyWriter(name="checked")
public final void setChecked(boolean arg__1){
setChecked_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
private native void setChecked_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAction:: setData(QVariant)
*/
@QtUninvokable
public final void setData(java.lang.Object var){
setData_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), var);
}
@QtUninvokable
private native void setData_native_cref_QVariant(long __this__nativeId, java.lang.Object var);
/**
* See QAction:: setDisabled(bool)
*/
public final void setDisabled(boolean b){
setDisabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b);
}
private native void setDisabled_native_bool(long __this__nativeId, boolean b);
/**
*
*/
@QtPropertyWriter(name="enabled")
public final void setEnabled(boolean arg__1){
setEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
private native void setEnabled_native_bool(long __this__nativeId, boolean arg__1);
/**
*
*/
@QtPropertyWriter(name="font")
@QtUninvokable
public final void setFont(io.qt.gui.@NonNull QFont font){
setFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(font));
}
@QtUninvokable
private native void setFont_native_cref_QFont(long __this__nativeId, long font);
/**
*
*/
@QtPropertyWriter(name="icon")
@QtUninvokable
public final void setIcon(io.qt.gui.@NonNull QIcon icon){
setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon));
}
@QtUninvokable
private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon);
/**
* See QAction:: setIconText(QString)
*/
@QtPropertyWriter(name="iconText")
@QtUninvokable
public final void setIconText(java.lang.@NonNull String text){
setIconText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native void setIconText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See QAction:: setIconVisibleInMenu(bool)
*/
@QtPropertyWriter(name="iconVisibleInMenu")
@QtUninvokable
public final void setIconVisibleInMenu(boolean visible){
setIconVisibleInMenu_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible);
}
@QtUninvokable
private native void setIconVisibleInMenu_native_bool(long __this__nativeId, boolean visible);
/**
*
*/
@QtUninvokable
public final void setMenu(io.qt.widgets.@Nullable QMenu m){
setMenu_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), m);
__rcMenu = m;
}
@QtUninvokable
private native void setMenu_native_QObject_ptr(long __this__nativeId, io.qt.widgets.QMenu m);
/**
* See QAction:: setMenuRole(QAction::MenuRole)
*/
@QtPropertyWriter(name="menuRole")
@QtUninvokable
public final void setMenuRole(io.qt.gui.QAction.@NonNull MenuRole menuRole){
setMenuRole_native_QAction_MenuRole(QtJambi_LibraryUtilities.internal.nativeId(this), menuRole.value());
}
@QtUninvokable
private native void setMenuRole_native_QAction_MenuRole(long __this__nativeId, int menuRole);
/**
* See QAction:: setPriority(QAction::Priority)
*/
@QtPropertyWriter(name="priority")
@QtUninvokable
public final void setPriority(io.qt.gui.QAction.@NonNull Priority priority){
setPriority_native_QAction_Priority(QtJambi_LibraryUtilities.internal.nativeId(this), priority.value());
}
@QtUninvokable
private native void setPriority_native_QAction_Priority(long __this__nativeId, int priority);
/**
* See QAction:: setSeparator(bool)
*/
@QtUninvokable
public final void setSeparator(boolean b){
setSeparator_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b);
}
@QtUninvokable
private native void setSeparator_native_bool(long __this__nativeId, boolean b);
/**
* See QAction:: setShortcut(QKeySequence)
*/
@QtPropertyWriter(name="shortcut")
@QtUninvokable
public final void setShortcut(io.qt.gui.@NonNull QKeySequence shortcut){
setShortcut_native_cref_QKeySequence(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(shortcut));
}
@QtUninvokable
private native void setShortcut_native_cref_QKeySequence(long __this__nativeId, long shortcut);
/**
* See QAction:: setShortcutContext(Qt::ShortcutContext)
*/
@QtPropertyWriter(name="shortcutContext")
@QtUninvokable
public final void setShortcutContext(io.qt.core.Qt.@NonNull ShortcutContext context){
setShortcutContext_native_Qt_ShortcutContext(QtJambi_LibraryUtilities.internal.nativeId(this), context.value());
}
@QtUninvokable
private native void setShortcutContext_native_Qt_ShortcutContext(long __this__nativeId, int context);
/**
* See QAction:: setShortcutVisibleInContextMenu(bool)
*/
@QtPropertyWriter(name="shortcutVisibleInContextMenu")
@QtUninvokable
public final void setShortcutVisibleInContextMenu(boolean show){
setShortcutVisibleInContextMenu_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), show);
}
@QtUninvokable
private native void setShortcutVisibleInContextMenu_native_bool(long __this__nativeId, boolean show);
/**
* See QAction:: setShortcuts(QKeySequence::StandardKey)
*/
@QtUninvokable
public final void setShortcuts(io.qt.gui.QKeySequence.@NonNull StandardKey arg__1){
setShortcuts_native_QKeySequence_StandardKey(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native void setShortcuts_native_QKeySequence_StandardKey(long __this__nativeId, int arg__1);
/**
* See QAction:: setShortcuts(QList<QKeySequence>)
*/
@QtUninvokable
public final void setShortcuts(java.util.@NonNull Collection extends io.qt.gui.@NonNull QKeySequence> shortcuts){
setShortcuts_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), shortcuts);
}
@QtUninvokable
private native void setShortcuts_native_cref_QList(long __this__nativeId, java.util.Collection extends io.qt.gui.QKeySequence> shortcuts);
/**
* See QAction:: setStatusTip(QString)
*/
@QtPropertyWriter(name="statusTip")
@QtUninvokable
public final void setStatusTip(java.lang.@NonNull String statusTip){
setStatusTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), statusTip);
}
@QtUninvokable
private native void setStatusTip_native_cref_QString(long __this__nativeId, java.lang.String statusTip);
/**
*
*/
@QtPropertyWriter(name="text")
@QtUninvokable
public final void setText(java.lang.@NonNull String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See QAction:: setToolTip(QString)
*/
@QtPropertyWriter(name="toolTip")
@QtUninvokable
public final void setToolTip(java.lang.@NonNull String tip){
setToolTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), tip);
}
@QtUninvokable
private native void setToolTip_native_cref_QString(long __this__nativeId, java.lang.String tip);
/**
*
*/
@QtPropertyWriter(name="visible")
public final void setVisible(boolean arg__1){
setVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
private native void setVisible_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAction:: setWhatsThis(QString)
*/
@QtPropertyWriter(name="whatsThis")
@QtUninvokable
public final void setWhatsThis(java.lang.@NonNull String what){
setWhatsThis_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), what);
}
@QtUninvokable
private native void setWhatsThis_native_cref_QString(long __this__nativeId, java.lang.String what);
/**
*
*/
@QtPropertyReader(name="shortcut")
@QtUninvokable
public final io.qt.gui.@NonNull QKeySequence shortcut(){
return shortcut_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QKeySequence shortcut_native_constfct(long __this__nativeId);
/**
* See QAction:: shortcutContext()const
*/
@QtPropertyReader(name="shortcutContext")
@QtUninvokable
public final io.qt.core.Qt.@NonNull ShortcutContext shortcutContext(){
return io.qt.core.Qt.ShortcutContext.resolve(shortcutContext_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int shortcutContext_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QList shortcuts(){
return shortcuts_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList shortcuts_native_constfct(long __this__nativeId);
/**
* See QAction:: showStatusText(QObject*)
*/
@QtUninvokable
public final boolean showStatusText(io.qt.core.@Nullable QObject object){
return showStatusText_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object));
}
@QtUninvokable
private native boolean showStatusText_native_QObject_ptr(long __this__nativeId, long object);
/**
*
*/
@QtPropertyReader(name="statusTip")
@QtUninvokable
public final java.lang.@NonNull String statusTip(){
return statusTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String statusTip_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="text")
@QtUninvokable
public final java.lang.@NonNull String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
*
*/
public final void toggle(){
toggle_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void toggle_native(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="toolTip")
@QtUninvokable
public final java.lang.@NonNull String toolTip(){
return toolTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String toolTip_native_constfct(long __this__nativeId);
/**
*
*/
public final void trigger(){
trigger_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void trigger_native(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="whatsThis")
@QtUninvokable
public final java.lang.@NonNull String whatsThis(){
return whatsThis_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String whatsThis_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long arg__1);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QAction(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QAction(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QAction instance, QDeclarativeConstructor constructor);
private QActionGroup __rcActionGroup = null;
/**
* Type-casting overload of QObject::parent()const
*/
@QtUninvokable
public final T parent(Class type) {
io.qt.core.QObject result = parent();
while (result!=null && !type.isInstance(result))
result = result.parent();
return type.cast(result);
}
/**
* Type-casting overload of QAction::associatedObjects()const
*/
@QtUninvokable
public final io.qt.core.QList associatedObjects(Class type) {
io.qt.core.QList result = new io.qt.core.QList<>(type);
for (io.qt.core.QObject object : associatedObjects())
if (type.isInstance(object))
result.add(type.cast(object));
return result;
}
/**
* See operator<<(QDebug, const QAction*)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QAction(io.qt.gui.QIcon, java.lang.String, io.qt.core.QObject)}
* with parent = null
.
*/
public QAction(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text) {
this(icon, text, (io.qt.core.QObject)null);
}
/**
* Overloaded constructor for {@link #QAction(io.qt.gui.QPixmap, java.lang.String, io.qt.core.QObject)}
* with parent = null
.
*/
public QAction(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) {
this(icon, text, (io.qt.core.QObject)null);
}
/**
* Overloaded constructor for {@link #QAction(io.qt.gui.QIcon, java.lang.String, io.qt.core.QObject)}.
*/
public QAction(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text, io.qt.core.@Nullable QObject parent) {
this(new io.qt.gui.QIcon(icon), text, parent);
}
/**
* Overloaded constructor for {@link #QAction(io.qt.core.QObject)}
* with parent = null
.
*/
public QAction() {
this((io.qt.core.QObject)null);
}
/**
* Overloaded constructor for {@link #QAction(java.lang.String, io.qt.core.QObject)}
* with parent = null
.
*/
public QAction(java.lang.@NonNull String text) {
this(text, (io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #autoRepeat()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getAutoRepeat() {
return autoRepeat();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #font()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QFont getFont() {
return font();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #icon()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QIcon getIcon() {
return icon();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #iconText()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getIconText() {
return iconText();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isCheckable()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getCheckable() {
return isCheckable();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isChecked()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getChecked() {
return isChecked();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isEnabled()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getEnabled() {
return isEnabled();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isIconVisibleInMenu()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getIconVisibleInMenu() {
return isIconVisibleInMenu();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isShortcutVisibleInContextMenu()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getShortcutVisibleInContextMenu() {
return isShortcutVisibleInContextMenu();
}
/**
* @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 #menuRole()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.QAction.@NonNull MenuRole getMenuRole() {
return menuRole();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #priority()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.QAction.@NonNull Priority getPriority() {
return priority();
}
/**
* Overloaded function for {@link #setFont(io.qt.gui.QFont)}.
*/
@QtUninvokable
public final void setFont(java.lang.@NonNull String font) {
setFont(new io.qt.gui.QFont(font));
}
/**
* Overloaded function for {@link #setIcon(io.qt.gui.QIcon)}.
*/
@QtUninvokable
public final void setIcon(io.qt.gui.@NonNull QPixmap icon) {
setIcon(new io.qt.gui.QIcon(icon));
}
/**
* Overloaded function for {@link #setShortcut(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
public final void setShortcut(java.lang.@NonNull String shortcut) {
setShortcut(new io.qt.gui.QKeySequence(shortcut));
}
/**
* Overloaded function for {@link #setShortcut(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
public final void setShortcut(int shortcut) {
setShortcut(new io.qt.gui.QKeySequence(shortcut));
}
/**
* Overloaded function for {@link #setShortcut(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
public final void setShortcut(io.qt.gui.@NonNull QKeyCombination shortcut) {
setShortcut(new io.qt.gui.QKeySequence(shortcut));
}
/**
* Overloaded function for {@link #setShortcut(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
public final void setShortcut(io.qt.gui.QKeySequence.@NonNull StandardKey shortcut) {
setShortcut(new io.qt.gui.QKeySequence(shortcut));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #shortcut()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QKeySequence getShortcut() {
return shortcut();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #shortcutContext()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull ShortcutContext getShortcutContext() {
return shortcutContext();
}
/**
* Overloaded function for {@link #showStatusText(io.qt.core.QObject)}
* with object = null
.
*/
@QtUninvokable
public final boolean showStatusText() {
return showStatusText((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #statusTip()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getStatusTip() {
return statusTip();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #text()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getText() {
return text();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #toolTip()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getToolTip() {
return toolTip();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #whatsThis()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getWhatsThis() {
return whatsThis();
}
}