io.qt.widgets.QProgressBar Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Horizontal or vertical progress bar
* Java wrapper for Qt class QProgressBar
*/
public class QProgressBar 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(QProgressBar.class);
/**
* Java wrapper for Qt enum QProgressBar::Direction
*/
public enum Direction implements QtEnumerator {
/**
* Representing QProgressBar:: TopToBottom
*/
TopToBottom(0),
/**
* Representing QProgressBar:: BottomToTop
*/
BottomToTop(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private Direction(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 Direction resolve(int value) {
switch (value) {
case 0: return TopToBottom;
case 1: return BottomToTop;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QProgressBar:: valueChanged(int)
*/
@QtPropertyNotify(name="value")
public final @NonNull Signal1 valueChanged = new Signal1<>();
/**
* See QProgressBar:: QProgressBar(QWidget*)
*/
public QProgressBar(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QProgressBar instance, io.qt.widgets.QWidget parent);
/**
* See QProgressBar:: alignment()const
*/
@QtPropertyReader(name="alignment")
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment alignment(){
return new io.qt.core.Qt.Alignment(alignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int alignment_native_constfct(long __this__nativeId);
/**
* See QProgressBar:: format()const
*/
@QtPropertyReader(name="format")
@QtUninvokable
public final java.lang.@NonNull String format(){
return format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String format_native_constfct(long __this__nativeId);
/**
* See QProgressBar:: isTextVisible()const
*/
@QtPropertyReader(name="textVisible")
@QtUninvokable
public final boolean isTextVisible(){
return isTextVisible_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isTextVisible_native_constfct(long __this__nativeId);
/**
* See QProgressBar:: maximum()const
*/
@QtPropertyReader(name="maximum")
@QtUninvokable
public final int maximum(){
return maximum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int maximum_native_constfct(long __this__nativeId);
/**
* See QProgressBar:: minimum()const
*/
@QtPropertyReader(name="minimum")
@QtUninvokable
public final int minimum(){
return minimum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int minimum_native_constfct(long __this__nativeId);
/**
* See QProgressBar:: orientation()const
*/
@QtPropertyReader(name="orientation")
@QtUninvokable
public final io.qt.core.Qt.@NonNull Orientation orientation(){
return io.qt.core.Qt.Orientation.resolve(orientation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int orientation_native_constfct(long __this__nativeId);
/**
*
*/
public final void reset(){
reset_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void reset_native(long __this__nativeId);
/**
* See QProgressBar:: resetFormat()
*/
@QtPropertyResetter(name="format")
@QtUninvokable
public final void resetFormat(){
resetFormat_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void resetFormat_native(long __this__nativeId);
/**
* See QProgressBar:: setAlignment(Qt::Alignment)
*/
@QtPropertyWriter(name="alignment")
@QtUninvokable
public final void setAlignment(io.qt.core.Qt.@NonNull Alignment alignment){
setAlignment_native_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), alignment.value());
}
@QtUninvokable
private native void setAlignment_native_Qt_Alignment(long __this__nativeId, int alignment);
/**
* See QProgressBar:: setFormat(QString)
*/
@QtPropertyWriter(name="format")
@QtUninvokable
public final void setFormat(java.lang.@NonNull String format){
setFormat_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), format);
}
@QtUninvokable
private native void setFormat_native_cref_QString(long __this__nativeId, java.lang.String format);
/**
* See QProgressBar:: setInvertedAppearance(bool)
*/
@QtPropertyWriter(name="invertedAppearance")
@QtUninvokable
public final void setInvertedAppearance(boolean invert){
setInvertedAppearance_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), invert);
}
@QtUninvokable
private native void setInvertedAppearance_native_bool(long __this__nativeId, boolean invert);
/**
* See QProgressBar:: setMaximum(int)
*/
@QtPropertyWriter(name="maximum")
public final void setMaximum(int maximum){
setMaximum_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), maximum);
}
private native void setMaximum_native_int(long __this__nativeId, int maximum);
/**
* See QProgressBar:: setMinimum(int)
*/
@QtPropertyWriter(name="minimum")
public final void setMinimum(int minimum){
setMinimum_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), minimum);
}
private native void setMinimum_native_int(long __this__nativeId, int minimum);
/**
* See QProgressBar:: setOrientation(Qt::Orientation)
*/
@QtPropertyWriter(name="orientation")
public final void setOrientation(io.qt.core.Qt.@NonNull Orientation arg__1){
setOrientation_native_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
private native void setOrientation_native_Qt_Orientation(long __this__nativeId, int arg__1);
/**
* See QProgressBar:: setRange(int, int)
*/
public final void setRange(int minimum, int maximum){
setRange_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), minimum, maximum);
}
private native void setRange_native_int_int(long __this__nativeId, int minimum, int maximum);
/**
* See QProgressBar:: setTextDirection(QProgressBar::Direction)
*/
@QtPropertyWriter(name="textDirection")
@QtUninvokable
public final void setTextDirection(io.qt.widgets.QProgressBar.@NonNull Direction textDirection){
setTextDirection_native_QProgressBar_Direction(QtJambi_LibraryUtilities.internal.nativeId(this), textDirection.value());
}
@QtUninvokable
private native void setTextDirection_native_QProgressBar_Direction(long __this__nativeId, int textDirection);
/**
* See QProgressBar:: setTextVisible(bool)
*/
@QtPropertyWriter(name="textVisible")
@QtUninvokable
public final void setTextVisible(boolean visible){
setTextVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible);
}
@QtUninvokable
private native void setTextVisible_native_bool(long __this__nativeId, boolean visible);
/**
* See QProgressBar:: setValue(int)
*/
@QtPropertyWriter(name="value")
public final void setValue(int value){
setValue_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
private native void setValue_native_int(long __this__nativeId, int value);
/**
* See QProgressBar:: value()const
*/
@QtPropertyReader(name="value")
@QtUninvokable
public final int value(){
return value_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int value_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent e){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QProgressBar:: initStyleOption(QStyleOptionProgressBar*)const
*/
@QtUninvokable
protected void initStyleOption(io.qt.widgets.@Nullable QStyleOptionProgressBar option){
initStyleOption_native_QStyleOptionProgressBar_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option));
}
@QtUninvokable
private native void initStyleOption_native_QStyleOptionProgressBar_ptr_constfct(long __this__nativeId, long option);
/**
* 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 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);
/**
*
*/
@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);
/**
*
*/
@QtPropertyReader(name="text")
@QtUninvokable
public java.lang.@NonNull String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QProgressBar(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QProgressBar(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QProgressBar instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QProgressBar(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QProgressBar() {
this((io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #alignment()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment getAlignment() {
return alignment();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #format()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getFormat() {
return format();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isTextVisible()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getTextVisible() {
return isTextVisible();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #maximum()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getMaximum() {
return maximum();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #minimum()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getMinimum() {
return minimum();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #orientation()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull Orientation getOrientation() {
return orientation();
}
/**
* Overloaded function for {@link #setAlignment(io.qt.core.Qt.Alignment)}.
*/
@QtUninvokable
public final void setAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) {
setAlignment(new io.qt.core.Qt.Alignment(alignment));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #value()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getValue() {
return value();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #text()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getText() {
return text();
}
}