io.qt.gui.QMatrix2x3 Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Java wrapper for Qt class QMatrix2x3
*/
public class QMatrix2x3 extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QMatrix2x3:: QMatrix2x3()
*/
public QMatrix2x3(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QMatrix2x3 instance);
/**
* See QMatrix2x3:: QMatrix2x3(QMatrix2x3)
*/
public QMatrix2x3(io.qt.gui.@NonNull QMatrix2x3 other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QMatrix2x3 instance, io.qt.gui.QMatrix2x3 other);
/**
* See QMatrix2x3:: QMatrix2x3(const float*)
*/
public QMatrix2x3(java.nio.@StrictNonNull FloatBuffer values){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(values, "Argument 'values': null not expected.");
if(values.capacity() < 6)
throw new IllegalArgumentException("Argument 'values': buffer minimum of capacity 6 expected.");
initialize_native(this, values);
}
private native static void initialize_native(QMatrix2x3 instance, java.nio.FloatBuffer values);
/**
* See QMatrix2x3:: 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() < 6)
throw new IllegalArgumentException("Argument 'values': buffer minimum of capacity 6 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 QMatrix2x3:: 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 QMatrix2x3:: 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 QMatrix2x3:: 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 QMatrix2x3:: 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 QMatrix2x3:: 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 QMatrix2x3:: 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 QMatrix2x3:: operator*(float)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix2x3 times(float factor){
return times_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
}
@QtUninvokable
private native io.qt.gui.QMatrix2x3 times_native_float(long __this__nativeId, float factor);
/**
* See QMatrix2x3:: operator*=(float)
*/
@QtUninvokable
public final @NonNull QMatrix2x3 multiply(float factor){
return multiply_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
}
@QtUninvokable
private native QMatrix2x3 multiply_native_float(long __this__nativeId, float factor);
/**
* See QMatrix2x3:: operator+(QMatrix2x3)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix2x3 plus(io.qt.gui.@NonNull QMatrix2x3 other){
return plus_native_cref_QMatrix2x3(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native io.qt.gui.QMatrix2x3 plus_native_cref_QMatrix2x3(long __this__nativeId, long other);
/**
* See QMatrix2x3:: operator+=(QMatrix2x3)
*/
@QtUninvokable
public final @NonNull QMatrix2x3 add(io.qt.gui.@NonNull QMatrix2x3 other){
return add_native_cref_QMatrix2x3(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native QMatrix2x3 add_native_cref_QMatrix2x3(long __this__nativeId, long other);
/**
* See QMatrix2x3:: operator-(QMatrix2x3)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix2x3 minus(io.qt.gui.@NonNull QMatrix2x3 other){
return minus_native_cref_QMatrix2x3(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native io.qt.gui.QMatrix2x3 minus_native_cref_QMatrix2x3(long __this__nativeId, long other);
/**
* See QMatrix2x3:: operator-=(QMatrix2x3)
*/
@QtUninvokable
public final @NonNull QMatrix2x3 subtract(io.qt.gui.@NonNull QMatrix2x3 other){
return subtract_native_cref_QMatrix2x3(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native QMatrix2x3 subtract_native_cref_QMatrix2x3(long __this__nativeId, long other);
/**
* See QMatrix2x3:: operator/(float)
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix2x3 div(float factor){
return div_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
}
@QtUninvokable
private native io.qt.gui.QMatrix2x3 div_native_float(long __this__nativeId, float factor);
/**
* See QMatrix2x3:: operator/=(float)
*/
@QtUninvokable
public final @NonNull QMatrix2x3 divide(float divisor){
return divide_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor);
}
@QtUninvokable
private native QMatrix2x3 divide_native_float(long __this__nativeId, float divisor);
/**
* See QMatrix2x3:: operator=(QMatrix2x3)
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QMatrix2x3 other){
assign_native_cref_QMatrix2x3(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QMatrix2x3(long __this__nativeId, long other);
/**
* See QMatrix2x3:: operator==(QMatrix2x3)const
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QMatrix2x3 other){
return equals_native_cref_QMatrix2x3_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean equals_native_cref_QMatrix2x3_constfct(long __this__nativeId, long other);
/**
* See QMatrix2x3:: setToIdentity()
*/
@QtUninvokable
public final void setToIdentity(){
setToIdentity_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void setToIdentity_native(long __this__nativeId);
/**
* See QMatrix2x3:: transposed()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix3x2 transposed(){
return transposed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QMatrix3x2 transposed_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMatrix2x3(QPrivateConstructor p) { super(p); }
/**
* See QMatrix2x3:: operator==(QMatrix2x3)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.gui.QMatrix2x3) {
return equals((io.qt.gui.QMatrix2x3) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QMatrix2x3)
.
*/
@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 < 6)
throw new ArrayIndexOutOfBoundsException(6);
return java.nio.FloatBuffer.wrap(values);
}
public QMatrix2x3(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 QMatrix2x3:: QMatrix2x3(QMatrix2x3)
*/
@QtUninvokable
@Override
public QMatrix2x3 clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QMatrix2x3 clone_native(long __this_nativeId);
}