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

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

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


/**
 * 

Vertical or horizontal slider

*

Java wrapper for Qt class QSlider

*/ public class QSlider extends io.qt.widgets.QAbstractSlider { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSlider.class); /** *

Java wrapper for Qt enum QSlider::TickPosition

*/ @io.qt.QtRejectedEntries({"TicksLeft", "TicksRight"}) public enum TickPosition implements io.qt.QtEnumerator { NoTicks(0), TicksAbove(1), TicksLeft(1), TicksBelow(2), TicksRight(2), TicksBothSides(3); private TickPosition(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 TickPosition resolve(int value) { switch (value) { case 0: return NoTicks; case 1: return TicksAbove; case 2: return TicksBelow; case 3: return TicksBothSides; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

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

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

See QSlider::QSlider(QWidget*)

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

Overloaded constructor for {@link #QSlider(io.qt.core.Qt.Orientation, io.qt.widgets.QWidget)} * with parent = null.

*/ public QSlider(io.qt.core.Qt.Orientation orientation) { this(orientation, (io.qt.widgets.QWidget)null); } /** *

See QSlider::QSlider(Qt::Orientation,QWidget*)

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

See QSlider::setTickInterval(int)

*/ @io.qt.QtPropertyWriter(name="tickInterval") @io.qt.QtUninvokable public final void setTickInterval(int ti){ setTickInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), ti); } @io.qt.QtUninvokable private native void setTickInterval_native_int(long __this__nativeId, int ti); /** *

See QSlider::setTickPosition(QSlider::TickPosition)

*/ @io.qt.QtPropertyWriter(name="tickPosition") @io.qt.QtUninvokable public final void setTickPosition(io.qt.widgets.QSlider.TickPosition position){ setTickPosition_native_QSlider_TickPosition(QtJambi_LibraryUtilities.internal.nativeId(this), position.value()); } @io.qt.QtUninvokable private native void setTickPosition_native_QSlider_TickPosition(long __this__nativeId, int position); /** *

See QSlider::tickInterval()const

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

See QSlider::tickPosition()const

*/ @io.qt.QtPropertyReader(name="tickPosition") @io.qt.QtUninvokable public final io.qt.widgets.QSlider.TickPosition tickPosition(){ return io.qt.widgets.QSlider.TickPosition.resolve(tickPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int tickPosition_native_constfct(long __this__nativeId); /** *

See QObject::event(QEvent*)

*/ @io.qt.QtUninvokable public boolean event(io.qt.core.QEvent event){ return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @io.qt.QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long event); /** *

See QSlider::initStyleOption(QStyleOptionSlider*)const

*/ @io.qt.QtUninvokable protected void initStyleOption(io.qt.widgets.QStyleOptionSlider option){ initStyleOption_native_QStyleOptionSlider_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option); } @io.qt.QtUninvokable private native void initStyleOption_native_QStyleOptionSlider_ptr_constfct(long __this__nativeId, io.qt.widgets.QStyleOptionSlider 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::mouseMoveEvent(QMouseEvent*)

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

See QWidget::mousePressEvent(QMouseEvent*)

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

See QWidget::mouseReleaseEvent(QMouseEvent*)

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

See QWidget::paintEvent(QPaintEvent*)

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

See QWidget::sizeHint()const

*/ @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); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QSlider(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 QSlider(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QSlider instance, QDeclarativeConstructor constructor); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy