io.qt.widgets.QScrollerProperties Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Stores the settings for a QScroller
* Java wrapper for Qt class QScrollerProperties
*/
public class QScrollerProperties extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QScrollerProperties::FrameRates
*/
public enum FrameRates implements QtEnumerator {
/**
* Representing QScrollerProperties:: Standard
*/
Standard(0),
/**
* Representing QScrollerProperties:: Fps60
*/
Fps60(1),
/**
* Representing QScrollerProperties:: Fps30
*/
Fps30(2),
/**
* Representing QScrollerProperties:: Fps20
*/
Fps20(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private FrameRates(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 FrameRates resolve(int value) {
switch (value) {
case 0: return Standard;
case 1: return Fps60;
case 2: return Fps30;
case 3: return Fps20;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QScrollerProperties::OvershootPolicy
*/
public enum OvershootPolicy implements QtEnumerator {
/**
* Representing QScrollerProperties:: OvershootWhenScrollable
*/
OvershootWhenScrollable(0),
/**
* Representing QScrollerProperties:: OvershootAlwaysOff
*/
OvershootAlwaysOff(1),
/**
* Representing QScrollerProperties:: OvershootAlwaysOn
*/
OvershootAlwaysOn(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private OvershootPolicy(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 OvershootPolicy resolve(int value) {
switch (value) {
case 0: return OvershootWhenScrollable;
case 1: return OvershootAlwaysOff;
case 2: return OvershootAlwaysOn;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QScrollerProperties::ScrollMetric
*/
public enum ScrollMetric implements QtEnumerator {
/**
* Representing QScrollerProperties:: MousePressEventDelay
*/
MousePressEventDelay(0),
/**
* Representing QScrollerProperties:: DragStartDistance
*/
DragStartDistance(1),
/**
* Representing QScrollerProperties:: DragVelocitySmoothingFactor
*/
DragVelocitySmoothingFactor(2),
/**
* Representing QScrollerProperties:: AxisLockThreshold
*/
AxisLockThreshold(3),
/**
* Representing QScrollerProperties:: ScrollingCurve
*/
ScrollingCurve(4),
/**
* Representing QScrollerProperties:: DecelerationFactor
*/
DecelerationFactor(5),
/**
* Representing QScrollerProperties:: MinimumVelocity
*/
MinimumVelocity(6),
/**
* Representing QScrollerProperties:: MaximumVelocity
*/
MaximumVelocity(7),
/**
* Representing QScrollerProperties:: MaximumClickThroughVelocity
*/
MaximumClickThroughVelocity(8),
/**
* Representing QScrollerProperties:: AcceleratingFlickMaximumTime
*/
AcceleratingFlickMaximumTime(9),
/**
* Representing QScrollerProperties:: AcceleratingFlickSpeedupFactor
*/
AcceleratingFlickSpeedupFactor(10),
/**
* Representing QScrollerProperties:: SnapPositionRatio
*/
SnapPositionRatio(11),
/**
* Representing QScrollerProperties:: SnapTime
*/
SnapTime(12),
/**
* Representing QScrollerProperties:: OvershootDragResistanceFactor
*/
OvershootDragResistanceFactor(13),
/**
* Representing QScrollerProperties:: OvershootDragDistanceFactor
*/
OvershootDragDistanceFactor(14),
/**
* Representing QScrollerProperties:: OvershootScrollDistanceFactor
*/
OvershootScrollDistanceFactor(15),
/**
* Representing QScrollerProperties:: OvershootScrollTime
*/
OvershootScrollTime(16),
/**
* Representing QScrollerProperties:: HorizontalOvershootPolicy
*/
HorizontalOvershootPolicy(17),
/**
* Representing QScrollerProperties:: VerticalOvershootPolicy
*/
VerticalOvershootPolicy(18),
/**
* Representing QScrollerProperties:: FrameRate
*/
FrameRate(19),
/**
* Representing QScrollerProperties:: ScrollMetricCount
*/
ScrollMetricCount(20);
static {
QtJambi_LibraryUtilities.initialize();
}
private ScrollMetric(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 ScrollMetric resolve(int value) {
switch (value) {
case 0: return MousePressEventDelay;
case 1: return DragStartDistance;
case 2: return DragVelocitySmoothingFactor;
case 3: return AxisLockThreshold;
case 4: return ScrollingCurve;
case 5: return DecelerationFactor;
case 6: return MinimumVelocity;
case 7: return MaximumVelocity;
case 8: return MaximumClickThroughVelocity;
case 9: return AcceleratingFlickMaximumTime;
case 10: return AcceleratingFlickSpeedupFactor;
case 11: return SnapPositionRatio;
case 12: return SnapTime;
case 13: return OvershootDragResistanceFactor;
case 14: return OvershootDragDistanceFactor;
case 15: return OvershootScrollDistanceFactor;
case 16: return OvershootScrollTime;
case 17: return HorizontalOvershootPolicy;
case 18: return VerticalOvershootPolicy;
case 19: return FrameRate;
case 20: return ScrollMetricCount;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QScrollerProperties:: QScrollerProperties()
*/
public QScrollerProperties(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QScrollerProperties instance);
/**
* See QScrollerProperties:: QScrollerProperties(QScrollerProperties)
*/
public QScrollerProperties(io.qt.widgets.@NonNull QScrollerProperties sp){
super((QPrivateConstructor)null);
initialize_native(this, sp);
}
private native static void initialize_native(QScrollerProperties instance, io.qt.widgets.QScrollerProperties sp);
/**
* See QScrollerProperties:: operator=(QScrollerProperties)
*/
@QtUninvokable
public final void assign(io.qt.widgets.@NonNull QScrollerProperties sp){
assign_native_cref_QScrollerProperties(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sp));
}
@QtUninvokable
private native void assign_native_cref_QScrollerProperties(long __this__nativeId, long sp);
/**
* See QScrollerProperties:: operator==(QScrollerProperties)const
*/
@QtUninvokable
public final boolean equals(io.qt.widgets.@NonNull QScrollerProperties sp){
return equals_native_cref_QScrollerProperties_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sp));
}
@QtUninvokable
private native boolean equals_native_cref_QScrollerProperties_constfct(long __this__nativeId, long sp);
/**
* See QScrollerProperties:: scrollMetric(QScrollerProperties::ScrollMetric)const
*/
@QtUninvokable
public final java.lang.Object scrollMetric(io.qt.widgets.QScrollerProperties.@NonNull ScrollMetric metric){
return scrollMetric_native_QScrollerProperties_ScrollMetric_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), metric.value());
}
@QtUninvokable
private native java.lang.Object scrollMetric_native_QScrollerProperties_ScrollMetric_constfct(long __this__nativeId, int metric);
/**
* See QScrollerProperties:: setScrollMetric(QScrollerProperties::ScrollMetric, QVariant)
*/
@QtUninvokable
public final void setScrollMetric(io.qt.widgets.QScrollerProperties.@NonNull ScrollMetric metric, java.lang.Object value){
setScrollMetric_native_QScrollerProperties_ScrollMetric_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), metric.value(), value);
}
@QtUninvokable
private native void setScrollMetric_native_QScrollerProperties_ScrollMetric_cref_QVariant(long __this__nativeId, int metric, java.lang.Object value);
/**
* See QScrollerProperties:: setDefaultScrollerProperties(QScrollerProperties)
*/
public static void setDefaultScrollerProperties(io.qt.widgets.@NonNull QScrollerProperties sp){
setDefaultScrollerProperties_native_cref_QScrollerProperties(QtJambi_LibraryUtilities.internal.checkedNativeId(sp));
}
private native static void setDefaultScrollerProperties_native_cref_QScrollerProperties(long sp);
/**
* See QScrollerProperties:: unsetDefaultScrollerProperties()
*/
public native static void unsetDefaultScrollerProperties();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QScrollerProperties(QPrivateConstructor p) { super(p); }
/**
* See QScrollerProperties:: operator==(QScrollerProperties)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.widgets.QScrollerProperties) {
return equals((io.qt.widgets.QScrollerProperties) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QScrollerProperties)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QScrollerProperties:: QScrollerProperties(QScrollerProperties)
*/
@QtUninvokable
@Override
public QScrollerProperties clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QScrollerProperties clone_native(long __this_nativeId);
}