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

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

The newest version!
package io.qt.widgets;


/**
 * 

Horizontal menu bar

*

Java wrapper for Qt class QMenuBar

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

See QMenuBar::hovered(QAction*)

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

See QMenuBar::triggered(QAction*)

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

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

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

See QMenuBar::QMenuBar(QWidget*)

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

See QMenuBar::actionAt(QPoint)const

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

See QMenuBar::actionGeometry(QAction*)const

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

See QMenuBar::activeAction()const

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

See QMenuBar::addMenu(QMenu*)

*/ @io.qt.QtUninvokable public final io.qt.gui.QAction addMenu(io.qt.widgets.QMenu menu){ io.qt.gui.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; } @io.qt.QtUninvokable private native io.qt.gui.QAction addMenu_native_QMenu_ptr(long __this__nativeId, long menu); /** *

See QMenuBar::addMenu(QIcon,QString)

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

See QMenuBar::addMenu(QString)

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

See QMenuBar::addSeparator()

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

See QMenuBar::clear()

*/ @io.qt.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); } @io.qt.QtUninvokable private native void clear_native(long __this__nativeId); /** *

Overloaded function for {@link #cornerWidget(io.qt.core.Qt.Corner)} * with corner = io.qt.core.Qt.Corner.TopRightCorner.

*/ @io.qt.QtUninvokable public final io.qt.widgets.QWidget cornerWidget() { return cornerWidget(io.qt.core.Qt.Corner.TopRightCorner); } /** *

See QMenuBar::cornerWidget(Qt::Corner)const

*/ @io.qt.QtUninvokable public final io.qt.widgets.QWidget cornerWidget(io.qt.core.Qt.Corner corner){ return cornerWidget_native_Qt_Corner_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), corner.value()); } @io.qt.QtUninvokable private native io.qt.widgets.QWidget cornerWidget_native_Qt_Corner_constfct(long __this__nativeId, int corner); /** *

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

*/ @io.qt.QtUninvokable public final io.qt.gui.QAction insertMenu(io.qt.gui.QAction before, io.qt.widgets.QMenu menu){ io.qt.gui.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; } @io.qt.QtUninvokable private native io.qt.gui.QAction insertMenu_native_QAction_ptr_QMenu_ptr(long __this__nativeId, long before, long menu); /** *

See QMenuBar::insertSeparator(QAction*)

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

See QMenuBar::isDefaultUp()const

*/ @io.qt.QtPropertyReader(name="defaultUp") @io.qt.QtUninvokable public final boolean isDefaultUp(){ return isDefaultUp_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isDefaultUp_native_constfct(long __this__nativeId); /** *

See QMenuBar::isNativeMenuBar()const

*/ @io.qt.QtPropertyReader(name="nativeMenuBar") @io.qt.QtUninvokable public final boolean isNativeMenuBar(){ return isNativeMenuBar_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isNativeMenuBar_native_constfct(long __this__nativeId); /** *

See QMenuBar::setActiveAction(QAction*)

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

Overloaded function for {@link #setCornerWidget(io.qt.widgets.QWidget, io.qt.core.Qt.Corner)} * with corner = io.qt.core.Qt.Corner.TopRightCorner.

*/ @io.qt.QtUninvokable public final void setCornerWidget(io.qt.widgets.QWidget w) { setCornerWidget(w, io.qt.core.Qt.Corner.TopRightCorner); } /** *

See QMenuBar::setCornerWidget(QWidget*,Qt::Corner)

*/ @io.qt.QtUninvokable public final void setCornerWidget(io.qt.widgets.QWidget w, io.qt.core.Qt.Corner corner){ setCornerWidget_native_QWidget_ptr_Qt_Corner(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w), corner.value()); } @io.qt.QtUninvokable private native void setCornerWidget_native_QWidget_ptr_Qt_Corner(long __this__nativeId, long w, int corner); /** *

See QMenuBar::setDefaultUp(bool)

*/ @io.qt.QtPropertyWriter(name="defaultUp") @io.qt.QtUninvokable public final void setDefaultUp(boolean arg__1){ setDefaultUp_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setDefaultUp_native_bool(long __this__nativeId, boolean arg__1); /** *

See QMenuBar::setNativeMenuBar(bool)

*/ @io.qt.QtPropertyWriter(name="nativeMenuBar") @io.qt.QtUninvokable public final void setNativeMenuBar(boolean nativeMenuBar){ setNativeMenuBar_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), nativeMenuBar); } @io.qt.QtUninvokable private native void setNativeMenuBar_native_bool(long __this__nativeId, boolean nativeMenuBar); /** *

See QWidget::actionEvent(QActionEvent*)

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

See QWidget::changeEvent(QEvent*)

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

See QObject::event(QEvent*)

*/ @io.qt.QtUninvokable public boolean event(io.qt.core.QEvent arg__1){ return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long arg__1); /** *

See QObject::eventFilter(QObject*,QEvent*)

*/ @io.qt.QtUninvokable public boolean eventFilter(io.qt.core.QObject arg__1, io.qt.core.QEvent arg__2){ return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2)); } @io.qt.QtUninvokable private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long arg__1, long arg__2); /** *

See QWidget::focusInEvent(QFocusEvent*)

*/ @io.qt.QtUninvokable protected void focusInEvent(io.qt.gui.QFocusEvent arg__1){ focusInEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void focusInEvent_native_QFocusEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::focusOutEvent(QFocusEvent*)

*/ @io.qt.QtUninvokable protected void focusOutEvent(io.qt.gui.QFocusEvent arg__1){ focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::heightForWidth(int)const

*/ @io.qt.QtUninvokable public int heightForWidth(int arg__1){ return heightForWidth_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native int heightForWidth_native_int_constfct(long __this__nativeId, int arg__1); /** *

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

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

See QWidget::keyPressEvent(QKeyEvent*)

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

See QWidget::leaveEvent(QEvent*)

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

See QWidget::minimumSizeHint()const

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

See QWidget::mouseMoveEvent(QMouseEvent*)

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

See QWidget::mousePressEvent(QMouseEvent*)

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

See QWidget::mouseReleaseEvent(QMouseEvent*)

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

See QWidget::paintEvent(QPaintEvent*)

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

See QWidget::resizeEvent(QResizeEvent*)

*/ @io.qt.QtUninvokable protected void resizeEvent(io.qt.gui.QResizeEvent arg__1){ resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::setVisible(bool)

*/ public void setVisible(boolean visible){ setVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible); } private native void setVisible_native_bool(long __this__nativeId, boolean visible); /** *

See QWidget::sizeHint()const

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

See QObject::timerEvent(QTimerEvent*)

*/ @io.qt.QtUninvokable protected void timerEvent(io.qt.core.QTimerEvent arg__1){ timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long arg__1); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QMenuBar(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QMenuBar(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QMenuBar instance, QDeclarativeConstructor constructor); }