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

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

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

import io.qt.*;


/**
 * 

Used to describe the parameters for drawing a header

*

Java wrapper for Qt class QStyleOptionHeader

*/ public class QStyleOptionHeader extends io.qt.widgets.QStyleOption implements java.lang.Cloneable { /** *

Java wrapper for Qt enum QStyleOptionHeader::SectionPosition

*/ public enum SectionPosition implements QtEnumerator { /** *

Representing QStyleOptionHeader::Beginning

*/ Beginning(0), /** *

Representing QStyleOptionHeader::Middle

*/ Middle(1), /** *

Representing QStyleOptionHeader::End

*/ End(2), /** *

Representing QStyleOptionHeader::OnlyOneSection

*/ OnlyOneSection(3); static { QtJambi_LibraryUtilities.initialize(); } private SectionPosition(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull SectionPosition resolve(int value) { switch (value) { case 0: return Beginning; case 1: return Middle; case 2: return End; case 3: return OnlyOneSection; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QStyleOptionHeader::SelectedPosition

*/ public enum SelectedPosition implements QtEnumerator { /** *

Representing QStyleOptionHeader::NotAdjacent

*/ NotAdjacent(0), /** *

Representing QStyleOptionHeader::NextIsSelected

*/ NextIsSelected(1), /** *

Representing QStyleOptionHeader::PreviousIsSelected

*/ PreviousIsSelected(2), /** *

Representing QStyleOptionHeader::NextAndPreviousAreSelected

*/ NextAndPreviousAreSelected(3); static { QtJambi_LibraryUtilities.initialize(); } private SelectedPosition(int value) { this.value = value; } /** * {@inheritDoc} */ @Override 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; case 3: return NextAndPreviousAreSelected; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QStyleOptionHeader::SortIndicator

*/ public enum SortIndicator implements QtEnumerator { /** *

Representing QStyleOptionHeader::None

*/ None(0), /** *

Representing QStyleOptionHeader::SortUp

*/ SortUp(1), /** *

Representing QStyleOptionHeader::SortDown

*/ SortDown(2); static { QtJambi_LibraryUtilities.initialize(); } private SortIndicator(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull SortIndicator resolve(int value) { switch (value) { case 0: return None; case 1: return SortUp; case 2: return SortDown; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QStyleOptionHeader::QStyleOptionHeader()

*/ public QStyleOptionHeader(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QStyleOptionHeader instance); /** *

See QStyleOptionHeader::QStyleOptionHeader(QStyleOptionHeader)

*/ public QStyleOptionHeader(io.qt.widgets.@NonNull QStyleOptionHeader other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QStyleOptionHeader instance, io.qt.widgets.QStyleOptionHeader other); /** *

See QStyleOptionHeader::operator=(QStyleOptionHeader)

*/ @QtUninvokable public final void assign(io.qt.widgets.@NonNull QStyleOptionHeader arg__1){ assign_native_cref_QStyleOptionHeader(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void assign_native_cref_QStyleOptionHeader(long __this__nativeId, long arg__1); /** *

The icon of the header

*

See QStyleOptionHeader::icon

*/ @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 of the header

*

See QStyleOptionHeader::icon

*/ @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); /** *

The alignment flags for the icon of the header

*

See QStyleOptionHeader::iconAlignment

*/ @QtUninvokable public final void setIconAlignment(io.qt.core.Qt.@NonNull Alignment iconAlignment){ setIconAlignment_native_cref_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), iconAlignment.value()); } @QtUninvokable private native void setIconAlignment_native_cref_Qt_Alignment(long __this__nativeId, int iconAlignment); /** *

The alignment flags for the icon of the header

*

See QStyleOptionHeader::iconAlignment

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull Alignment iconAlignment(){ return new io.qt.core.Qt.Alignment(iconAlignment_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int iconAlignment_native(long __this__nativeId); /** *

The header's orientation (horizontal or vertical)

*

See QStyleOptionHeader::orientation

*/ @QtUninvokable public final void setOrientation(io.qt.core.Qt.@NonNull Orientation orientation){ setOrientation_native_cref_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), orientation.value()); } @QtUninvokable private native void setOrientation_native_cref_Qt_Orientation(long __this__nativeId, int orientation); /** *

The header's orientation (horizontal or vertical)

*

See QStyleOptionHeader::orientation

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull Orientation orientation(){ return io.qt.core.Qt.Orientation.resolve(orientation_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int orientation_native(long __this__nativeId); /** *

The section's position in relation to the other sections

*

See QStyleOptionHeader::position

*/ @QtUninvokable public final void setPosition(io.qt.widgets.QStyleOptionHeader.@NonNull SectionPosition position){ setPosition_native_cref_QStyleOptionHeader_SectionPosition(QtJambi_LibraryUtilities.internal.nativeId(this), position.value()); } @QtUninvokable private native void setPosition_native_cref_QStyleOptionHeader_SectionPosition(long __this__nativeId, int position); /** *

The section's position in relation to the other sections

*

See QStyleOptionHeader::position

*/ @QtUninvokable public final io.qt.widgets.QStyleOptionHeader.@NonNull SectionPosition position(){ return io.qt.widgets.QStyleOptionHeader.SectionPosition.resolve(position_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int position_native(long __this__nativeId); /** *

Which section of the header is being painted

*

See QStyleOptionHeader::section

*/ @QtUninvokable public final void setSection(int section){ setSection_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), section); } @QtUninvokable private native void setSection_native_int(long __this__nativeId, int section); /** *

Which section of the header is being painted

*

See QStyleOptionHeader::section

*/ @QtUninvokable public final int section(){ return section_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int section_native(long __this__nativeId); /** *

The section's position in relation to the selected section

*

See QStyleOptionHeader::selectedPosition

*/ @QtUninvokable public final void setSelectedPosition(io.qt.widgets.QStyleOptionHeader.@NonNull SelectedPosition selectedPosition){ setSelectedPosition_native_cref_QStyleOptionHeader_SelectedPosition(QtJambi_LibraryUtilities.internal.nativeId(this), selectedPosition.value()); } @QtUninvokable private native void setSelectedPosition_native_cref_QStyleOptionHeader_SelectedPosition(long __this__nativeId, int selectedPosition); /** *

The section's position in relation to the selected section

*

See QStyleOptionHeader::selectedPosition

*/ @QtUninvokable public final io.qt.widgets.QStyleOptionHeader.@NonNull SelectedPosition selectedPosition(){ return io.qt.widgets.QStyleOptionHeader.SelectedPosition.resolve(selectedPosition_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int selectedPosition_native(long __this__nativeId); /** *

The direction the sort indicator should be drawn

*

See QStyleOptionHeader::sortIndicator

*/ @QtUninvokable public final void setSortIndicator(io.qt.widgets.QStyleOptionHeader.@NonNull SortIndicator sortIndicator){ setSortIndicator_native_cref_QStyleOptionHeader_SortIndicator(QtJambi_LibraryUtilities.internal.nativeId(this), sortIndicator.value()); } @QtUninvokable private native void setSortIndicator_native_cref_QStyleOptionHeader_SortIndicator(long __this__nativeId, int sortIndicator); /** *

The direction the sort indicator should be drawn

*

See QStyleOptionHeader::sortIndicator

*/ @QtUninvokable public final io.qt.widgets.QStyleOptionHeader.@NonNull SortIndicator sortIndicator(){ return io.qt.widgets.QStyleOptionHeader.SortIndicator.resolve(sortIndicator_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int sortIndicator_native(long __this__nativeId); /** *

The text of the header

*

See QStyleOptionHeader::text

*/ @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 of the header

*

See QStyleOptionHeader::text

*/ @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); /** *

The alignment flags for the text of the header

*

See QStyleOptionHeader::textAlignment

*/ @QtUninvokable public final void setTextAlignment(io.qt.core.Qt.@NonNull Alignment textAlignment){ setTextAlignment_native_cref_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), textAlignment.value()); } @QtUninvokable private native void setTextAlignment_native_cref_Qt_Alignment(long __this__nativeId, int textAlignment); /** *

The alignment flags for the text of the header

*

See QStyleOptionHeader::textAlignment

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull Alignment textAlignment(){ return new io.qt.core.Qt.Alignment(textAlignment_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int textAlignment_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QStyleOptionHeader(QPrivateConstructor p) { super(p); } /** *

Creates and returns a copy of this object.

See QStyleOptionHeader::QStyleOptionHeader(QStyleOptionHeader)

*/ @QtUninvokable @Override public QStyleOptionHeader clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QStyleOptionHeader clone_native(long __this_nativeId); /** * @deprecated Use {@link #assign(io.qt.widgets.QStyleOptionHeader)} instead. */ @Deprecated @QtUninvokable public final void set(io.qt.widgets.@NonNull QStyleOptionHeader 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(); } /** *

Overloaded function for {@link #setIconAlignment(io.qt.core.Qt.Alignment)}.

*/ @QtUninvokable public final void setIconAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... iconAlignment) { setIconAlignment(new io.qt.core.Qt.Alignment(iconAlignment)); } /** * @hidden *

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

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull Alignment getIconAlignment() { return iconAlignment(); } /** * @hidden *

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

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull Orientation getOrientation() { return orientation(); } /** * @hidden *

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

*/ @QtUninvokable public final io.qt.widgets.QStyleOptionHeader.@NonNull SectionPosition getPosition() { return position(); } /** * @hidden *

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

*/ @QtUninvokable public final int getSection() { return section(); } /** * @hidden *

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

*/ @QtUninvokable public final io.qt.widgets.QStyleOptionHeader.@NonNull SelectedPosition getSelectedPosition() { return selectedPosition(); } /** * @hidden *

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

*/ @QtUninvokable public final io.qt.widgets.QStyleOptionHeader.@NonNull SortIndicator getSortIndicator() { return sortIndicator(); } /** * @hidden *

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

*/ @QtUninvokable public final java.lang.@NonNull String getText() { return text(); } /** *

Overloaded function for {@link #setTextAlignment(io.qt.core.Qt.Alignment)}.

*/ @QtUninvokable public final void setTextAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... textAlignment) { setTextAlignment(new io.qt.core.Qt.Alignment(textAlignment)); } /** * @hidden *

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

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull Alignment getTextAlignment() { return textAlignment(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy