io.qt.core.QLine Maven / Gradle / Ivy
The newest version!
package io.qt.core;
/**
* Two-dimensional vector using integer precision
* Java wrapper for Qt class QLine
*/
public class QLine extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QLine::QLine()
*/
public QLine(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QLine instance);
/**
* See QLine::QLine(QPoint,QPoint)
*/
public QLine(io.qt.core.QPoint pt1, io.qt.core.QPoint pt2){
super((QPrivateConstructor)null);
initialize_native(this, pt1, pt2);
}
private native static void initialize_native(QLine instance, io.qt.core.QPoint pt1, io.qt.core.QPoint pt2);
/**
* See QLine::QLine(int,int,int,int)
*/
public QLine(int x1, int y1, int x2, int y2){
super((QPrivateConstructor)null);
initialize_native(this, x1, y1, x2, y2);
}
private native static void initialize_native(QLine instance, int x1, int y1, int x2, int y2);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint center(){
return center_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint center_native_constfct(long __this__nativeId);
/**
* See QLine::dx()const
*/
@io.qt.QtUninvokable
public final int dx(){
return dx_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int dx_native_constfct(long __this__nativeId);
/**
* See QLine::dy()const
*/
@io.qt.QtUninvokable
public final int dy(){
return dy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int dy_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.QDataStream arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
* See QLine::operator==(QLine)const
*/
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.core.QLine d){
return operator_equal_native_cref_QLine_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(d));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_cref_QLine_constfct(long __this__nativeId, long d);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.QDataStream arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
* See QLine::p1()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint p1(){
return p1_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint p1_native_constfct(long __this__nativeId);
/**
* See QLine::p2()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint p2(){
return p2_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint p2_native_constfct(long __this__nativeId);
/**
* See QLine::setLine(int,int,int,int)
*/
@io.qt.QtUninvokable
public final void setLine(int x1, int y1, int x2, int y2){
setLine_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), x1, y1, x2, y2);
}
@io.qt.QtUninvokable
private native void setLine_native_int_int_int_int(long __this__nativeId, int x1, int y1, int x2, int y2);
/**
*
*/
@io.qt.QtUninvokable
public final void setP1(io.qt.core.QPoint p1){
setP1_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p1));
}
@io.qt.QtUninvokable
private native void setP1_native_cref_QPoint(long __this__nativeId, long p1);
/**
*
*/
@io.qt.QtUninvokable
public final void setP2(io.qt.core.QPoint p2){
setP2_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p2));
}
@io.qt.QtUninvokable
private native void setP2_native_cref_QPoint(long __this__nativeId, long p2);
/**
* See QLine::setPoints(QPoint,QPoint)
*/
@io.qt.QtUninvokable
public final void setPoints(io.qt.core.QPoint p1, io.qt.core.QPoint p2){
setPoints_native_cref_QPoint_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p1), QtJambi_LibraryUtilities.internal.checkedNativeId(p2));
}
@io.qt.QtUninvokable
private native void setPoints_native_cref_QPoint_cref_QPoint(long __this__nativeId, long p1, long p2);
/**
*
*/
@io.qt.QtUninvokable
public final void translate(io.qt.core.QPoint p){
translate_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@io.qt.QtUninvokable
private native void translate_native_cref_QPoint(long __this__nativeId, long p);
/**
*
*/
@io.qt.QtUninvokable
public final void translate(int dx, int dy){
translate_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy);
}
@io.qt.QtUninvokable
private native void translate_native_int_int(long __this__nativeId, int dx, int dy);
/**
* See QLine::translated(QPoint)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QLine translated(io.qt.core.QPoint p){
return translated_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@io.qt.QtUninvokable
private native io.qt.core.QLine translated_native_cref_QPoint_constfct(long __this__nativeId, long p);
/**
* See QLine::translated(int,int)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QLine translated(int dx, int dy){
return translated_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy);
}
@io.qt.QtUninvokable
private native io.qt.core.QLine translated_native_int_int_constfct(long __this__nativeId, int dx, int dy);
/**
* See QLine::x1()const
*/
@io.qt.QtUninvokable
public final int x1(){
return x1_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int x1_native_constfct(long __this__nativeId);
/**
* See QLine::x2()const
*/
@io.qt.QtUninvokable
public final int x2(){
return x2_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int x2_native_constfct(long __this__nativeId);
/**
* See QLine::y1()const
*/
@io.qt.QtUninvokable
public final int y1(){
return y1_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int y1_native_constfct(long __this__nativeId);
/**
* See QLine::y2()const
*/
@io.qt.QtUninvokable
public final int y2(){
return y2_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int y2_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QLine(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QLine) {
return operator_equal((io.qt.core.QLine) 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
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
@Override
public QLine clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QLine clone_native(long __this_nativeId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy