io.qt.widgets.QTabBar Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Tab bar, e.g. for use in tabbed dialogs
* Java wrapper for Qt class QTabBar
*/
public class QTabBar extends io.qt.widgets.QWidget
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTabBar.class);
/**
* Java wrapper for Qt enum QTabBar::ButtonPosition
*/
@QtUnlistedEnum
public enum ButtonPosition implements QtEnumerator {
/**
* Representing QTabBar:: LeftSide
*/
LeftSide(0),
/**
* Representing QTabBar:: RightSide
*/
RightSide(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private ButtonPosition(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull ButtonPosition resolve(int value) {
switch (value) {
case 0: return LeftSide;
case 1: return RightSide;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QTabBar::SelectionBehavior
*/
@QtUnlistedEnum
public enum SelectionBehavior implements QtEnumerator {
/**
* Representing QTabBar:: SelectLeftTab
*/
SelectLeftTab(0),
/**
* Representing QTabBar:: SelectRightTab
*/
SelectRightTab(1),
/**
* Representing QTabBar:: SelectPreviousTab
*/
SelectPreviousTab(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private SelectionBehavior(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull SelectionBehavior resolve(int value) {
switch (value) {
case 0: return SelectLeftTab;
case 1: return SelectRightTab;
case 2: return SelectPreviousTab;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QTabBar::Shape
*/
public enum Shape implements QtEnumerator {
/**
* Representing QTabBar:: RoundedNorth
*/
RoundedNorth(0),
/**
* Representing QTabBar:: RoundedSouth
*/
RoundedSouth(1),
/**
* Representing QTabBar:: RoundedWest
*/
RoundedWest(2),
/**
* Representing QTabBar:: RoundedEast
*/
RoundedEast(3),
/**
* Representing QTabBar:: TriangularNorth
*/
TriangularNorth(4),
/**
* Representing QTabBar:: TriangularSouth
*/
TriangularSouth(5),
/**
* Representing QTabBar:: TriangularWest
*/
TriangularWest(6),
/**
* Representing QTabBar:: TriangularEast
*/
TriangularEast(7);
static {
QtJambi_LibraryUtilities.initialize();
}
private Shape(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Shape resolve(int value) {
switch (value) {
case 0: return RoundedNorth;
case 1: return RoundedSouth;
case 2: return RoundedWest;
case 3: return RoundedEast;
case 4: return TriangularNorth;
case 5: return TriangularSouth;
case 6: return TriangularWest;
case 7: return TriangularEast;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QTabBar:: currentChanged(int)
*/
@QtPropertyNotify(name="currentIndex")
public final @NonNull Signal1 currentChanged = new Signal1<>();
/**
* See QTabBar:: tabBarClicked(int)
*/
public final @NonNull Signal1 tabBarClicked = new Signal1<>();
/**
* See QTabBar:: tabBarDoubleClicked(int)
*/
public final @NonNull Signal1 tabBarDoubleClicked = new Signal1<>();
/**
* See QTabBar:: tabCloseRequested(int)
*/
public final @NonNull Signal1 tabCloseRequested = new Signal1<>();
/**
* See QTabBar:: tabMoved(int, int)
*/
public final @NonNull Signal2 tabMoved = new Signal2<>();
/**
* See QTabBar:: QTabBar(QWidget*)
*/
public QTabBar(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QTabBar instance, io.qt.widgets.QWidget parent);
/**
* See QTabBar:: accessibleTabName(int)const
*/
@QtUninvokable
public final java.lang.@NonNull String accessibleTabName(int index){
return accessibleTabName_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native java.lang.String accessibleTabName_native_int_constfct(long __this__nativeId, int index);
/**
* See QTabBar:: addTab(QIcon, QString)
*/
@QtUninvokable
public final int addTab(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text){
return addTab_native_cref_QIcon_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon), text);
}
@QtUninvokable
private native int addTab_native_cref_QIcon_cref_QString(long __this__nativeId, long icon, java.lang.String text);
/**
*
*/
@QtUninvokable
public final int addTab(java.lang.@NonNull String text){
return addTab_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native int addTab_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
*
*/
@QtPropertyReader(name="autoHide")
@QtUninvokable
public final boolean autoHide(){
return autoHide_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean autoHide_native_constfct(long __this__nativeId);
/**
* See QTabBar:: changeCurrentOnDrag()const
*/
@QtPropertyReader(name="changeCurrentOnDrag")
@QtUninvokable
public final boolean changeCurrentOnDrag(){
return changeCurrentOnDrag_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean changeCurrentOnDrag_native_constfct(long __this__nativeId);
/**
*
*/
@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 QTabBar:: 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 QTabBar:: documentMode()const
*/
@QtPropertyReader(name="documentMode")
@QtUninvokable
public final boolean documentMode(){
return documentMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean documentMode_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="drawBase")
@QtUninvokable
public final boolean drawBase(){
return drawBase_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean drawBase_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="elideMode")
@QtUninvokable
public final io.qt.core.Qt.@NonNull TextElideMode elideMode(){
return io.qt.core.Qt.TextElideMode.resolve(elideMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int elideMode_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="expanding")
@QtUninvokable
public final boolean expanding(){
return expanding_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean expanding_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="iconSize")
@QtUninvokable
public final io.qt.core.@NonNull QSize iconSize(){
return iconSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize iconSize_native_constfct(long __this__nativeId);
/**
* See QTabBar:: insertTab(int, QIcon, QString)
*/
@QtUninvokable
public final int insertTab(int index, io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text){
return insertTab_native_int_cref_QIcon_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(icon), text);
}
@QtUninvokable
private native int insertTab_native_int_cref_QIcon_cref_QString(long __this__nativeId, int index, long icon, java.lang.String text);
/**
* See QTabBar:: insertTab(int, QString)
*/
@QtUninvokable
public final int insertTab(int index, java.lang.@NonNull String text){
return insertTab_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), index, text);
}
@QtUninvokable
private native int insertTab_native_int_cref_QString(long __this__nativeId, int index, java.lang.String text);
/**
*
*/
@QtPropertyReader(name="movable")
@QtUninvokable
public final boolean isMovable(){
return isMovable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isMovable_native_constfct(long __this__nativeId);
/**
* See QTabBar:: isTabEnabled(int)const
*/
@QtUninvokable
public final boolean isTabEnabled(int index){
return isTabEnabled_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native boolean isTabEnabled_native_int_constfct(long __this__nativeId, int index);
/**
* See QTabBar:: isTabVisible(int)const
*/
@QtUninvokable
public final boolean isTabVisible(int index){
return isTabVisible_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native boolean isTabVisible_native_int_constfct(long __this__nativeId, int index);
/**
*
*/
@QtUninvokable
public final void moveTab(int from, int to){
moveTab_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), from, to);
}
@QtUninvokable
private native void moveTab_native_int_int(long __this__nativeId, int from, int to);
/**
*
*/
@QtUninvokable
public final void removeTab(int index){
removeTab_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native void removeTab_native_int(long __this__nativeId, int index);
/**
* See QTabBar:: selectionBehaviorOnRemove()const
*/
@QtPropertyReader(name="selectionBehaviorOnRemove")
@QtUninvokable
public final io.qt.widgets.QTabBar.@NonNull SelectionBehavior selectionBehaviorOnRemove(){
return io.qt.widgets.QTabBar.SelectionBehavior.resolve(selectionBehaviorOnRemove_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int selectionBehaviorOnRemove_native_constfct(long __this__nativeId);
/**
* See QTabBar:: setAccessibleTabName(int, QString)
*/
@QtUninvokable
public final void setAccessibleTabName(int index, java.lang.@NonNull String name){
setAccessibleTabName_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), index, name);
}
@QtUninvokable
private native void setAccessibleTabName_native_int_cref_QString(long __this__nativeId, int index, java.lang.String name);
/**
* See QTabBar:: setAutoHide(bool)
*/
@QtPropertyWriter(name="autoHide")
@QtUninvokable
public final void setAutoHide(boolean hide){
setAutoHide_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), hide);
}
@QtUninvokable
private native void setAutoHide_native_bool(long __this__nativeId, boolean hide);
/**
* See QTabBar:: setChangeCurrentOnDrag(bool)
*/
@QtPropertyWriter(name="changeCurrentOnDrag")
@QtUninvokable
public final void setChangeCurrentOnDrag(boolean change){
setChangeCurrentOnDrag_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), change);
}
@QtUninvokable
private native void setChangeCurrentOnDrag_native_bool(long __this__nativeId, boolean change);
/**
* See QTabBar:: 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 QTabBar:: setDocumentMode(bool)
*/
@QtPropertyWriter(name="documentMode")
@QtUninvokable
public final void setDocumentMode(boolean set){
setDocumentMode_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), set);
}
@QtUninvokable
private native void setDocumentMode_native_bool(long __this__nativeId, boolean set);
/**
* See QTabBar:: setDrawBase(bool)
*/
@QtPropertyWriter(name="drawBase")
@QtUninvokable
public final void setDrawBase(boolean drawTheBase){
setDrawBase_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), drawTheBase);
}
@QtUninvokable
private native void setDrawBase_native_bool(long __this__nativeId, boolean drawTheBase);
/**
* See QTabBar:: setElideMode(Qt::TextElideMode)
*/
@QtPropertyWriter(name="elideMode")
@QtUninvokable
public final void setElideMode(io.qt.core.Qt.@NonNull TextElideMode mode){
setElideMode_native_Qt_TextElideMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void setElideMode_native_Qt_TextElideMode(long __this__nativeId, int mode);
/**
* See QTabBar:: setExpanding(bool)
*/
@QtPropertyWriter(name="expanding")
@QtUninvokable
public final void setExpanding(boolean enabled){
setExpanding_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@QtUninvokable
private native void setExpanding_native_bool(long __this__nativeId, boolean enabled);
/**
* See QTabBar:: setIconSize(QSize)
*/
@QtPropertyWriter(name="iconSize")
@QtUninvokable
public final void setIconSize(io.qt.core.@NonNull QSize size){
setIconSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
@QtUninvokable
private native void setIconSize_native_cref_QSize(long __this__nativeId, long size);
/**
*
*/
@QtPropertyWriter(name="movable")
@QtUninvokable
public final void setMovable(boolean movable){
setMovable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), movable);
}
@QtUninvokable
private native void setMovable_native_bool(long __this__nativeId, boolean movable);
/**
* See QTabBar:: setSelectionBehaviorOnRemove(QTabBar::SelectionBehavior)
*/
@QtPropertyWriter(name="selectionBehaviorOnRemove")
@QtUninvokable
public final void setSelectionBehaviorOnRemove(io.qt.widgets.QTabBar.@NonNull SelectionBehavior behavior){
setSelectionBehaviorOnRemove_native_QTabBar_SelectionBehavior(QtJambi_LibraryUtilities.internal.nativeId(this), behavior.value());
}
@QtUninvokable
private native void setSelectionBehaviorOnRemove_native_QTabBar_SelectionBehavior(long __this__nativeId, int behavior);
/**
* See QTabBar:: setShape(QTabBar::Shape)
*/
@QtPropertyWriter(name="shape")
@QtUninvokable
public final void setShape(io.qt.widgets.QTabBar.@NonNull Shape shape){
setShape_native_QTabBar_Shape(QtJambi_LibraryUtilities.internal.nativeId(this), shape.value());
}
@QtUninvokable
private native void setShape_native_QTabBar_Shape(long __this__nativeId, int shape);
/**
* See QTabBar:: setTabButton(int, QTabBar::ButtonPosition, QWidget*)
*/
@QtUninvokable
public final void setTabButton(int index, io.qt.widgets.QTabBar.@NonNull ButtonPosition position, io.qt.widgets.@Nullable QWidget widget){
setTabButton_native_int_QTabBar_ButtonPosition_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), index, position.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void setTabButton_native_int_QTabBar_ButtonPosition_QWidget_ptr(long __this__nativeId, int index, int position, long widget);
/**
* See QTabBar:: setTabData(int, QVariant)
*/
@QtUninvokable
public final void setTabData(int index, java.lang.Object data){
setTabData_native_int_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), index, data);
}
@QtUninvokable
private native void setTabData_native_int_cref_QVariant(long __this__nativeId, int index, java.lang.Object data);
/**
* See QTabBar:: setTabEnabled(int, bool)
*/
@QtUninvokable
public final void setTabEnabled(int index, boolean enabled){
setTabEnabled_native_int_bool(QtJambi_LibraryUtilities.internal.nativeId(this), index, enabled);
}
@QtUninvokable
private native void setTabEnabled_native_int_bool(long __this__nativeId, int index, boolean enabled);
/**
* See QTabBar:: setTabIcon(int, QIcon)
*/
@QtUninvokable
public final void setTabIcon(int index, io.qt.gui.@NonNull QIcon icon){
setTabIcon_native_int_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(icon));
}
@QtUninvokable
private native void setTabIcon_native_int_cref_QIcon(long __this__nativeId, int index, long icon);
/**
* See QTabBar:: setTabText(int, QString)
*/
@QtUninvokable
public final void setTabText(int index, java.lang.@NonNull String text){
setTabText_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), index, text);
}
@QtUninvokable
private native void setTabText_native_int_cref_QString(long __this__nativeId, int index, java.lang.String text);
/**
* See QTabBar:: setTabTextColor(int, QColor)
*/
@QtUninvokable
public final void setTabTextColor(int index, io.qt.gui.@NonNull QColor color){
setTabTextColor_native_int_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
@QtUninvokable
private native void setTabTextColor_native_int_cref_QColor(long __this__nativeId, int index, long color);
/**
* See QTabBar:: setTabToolTip(int, QString)
*/
@QtUninvokable
public final void setTabToolTip(int index, java.lang.@NonNull String tip){
setTabToolTip_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), index, tip);
}
@QtUninvokable
private native void setTabToolTip_native_int_cref_QString(long __this__nativeId, int index, java.lang.String tip);
/**
* See QTabBar:: setTabVisible(int, bool)
*/
@QtUninvokable
public final void setTabVisible(int index, boolean visible){
setTabVisible_native_int_bool(QtJambi_LibraryUtilities.internal.nativeId(this), index, visible);
}
@QtUninvokable
private native void setTabVisible_native_int_bool(long __this__nativeId, int index, boolean visible);
/**
* See QTabBar:: setTabWhatsThis(int, QString)
*/
@QtUninvokable
public final void setTabWhatsThis(int index, java.lang.@NonNull String text){
setTabWhatsThis_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), index, text);
}
@QtUninvokable
private native void setTabWhatsThis_native_int_cref_QString(long __this__nativeId, int index, java.lang.String text);
/**
* See QTabBar:: setTabsClosable(bool)
*/
@QtPropertyWriter(name="tabsClosable")
@QtUninvokable
public final void setTabsClosable(boolean closable){
setTabsClosable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), closable);
}
@QtUninvokable
private native void setTabsClosable_native_bool(long __this__nativeId, boolean closable);
/**
* See QTabBar:: setUsesScrollButtons(bool)
*/
@QtPropertyWriter(name="usesScrollButtons")
@QtUninvokable
public final void setUsesScrollButtons(boolean useButtons){
setUsesScrollButtons_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), useButtons);
}
@QtUninvokable
private native void setUsesScrollButtons_native_bool(long __this__nativeId, boolean useButtons);
/**
*
*/
@QtPropertyReader(name="shape")
@QtUninvokable
public final io.qt.widgets.QTabBar.@NonNull Shape shape(){
return io.qt.widgets.QTabBar.Shape.resolve(shape_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int shape_native_constfct(long __this__nativeId);
/**
* See QTabBar:: tabAt(QPoint)const
*/
@QtUninvokable
public final int tabAt(io.qt.core.@NonNull QPoint pos){
return tabAt_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native int tabAt_native_cref_QPoint_constfct(long __this__nativeId, long pos);
/**
* See QTabBar:: tabButton(int, QTabBar::ButtonPosition)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget tabButton(int index, io.qt.widgets.QTabBar.@NonNull ButtonPosition position){
return tabButton_native_int_QTabBar_ButtonPosition_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index, position.value());
}
@QtUninvokable
private native io.qt.widgets.QWidget tabButton_native_int_QTabBar_ButtonPosition_constfct(long __this__nativeId, int index, int position);
/**
* See QTabBar:: tabData(int)const
*/
@QtUninvokable
public final java.lang.Object tabData(int index){
return tabData_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native java.lang.Object tabData_native_int_constfct(long __this__nativeId, int index);
/**
* See QTabBar:: tabIcon(int)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QIcon tabIcon(int index){
return tabIcon_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.gui.QIcon tabIcon_native_int_constfct(long __this__nativeId, int index);
/**
* See QTabBar:: tabRect(int)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QRect tabRect(int index){
return tabRect_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.core.QRect tabRect_native_int_constfct(long __this__nativeId, int index);
/**
* See QTabBar:: tabText(int)const
*/
@QtUninvokable
public final java.lang.@NonNull String tabText(int index){
return tabText_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native java.lang.String tabText_native_int_constfct(long __this__nativeId, int index);
/**
* See QTabBar:: tabTextColor(int)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QColor tabTextColor(int index){
return tabTextColor_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.gui.QColor tabTextColor_native_int_constfct(long __this__nativeId, int index);
/**
* See QTabBar:: tabToolTip(int)const
*/
@QtUninvokable
public final java.lang.@NonNull String tabToolTip(int index){
return tabToolTip_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native java.lang.String tabToolTip_native_int_constfct(long __this__nativeId, int index);
/**
* See QTabBar:: tabWhatsThis(int)const
*/
@QtUninvokable
public final java.lang.@NonNull String tabWhatsThis(int index){
return tabWhatsThis_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native java.lang.String tabWhatsThis_native_int_constfct(long __this__nativeId, int index);
/**
* See QTabBar:: tabsClosable()const
*/
@QtPropertyReader(name="tabsClosable")
@QtUninvokable
public final boolean tabsClosable(){
return tabsClosable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean tabsClosable_native_constfct(long __this__nativeId);
/**
* See QTabBar:: usesScrollButtons()const
*/
@QtPropertyReader(name="usesScrollButtons")
@QtUninvokable
public final boolean usesScrollButtons(){
return usesScrollButtons_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean usesScrollButtons_native_constfct(long __this__nativeId);
/**
* 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);
/**
*
*/
@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:: 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 QTabBar:: initStyleOption(QStyleOptionTab*, int)const
*/
@QtUninvokable
protected void initStyleOption(io.qt.widgets.@Nullable QStyleOptionTab option, int tabIndex){
initStyleOption_native_QStyleOptionTab_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option), tabIndex);
}
@QtUninvokable
private native void initStyleOption_native_QStyleOptionTab_ptr_int_constfct(long __this__nativeId, long option, int tabIndex);
/**
* 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:: 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 QTabBar:: minimumTabSizeHint(int)const
*/
@QtUninvokable
protected io.qt.core.@NonNull QSize minimumTabSizeHint(int index){
return minimumTabSizeHint_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.core.QSize minimumTabSizeHint_native_int_constfct(long __this__nativeId, int index);
/**
* See QWidget:: mouseDoubleClickEvent(QMouseEvent*)
*/
@QtUninvokable
@Override
protected void mouseDoubleClickEvent(io.qt.gui.@Nullable QMouseEvent arg__1){
mouseDoubleClickEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void mouseDoubleClickEvent_native_QMouseEvent_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:: 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:: showEvent(QShowEvent*)
*/
@QtUninvokable
@Override
protected void showEvent(io.qt.gui.@Nullable QShowEvent arg__1){
showEvent_native_QShowEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void showEvent_native_QShowEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@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);
/**
*
*/
@QtUninvokable
protected void tabInserted(int index){
tabInserted_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native void tabInserted_native_int(long __this__nativeId, int index);
/**
* See QTabBar:: tabLayoutChange()
*/
@QtUninvokable
protected void tabLayoutChange(){
tabLayoutChange_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void tabLayoutChange_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
protected void tabRemoved(int index){
tabRemoved_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native void tabRemoved_native_int(long __this__nativeId, int index);
/**
* See QTabBar:: tabSizeHint(int)const
*/
@QtUninvokable
protected io.qt.core.@NonNull QSize tabSizeHint(int index){
return tabSizeHint_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.core.QSize tabSizeHint_native_int_constfct(long __this__nativeId, int index);
/**
* See QObject:: timerEvent(QTimerEvent*)
*/
@QtUninvokable
@Override
protected void timerEvent(io.qt.core.@Nullable QTimerEvent event){
timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long event);
/**
* See QWidget:: wheelEvent(QWheelEvent*)
*/
@QtUninvokable
@Override
protected void wheelEvent(io.qt.gui.@Nullable QWheelEvent event){
wheelEvent_native_QWheelEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void wheelEvent_native_QWheelEvent_ptr(long __this__nativeId, long event);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTabBar(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QTabBar(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QTabBar instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QTabBar(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QTabBar() {
this((io.qt.widgets.QWidget)null);
}
/**
* Overloaded function for {@link #addTab(io.qt.gui.QIcon, java.lang.String)}.
*/
@QtUninvokable
public final int addTab(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) {
return addTab(new io.qt.gui.QIcon(icon), text);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #autoHide()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getAutoHide() {
return autoHide();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #changeCurrentOnDrag()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getChangeCurrentOnDrag() {
return changeCurrentOnDrag();
}
/**
* @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();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #documentMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getDocumentMode() {
return documentMode();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #drawBase()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getDrawBase() {
return drawBase();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #elideMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull TextElideMode getElideMode() {
return elideMode();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #expanding()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getExpanding() {
return expanding();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #iconSize()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QSize getIconSize() {
return iconSize();
}
/**
* Overloaded function for {@link #insertTab(int, io.qt.gui.QIcon, java.lang.String)}.
*/
@QtUninvokable
public final int insertTab(int index, io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) {
return insertTab(index, new io.qt.gui.QIcon(icon), text);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isMovable()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getMovable() {
return isMovable();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #selectionBehaviorOnRemove()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QTabBar.@NonNull SelectionBehavior getSelectionBehaviorOnRemove() {
return selectionBehaviorOnRemove();
}
/**
* Overloaded function for {@link #setTabIcon(int, io.qt.gui.QIcon)}.
*/
@QtUninvokable
public final void setTabIcon(int index, io.qt.gui.@NonNull QPixmap icon) {
setTabIcon(index, new io.qt.gui.QIcon(icon));
}
/**
* Overloaded function for {@link #setTabTextColor(int, io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setTabTextColor(int index, io.qt.core.Qt.@NonNull GlobalColor color) {
setTabTextColor(index, new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setTabTextColor(int, io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setTabTextColor(int index, io.qt.gui.@NonNull QRgba64 color) {
setTabTextColor(index, new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setTabTextColor(int, io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setTabTextColor(int index, java.lang.@NonNull String color) {
setTabTextColor(index, new io.qt.gui.QColor(color));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #shape()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QTabBar.@NonNull Shape getShape() {
return shape();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #tabsClosable()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getTabsClosable() {
return tabsClosable();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #usesScrollButtons()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getUsesScrollButtons() {
return usesScrollButtons();
}
}