io.qt.widgets.QStyleOptionToolBox Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Used to describe the parameters needed for drawing a tool box
* Java wrapper for Qt class QStyleOptionToolBox
*/
public class QStyleOptionToolBox extends io.qt.widgets.QStyleOption
implements java.lang.Cloneable
{
/**
* Java wrapper for Qt enum QStyleOptionToolBox::SelectedPosition
*/
public enum SelectedPosition implements QtEnumerator {
/**
* Representing QStyleOptionToolBox:: NotAdjacent
*/
NotAdjacent(0),
/**
* Representing QStyleOptionToolBox:: NextIsSelected
*/
NextIsSelected(1),
/**
* Representing QStyleOptionToolBox:: PreviousIsSelected
*/
PreviousIsSelected(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private SelectedPosition(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 SelectedPosition resolve(int value) {
switch (value) {
case 0: return NotAdjacent;
case 1: return NextIsSelected;
case 2: return PreviousIsSelected;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QStyleOptionToolBox::TabPosition
*/
public enum TabPosition implements QtEnumerator {
/**
* Representing QStyleOptionToolBox:: Beginning
*/
Beginning(0),
/**
* Representing QStyleOptionToolBox:: Middle
*/
Middle(1),
/**
* Representing QStyleOptionToolBox:: End
*/
End(2),
/**
* Representing QStyleOptionToolBox:: OnlyOneTab
*/
OnlyOneTab(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private TabPosition(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 TabPosition resolve(int value) {
switch (value) {
case 0: return Beginning;
case 1: return Middle;
case 2: return End;
case 3: return OnlyOneTab;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QStyleOptionToolBox:: QStyleOptionToolBox()
*/
public QStyleOptionToolBox(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStyleOptionToolBox instance);
/**
* See QStyleOptionToolBox:: QStyleOptionToolBox(QStyleOptionToolBox)
*/
public QStyleOptionToolBox(io.qt.widgets.@NonNull QStyleOptionToolBox other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QStyleOptionToolBox instance, io.qt.widgets.QStyleOptionToolBox other);
/**
* See QStyleOptionToolBox:: operator=(QStyleOptionToolBox)
*/
@QtUninvokable
public final void assign(io.qt.widgets.@NonNull QStyleOptionToolBox arg__1){
assign_native_cref_QStyleOptionToolBox(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void assign_native_cref_QStyleOptionToolBox(long __this__nativeId, long arg__1);
/**
* The icon for the tool box tab
*
*/
@QtUninvokable
public final void setIcon(io.qt.gui.@NonNull QIcon icon){
setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon));
}
@QtUninvokable
private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon);
/**
* The icon for the tool box tab
*
*/
@QtUninvokable
public final io.qt.gui.@NonNull QIcon icon(){
return icon_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QIcon icon_native(long __this__nativeId);
/**
* See QStyleOptionToolBox:: position
*/
@QtUninvokable
public final void setPosition(io.qt.widgets.QStyleOptionToolBox.@NonNull TabPosition position){
setPosition_native_cref_QStyleOptionToolBox_TabPosition(QtJambi_LibraryUtilities.internal.nativeId(this), position.value());
}
@QtUninvokable
private native void setPosition_native_cref_QStyleOptionToolBox_TabPosition(long __this__nativeId, int position);
/**
* See QStyleOptionToolBox:: position
*/
@QtUninvokable
public final io.qt.widgets.QStyleOptionToolBox.@NonNull TabPosition position(){
return io.qt.widgets.QStyleOptionToolBox.TabPosition.resolve(position_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int position_native(long __this__nativeId);
/**
* The position of the selected tab in relation to this tab
* See QStyleOptionToolBox:: selectedPosition
*/
@QtUninvokable
public final void setSelectedPosition(io.qt.widgets.QStyleOptionToolBox.@NonNull SelectedPosition selectedPosition){
setSelectedPosition_native_cref_QStyleOptionToolBox_SelectedPosition(QtJambi_LibraryUtilities.internal.nativeId(this), selectedPosition.value());
}
@QtUninvokable
private native void setSelectedPosition_native_cref_QStyleOptionToolBox_SelectedPosition(long __this__nativeId, int selectedPosition);
/**
* The position of the selected tab in relation to this tab
* See QStyleOptionToolBox:: selectedPosition
*/
@QtUninvokable
public final io.qt.widgets.QStyleOptionToolBox.@NonNull SelectedPosition selectedPosition(){
return io.qt.widgets.QStyleOptionToolBox.SelectedPosition.resolve(selectedPosition_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int selectedPosition_native(long __this__nativeId);
/**
* The text for the tool box tab
*
*/
@QtUninvokable
public final void setText(java.lang.@NonNull String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* The text for the tool box tab
*
*/
@QtUninvokable
public final java.lang.@NonNull String text(){
return text_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String text_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QStyleOptionToolBox(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QStyleOptionToolBox:: QStyleOptionToolBox(QStyleOptionToolBox)
*/
@QtUninvokable
@Override
public QStyleOptionToolBox clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QStyleOptionToolBox clone_native(long __this_nativeId);
/**
* @deprecated Use {@link #assign(io.qt.widgets.QStyleOptionToolBox)} instead.
*/
@Deprecated
@QtUninvokable
public final void set(io.qt.widgets.@NonNull QStyleOptionToolBox arg__1) {
assign(arg__1);
}
/**
* Overloaded function for {@link #setIcon(io.qt.gui.QIcon)}.
*/
@QtUninvokable
public final void setIcon(io.qt.gui.@NonNull QPixmap icon) {
setIcon(new io.qt.gui.QIcon(icon));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #icon()} instead.
*/
@QtUninvokable
public final io.qt.gui.@NonNull QIcon getIcon() {
return icon();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #position()} instead.
*/
@QtUninvokable
public final io.qt.widgets.QStyleOptionToolBox.@NonNull TabPosition getPosition() {
return position();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #selectedPosition()} instead.
*/
@QtUninvokable
public final io.qt.widgets.QStyleOptionToolBox.@NonNull SelectedPosition getSelectedPosition() {
return selectedPosition();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #text()} instead.
*/
@QtUninvokable
public final java.lang.@NonNull String getText() {
return text();
}
}