io.qt.widgets.QStyleOptionSlider Maven / Gradle / Ivy
package io.qt.widgets;
/**
* Used to describe the parameters needed for drawing a slider
* Java wrapper for Qt class QStyleOptionSlider
*/
public class QStyleOptionSlider extends io.qt.widgets.QStyleOptionComplex
implements java.lang.Cloneable
{
/**
* See QStyleOptionSlider::QStyleOptionSlider()
*/
public QStyleOptionSlider(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStyleOptionSlider instance);
/**
* See QStyleOptionSlider::QStyleOptionSlider(QStyleOptionSlider)
*/
public QStyleOptionSlider(io.qt.widgets.QStyleOptionSlider other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QStyleOptionSlider instance, io.qt.widgets.QStyleOptionSlider other);
@io.qt.QtUninvokable
public final void set(io.qt.widgets.QStyleOptionSlider arg__1){
set_native_cref_QStyleOptionSlider(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void set_native_cref_QStyleOptionSlider(long __this__nativeId, long arg__1);
/**
* Whether the dial should wrap or not
* See QStyleOptionSlider::dialWrapping
*/
@io.qt.QtUninvokable
public final void setDialWrapping(boolean dialWrapping){
setDialWrapping_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), dialWrapping);
}
@io.qt.QtUninvokable
private native void setDialWrapping_native_bool(long __this__nativeId, boolean dialWrapping);
/**
* Whether the dial should wrap or not
* See QStyleOptionSlider::dialWrapping
*/
@io.qt.QtUninvokable
public final boolean dialWrapping(){
return dialWrapping_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean dialWrapping_native(long __this__nativeId);
/**
* Overloaded function for {@link #setKeyboardModifiers(io.qt.core.Qt.KeyboardModifiers)}.
*/
@io.qt.QtUninvokable
public final void setKeyboardModifiers(io.qt.core.Qt.KeyboardModifier ... keyboardModifiers){
setKeyboardModifiers(new io.qt.core.Qt.KeyboardModifiers(keyboardModifiers));
}
@io.qt.QtUninvokable
public final void setKeyboardModifiers(io.qt.core.Qt.KeyboardModifiers keyboardModifiers){
setKeyboardModifiers_native_cref_QFlags_Qt_KeyboardModifier_(QtJambi_LibraryUtilities.internal.nativeId(this), keyboardModifiers.value());
}
@io.qt.QtUninvokable
private native void setKeyboardModifiers_native_cref_QFlags_Qt_KeyboardModifier_(long __this__nativeId, int keyboardModifiers);
@io.qt.QtUninvokable
public final io.qt.core.Qt.KeyboardModifiers keyboardModifiers(){
return new io.qt.core.Qt.KeyboardModifiers(keyboardModifiers_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int keyboardModifiers_native(long __this__nativeId);
/**
* The maximum value for the slider
* See QStyleOptionSlider::maximum
*/
@io.qt.QtUninvokable
public final void setMaximum(int maximum){
setMaximum_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), maximum);
}
@io.qt.QtUninvokable
private native void setMaximum_native_int(long __this__nativeId, int maximum);
/**
* The maximum value for the slider
* See QStyleOptionSlider::maximum
*/
@io.qt.QtUninvokable
public final int maximum(){
return maximum_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int maximum_native(long __this__nativeId);
/**
* The minimum value for the slider
* See QStyleOptionSlider::minimum
*/
@io.qt.QtUninvokable
public final void setMinimum(int minimum){
setMinimum_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), minimum);
}
@io.qt.QtUninvokable
private native void setMinimum_native_int(long __this__nativeId, int minimum);
/**
* The minimum value for the slider
* See QStyleOptionSlider::minimum
*/
@io.qt.QtUninvokable
public final int minimum(){
return minimum_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int minimum_native(long __this__nativeId);
/**
* The number of pixel between notches
* See QStyleOptionSlider::notchTarget
*/
@io.qt.QtUninvokable
public final void setNotchTarget(double notchTarget){
setNotchTarget_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), notchTarget);
}
@io.qt.QtUninvokable
private native void setNotchTarget_native_qtjambireal(long __this__nativeId, double notchTarget);
/**
* The number of pixel between notches
* See QStyleOptionSlider::notchTarget
*/
@io.qt.QtUninvokable
public final double notchTarget(){
return notchTarget_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double notchTarget_native(long __this__nativeId);
/**
* The slider's orientation (horizontal or vertical)
* See QStyleOptionSlider::orientation
*/
@io.qt.QtUninvokable
public final void setOrientation(io.qt.core.Qt.Orientation orientation){
setOrientation_native_cref_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), orientation.value());
}
@io.qt.QtUninvokable
private native void setOrientation_native_cref_Qt_Orientation(long __this__nativeId, int orientation);
/**
* The slider's orientation (horizontal or vertical)
* See QStyleOptionSlider::orientation
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.Orientation orientation(){
return io.qt.core.Qt.Orientation.resolve(orientation_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int orientation_native(long __this__nativeId);
/**
* The size of the page step of the slider
* See QStyleOptionSlider::pageStep
*/
@io.qt.QtUninvokable
public final void setPageStep(int pageStep){
setPageStep_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), pageStep);
}
@io.qt.QtUninvokable
private native void setPageStep_native_int(long __this__nativeId, int pageStep);
/**
* The size of the page step of the slider
* See QStyleOptionSlider::pageStep
*/
@io.qt.QtUninvokable
public final int pageStep(){
return pageStep_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int pageStep_native(long __this__nativeId);
/**
* The size of the single step of the slider
* See QStyleOptionSlider::singleStep
*/
@io.qt.QtUninvokable
public final void setSingleStep(int singleStep){
setSingleStep_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), singleStep);
}
@io.qt.QtUninvokable
private native void setSingleStep_native_int(long __this__nativeId, int singleStep);
/**
* The size of the single step of the slider
* See QStyleOptionSlider::singleStep
*/
@io.qt.QtUninvokable
public final int singleStep(){
return singleStep_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int singleStep_native(long __this__nativeId);
/**
* The position of the slider handle
* See QStyleOptionSlider::sliderPosition
*/
@io.qt.QtUninvokable
public final void setSliderPosition(int sliderPosition){
setSliderPosition_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), sliderPosition);
}
@io.qt.QtUninvokable
private native void setSliderPosition_native_int(long __this__nativeId, int sliderPosition);
/**
* The position of the slider handle
* See QStyleOptionSlider::sliderPosition
*/
@io.qt.QtUninvokable
public final int sliderPosition(){
return sliderPosition_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int sliderPosition_native(long __this__nativeId);
/**
* The value of the slider
* See QStyleOptionSlider::sliderValue
*/
@io.qt.QtUninvokable
public final void setSliderValue(int sliderValue){
setSliderValue_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), sliderValue);
}
@io.qt.QtUninvokable
private native void setSliderValue_native_int(long __this__nativeId, int sliderValue);
/**
* The value of the slider
* See QStyleOptionSlider::sliderValue
*/
@io.qt.QtUninvokable
public final int sliderValue(){
return sliderValue_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int sliderValue_native(long __this__nativeId);
/**
* The interval that should be drawn between tick marks
* See QStyleOptionSlider::tickInterval
*/
@io.qt.QtUninvokable
public final void setTickInterval(int tickInterval){
setTickInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), tickInterval);
}
@io.qt.QtUninvokable
private native void setTickInterval_native_int(long __this__nativeId, int tickInterval);
/**
* The interval that should be drawn between tick marks
* See QStyleOptionSlider::tickInterval
*/
@io.qt.QtUninvokable
public final int tickInterval(){
return tickInterval_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int tickInterval_native(long __this__nativeId);
/**
* The position of the slider's tick marks, if any
* See QStyleOptionSlider::tickPosition
*/
@io.qt.QtUninvokable
public final void setTickPosition(io.qt.widgets.QSlider.TickPosition tickPosition){
setTickPosition_native_cref_QSlider_TickPosition(QtJambi_LibraryUtilities.internal.nativeId(this), tickPosition.value());
}
@io.qt.QtUninvokable
private native void setTickPosition_native_cref_QSlider_TickPosition(long __this__nativeId, int tickPosition);
/**
* The position of the slider's tick marks, if any
* See QStyleOptionSlider::tickPosition
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QSlider.TickPosition tickPosition(){
return io.qt.widgets.QSlider.TickPosition.resolve(tickPosition_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int tickPosition_native(long __this__nativeId);
/**
* The slider control orientation
* See QStyleOptionSlider::upsideDown
*/
@io.qt.QtUninvokable
public final void setUpsideDown(boolean upsideDown){
setUpsideDown_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), upsideDown);
}
@io.qt.QtUninvokable
private native void setUpsideDown_native_bool(long __this__nativeId, boolean upsideDown);
/**
* The slider control orientation
* See QStyleOptionSlider::upsideDown
*/
@io.qt.QtUninvokable
public final boolean upsideDown(){
return upsideDown_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean upsideDown_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QStyleOptionSlider(QPrivateConstructor p) { super(p); }
@Override
public QStyleOptionSlider clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QStyleOptionSlider clone_native(long __this_nativeId);
}