io.qt.qt3d.animation.QKeyFrame Maven / Gradle / Ivy
Show all versions of qtjambi-qt3danimation Show documentation
package io.qt.qt3d.animation;
import io.qt.*;
/**
* A base class for handling keyframes
* Java wrapper for Qt class Qt3DAnimation::QKeyFrame
*/
public class QKeyFrame extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum Qt3DAnimation::QKeyFrame::InterpolationType
*/
public enum InterpolationType implements QtByteEnumerator {
/**
* Representing Qt3DAnimation:: QKeyFrame:: ConstantInterpolation
*/
ConstantInterpolation((byte)0),
/**
* Representing Qt3DAnimation:: QKeyFrame:: LinearInterpolation
*/
LinearInterpolation((byte)1),
/**
* Representing Qt3DAnimation:: QKeyFrame:: BezierInterpolation
*/
BezierInterpolation((byte)2);
static {
QtJambi_LibraryUtilities.initialize();
}
private InterpolationType(byte value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public byte value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull InterpolationType resolve(byte value) {
switch (value) {
case 0: return ConstantInterpolation;
case 1: return LinearInterpolation;
case 2: return BezierInterpolation;
default: throw new QNoSuchEnumValueException(value);
}
}
private final byte value;
}
/**
* See Qt3DAnimation::QKeyFrame:: QKeyFrame()
*/
public QKeyFrame(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QKeyFrame instance);
/**
* See Qt3DAnimation::QKeyFrame:: QKeyFrame(QVector2D)
*/
public QKeyFrame(io.qt.gui.@NonNull QVector2D coords){
super((QPrivateConstructor)null);
initialize_native(this, coords);
}
private native static void initialize_native(QKeyFrame instance, io.qt.gui.QVector2D coords);
/**
* See Qt3DAnimation::QKeyFrame:: QKeyFrame(QVector2D, QVector2D, QVector2D)
*/
public QKeyFrame(io.qt.gui.@NonNull QVector2D coords, io.qt.gui.@NonNull QVector2D lh, io.qt.gui.@NonNull QVector2D rh){
super((QPrivateConstructor)null);
initialize_native(this, coords, lh, rh);
}
private native static void initialize_native(QKeyFrame instance, io.qt.gui.QVector2D coords, io.qt.gui.QVector2D lh, io.qt.gui.QVector2D rh);
/**
* See Qt3DAnimation::QKeyFrame:: coordinates()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QVector2D coordinates(){
return coordinates_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QVector2D coordinates_native_constfct(long __this__nativeId);
/**
* See Qt3DAnimation::QKeyFrame:: interpolationType()const
*/
@QtUninvokable
public final io.qt.qt3d.animation.QKeyFrame.@NonNull InterpolationType interpolationType(){
return io.qt.qt3d.animation.QKeyFrame.InterpolationType.resolve(interpolationType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native byte interpolationType_native_constfct(long __this__nativeId);
/**
* See Qt3DAnimation::QKeyFrame:: leftControlPoint()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QVector2D leftControlPoint(){
return leftControlPoint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QVector2D leftControlPoint_native_constfct(long __this__nativeId);
/**
* See operator==(Qt3DAnimation::QKeyFrame, Qt3DAnimation::QKeyFrame)
*/
@QtUninvokable
public final boolean equals(io.qt.qt3d.animation.@StrictNonNull QKeyFrame rhs){
java.util.Objects.requireNonNull(rhs, "Argument 'rhs': null not expected.");
return equals_native_cref_Qt3DAnimation_QKeyFrame(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native boolean equals_native_cref_Qt3DAnimation_QKeyFrame(long __this__nativeId, long rhs);
/**
* See Qt3DAnimation::QKeyFrame:: rightControlPoint()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QVector2D rightControlPoint(){
return rightControlPoint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QVector2D rightControlPoint_native_constfct(long __this__nativeId);
/**
* See Qt3DAnimation::QKeyFrame:: setCoordinates(QVector2D)
*/
@QtUninvokable
public final void setCoordinates(io.qt.gui.@NonNull QVector2D coords){
setCoordinates_native_QVector2D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(coords));
}
@QtUninvokable
private native void setCoordinates_native_QVector2D(long __this__nativeId, long coords);
/**
* See Qt3DAnimation::QKeyFrame:: setInterpolationType(Qt3DAnimation::QKeyFrame::InterpolationType)
*/
@QtUninvokable
public final void setInterpolationType(io.qt.qt3d.animation.QKeyFrame.@NonNull InterpolationType interp){
setInterpolationType_native_Qt3DAnimation_QKeyFrame_InterpolationType(QtJambi_LibraryUtilities.internal.nativeId(this), interp.value());
}
@QtUninvokable
private native void setInterpolationType_native_Qt3DAnimation_QKeyFrame_InterpolationType(long __this__nativeId, byte interp);
/**
* See Qt3DAnimation::QKeyFrame:: setLeftControlPoint(QVector2D)
*/
@QtUninvokable
public final void setLeftControlPoint(io.qt.gui.@NonNull QVector2D lh){
setLeftControlPoint_native_QVector2D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(lh));
}
@QtUninvokable
private native void setLeftControlPoint_native_QVector2D(long __this__nativeId, long lh);
/**
* See Qt3DAnimation::QKeyFrame:: setRightControlPoint(QVector2D)
*/
@QtUninvokable
public final void setRightControlPoint(io.qt.gui.@NonNull QVector2D rh){
setRightControlPoint_native_QVector2D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rh));
}
@QtUninvokable
private native void setRightControlPoint_native_QVector2D(long __this__nativeId, long rh);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QKeyFrame(QPrivateConstructor p) { super(p); }
/**
* See operator==(Qt3DAnimation::QKeyFrame, Qt3DAnimation::QKeyFrame)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.qt3d.animation.QKeyFrame) {
return equals((io.qt.qt3d.animation.QKeyFrame) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(Qt3DAnimation::QKeyFrame)
.
*/
@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.
*/
@QtUninvokable
@Override
public QKeyFrame clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QKeyFrame clone_native(long __this_nativeId);
}