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

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

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


/**
 * 

Integer value within a range

*

Java wrapper for Qt class QAbstractSlider

*/ public class QAbstractSlider 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(QAbstractSlider.class); /** *

Java wrapper for Qt enum QAbstractSlider::SliderAction

*/ @io.qt.QtUnlistedEnum public enum SliderAction implements io.qt.QtEnumerator { SliderNoAction(0), SliderSingleStepAdd(1), SliderSingleStepSub(2), SliderPageStepAdd(3), SliderPageStepSub(4), SliderToMinimum(5), SliderToMaximum(6), SliderMove(7); private SliderAction(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 SliderAction resolve(int value) { switch (value) { case 0: return SliderNoAction; case 1: return SliderSingleStepAdd; case 2: return SliderSingleStepSub; case 3: return SliderPageStepAdd; case 4: return SliderPageStepSub; case 5: return SliderToMinimum; case 6: return SliderToMaximum; case 7: return SliderMove; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QAbstractSlider::SliderChange

*/ @io.qt.QtUnlistedEnum protected enum SliderChange implements io.qt.QtEnumerator { SliderRangeChange(0), SliderOrientationChange(1), SliderStepsChange(2), SliderValueChange(3); private SliderChange(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 SliderChange resolve(int value) { switch (value) { case 0: return SliderRangeChange; case 1: return SliderOrientationChange; case 2: return SliderStepsChange; case 3: return SliderValueChange; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QAbstractSlider::actionTriggered(int)

*/ public final Signal1<@io.qt.QtPrimitiveType Integer> actionTriggered = new Signal1<>(); /** *

See QAbstractSlider::rangeChanged(int,int)

*/ public final Signal2<@io.qt.QtPrimitiveType Integer, @io.qt.QtPrimitiveType Integer> rangeChanged = new Signal2<>(); /** *

See QAbstractSlider::sliderMoved(int)

*/ @io.qt.QtPropertyNotify(name="sliderPosition") public final Signal1<@io.qt.QtPrimitiveType Integer> sliderMoved = new Signal1<>(); /** *

See QAbstractSlider::sliderPressed()

*/ public final Signal0 sliderPressed = new Signal0(); /** *

See QAbstractSlider::sliderReleased()

*/ public final Signal0 sliderReleased = new Signal0(); /** *

See QAbstractSlider::valueChanged(int)

*/ @io.qt.QtPropertyNotify(name="value") public final Signal1<@io.qt.QtPrimitiveType Integer> valueChanged = new Signal1<>(); /** *

Overloaded constructor for {@link #QAbstractSlider(io.qt.widgets.QWidget)} * with parent = null.

*/ public QAbstractSlider() { this((io.qt.widgets.QWidget)null); } /** *

See QAbstractSlider::QAbstractSlider(QWidget*)

*/ public QAbstractSlider(io.qt.widgets.QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QAbstractSlider instance, io.qt.widgets.QWidget parent); /** *

See QAbstractSlider::hasTracking()const

*/ @io.qt.QtPropertyReader(name="tracking") @io.qt.QtUninvokable public final boolean hasTracking(){ return hasTracking_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean hasTracking_native_constfct(long __this__nativeId); /** *

See QAbstractSlider::invertedAppearance()const

*/ @io.qt.QtPropertyReader(name="invertedAppearance") @io.qt.QtUninvokable public final boolean invertedAppearance(){ return invertedAppearance_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean invertedAppearance_native_constfct(long __this__nativeId); /** *

See QAbstractSlider::invertedControls()const

*/ @io.qt.QtPropertyReader(name="invertedControls") @io.qt.QtUninvokable public final boolean invertedControls(){ return invertedControls_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean invertedControls_native_constfct(long __this__nativeId); /** *

See QAbstractSlider::isSliderDown()const

*/ @io.qt.QtPropertyReader(name="sliderDown") @io.qt.QtPropertyDesignable("false") @io.qt.QtUninvokable public final boolean isSliderDown(){ return isSliderDown_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isSliderDown_native_constfct(long __this__nativeId); /** *

See QAbstractSlider::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 QAbstractSlider::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 QAbstractSlider::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); /** *

See QAbstractSlider::pageStep()const

*/ @io.qt.QtPropertyReader(name="pageStep") @io.qt.QtUninvokable public final int pageStep(){ return pageStep_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int pageStep_native_constfct(long __this__nativeId); /** *

See QAbstractSlider::repeatAction()const

*/ @io.qt.QtUninvokable protected final io.qt.widgets.QAbstractSlider.SliderAction repeatAction(){ return io.qt.widgets.QAbstractSlider.SliderAction.resolve(repeatAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int repeatAction_native_constfct(long __this__nativeId); /** *

See QAbstractSlider::setInvertedAppearance(bool)

*/ @io.qt.QtPropertyWriter(name="invertedAppearance") @io.qt.QtUninvokable public final void setInvertedAppearance(boolean arg__1){ setInvertedAppearance_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setInvertedAppearance_native_bool(long __this__nativeId, boolean arg__1); /** *

See QAbstractSlider::setInvertedControls(bool)

*/ @io.qt.QtPropertyWriter(name="invertedControls") @io.qt.QtUninvokable public final void setInvertedControls(boolean arg__1){ setInvertedControls_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setInvertedControls_native_bool(long __this__nativeId, boolean arg__1); /** *

See QAbstractSlider::setMaximum(int)

*/ @io.qt.QtPropertyWriter(name="maximum") @io.qt.QtUninvokable public final void setMaximum(int arg__1){ setMaximum_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setMaximum_native_int(long __this__nativeId, int arg__1); /** *

See QAbstractSlider::setMinimum(int)

*/ @io.qt.QtPropertyWriter(name="minimum") @io.qt.QtUninvokable public final void setMinimum(int arg__1){ setMinimum_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setMinimum_native_int(long __this__nativeId, int arg__1); /** *

See QAbstractSlider::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 QAbstractSlider::setPageStep(int)

*/ @io.qt.QtPropertyWriter(name="pageStep") @io.qt.QtUninvokable public final void setPageStep(int arg__1){ setPageStep_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setPageStep_native_int(long __this__nativeId, int arg__1); /** *

See QAbstractSlider::setRange(int,int)

*/ public final void setRange(int min, int max){ setRange_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), min, max); } private native void setRange_native_int_int(long __this__nativeId, int min, int max); /** *

Overloaded function for {@link #setRepeatAction(io.qt.widgets.QAbstractSlider.SliderAction, int, int)} * with repeatTime = 50.

*/ @io.qt.QtUninvokable protected final void setRepeatAction(io.qt.widgets.QAbstractSlider.SliderAction action, int thresholdTime) { setRepeatAction(action, thresholdTime, (int)50); } /** *

Overloaded function for {@link #setRepeatAction(io.qt.widgets.QAbstractSlider.SliderAction, int, int)}

*

with:

    *
  • thresholdTime = 500
  • *
  • repeatTime = 50
  • *
*/ @io.qt.QtUninvokable protected final void setRepeatAction(io.qt.widgets.QAbstractSlider.SliderAction action) { setRepeatAction(action, (int)500, (int)50); } /** *

See QAbstractSlider::setRepeatAction(QAbstractSlider::SliderAction,int,int)

*/ @io.qt.QtUninvokable protected final void setRepeatAction(io.qt.widgets.QAbstractSlider.SliderAction action, int thresholdTime, int repeatTime){ setRepeatAction_native_QAbstractSlider_SliderAction_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), action.value(), thresholdTime, repeatTime); } @io.qt.QtUninvokable private native void setRepeatAction_native_QAbstractSlider_SliderAction_int_int(long __this__nativeId, int action, int thresholdTime, int repeatTime); /** *

See QAbstractSlider::setSingleStep(int)

*/ @io.qt.QtPropertyWriter(name="singleStep") @io.qt.QtUninvokable public final void setSingleStep(int arg__1){ setSingleStep_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setSingleStep_native_int(long __this__nativeId, int arg__1); /** *

See QAbstractSlider::setSliderDown(bool)

*/ @io.qt.QtPropertyWriter(name="sliderDown") @io.qt.QtUninvokable public final void setSliderDown(boolean arg__1){ setSliderDown_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setSliderDown_native_bool(long __this__nativeId, boolean arg__1); /** *

See QAbstractSlider::setSliderPosition(int)

*/ @io.qt.QtPropertyWriter(name="sliderPosition") @io.qt.QtUninvokable public final void setSliderPosition(int arg__1){ setSliderPosition_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setSliderPosition_native_int(long __this__nativeId, int arg__1); /** *

See QAbstractSlider::setTracking(bool)

*/ @io.qt.QtPropertyWriter(name="tracking") @io.qt.QtUninvokable public final void setTracking(boolean enable){ setTracking_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable); } @io.qt.QtUninvokable private native void setTracking_native_bool(long __this__nativeId, boolean enable); /** *

See QAbstractSlider::setValue(int)

*/ @io.qt.QtPropertyWriter(name="value") public final void setValue(int arg__1){ setValue_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } private native void setValue_native_int(long __this__nativeId, int arg__1); /** *

See QAbstractSlider::singleStep()const

*/ @io.qt.QtPropertyReader(name="singleStep") @io.qt.QtUninvokable public final int singleStep(){ return singleStep_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int singleStep_native_constfct(long __this__nativeId); /** *

See QAbstractSlider::sliderPosition()const

*/ @io.qt.QtPropertyReader(name="sliderPosition") @io.qt.QtUninvokable public final int sliderPosition(){ return sliderPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int sliderPosition_native_constfct(long __this__nativeId); /** *

See QAbstractSlider::triggerAction(QAbstractSlider::SliderAction)

*/ @io.qt.QtUninvokable public final void triggerAction(io.qt.widgets.QAbstractSlider.SliderAction action){ triggerAction_native_QAbstractSlider_SliderAction(QtJambi_LibraryUtilities.internal.nativeId(this), action.value()); } @io.qt.QtUninvokable private native void triggerAction_native_QAbstractSlider_SliderAction(long __this__nativeId, int action); /** *

See QAbstractSlider::value()const

*/ @io.qt.QtPropertyReader(name="value") @io.qt.QtPropertyUser @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); /** *

See QWidget::changeEvent(QEvent*)

*/ @io.qt.QtUninvokable protected void changeEvent(io.qt.core.QEvent e){ changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @io.qt.QtUninvokable private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long e); /** *

See QObject::event(QEvent*)

*/ @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 QWidget::keyPressEvent(QKeyEvent*)

*/ @io.qt.QtUninvokable protected void keyPressEvent(io.qt.gui.QKeyEvent ev){ keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev)); } @io.qt.QtUninvokable private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long ev); /** *

See QAbstractSlider::sliderChange(QAbstractSlider::SliderChange)

*/ @io.qt.QtUninvokable protected void sliderChange(io.qt.widgets.QAbstractSlider.SliderChange change){ sliderChange_native_QAbstractSlider_SliderChange(QtJambi_LibraryUtilities.internal.nativeId(this), change.value()); } @io.qt.QtUninvokable private native void sliderChange_native_QAbstractSlider_SliderChange(long __this__nativeId, int change); /** *

See QObject::timerEvent(QTimerEvent*)

*/ @io.qt.QtUninvokable protected void timerEvent(io.qt.core.QTimerEvent arg__1){ timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::wheelEvent(QWheelEvent*)

*/ @io.qt.QtUninvokable protected void wheelEvent(io.qt.gui.QWheelEvent e){ wheelEvent_native_QWheelEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @io.qt.QtUninvokable private native void wheelEvent_native_QWheelEvent_ptr(long __this__nativeId, long e); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QAbstractSlider(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 QAbstractSlider(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QAbstractSlider instance, QDeclarativeConstructor constructor); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy