io.qt.gui.QMatrix4x2 Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Java wrapper for Qt class QMatrix4x2
*/
public class QMatrix4x2 extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QMatrix4x2:: QMatrix4x2()
*/
public QMatrix4x2(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QMatrix4x2 instance);
/**
* See QMatrix4x2:: QMatrix4x2(QMatrix4x2)
*/
public QMatrix4x2(io.qt.gui.@NonNull QMatrix4x2 other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QMatrix4x2 instance, io.qt.gui.QMatrix4x2 other);
/**
* See QMatrix4x2:: QMatrix4x2(const float*)
*/
public QMatrix4x2(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(QMatrix4x2 instance, java.nio.FloatBuffer values);
/**
* See QMatrix4x2:: 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 QMatrix4x2:: 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 QMatrix4x2:: 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 QMatrix4x2:: 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 QMatrix4x2:: 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 QMatrix4x2:: 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 QMatrix4x2:: 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 QMatrix4x2:: operator*(float)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix4x2 times(float factor){
return times_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
}
@QtUninvokable
private native io.qt.gui.QMatrix4x2 times_native_float(long __this__nativeId, float factor);
/**
* See QMatrix4x2:: operator*=(float)
*/
@QtUninvokable
public final @NonNull QMatrix4x2 multiply(float factor){
return multiply_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
}
@QtUninvokable
private native QMatrix4x2 multiply_native_float(long __this__nativeId, float factor);
/**
* See QMatrix4x2:: operator+(QMatrix4x2)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix4x2 plus(io.qt.gui.@NonNull QMatrix4x2 other){
return plus_native_cref_QMatrix4x2(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native io.qt.gui.QMatrix4x2 plus_native_cref_QMatrix4x2(long __this__nativeId, long other);
/**
* See QMatrix4x2:: operator+=(QMatrix4x2)
*/
@QtUninvokable
public final @NonNull QMatrix4x2 add(io.qt.gui.@NonNull QMatrix4x2 other){
return add_native_cref_QMatrix4x2(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native QMatrix4x2 add_native_cref_QMatrix4x2(long __this__nativeId, long other);
/**
* See QMatrix4x2:: operator-(QMatrix4x2)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix4x2 minus(io.qt.gui.@NonNull QMatrix4x2 other){
return minus_native_cref_QMatrix4x2(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native io.qt.gui.QMatrix4x2 minus_native_cref_QMatrix4x2(long __this__nativeId, long other);
/**
* See QMatrix4x2:: operator-=(QMatrix4x2)
*/
@QtUninvokable
public final @NonNull QMatrix4x2 subtract(io.qt.gui.@NonNull QMatrix4x2 other){
return subtract_native_cref_QMatrix4x2(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native QMatrix4x2 subtract_native_cref_QMatrix4x2(long __this__nativeId, long other);
/**
* See QMatrix4x2:: operator/(float)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix4x2 div(float factor){
return div_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
}
@QtUninvokable
private native io.qt.gui.QMatrix4x2 div_native_float(long __this__nativeId, float factor);
/**
* See QMatrix4x2:: operator/=(float)
*/
@QtUninvokable
public final @NonNull QMatrix4x2 divide(float divisor){
return divide_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor);
}
@QtUninvokable
private native QMatrix4x2 divide_native_float(long __this__nativeId, float divisor);
/**
* See QMatrix4x2:: operator=(QMatrix4x2)
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QMatrix4x2 other){
assign_native_cref_QMatrix4x2(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QMatrix4x2(long __this__nativeId, long other);
/**
* See QMatrix4x2:: operator==(QMatrix4x2)const
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QMatrix4x2 other){
return equals_native_cref_QMatrix4x2_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean equals_native_cref_QMatrix4x2_constfct(long __this__nativeId, long other);
/**
* See QMatrix4x2:: setToIdentity()
*/
@QtUninvokable
public final void setToIdentity(){
setToIdentity_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void setToIdentity_native(long __this__nativeId);
/**
* See QMatrix4x2:: transposed()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix2x4 transposed(){
return transposed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QMatrix2x4 transposed_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMatrix4x2(QPrivateConstructor p) { super(p); }
/**
* See QMatrix4x2:: operator==(QMatrix4x2)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.gui.QMatrix4x2) {
return equals((io.qt.gui.QMatrix4x2) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QMatrix4x2)
.
*/
@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 QMatrix4x2(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 QMatrix4x2:: QMatrix4x2(QMatrix4x2)
*/
@QtUninvokable
@Override
public QMatrix4x2 clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QMatrix4x2 clone_native(long __this_nativeId);
}