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

io.qt.widgets.QStyleOptionComboBox 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 parameter for drawing a combobox

*

Java wrapper for Qt class QStyleOptionComboBox

*/ public class QStyleOptionComboBox extends io.qt.widgets.QStyleOptionComplex implements java.lang.Cloneable { /** *

See QStyleOptionComboBox::QStyleOptionComboBox()

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

See QStyleOptionComboBox::QStyleOptionComboBox(QStyleOptionComboBox)

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

See QStyleOptionComboBox::operator=(QStyleOptionComboBox)

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

The icon for the current item of the combo box

*

See QStyleOptionComboBox::currentIcon

*/ @QtUninvokable public final void setCurrentIcon(io.qt.gui.@NonNull QIcon currentIcon){ setCurrentIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(currentIcon)); } @QtUninvokable private native void setCurrentIcon_native_cref_QIcon(long __this__nativeId, long currentIcon); /** *

The icon for the current item of the combo box

*

See QStyleOptionComboBox::currentIcon

*/ @QtUninvokable public final io.qt.gui.@NonNull QIcon currentIcon(){ return currentIcon_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QIcon currentIcon_native(long __this__nativeId); /** *

The text for the current item of the combo box

*

See QStyleOptionComboBox::currentText

*/ @QtUninvokable public final void setCurrentText(java.lang.@NonNull String currentText){ setCurrentText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), currentText); } @QtUninvokable private native void setCurrentText_native_cref_QString(long __this__nativeId, java.lang.String currentText); /** *

The text for the current item of the combo box

*

See QStyleOptionComboBox::currentText

*/ @QtUninvokable public final java.lang.@NonNull String currentText(){ return currentText_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String currentText_native(long __this__nativeId); /** *

Whether or not the combobox is editable or not

*

See QStyleOptionComboBox::editable

*/ @QtUninvokable public final void setEditable(boolean editable){ setEditable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), editable); } @QtUninvokable private native void setEditable_native_bool(long __this__nativeId, boolean editable); /** *

Whether or not the combobox is editable or not

*

See QStyleOptionComboBox::editable

*/ @QtUninvokable public final boolean editable(){ return editable_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean editable_native(long __this__nativeId); /** *

Whether the combo box has a frame

*

See QStyleOptionComboBox::frame

*/ @QtUninvokable public final void setFrame(boolean frame){ setFrame_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), frame); } @QtUninvokable private native void setFrame_native_bool(long __this__nativeId, boolean frame); /** *

Whether the combo box has a frame

*

See QStyleOptionComboBox::frame

*/ @QtUninvokable public final boolean frame(){ return frame_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean frame_native(long __this__nativeId); /** *

The icon size for the current item of the combo box

*

See QStyleOptionComboBox::iconSize

*/ @QtUninvokable public final void setIconSize(io.qt.core.@NonNull QSize iconSize){ setIconSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(iconSize)); } @QtUninvokable private native void setIconSize_native_cref_QSize(long __this__nativeId, long iconSize); /** *

The icon size for the current item of the combo box

*

See QStyleOptionComboBox::iconSize

*/ @QtUninvokable public final io.qt.core.@NonNull QSize iconSize(){ return iconSize_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize iconSize_native(long __this__nativeId); /** *

The popup rectangle for the combobox

*

See QStyleOptionComboBox::popupRect

*/ @QtUninvokable public final void setPopupRect(io.qt.core.@NonNull QRect popupRect){ setPopupRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(popupRect)); } @QtUninvokable private native void setPopupRect_native_cref_QRect(long __this__nativeId, long popupRect); /** *

The popup rectangle for the combobox

*

See QStyleOptionComboBox::popupRect

*/ @QtUninvokable public final io.qt.core.@NonNull QRect popupRect(){ return popupRect_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QRect popupRect_native(long __this__nativeId); /** *

The alignment of the current text in the combo box

*

See QStyleOptionComboBox::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 of the current text in the combo box

*

See QStyleOptionComboBox::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 QStyleOptionComboBox(QPrivateConstructor p) { super(p); } /** *

Creates and returns a copy of this object.

See QStyleOptionComboBox::QStyleOptionComboBox(QStyleOptionComboBox)

*/ @QtUninvokable @Override public QStyleOptionComboBox clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QStyleOptionComboBox clone_native(long __this_nativeId); /** * @deprecated Use {@link #assign(io.qt.widgets.QStyleOptionComboBox)} instead. */ @Deprecated @QtUninvokable public final void set(io.qt.widgets.@NonNull QStyleOptionComboBox arg__1) { assign(arg__1); } /** *

Overloaded function for {@link #setCurrentIcon(io.qt.gui.QIcon)}.

*/ @QtUninvokable public final void setCurrentIcon(io.qt.gui.@NonNull QPixmap currentIcon) { setCurrentIcon(new io.qt.gui.QIcon(currentIcon)); } /** * @hidden *

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

*/ @QtUninvokable public final io.qt.gui.@NonNull QIcon getCurrentIcon() { return currentIcon(); } /** * @hidden *

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

*/ @QtUninvokable public final java.lang.@NonNull String getCurrentText() { return currentText(); } /** * @hidden *

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

*/ @QtUninvokable public final boolean getEditable() { return editable(); } /** * @hidden *

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

*/ @QtUninvokable public final boolean getFrame() { return frame(); } /** * @hidden *

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

*/ @QtUninvokable public final io.qt.core.@NonNull QSize getIconSize() { return iconSize(); } /** * @hidden *

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

*/ @QtUninvokable public final io.qt.core.@NonNull QRect getPopupRect() { return popupRect(); } /** *

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