io.qt.gui.QMatrix2x4 Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Java wrapper for Qt class QMatrix2x4
*/
public class QMatrix2x4 extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QMatrix2x4:: QMatrix2x4()
*/
public QMatrix2x4(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QMatrix2x4 instance);
/**
* See QMatrix2x4:: QMatrix2x4(QMatrix2x4)
*/
public QMatrix2x4(io.qt.gui.@NonNull QMatrix2x4 other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QMatrix2x4 instance, io.qt.gui.QMatrix2x4 other);
/**
* See QMatrix2x4:: QMatrix2x4(const float*)
*/
public QMatrix2x4(java.nio.@StrictNonNull FloatBuffer values){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(values, "Argument 'values': null not expected.");
if(values.capacity() < 8)
throw new IllegalArgumentException("Argument 'values': buffer minimum of capacity 8 expected.");
initialize_native(this, values);
}
private native static void initialize_native(QMatrix2x4 instance, java.nio.FloatBuffer values);
/**
* See QMatrix2x4:: copyDataTo(float*)const
*/
@QtUninvokable
public final void copyDataTo(java.nio.@StrictNonNull FloatBuffer values){
java.util.Objects.requireNonNull(values, "Argument 'values': null not expected.");
if(values.capacity() < 8)
throw new IllegalArgumentException("Argument 'values': buffer minimum of capacity 8 expected.");
copyDataTo_native_float_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), values);
}
@QtUninvokable
private native void copyDataTo_native_float_ptr_constfct(long __this__nativeId, java.nio.FloatBuffer values);
/**
* See QMatrix2x4:: data()
*/
@QtUninvokable
public final java.nio.@StrictNonNull FloatBuffer data(){
return data_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.nio.FloatBuffer data_native(long __this__nativeId);
/**
* See QMatrix2x4:: data()const
*/
@QtUninvokable
public final float @StrictNonNull[] array(){
return array_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float[] array_native_constfct(long __this__nativeId);
/**
* See QMatrix2x4:: fill(float)
*/
@QtUninvokable
public final void fill(float value){
fill_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@QtUninvokable
private native void fill_native_float(long __this__nativeId, float value);
/**
* See QMatrix2x4:: isIdentity()const
*/
@QtUninvokable
public final boolean isIdentity(){
return isIdentity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isIdentity_native_constfct(long __this__nativeId);
/**
* See QMatrix2x4:: operator()(int, int)
*/
@QtUninvokable
public final void setValue(int row, int column, float value){
setValue_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, value);
}
@QtUninvokable
private native void setValue_native_int_int(long __this__nativeId, int row, int column, float value);
/**
* See QMatrix2x4:: operator()(int, int)const
*/
@QtUninvokable
public final float value(int row, int column){
return value_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column);
}
@QtUninvokable
private native float value_native_int_int_constfct(long __this__nativeId, int row, int column);
/**
* See QMatrix2x4:: operator*(float)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix2x4 times(float factor){
return times_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
}
@QtUninvokable
private native io.qt.gui.QMatrix2x4 times_native_float(long __this__nativeId, float factor);
/**
* See QMatrix2x4:: operator*=(float)
*/
@QtUninvokable
public final @NonNull QMatrix2x4 multiply(float factor){
return multiply_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
}
@QtUninvokable
private native QMatrix2x4 multiply_native_float(long __this__nativeId, float factor);
/**
* See QMatrix2x4:: operator+(QMatrix2x4)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix2x4 plus(io.qt.gui.@NonNull QMatrix2x4 other){
return plus_native_cref_QMatrix2x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native io.qt.gui.QMatrix2x4 plus_native_cref_QMatrix2x4(long __this__nativeId, long other);
/**
* See QMatrix2x4:: operator+=(QMatrix2x4)
*/
@QtUninvokable
public final @NonNull QMatrix2x4 add(io.qt.gui.@NonNull QMatrix2x4 other){
return add_native_cref_QMatrix2x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native QMatrix2x4 add_native_cref_QMatrix2x4(long __this__nativeId, long other);
/**
* See QMatrix2x4:: operator-(QMatrix2x4)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix2x4 minus(io.qt.gui.@NonNull QMatrix2x4 other){
return minus_native_cref_QMatrix2x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native io.qt.gui.QMatrix2x4 minus_native_cref_QMatrix2x4(long __this__nativeId, long other);
/**
* See QMatrix2x4:: operator-=(QMatrix2x4)
*/
@QtUninvokable
public final @NonNull QMatrix2x4 subtract(io.qt.gui.@NonNull QMatrix2x4 other){
return subtract_native_cref_QMatrix2x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native QMatrix2x4 subtract_native_cref_QMatrix2x4(long __this__nativeId, long other);
/**
* See QMatrix2x4:: operator/(float)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix2x4 div(float factor){
return div_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
}
@QtUninvokable
private native io.qt.gui.QMatrix2x4 div_native_float(long __this__nativeId, float factor);
/**
* See QMatrix2x4:: operator/=(float)
*/
@QtUninvokable
public final @NonNull QMatrix2x4 divide(float divisor){
return divide_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor);
}
@QtUninvokable
private native QMatrix2x4 divide_native_float(long __this__nativeId, float divisor);
/**
* See QMatrix2x4:: operator=(QMatrix2x4)
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QMatrix2x4 other){
assign_native_cref_QMatrix2x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QMatrix2x4(long __this__nativeId, long other);
/**
* See QMatrix2x4:: operator==(QMatrix2x4)const
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QMatrix2x4 other){
return equals_native_cref_QMatrix2x4_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean equals_native_cref_QMatrix2x4_constfct(long __this__nativeId, long other);
/**
* See QMatrix2x4:: setToIdentity()
*/
@QtUninvokable
public final void setToIdentity(){
setToIdentity_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void setToIdentity_native(long __this__nativeId);
/**
* See QMatrix2x4:: transposed()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix4x2 transposed(){
return transposed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QMatrix4x2 transposed_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMatrix2x4(QPrivateConstructor p) { super(p); }
/**
* See QMatrix2x4:: operator==(QMatrix2x4)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QMatrix2x4) {
return equals((io.qt.gui.QMatrix2x4) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QMatrix2x4)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
// TEMPLATE - gui.matrix_constructor - START
private static java.nio.FloatBuffer wrap(float[] values){
if(values.length < 8)
throw new ArrayIndexOutOfBoundsException(8);
return java.nio.FloatBuffer.wrap(values);
}
public QMatrix2x4(float[] values){
this(wrap(values));
}
@QtUninvokable
public final void copyDataTo(float[] values) {
copyDataTo(wrap(values));
}
// TEMPLATE - gui.matrix_constructor - END
/**
* Creates and returns a copy of this object.
See QMatrix2x4:: QMatrix2x4(QMatrix2x4)
*/
@QtUninvokable
@Override
public QMatrix2x4 clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QMatrix2x4 clone_native(long __this_nativeId);
}