io.qt.widgets.QProgressBar Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QProgressBar.class);
/**
* Java wrapper for Qt enum QProgressBar::Direction
*/
public enum Direction implements io.qt.QtEnumerator {
TopToBottom(0),
BottomToTop(1);
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 Direction resolve(int value) {
switch (value) {
case 0: return TopToBottom;
case 1: return BottomToTop;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QProgressBar::valueChanged(int)
*/
@io.qt.QtPropertyNotify(name="value")
public final Signal1<@io.qt.QtPrimitiveType Integer> valueChanged = new Signal1<>();
/**
* Overloaded constructor for {@link #QProgressBar(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QProgressBar() {
this((io.qt.widgets.QWidget)null);
}
/**
* See QProgressBar::QProgressBar(QWidget*)
*/
public QProgressBar(io.qt.widgets.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
*/
@io.qt.QtPropertyReader(name="alignment")
@io.qt.QtUninvokable
public final io.qt.core.Qt.Alignment alignment(){
return new io.qt.core.Qt.Alignment(alignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int alignment_native_constfct(long __this__nativeId);
/**
* See QProgressBar::format()const
*/
@io.qt.QtPropertyReader(name="format")
@io.qt.QtUninvokable
public final java.lang.String format(){
return format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String format_native_constfct(long __this__nativeId);
/**
* See QProgressBar::isTextVisible()const
*/
@io.qt.QtPropertyReader(name="textVisible")
@io.qt.QtUninvokable
public final boolean isTextVisible(){
return isTextVisible_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isTextVisible_native_constfct(long __this__nativeId);
/**
* See QProgressBar::maximum()const
*/
@io.qt.QtPropertyReader(name="maximum")
@io.qt.QtUninvokable
public final int maximum(){
return maximum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int maximum_native_constfct(long __this__nativeId);
/**
* See QProgressBar::minimum()const
*/
@io.qt.QtPropertyReader(name="minimum")
@io.qt.QtUninvokable
public final int minimum(){
return minimum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int minimum_native_constfct(long __this__nativeId);
/**
* See QProgressBar::orientation()const
*/
@io.qt.QtPropertyReader(name="orientation")
@io.qt.QtUninvokable
public final io.qt.core.Qt.Orientation orientation(){
return io.qt.core.Qt.Orientation.resolve(orientation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.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()
*/
@io.qt.QtPropertyResetter(name="format")
@io.qt.QtUninvokable
public final void resetFormat(){
resetFormat_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void resetFormat_native(long __this__nativeId);
/**
* Overloaded function for {@link #setAlignment(io.qt.core.Qt.Alignment)}.
*/
@io.qt.QtUninvokable
public final void setAlignment(io.qt.core.Qt.AlignmentFlag ... alignment){
setAlignment(new io.qt.core.Qt.Alignment(alignment));
}
/**
* See QProgressBar::setAlignment(Qt::Alignment)
*/
@io.qt.QtPropertyWriter(name="alignment")
@io.qt.QtUninvokable
public final void setAlignment(io.qt.core.Qt.Alignment alignment){
setAlignment_native_QFlags_Qt_AlignmentFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), alignment.value());
}
@io.qt.QtUninvokable
private native void setAlignment_native_QFlags_Qt_AlignmentFlag_(long __this__nativeId, int alignment);
/**
* See QProgressBar::setFormat(QString)
*/
@io.qt.QtPropertyWriter(name="format")
@io.qt.QtUninvokable
public final void setFormat(java.lang.String format){
setFormat_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), format);
}
@io.qt.QtUninvokable
private native void setFormat_native_cref_QString(long __this__nativeId, java.lang.String format);
/**
* See QProgressBar::setInvertedAppearance(bool)
*/
@io.qt.QtPropertyWriter(name="invertedAppearance")
@io.qt.QtUninvokable
public final void setInvertedAppearance(boolean invert){
setInvertedAppearance_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), invert);
}
@io.qt.QtUninvokable
private native void setInvertedAppearance_native_bool(long __this__nativeId, boolean invert);
/**
* See QProgressBar::setMaximum(int)
*/
@io.qt.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)
*/
@io.qt.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)
*/
@io.qt.QtPropertyWriter(name="orientation")
public final void setOrientation(io.qt.core.Qt.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)
*/
@io.qt.QtPropertyWriter(name="textDirection")
@io.qt.QtUninvokable
public final void setTextDirection(io.qt.widgets.QProgressBar.Direction textDirection){
setTextDirection_native_QProgressBar_Direction(QtJambi_LibraryUtilities.internal.nativeId(this), textDirection.value());
}
@io.qt.QtUninvokable
private native void setTextDirection_native_QProgressBar_Direction(long __this__nativeId, int textDirection);
/**
* See QProgressBar::setTextVisible(bool)
*/
@io.qt.QtPropertyWriter(name="textVisible")
@io.qt.QtUninvokable
public final void setTextVisible(boolean visible){
setTextVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible);
}
@io.qt.QtUninvokable
private native void setTextVisible_native_bool(long __this__nativeId, boolean visible);
/**
* See QProgressBar::setValue(int)
*/
@io.qt.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
*/
@io.qt.QtPropertyReader(name="value")
@io.qt.QtUninvokable
public final int value(){
return value_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int value_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public boolean event(io.qt.core.QEvent e){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QProgressBar::initStyleOption(QStyleOptionProgressBar*)const
*/
@io.qt.QtUninvokable
protected void initStyleOption(io.qt.widgets.QStyleOptionProgressBar option){
initStyleOption_native_QStyleOptionProgressBar_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option);
}
@io.qt.QtUninvokable
private native void initStyleOption_native_QStyleOptionProgressBar_ptr_constfct(long __this__nativeId, io.qt.widgets.QStyleOptionProgressBar option);
/**
* See QWidget::minimumSizeHint()const
*/
@io.qt.QtUninvokable
public io.qt.core.QSize minimumSizeHint(){
return minimumSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize minimumSizeHint_native_constfct(long __this__nativeId);
/**
* See QWidget::paintEvent(QPaintEvent*)
*/
@io.qt.QtUninvokable
protected void paintEvent(io.qt.gui.QPaintEvent arg__1){
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public io.qt.core.QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtPropertyReader(name="text")
@io.qt.QtUninvokable
public java.lang.String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QProgressBar(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QProgressBar(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QProgressBar instance, QDeclarativeConstructor constructor);
}