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.0
Show newest version
package io.qt.widgets;

import io.qt.*;


/**
 * 

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.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractSlider.class); /** *

Java wrapper for Qt enum QAbstractSlider::SliderAction

*/ @QtUnlistedEnum public enum SliderAction implements QtEnumerator { /** *

Representing QAbstractSlider::SliderNoAction

*/ SliderNoAction(0), /** *

Representing QAbstractSlider::SliderSingleStepAdd

*/ SliderSingleStepAdd(1), /** *

Representing QAbstractSlider::SliderSingleStepSub

*/ SliderSingleStepSub(2), /** *

Representing QAbstractSlider::SliderPageStepAdd

*/ SliderPageStepAdd(3), /** *

Representing QAbstractSlider::SliderPageStepSub

*/ SliderPageStepSub(4), /** *

Representing QAbstractSlider::SliderToMinimum

*/ SliderToMinimum(5), /** *

Representing QAbstractSlider::SliderToMaximum

*/ SliderToMaximum(6), /** *

Representing QAbstractSlider::SliderMove

*/ SliderMove(7); static { QtJambi_LibraryUtilities.initialize(); } private SliderAction(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 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 QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QAbstractSlider::SliderChange

*/ @QtUnlistedEnum protected enum SliderChange implements QtEnumerator { /** *

Representing QAbstractSlider::SliderRangeChange

*/ SliderRangeChange(0), /** *

Representing QAbstractSlider::SliderOrientationChange

*/ SliderOrientationChange(1), /** *

Representing QAbstractSlider::SliderStepsChange

*/ SliderStepsChange(2), /** *

Representing QAbstractSlider::SliderValueChange

*/ SliderValueChange(3); static { QtJambi_LibraryUtilities.initialize(); } private SliderChange(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 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 QNoSuchEnumValueException(value); } } private final int value; } /** *

See QAbstractSlider::actionTriggered(int)

*/ public final @NonNull Signal1 actionTriggered = new Signal1<>(); /** *

See QAbstractSlider::rangeChanged(int,int)

*/ public final @NonNull Signal2 rangeChanged = new Signal2<>(); /** *

See QAbstractSlider::sliderMoved(int)

*/ @QtPropertyNotify(name="sliderPosition") public final @NonNull Signal1 sliderMoved = new Signal1<>(); /** *

See QAbstractSlider::sliderPressed()

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

See QAbstractSlider::sliderReleased()

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

See QAbstractSlider::valueChanged(int)

*/ @QtPropertyNotify(name="value") public final @NonNull Signal1 valueChanged = new Signal1<>(); /** *

See QAbstractSlider::QAbstractSlider(QWidget*)

*/ public QAbstractSlider(io.qt.widgets.@Nullable 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

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

See QAbstractSlider::invertedAppearance()const

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

See QAbstractSlider::invertedControls()const

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

See QAbstractSlider::isSliderDown()const

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

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

See QAbstractSlider::pageStep()const

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

See QAbstractSlider::repeatAction()const

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

See QAbstractSlider::setInvertedAppearance(bool)

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

See QAbstractSlider::setInvertedControls(bool)

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

See QAbstractSlider::setMaximum(int)

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

See QAbstractSlider::setMinimum(int)

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

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

*/ @QtPropertyWriter(name="pageStep") @QtUninvokable public final void setPageStep(int arg__1){ setPageStep_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @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); /** *

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

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

See QAbstractSlider::setSingleStep(int)

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

See QAbstractSlider::setSliderDown(bool)

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

See QAbstractSlider::setSliderPosition(int)

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

See QAbstractSlider::setTracking(bool)

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

See QAbstractSlider::setValue(int)

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

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

See QAbstractSlider::sliderPosition()const

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

See QAbstractSlider::triggerAction(QAbstractSlider::SliderAction)

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

See QAbstractSlider::value()const

*/ @QtPropertyReader(name="value") @QtPropertyUser @QtUninvokable public final int value(){ return value_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int value_native_constfct(long __this__nativeId); /** *

See QWidget::changeEvent(QEvent*)

*/ @QtUninvokable @Override protected void changeEvent(io.qt.core.@Nullable QEvent e){ java.util.Objects.requireNonNull(e, "Argument 'e': null not expected."); changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @QtUninvokable private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long e); /** *

See QObject::event(QEvent*)

*/ @QtUninvokable @Override public boolean event(io.qt.core.@Nullable QEvent e){ java.util.Objects.requireNonNull(e, "Argument 'e': null not expected."); 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 QWidget::keyPressEvent(QKeyEvent*)

*/ @QtUninvokable @Override protected void keyPressEvent(io.qt.gui.@Nullable QKeyEvent ev){ java.util.Objects.requireNonNull(ev, "Argument 'ev': null not expected."); keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev)); } @QtUninvokable private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long ev); /** *

See QAbstractSlider::sliderChange(QAbstractSlider::SliderChange)

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

See QObject::timerEvent(QTimerEvent*)

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

See QWidget::wheelEvent(QWheelEvent*)

*/ @QtUninvokable @Override protected void wheelEvent(io.qt.gui.@Nullable QWheelEvent e){ java.util.Objects.requireNonNull(e, "Argument 'e': null not expected."); wheelEvent_native_QWheelEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @QtUninvokable private native void wheelEvent_native_QWheelEvent_ptr(long __this__nativeId, long e); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QAbstractSlider(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QAbstractSlider(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QAbstractSlider instance, QDeclarativeConstructor constructor); /** *

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getTracking() { return hasTracking(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getInvertedAppearance() { return invertedAppearance(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getInvertedControls() { return invertedControls(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getSliderDown() { return isSliderDown(); } /** * @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(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getPageStep() { return pageStep(); } /** *

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

*/ @QtUninvokable protected final void setRepeatAction(io.qt.widgets.QAbstractSlider.@NonNull 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
  • *
*/ @QtUninvokable protected final void setRepeatAction(io.qt.widgets.QAbstractSlider.@NonNull SliderAction action) { setRepeatAction(action, (int)500, (int)50); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getSingleStep() { return singleStep(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getSliderPosition() { return sliderPosition(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getValue() { return value(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy