io.qt.widgets.QStyleOptionTabBarBase Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Used to describe the base of a tab bar, i.e. the part that the tab bar usually overlaps with
* Java wrapper for Qt class QStyleOptionTabBarBase
*/
public class QStyleOptionTabBarBase extends io.qt.widgets.QStyleOption
implements java.lang.Cloneable
{
/**
* See QStyleOptionTabBarBase:: QStyleOptionTabBarBase()
*/
public QStyleOptionTabBarBase(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStyleOptionTabBarBase instance);
/**
* See QStyleOptionTabBarBase:: QStyleOptionTabBarBase(QStyleOptionTabBarBase)
*/
public QStyleOptionTabBarBase(io.qt.widgets.@NonNull QStyleOptionTabBarBase other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QStyleOptionTabBarBase instance, io.qt.widgets.QStyleOptionTabBarBase other);
/**
* See QStyleOptionTabBarBase:: operator=(QStyleOptionTabBarBase)
*/
@QtUninvokable
public final void assign(io.qt.widgets.@NonNull QStyleOptionTabBarBase arg__1){
assign_native_cref_QStyleOptionTabBarBase(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void assign_native_cref_QStyleOptionTabBarBase(long __this__nativeId, long arg__1);
/**
* Whether the tabbar is in document mode
* See QStyleOptionTabBarBase:: documentMode
*/
@QtUninvokable
public final void setDocumentMode(boolean documentMode){
setDocumentMode_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), documentMode);
}
@QtUninvokable
private native void setDocumentMode_native_bool(long __this__nativeId, boolean documentMode);
/**
* Whether the tabbar is in document mode
* See QStyleOptionTabBarBase:: documentMode
*/
@QtUninvokable
public final boolean documentMode(){
return documentMode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean documentMode_native(long __this__nativeId);
/**
* The rectangle containing the selected tab
* See QStyleOptionTabBarBase:: selectedTabRect
*/
@QtUninvokable
public final void setSelectedTabRect(io.qt.core.@NonNull QRect selectedTabRect){
setSelectedTabRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(selectedTabRect));
}
@QtUninvokable
private native void setSelectedTabRect_native_cref_QRect(long __this__nativeId, long selectedTabRect);
/**
* The rectangle containing the selected tab
* See QStyleOptionTabBarBase:: selectedTabRect
*/
@QtUninvokable
public final io.qt.core.@NonNull QRect selectedTabRect(){
return selectedTabRect_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRect selectedTabRect_native(long __this__nativeId);
/**
* The shape of the tab bar
* See QStyleOptionTabBarBase:: shape
*/
@QtUninvokable
public final void setShape(io.qt.widgets.QTabBar.@NonNull Shape shape){
setShape_native_cref_QTabBar_Shape(QtJambi_LibraryUtilities.internal.nativeId(this), shape.value());
}
@QtUninvokable
private native void setShape_native_cref_QTabBar_Shape(long __this__nativeId, int shape);
/**
* The shape of the tab bar
* See QStyleOptionTabBarBase:: shape
*/
@QtUninvokable
public final io.qt.widgets.QTabBar.@NonNull Shape shape(){
return io.qt.widgets.QTabBar.Shape.resolve(shape_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int shape_native(long __this__nativeId);
/**
* The rectangle containing all the tabs
* See QStyleOptionTabBarBase:: tabBarRect
*/
@QtUninvokable
public final void setTabBarRect(io.qt.core.@NonNull QRect tabBarRect){
setTabBarRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(tabBarRect));
}
@QtUninvokable
private native void setTabBarRect_native_cref_QRect(long __this__nativeId, long tabBarRect);
/**
* The rectangle containing all the tabs
* See QStyleOptionTabBarBase:: tabBarRect
*/
@QtUninvokable
public final io.qt.core.@NonNull QRect tabBarRect(){
return tabBarRect_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRect tabBarRect_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QStyleOptionTabBarBase(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QStyleOptionTabBarBase:: QStyleOptionTabBarBase(QStyleOptionTabBarBase)
*/
@QtUninvokable
@Override
public QStyleOptionTabBarBase clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QStyleOptionTabBarBase clone_native(long __this_nativeId);
/**
* @deprecated Use {@link #assign(io.qt.widgets.QStyleOptionTabBarBase)} instead.
*/
@Deprecated
@QtUninvokable
public final void set(io.qt.widgets.@NonNull QStyleOptionTabBarBase arg__1) {
assign(arg__1);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #documentMode()} instead.
*/
@QtUninvokable
public final boolean getDocumentMode() {
return documentMode();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #selectedTabRect()} instead.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRect getSelectedTabRect() {
return selectedTabRect();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #shape()} instead.
*/
@QtUninvokable
public final io.qt.widgets.QTabBar.@NonNull Shape getShape() {
return shape();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #tabBarRect()} instead.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRect getTabBarRect() {
return tabBarRect();
}
}