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

io.qt.widgets.QMenu Maven / Gradle / Ivy

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

import io.qt.*;


/**
 * 

Menu widget for use in menu bars, context menus, and other popup menus

*

Java wrapper for Qt class QMenu

*/ public class QMenu extends io.qt.widgets.QWidget { @QtPropertyMember(enabled=false) private java.util.Collection __rcMenus; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QMenu.class); /** *

See QMenu::aboutToHide()

*/ public final @NonNull Signal0 aboutToHide = new Signal0(); /** *

See QMenu::aboutToShow()

*/ public final @NonNull Signal0 aboutToShow = new Signal0(); /** *

See QMenu::hovered(QAction*)

*/ public final @NonNull Signal1 hovered = new Signal1<>(); /** *

See QMenu::triggered(QAction*)

*/ public final @NonNull Signal1 triggered = new Signal1<>(); /** *

See QMenu::QMenu(QString,QWidget*)

*/ public QMenu(java.lang.@NonNull String title, io.qt.widgets.@Nullable QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, title, parent); } private native static void initialize_native(QMenu instance, java.lang.String title, io.qt.widgets.QWidget parent); /** *

See QMenu::QMenu(QWidget*)

*/ public QMenu(io.qt.widgets.@Nullable QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QMenu instance, io.qt.widgets.QWidget parent); /** *

See QMenu::actionAt(QPoint)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction actionAt(io.qt.core.@NonNull QPoint arg__1){ return actionAt_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native io.qt.gui.QAction actionAt_native_cref_QPoint_constfct(long __this__nativeId, long arg__1); /** *

See QMenu::actionGeometry(QAction*)const

*/ @QtUninvokable public final io.qt.core.@NonNull QRect actionGeometry(io.qt.gui.@Nullable QAction arg__1){ return actionGeometry_native_QAction_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native io.qt.core.QRect actionGeometry_native_QAction_ptr_constfct(long __this__nativeId, long arg__1); /** *

See QMenu::activeAction()const

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction activeAction(){ return activeAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QAction activeAction_native_constfct(long __this__nativeId); /** *

See QMenu::addMenu(QIcon,QString)

*/ @QtUninvokable public final io.qt.widgets.@Nullable QMenu addMenu(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String title){ return addMenu_native_cref_QIcon_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon), title); } @QtUninvokable private native io.qt.widgets.QMenu addMenu_native_cref_QIcon_cref_QString(long __this__nativeId, long icon, java.lang.String title); /** *

See QMenu::addMenu(QMenu*)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction addMenu(io.qt.widgets.@Nullable QMenu menu){ io.qt.gui.@Nullable QAction __qt_return_value = addMenu_native_QMenu_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(menu)); if (menu != null) { if(__rcMenus==null) __rcMenus = QtJambi_LibraryUtilities.internal.newRCList(); __rcMenus.add(menu); } return __qt_return_value; } @QtUninvokable private native io.qt.gui.QAction addMenu_native_QMenu_ptr(long __this__nativeId, long menu); /** *

See QMenu::addMenu(QString)

*/ @QtUninvokable public final io.qt.widgets.@Nullable QMenu addMenu(java.lang.@NonNull String title){ return addMenu_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), title); } @QtUninvokable private native io.qt.widgets.QMenu addMenu_native_cref_QString(long __this__nativeId, java.lang.String title); /** *

See QMenu::addSection(QIcon,QString)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction addSection(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text){ return addSection_native_cref_QIcon_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon), text); } @QtUninvokable private native io.qt.gui.QAction addSection_native_cref_QIcon_cref_QString(long __this__nativeId, long icon, java.lang.String text); /** *

See QMenu::addSection(QString)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction addSection(java.lang.@NonNull String text){ return addSection_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @QtUninvokable private native io.qt.gui.QAction addSection_native_cref_QString(long __this__nativeId, java.lang.String text); /** *

See QMenu::addSeparator()

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction addSeparator(){ return addSeparator_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QAction addSeparator_native(long __this__nativeId); /** *

See QMenu::clear()

*/ @QtUninvokable public final void clear(){ clear_native(QtJambi_LibraryUtilities.internal.nativeId(this)); if(__rcMenus!=null)__rcMenus.clear(); QtJambi_LibraryUtilities.internal.clearReferenceCount(this, QWidget.class, "__rcActions", false); } @QtUninvokable private native void clear_native(long __this__nativeId); /** *

See QMenu::columnCount()const

*/ @QtUninvokable protected final int columnCount(){ return columnCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int columnCount_native_constfct(long __this__nativeId); /** *

See QMenu::defaultAction()const

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction defaultAction(){ return defaultAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QAction defaultAction_native_constfct(long __this__nativeId); /** *

See QMenu::exec()

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction exec(){ return exec_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QAction exec_native(long __this__nativeId); /** *

See QMenu::exec(QPoint,QAction*)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction exec(io.qt.core.@NonNull QPoint pos, io.qt.gui.@Nullable QAction at){ return exec_native_cref_QPoint_QAction_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos), QtJambi_LibraryUtilities.internal.checkedNativeId(at)); } @QtUninvokable private native io.qt.gui.QAction exec_native_cref_QPoint_QAction_ptr(long __this__nativeId, long pos, long at); /** *

See QMenu::hideTearOffMenu()

*/ @QtUninvokable public final void hideTearOffMenu(){ hideTearOffMenu_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void hideTearOffMenu_native(long __this__nativeId); /** *

See QMenu::icon()const

*/ @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); /** *

See QMenu::insertMenu(QAction*,QMenu*)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction insertMenu(io.qt.gui.@Nullable QAction before, io.qt.widgets.@Nullable QMenu menu){ io.qt.gui.@Nullable QAction __qt_return_value = insertMenu_native_QAction_ptr_QMenu_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(before), QtJambi_LibraryUtilities.internal.checkedNativeId(menu)); if (menu != null) { if(__rcMenus==null) __rcMenus = QtJambi_LibraryUtilities.internal.newRCList(); __rcMenus.add(menu); } return __qt_return_value; } @QtUninvokable private native io.qt.gui.QAction insertMenu_native_QAction_ptr_QMenu_ptr(long __this__nativeId, long before, long menu); /** *

See QMenu::insertSection(QAction*,QIcon,QString)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction insertSection(io.qt.gui.@Nullable QAction before, io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text){ return insertSection_native_QAction_ptr_cref_QIcon_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(before), QtJambi_LibraryUtilities.internal.checkedNativeId(icon), text); } @QtUninvokable private native io.qt.gui.QAction insertSection_native_QAction_ptr_cref_QIcon_cref_QString(long __this__nativeId, long before, long icon, java.lang.String text); /** *

See QMenu::insertSection(QAction*,QString)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction insertSection(io.qt.gui.@Nullable QAction before, java.lang.@NonNull String text){ return insertSection_native_QAction_ptr_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(before), text); } @QtUninvokable private native io.qt.gui.QAction insertSection_native_QAction_ptr_cref_QString(long __this__nativeId, long before, java.lang.String text); /** *

See QMenu::insertSeparator(QAction*)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction insertSeparator(io.qt.gui.@Nullable QAction before){ return insertSeparator_native_QAction_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(before)); } @QtUninvokable private native io.qt.gui.QAction insertSeparator_native_QAction_ptr(long __this__nativeId, long before); /** *

See QMenu::isEmpty()const

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

See QMenu::isTearOffEnabled()const

*/ @QtPropertyReader(name="tearOffEnabled") @QtUninvokable public final boolean isTearOffEnabled(){ return isTearOffEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isTearOffEnabled_native_constfct(long __this__nativeId); /** *

See QMenu::isTearOffMenuVisible()const

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

See QMenu::menuAction()const

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction menuAction(){ return menuAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QAction menuAction_native_constfct(long __this__nativeId); /** *

See QMenu::popup(QPoint,QAction*)

*/ @QtUninvokable public final void popup(io.qt.core.@NonNull QPoint pos, io.qt.gui.@Nullable QAction at){ popup_native_cref_QPoint_QAction_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos), QtJambi_LibraryUtilities.internal.checkedNativeId(at)); } @QtUninvokable private native void popup_native_cref_QPoint_QAction_ptr(long __this__nativeId, long pos, long at); /** *

See QMenu::separatorsCollapsible()const

*/ @QtPropertyReader(name="separatorsCollapsible") @QtUninvokable public final boolean separatorsCollapsible(){ return separatorsCollapsible_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean separatorsCollapsible_native_constfct(long __this__nativeId); /** *

See QMenu::setActiveAction(QAction*)

*/ @QtUninvokable public final void setActiveAction(io.qt.gui.@Nullable QAction act){ setActiveAction_native_QAction_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(act)); } @QtUninvokable private native void setActiveAction_native_QAction_ptr(long __this__nativeId, long act); /** *

See QMenu::setDefaultAction(QAction*)

*/ @QtUninvokable public final void setDefaultAction(io.qt.gui.@Nullable QAction arg__1){ setDefaultAction_native_QAction_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void setDefaultAction_native_QAction_ptr(long __this__nativeId, long arg__1); /** *

See QMenu::setIcon(QIcon)

*/ @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 QMenu::setSeparatorsCollapsible(bool)

*/ @QtPropertyWriter(name="separatorsCollapsible") @QtUninvokable public final void setSeparatorsCollapsible(boolean collapse){ setSeparatorsCollapsible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), collapse); } @QtUninvokable private native void setSeparatorsCollapsible_native_bool(long __this__nativeId, boolean collapse); /** *

See QMenu::setTearOffEnabled(bool)

*/ @QtPropertyWriter(name="tearOffEnabled") @QtUninvokable public final void setTearOffEnabled(boolean arg__1){ setTearOffEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setTearOffEnabled_native_bool(long __this__nativeId, boolean arg__1); /** *

See QMenu::setTitle(QString)

*/ @QtPropertyWriter(name="title") @QtUninvokable public final void setTitle(java.lang.@NonNull String title){ setTitle_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), title); } @QtUninvokable private native void setTitle_native_cref_QString(long __this__nativeId, java.lang.String title); /** *

See QMenu::setToolTipsVisible(bool)

*/ @QtPropertyWriter(name="toolTipsVisible") @QtUninvokable public final void setToolTipsVisible(boolean visible){ setToolTipsVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible); } @QtUninvokable private native void setToolTipsVisible_native_bool(long __this__nativeId, boolean visible); /** *

See QMenu::showTearOffMenu()

*/ @QtUninvokable public final void showTearOffMenu(){ showTearOffMenu_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void showTearOffMenu_native(long __this__nativeId); /** *

See QMenu::showTearOffMenu(QPoint)

*/ @QtUninvokable public final void showTearOffMenu(io.qt.core.@NonNull QPoint pos){ showTearOffMenu_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos)); } @QtUninvokable private native void showTearOffMenu_native_cref_QPoint(long __this__nativeId, long pos); /** *

See QMenu::title()const

*/ @QtPropertyReader(name="title") @QtUninvokable public final java.lang.@NonNull String title(){ return title_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String title_native_constfct(long __this__nativeId); /** *

See QMenu::toolTipsVisible()const

*/ @QtPropertyReader(name="toolTipsVisible") @QtUninvokable public final boolean toolTipsVisible(){ return toolTipsVisible_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean toolTipsVisible_native_constfct(long __this__nativeId); /** *

See QWidget::actionEvent(QActionEvent*)

*/ @QtUninvokable @Override protected void actionEvent(io.qt.gui.@Nullable QActionEvent arg__1){ actionEvent_native_QActionEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void actionEvent_native_QActionEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::changeEvent(QEvent*)

*/ @QtUninvokable @Override protected void changeEvent(io.qt.core.@Nullable QEvent arg__1){ changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::enterEvent(QEnterEvent*)

*/ @QtUninvokable @Override protected void enterEvent(io.qt.gui.@Nullable QEnterEvent arg__1){ enterEvent_native_QEnterEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void enterEvent_native_QEnterEvent_ptr(long __this__nativeId, long arg__1); /** *

See QObject::event(QEvent*)

*/ @QtUninvokable @Override public boolean event(io.qt.core.@Nullable QEvent arg__1){ 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); /** *

See QWidget::focusNextPrevChild(bool)

*/ @QtUninvokable @Override protected boolean focusNextPrevChild(boolean next){ return focusNextPrevChild_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), next); } @QtUninvokable private native boolean focusNextPrevChild_native_bool(long __this__nativeId, boolean next); /** *

See QWidget::hideEvent(QHideEvent*)

*/ @QtUninvokable @Override protected void hideEvent(io.qt.gui.@Nullable QHideEvent arg__1){ hideEvent_native_QHideEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void hideEvent_native_QHideEvent_ptr(long __this__nativeId, long arg__1); /** *

See QMenu::initStyleOption(QStyleOptionMenuItem*,const QAction*)const

*/ @QtUninvokable protected void initStyleOption(io.qt.widgets.@Nullable QStyleOptionMenuItem option, io.qt.gui.@Nullable QAction action){ initStyleOption_native_QStyleOptionMenuItem_ptr_const_QAction_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(action)); } @QtUninvokable private native void initStyleOption_native_QStyleOptionMenuItem_ptr_const_QAction_ptr_constfct(long __this__nativeId, long option, long action); /** *

See QWidget::keyPressEvent(QKeyEvent*)

*/ @QtUninvokable @Override protected void keyPressEvent(io.qt.gui.@Nullable QKeyEvent arg__1){ keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::leaveEvent(QEvent*)

*/ @QtUninvokable @Override protected void leaveEvent(io.qt.core.@Nullable QEvent arg__1){ leaveEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void leaveEvent_native_QEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::mouseMoveEvent(QMouseEvent*)

*/ @QtUninvokable @Override protected void mouseMoveEvent(io.qt.gui.@Nullable QMouseEvent arg__1){ mouseMoveEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void mouseMoveEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::mousePressEvent(QMouseEvent*)

*/ @QtUninvokable @Override protected void mousePressEvent(io.qt.gui.@Nullable QMouseEvent arg__1){ mousePressEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void mousePressEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::mouseReleaseEvent(QMouseEvent*)

*/ @QtUninvokable @Override protected void mouseReleaseEvent(io.qt.gui.@Nullable QMouseEvent arg__1){ mouseReleaseEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void mouseReleaseEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::paintEvent(QPaintEvent*)

*/ @QtUninvokable @Override protected void paintEvent(io.qt.gui.@Nullable QPaintEvent arg__1){ paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::sizeHint()const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QSize sizeHint(){ return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId); /** *

See QObject::timerEvent(QTimerEvent*)

*/ @QtUninvokable @Override protected void timerEvent(io.qt.core.@Nullable QTimerEvent arg__1){ timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::wheelEvent(QWheelEvent*)

*/ @QtUninvokable @Override protected void wheelEvent(io.qt.gui.@Nullable QWheelEvent arg__1){ wheelEvent_native_QWheelEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void wheelEvent_native_QWheelEvent_ptr(long __this__nativeId, long arg__1); /** *

See QMenu::exec(QList<QAction*>,QPoint,QAction*,QWidget*)

*/ public static io.qt.gui.@Nullable QAction exec(java.util.@NonNull Collection actions, io.qt.core.@NonNull QPoint pos, io.qt.gui.@Nullable QAction at, io.qt.widgets.@Nullable QWidget parent){ return exec_native_cref_QList_cref_QPoint_QAction_ptr_QWidget_ptr(actions, QtJambi_LibraryUtilities.internal.checkedNativeId(pos), QtJambi_LibraryUtilities.internal.checkedNativeId(at), QtJambi_LibraryUtilities.internal.checkedNativeId(parent)); } private native static io.qt.gui.QAction exec_native_cref_QList_cref_QPoint_QAction_ptr_QWidget_ptr(java.util.Collection actions, long pos, long at, long parent); /** *

See QMenu::menuInAction(const QAction*)

*/ public static io.qt.widgets.@Nullable QMenu menuInAction(io.qt.gui.@Nullable QAction action){ return menuInAction_native_const_QAction_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(action)); } private native static io.qt.widgets.QMenu menuInAction_native_const_QAction_ptr(long action); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QMenu(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QMenu(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QMenu instance, QDeclarativeConstructor constructor); public native void setAsOSXDockMenu(); /** *

Overloaded constructor for {@link #QMenu(java.lang.String, io.qt.widgets.QWidget)} * with parent = null.

*/ public QMenu(java.lang.@NonNull String title) { this(title, (io.qt.widgets.QWidget)null); } /** *

Overloaded constructor for {@link #QMenu(io.qt.widgets.QWidget)} * with parent = null.

*/ public QMenu() { this((io.qt.widgets.QWidget)null); } /** *

Overloaded function for {@link #addMenu(io.qt.gui.QIcon, java.lang.String)}.

*/ @QtUninvokable public final io.qt.widgets.@Nullable QMenu addMenu(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String title) { return addMenu(new io.qt.gui.QIcon(icon), title); } /** *

Overloaded function for {@link #addSection(io.qt.gui.QIcon, java.lang.String)}.

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction addSection(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) { return addSection(new io.qt.gui.QIcon(icon), text); } /** *

Overloaded function for {@link #exec(io.qt.core.QPoint, io.qt.gui.QAction)} * with at = null.

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction exec(io.qt.core.@NonNull QPoint pos) { return exec(pos, (io.qt.gui.QAction)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #icon()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.gui.@NonNull QIcon getIcon() { return icon(); } /** *

Overloaded function for {@link #insertSection(io.qt.gui.QAction, io.qt.gui.QIcon, java.lang.String)}.

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction insertSection(io.qt.gui.@Nullable QAction before, io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) { return insertSection(before, new io.qt.gui.QIcon(icon), text); } /** * @hidden *

Kotlin property getter. In Java use {@link #isTearOffEnabled()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getTearOffEnabled() { return isTearOffEnabled(); } /** *

Overloaded function for {@link #popup(io.qt.core.QPoint, io.qt.gui.QAction)} * with at = null.

*/ @QtUninvokable public final void popup(io.qt.core.@NonNull QPoint pos) { popup(pos, (io.qt.gui.QAction)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #separatorsCollapsible()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getSeparatorsCollapsible() { return separatorsCollapsible(); } /** *

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)); } /** * @hidden *

Kotlin property getter. In Java use {@link #title()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getTitle() { return title(); } /** * @hidden *

Kotlin property getter. In Java use {@link #toolTipsVisible()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getToolTipsVisible() { return toolTipsVisible(); } /** *

Overloaded function for {@link #exec(java.util.Collection, io.qt.core.QPoint, io.qt.gui.QAction, io.qt.widgets.QWidget)} * with parent = null.

*/ public static io.qt.gui.@Nullable QAction exec(java.util.@NonNull Collection actions, io.qt.core.@NonNull QPoint pos, io.qt.gui.@Nullable QAction at) { return exec(actions, pos, at, (io.qt.widgets.QWidget)null); } /** *

Overloaded function for {@link #exec(java.util.Collection, io.qt.core.QPoint, io.qt.gui.QAction, io.qt.widgets.QWidget)}

*

with:

    *
  • at = null
  • *
  • parent = null
  • *
*/ public static io.qt.gui.@Nullable QAction exec(java.util.@NonNull Collection actions, io.qt.core.@NonNull QPoint pos) { return exec(actions, pos, (io.qt.gui.QAction)null, (io.qt.widgets.QWidget)null); } }