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

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

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

import io.qt.*;


/**
 * 

Column of tabbed widget items

*

Java wrapper for Qt class QToolBox

*/ public class QToolBox extends io.qt.widgets.QFrame { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QToolBox.class); /** *

See QToolBox::currentChanged(int)

*/ @QtPropertyNotify(name="currentIndex") public final @NonNull Signal1 currentChanged = new Signal1<>(); /** *

See QToolBox::QToolBox(QWidget*,Qt::WindowFlags)

*/ public QToolBox(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowFlags f){ super((QPrivateConstructor)null); initialize_native(this, parent, f); } private native static void initialize_native(QToolBox instance, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags f); /** *

See QToolBox::addItem(QWidget*,QIcon,QString)

*/ @QtUninvokable public final int addItem(io.qt.widgets.@Nullable QWidget widget, io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text){ return addItem_native_QWidget_ptr_cref_QIcon_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget), QtJambi_LibraryUtilities.internal.checkedNativeId(icon), text); } @QtUninvokable private native int addItem_native_QWidget_ptr_cref_QIcon_cref_QString(long __this__nativeId, long widget, long icon, java.lang.String text); /** *

See QToolBox::addItem(QWidget*,QString)

*/ @QtUninvokable public final int addItem(io.qt.widgets.@Nullable QWidget widget, java.lang.@NonNull String text){ return addItem_native_QWidget_ptr_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget), text); } @QtUninvokable private native int addItem_native_QWidget_ptr_cref_QString(long __this__nativeId, long widget, java.lang.String text); /** *

See QToolBox::count()const

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

See QToolBox::currentIndex()const

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

See QToolBox::currentWidget()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QWidget currentWidget(){ return currentWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QWidget currentWidget_native_constfct(long __this__nativeId); /** *

See QToolBox::indexOf(const QWidget*)const

*/ @QtUninvokable public final int indexOf(io.qt.widgets.@Nullable QWidget widget){ return indexOf_native_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); } @QtUninvokable private native int indexOf_native_const_QWidget_ptr_constfct(long __this__nativeId, long widget); /** *

See QToolBox::insertItem(int,QWidget*,QIcon,QString)

*/ @QtUninvokable public final int insertItem(int index, io.qt.widgets.@Nullable QWidget widget, io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text){ return insertItem_native_int_QWidget_ptr_cref_QIcon_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(widget), QtJambi_LibraryUtilities.internal.checkedNativeId(icon), text); } @QtUninvokable private native int insertItem_native_int_QWidget_ptr_cref_QIcon_cref_QString(long __this__nativeId, int index, long widget, long icon, java.lang.String text); /** *

See QToolBox::insertItem(int,QWidget*,QString)

*/ @QtUninvokable public final int insertItem(int index, io.qt.widgets.@Nullable QWidget widget, java.lang.@NonNull String text){ return insertItem_native_int_QWidget_ptr_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(widget), text); } @QtUninvokable private native int insertItem_native_int_QWidget_ptr_cref_QString(long __this__nativeId, int index, long widget, java.lang.String text); /** *

See QToolBox::isItemEnabled(int)const

*/ @QtUninvokable public final boolean isItemEnabled(int index){ return isItemEnabled_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native boolean isItemEnabled_native_int_constfct(long __this__nativeId, int index); /** *

See QToolBox::itemIcon(int)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QIcon itemIcon(int index){ return itemIcon_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native io.qt.gui.QIcon itemIcon_native_int_constfct(long __this__nativeId, int index); /** *

See QToolBox::itemText(int)const

*/ @QtUninvokable public final java.lang.@NonNull String itemText(int index){ return itemText_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native java.lang.String itemText_native_int_constfct(long __this__nativeId, int index); /** *

See QToolBox::itemToolTip(int)const

*/ @QtUninvokable public final java.lang.@NonNull String itemToolTip(int index){ return itemToolTip_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native java.lang.String itemToolTip_native_int_constfct(long __this__nativeId, int index); /** *

See QToolBox::removeItem(int)

*/ @QtUninvokable public final void removeItem(int index){ removeItem_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native void removeItem_native_int(long __this__nativeId, int index); /** *

See QToolBox::setCurrentIndex(int)

*/ @QtPropertyWriter(name="currentIndex") public final void setCurrentIndex(int index){ setCurrentIndex_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index); } private native void setCurrentIndex_native_int(long __this__nativeId, int index); /** *

See QToolBox::setCurrentWidget(QWidget*)

*/ public final void setCurrentWidget(io.qt.widgets.@Nullable QWidget widget){ setCurrentWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); } private native void setCurrentWidget_native_QWidget_ptr(long __this__nativeId, long widget); /** *

See QToolBox::setItemEnabled(int,bool)

*/ @QtUninvokable public final void setItemEnabled(int index, boolean enabled){ setItemEnabled_native_int_bool(QtJambi_LibraryUtilities.internal.nativeId(this), index, enabled); } @QtUninvokable private native void setItemEnabled_native_int_bool(long __this__nativeId, int index, boolean enabled); /** *

See QToolBox::setItemIcon(int,QIcon)

*/ @QtUninvokable public final void setItemIcon(int index, io.qt.gui.@NonNull QIcon icon){ setItemIcon_native_int_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(icon)); } @QtUninvokable private native void setItemIcon_native_int_cref_QIcon(long __this__nativeId, int index, long icon); /** *

See QToolBox::setItemText(int,QString)

*/ @QtUninvokable public final void setItemText(int index, java.lang.@NonNull String text){ setItemText_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), index, text); } @QtUninvokable private native void setItemText_native_int_cref_QString(long __this__nativeId, int index, java.lang.String text); /** *

See QToolBox::setItemToolTip(int,QString)

*/ @QtUninvokable public final void setItemToolTip(int index, java.lang.@NonNull String toolTip){ setItemToolTip_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), index, toolTip); } @QtUninvokable private native void setItemToolTip_native_int_cref_QString(long __this__nativeId, int index, java.lang.String toolTip); /** *

See QToolBox::widget(int)const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QWidget widget(int index){ return widget_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native io.qt.widgets.QWidget widget_native_int_constfct(long __this__nativeId, int index); /** *

See QWidget::changeEvent(QEvent*)

*/ @QtUninvokable @Override protected void changeEvent(io.qt.core.@Nullable QEvent arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); 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 e){ java.util.Objects.requireNonNull(e, "Argument 'e': null not expected."); return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long e); /** *

See QToolBox::itemInserted(int)

*/ @QtUninvokable protected void itemInserted(int index){ itemInserted_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native void itemInserted_native_int(long __this__nativeId, int index); /** *

See QToolBox::itemRemoved(int)

*/ @QtUninvokable protected void itemRemoved(int index){ itemRemoved_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native void itemRemoved_native_int(long __this__nativeId, int index); /** *

See QWidget::showEvent(QShowEvent*)

*/ @QtUninvokable @Override protected void showEvent(io.qt.gui.@Nullable QShowEvent e){ showEvent_native_QShowEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @QtUninvokable private native void showEvent_native_QShowEvent_ptr(long __this__nativeId, long e); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QToolBox(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QToolBox(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QToolBox instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QToolBox(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)} * with f = new io.qt.core.Qt.WindowFlags(0).

*/ public QToolBox(io.qt.widgets.@Nullable QWidget parent) { this(parent, new io.qt.core.Qt.WindowFlags(0)); } /** *

Overloaded constructor for {@link #QToolBox(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}

*

with:

    *
  • parent = null
  • *
  • f = new io.qt.core.Qt.WindowFlags(0)
  • *
*/ public QToolBox() { this((io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0)); } /** *

Overloaded constructor for {@link #QToolBox(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.

*/ public QToolBox(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowType @NonNull... f) { this(parent, new io.qt.core.Qt.WindowFlags(f)); } /** *

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

*/ @QtUninvokable public final int addItem(io.qt.widgets.@Nullable QWidget widget, io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) { return addItem(widget, new io.qt.gui.QIcon(icon), text); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getCount() { return count(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getCurrentIndex() { return currentIndex(); } /** *

Overloaded function for {@link #insertItem(int, io.qt.widgets.QWidget, io.qt.gui.QIcon, java.lang.String)}.

*/ @QtUninvokable public final int insertItem(int index, io.qt.widgets.@Nullable QWidget widget, io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) { return insertItem(index, widget, new io.qt.gui.QIcon(icon), text); } /** *

Overloaded function for {@link #setItemIcon(int, io.qt.gui.QIcon)}.

*/ @QtUninvokable public final void setItemIcon(int index, io.qt.gui.@NonNull QPixmap icon) { setItemIcon(index, new io.qt.gui.QIcon(icon)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy