2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qtransform.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QTransform__TransformationType int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTransform__TxNone QTransform__TransformationType = 0
|
|
|
|
QTransform__TxTranslate QTransform__TransformationType = 1
|
|
|
|
QTransform__TxScale QTransform__TransformationType = 2
|
|
|
|
QTransform__TxRotate QTransform__TransformationType = 4
|
|
|
|
QTransform__TxShear QTransform__TransformationType = 8
|
|
|
|
QTransform__TxProject QTransform__TransformationType = 16
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTransform struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTransform
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) cPointer() *C.QTransform {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTransform) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTransform constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQTransform(h *C.QTransform) *QTransform {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QTransform{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTransform constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQTransform(h unsafe.Pointer) *QTransform {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTransform{h: (*C.QTransform)(h)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTransform constructs a new QTransform object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQTransform(param1 Initialization) *QTransform {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTransform *C.QTransform = nil
|
|
|
|
|
|
|
|
C.QTransform_new((C.int)(param1), &outptr_QTransform)
|
|
|
|
ret := newQTransform(outptr_QTransform)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTransform2 constructs a new QTransform object.
|
2024-08-29 07:01:51 +00:00
|
|
|
func NewQTransform2() *QTransform {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTransform *C.QTransform = nil
|
|
|
|
|
|
|
|
C.QTransform_new2(&outptr_QTransform)
|
|
|
|
ret := newQTransform(outptr_QTransform)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTransform3 constructs a new QTransform object.
|
2024-08-29 07:01:51 +00:00
|
|
|
func NewQTransform3(h11 float64, h12 float64, h13 float64, h21 float64, h22 float64, h23 float64, h31 float64, h32 float64) *QTransform {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTransform *C.QTransform = nil
|
|
|
|
|
|
|
|
C.QTransform_new3((C.double)(h11), (C.double)(h12), (C.double)(h13), (C.double)(h21), (C.double)(h22), (C.double)(h23), (C.double)(h31), (C.double)(h32), &outptr_QTransform)
|
|
|
|
ret := newQTransform(outptr_QTransform)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTransform4 constructs a new QTransform object.
|
2024-08-29 07:01:51 +00:00
|
|
|
func NewQTransform4(h11 float64, h12 float64, h21 float64, h22 float64, dx float64, dy float64) *QTransform {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTransform *C.QTransform = nil
|
|
|
|
|
|
|
|
C.QTransform_new4((C.double)(h11), (C.double)(h12), (C.double)(h21), (C.double)(h22), (C.double)(dx), (C.double)(dy), &outptr_QTransform)
|
|
|
|
ret := newQTransform(outptr_QTransform)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTransform5 constructs a new QTransform object.
|
2024-08-29 07:01:51 +00:00
|
|
|
func NewQTransform5(mtx *QMatrix) *QTransform {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTransform *C.QTransform = nil
|
|
|
|
|
|
|
|
C.QTransform_new5(mtx.cPointer(), &outptr_QTransform)
|
|
|
|
ret := newQTransform(outptr_QTransform)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTransform6 constructs a new QTransform object.
|
2024-08-29 07:01:51 +00:00
|
|
|
func NewQTransform6(other *QTransform) *QTransform {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTransform *C.QTransform = nil
|
|
|
|
|
|
|
|
C.QTransform_new6(other.cPointer(), &outptr_QTransform)
|
|
|
|
ret := newQTransform(outptr_QTransform)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTransform7 constructs a new QTransform object.
|
|
|
|
func NewQTransform7(h11 float64, h12 float64, h13 float64, h21 float64, h22 float64, h23 float64, h31 float64, h32 float64, h33 float64) *QTransform {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTransform *C.QTransform = nil
|
|
|
|
|
|
|
|
C.QTransform_new7((C.double)(h11), (C.double)(h12), (C.double)(h13), (C.double)(h21), (C.double)(h22), (C.double)(h23), (C.double)(h31), (C.double)(h32), (C.double)(h33), &outptr_QTransform)
|
|
|
|
ret := newQTransform(outptr_QTransform)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) OperatorAssign(param1 *QTransform) {
|
|
|
|
C.QTransform_OperatorAssign(this.h, param1.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) IsAffine() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTransform_IsAffine(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) IsIdentity() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTransform_IsIdentity(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) IsInvertible() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTransform_IsInvertible(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) IsScaling() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTransform_IsScaling(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) IsRotating() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTransform_IsRotating(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) IsTranslating() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTransform_IsTranslating(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTransform) Type() QTransform__TransformationType {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QTransform__TransformationType)(C.QTransform_Type(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTransform) Determinant() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_Determinant(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Det() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_Det(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) M11() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_M11(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) M12() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_M12(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) M13() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_M13(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) M21() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_M21(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) M22() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_M22(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) M23() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_M23(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) M31() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_M31(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) M32() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_M32(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) M33() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_M33(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Dx() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_Dx(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Dy() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QTransform_Dy(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) SetMatrix(m11 float64, m12 float64, m13 float64, m21 float64, m22 float64, m23 float64, m31 float64, m32 float64, m33 float64) {
|
|
|
|
C.QTransform_SetMatrix(this.h, (C.double)(m11), (C.double)(m12), (C.double)(m13), (C.double)(m21), (C.double)(m22), (C.double)(m23), (C.double)(m31), (C.double)(m32), (C.double)(m33))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Inverted() *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQTransform(C.QTransform_Inverted(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Adjoint() *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQTransform(C.QTransform_Adjoint(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Transposed() *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQTransform(C.QTransform_Transposed(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Translate(dx float64, dy float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_Translate(this.h, (C.double)(dx), (C.double)(dy)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Scale(sx float64, sy float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_Scale(this.h, (C.double)(sx), (C.double)(sy)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Shear(sh float64, sv float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_Shear(this.h, (C.double)(sh), (C.double)(sv)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QTransform) Rotate(a float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_Rotate(this.h, (C.double)(a)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) RotateRadians(a float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_RotateRadians(this.h, (C.double)(a)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTransform) OperatorEqual(param1 *QTransform) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTransform_OperatorEqual(this.h, param1.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) OperatorNotEqual(param1 *QTransform) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QTransform_OperatorNotEqual(this.h, param1.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) OperatorMultiplyAssign(param1 *QTransform) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_OperatorMultiplyAssign(this.h, param1.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) OperatorMultiply(o *QTransform) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQTransform(C.QTransform_OperatorMultiply(this.h, o.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Reset() {
|
|
|
|
C.QTransform_Reset(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Map(p *QPoint) *QPoint {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQPoint(C.QTransform_Map(this.h, p.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) MapWithQPointF(p *QPointF) *QPointF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQPointF(C.QTransform_MapWithQPointF(this.h, p.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) MapWithQLine(l *QLine) *QLine {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQLine(C.QTransform_MapWithQLine(this.h, l.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) MapWithQLineF(l *QLineF) *QLineF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQLineF(C.QTransform_MapWithQLineF(this.h, l.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) MapWithQRegion(r *QRegion) *QRegion {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQRegion(C.QTransform_MapWithQRegion(this.h, r.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) MapWithQPainterPath(p *QPainterPath) *QPainterPath {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQPainterPath(C.QTransform_MapWithQPainterPath(this.h, p.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) MapRect(param1 *QRect) *QRect {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQRect(C.QTransform_MapRect(this.h, param1.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) MapRectWithQRectF(param1 *QRectF) *QRectF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQRectF(C.QTransform_MapRectWithQRectF(this.h, param1.cPointer()))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Map2(x int, y int, tx *int, ty *int) {
|
|
|
|
C.QTransform_Map2(this.h, (C.int)(x), (C.int)(y), (*C.int)(unsafe.Pointer(tx)), (*C.int)(unsafe.Pointer(ty)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Map3(x float64, y float64, tx *float64, ty *float64) {
|
|
|
|
C.QTransform_Map3(this.h, (C.double)(x), (C.double)(y), (*C.double)(unsafe.Pointer(tx)), (*C.double)(unsafe.Pointer(ty)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) ToAffine() *QMatrix {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQMatrix(C.QTransform_ToAffine(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) OperatorMultiplyAssignWithDiv(div float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_OperatorMultiplyAssignWithDiv(this.h, (C.double)(div)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) OperatorDivideAssign(div float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_OperatorDivideAssign(this.h, (C.double)(div)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) OperatorPlusAssign(div float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_OperatorPlusAssign(this.h, (C.double)(div)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) OperatorMinusAssign(div float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_OperatorMinusAssign(this.h, (C.double)(div)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QTransform_FromTranslate(dx float64, dy float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQTransform(C.QTransform_FromTranslate((C.double)(dx), (C.double)(dy)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QTransform_FromScale(dx float64, dy float64) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQTransform(C.QTransform_FromScale((C.double)(dx), (C.double)(dy)))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTransform) Inverted1(invertible *bool) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQTransform(C.QTransform_Inverted1(this.h, (*C.bool)(unsafe.Pointer(invertible))))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTransform) Rotate2(a float64, axis Axis) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_Rotate2(this.h, (C.double)(a), (C.int)(axis)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTransform) RotateRadians2(a float64, axis Axis) *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTransform(C.QTransform_RotateRadians2(this.h, (C.double)(a), (C.int)(axis)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTransform) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTransform_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTransform) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTransform) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|