triggered = new Signal1<>();
/**
* See QMenuBar::QMenuBar(QWidget*)
*/
public QMenuBar(io.qt.widgets.@Nullable 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
*/
@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 QMenuBar::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 QMenuBar::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 QMenuBar::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 QMenuBar::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 QMenuBar::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 QMenuBar::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 QMenuBar::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 QMenuBar::cornerWidget(Qt::Corner)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget cornerWidget(io.qt.core.Qt.@NonNull Corner corner){
return cornerWidget_native_Qt_Corner_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), corner.value());
}
@QtUninvokable
private native io.qt.widgets.QWidget cornerWidget_native_Qt_Corner_constfct(long __this__nativeId, int corner);
/**
* See QMenuBar::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 QMenuBar::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 QMenuBar::isDefaultUp()const
*/
@QtPropertyReader(name="defaultUp")
@QtUninvokable
public final boolean isDefaultUp(){
return isDefaultUp_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDefaultUp_native_constfct(long __this__nativeId);
/**
* See QMenuBar::isNativeMenuBar()const
*/
@QtPropertyReader(name="nativeMenuBar")
@QtUninvokable
public final boolean isNativeMenuBar(){
return isNativeMenuBar_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isNativeMenuBar_native_constfct(long __this__nativeId);
/**
* See QMenuBar::setActiveAction(QAction*)
*/
@QtUninvokable
public final void setActiveAction(io.qt.gui.@Nullable QAction action){
setActiveAction_native_QAction_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(action));
}
@QtUninvokable
private native void setActiveAction_native_QAction_ptr(long __this__nativeId, long action);
/**
* See QMenuBar::setCornerWidget(QWidget*,Qt::Corner)
*/
@QtUninvokable
public final void setCornerWidget(io.qt.widgets.@Nullable QWidget w, io.qt.core.Qt.@NonNull Corner corner){
setCornerWidget_native_QWidget_ptr_Qt_Corner(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w), corner.value());
}
@QtUninvokable
private native void setCornerWidget_native_QWidget_ptr_Qt_Corner(long __this__nativeId, long w, int corner);
/**
* See QMenuBar::setDefaultUp(bool)
*/
@QtPropertyWriter(name="defaultUp")
@QtUninvokable
public final void setDefaultUp(boolean arg__1){
setDefaultUp_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setDefaultUp_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QMenuBar::setNativeMenuBar(bool)
*/
@QtPropertyWriter(name="nativeMenuBar")
@QtUninvokable
public final void setNativeMenuBar(boolean nativeMenuBar){
setNativeMenuBar_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), nativeMenuBar);
}
@QtUninvokable
private native void setNativeMenuBar_native_bool(long __this__nativeId, boolean nativeMenuBar);
/**
* 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 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 QObject::eventFilter(QObject*,QEvent*)
*/
@QtUninvokable
@Override
public boolean eventFilter(io.qt.core.@Nullable QObject arg__1, io.qt.core.@Nullable 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));
}
@QtUninvokable
private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long arg__1, long arg__2);
/**
* See QWidget::focusInEvent(QFocusEvent*)
*/
@QtUninvokable
@Override
protected void focusInEvent(io.qt.gui.@Nullable QFocusEvent arg__1){
focusInEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void focusInEvent_native_QFocusEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::focusOutEvent(QFocusEvent*)
*/
@QtUninvokable
@Override
protected void focusOutEvent(io.qt.gui.@Nullable QFocusEvent arg__1){
focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::heightForWidth(int)const
*/
@QtUninvokable
@Override
public int heightForWidth(int arg__1){
return heightForWidth_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native int heightForWidth_native_int_constfct(long __this__nativeId, int arg__1);
/**
* See QMenuBar::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::minimumSizeHint()const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSize minimumSizeHint(){
return minimumSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize minimumSizeHint_native_constfct(long __this__nativeId);
/**
* 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::resizeEvent(QResizeEvent*)
*/
@QtUninvokable
@Override
protected void resizeEvent(io.qt.gui.@Nullable QResizeEvent arg__1){
resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::setVisible(bool)
*/
@Override
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
*/
@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);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMenuBar(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QMenuBar(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QMenuBar instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QMenuBar(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QMenuBar() {
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 #cornerWidget(io.qt.core.Qt.Corner)}
* with corner = io.qt.core.Qt.Corner.TopRightCorner
.
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget cornerWidget() {
return cornerWidget(io.qt.core.Qt.Corner.TopRightCorner);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isDefaultUp()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getDefaultUp() {
return isDefaultUp();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isNativeMenuBar()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getNativeMenuBar() {
return isNativeMenuBar();
}
/**
* Overloaded function for {@link #setCornerWidget(io.qt.widgets.QWidget, io.qt.core.Qt.Corner)}
* with corner = io.qt.core.Qt.Corner.TopRightCorner
.
*/
@QtUninvokable
public final void setCornerWidget(io.qt.widgets.@Nullable QWidget w) {
setCornerWidget(w, io.qt.core.Qt.Corner.TopRightCorner);
}
}