io.qt.widgets.QScrollerProperties Maven / Gradle / Ivy
The newest version!
package io.qt.widgets;
/**
* Stores the settings for a QScroller
* Java wrapper for Qt class QScrollerProperties
*/
public class QScrollerProperties extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QScrollerProperties::FrameRates
*/
public enum FrameRates implements io.qt.QtEnumerator {
Standard(0),
Fps60(1),
Fps30(2),
Fps20(3);
private FrameRates(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 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 io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QScrollerProperties::OvershootPolicy
*/
public enum OvershootPolicy implements io.qt.QtEnumerator {
OvershootWhenScrollable(0),
OvershootAlwaysOff(1),
OvershootAlwaysOn(2);
private OvershootPolicy(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 OvershootPolicy resolve(int value) {
switch (value) {
case 0: return OvershootWhenScrollable;
case 1: return OvershootAlwaysOff;
case 2: return OvershootAlwaysOn;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QScrollerProperties::ScrollMetric
*/
public enum ScrollMetric implements io.qt.QtEnumerator {
MousePressEventDelay(0),
DragStartDistance(1),
DragVelocitySmoothingFactor(2),
AxisLockThreshold(3),
ScrollingCurve(4),
DecelerationFactor(5),
MinimumVelocity(6),
MaximumVelocity(7),
MaximumClickThroughVelocity(8),
AcceleratingFlickMaximumTime(9),
AcceleratingFlickSpeedupFactor(10),
SnapPositionRatio(11),
SnapTime(12),
OvershootDragResistanceFactor(13),
OvershootDragDistanceFactor(14),
OvershootScrollDistanceFactor(15),
OvershootScrollTime(16),
HorizontalOvershootPolicy(17),
VerticalOvershootPolicy(18),
FrameRate(19),
ScrollMetricCount(20);
private ScrollMetric(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 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 io.qt.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.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)const
*/
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.widgets.QScrollerProperties sp){
return operator_equal_native_cref_QScrollerProperties_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sp));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_cref_QScrollerProperties_constfct(long __this__nativeId, long sp);
/**
* See QScrollerProperties::scrollMetric(QScrollerProperties::ScrollMetric)const
*/
@io.qt.QtUninvokable
public final java.lang.Object scrollMetric(io.qt.widgets.QScrollerProperties.ScrollMetric metric){
return scrollMetric_native_QScrollerProperties_ScrollMetric_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), metric.value());
}
@io.qt.QtUninvokable
private native java.lang.Object scrollMetric_native_QScrollerProperties_ScrollMetric_constfct(long __this__nativeId, int metric);
/**
* See QScrollerProperties::setScrollMetric(QScrollerProperties::ScrollMetric,QVariant)
*/
@io.qt.QtUninvokable
public final void setScrollMetric(io.qt.widgets.QScrollerProperties.ScrollMetric metric, java.lang.Object value){
setScrollMetric_native_QScrollerProperties_ScrollMetric_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), metric.value(), value);
}
@io.qt.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.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
.
*/
@io.qt.NativeAccess
protected QScrollerProperties(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.widgets.QScrollerProperties) {
return operator_equal((io.qt.widgets.QScrollerProperties) other);
}
return false;
}
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@Override
public QScrollerProperties clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QScrollerProperties clone_native(long __this_nativeId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy