miqt/qt6/gen_qrect.go

837 lines
22 KiB
Go
Raw Normal View History

2024-10-20 05:21:03 +00:00
package qt6
/*
#include "gen_qrect.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
"unsafe"
)
type QRect struct {
2024-11-19 06:29:06 +00:00
h *C.QRect
isSubclass bool
2024-10-20 05:21:03 +00:00
}
func (this *QRect) cPointer() *C.QRect {
if this == nil {
return nil
}
return this.h
}
func (this *QRect) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 06:29:06 +00:00
// newQRect constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQRect(h *C.QRect) *QRect {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QRect{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQRect constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQRect(h unsafe.Pointer) *QRect {
2024-12-07 04:15:57 +00:00
return newQRect((*C.QRect)(h))
2024-10-20 05:21:03 +00:00
}
// NewQRect constructs a new QRect object.
func NewQRect() *QRect {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRect(C.QRect_new())
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQRect2 constructs a new QRect object.
func NewQRect2(topleft *QPoint, bottomright *QPoint) *QRect {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRect(C.QRect_new2(topleft.cPointer(), bottomright.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQRect3 constructs a new QRect object.
func NewQRect3(topleft *QPoint, size *QSize) *QRect {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRect(C.QRect_new3(topleft.cPointer(), size.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQRect4 constructs a new QRect object.
func NewQRect4(left int, top int, width int, height int) *QRect {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRect(C.QRect_new4((C.int)(left), (C.int)(top), (C.int)(width), (C.int)(height)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQRect5 constructs a new QRect object.
func NewQRect5(param1 *QRect) *QRect {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRect(C.QRect_new5(param1.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
func (this *QRect) IsNull() bool {
return (bool)(C.QRect_IsNull(this.h))
}
func (this *QRect) IsEmpty() bool {
return (bool)(C.QRect_IsEmpty(this.h))
}
func (this *QRect) IsValid() bool {
return (bool)(C.QRect_IsValid(this.h))
}
func (this *QRect) Left() int {
return (int)(C.QRect_Left(this.h))
}
func (this *QRect) Top() int {
return (int)(C.QRect_Top(this.h))
}
func (this *QRect) Right() int {
return (int)(C.QRect_Right(this.h))
}
func (this *QRect) Bottom() int {
return (int)(C.QRect_Bottom(this.h))
}
func (this *QRect) Normalized() *QRect {
_goptr := newQRect(C.QRect_Normalized(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) X() int {
return (int)(C.QRect_X(this.h))
}
func (this *QRect) Y() int {
return (int)(C.QRect_Y(this.h))
}
func (this *QRect) SetLeft(pos int) {
C.QRect_SetLeft(this.h, (C.int)(pos))
}
func (this *QRect) SetTop(pos int) {
C.QRect_SetTop(this.h, (C.int)(pos))
}
func (this *QRect) SetRight(pos int) {
C.QRect_SetRight(this.h, (C.int)(pos))
}
func (this *QRect) SetBottom(pos int) {
C.QRect_SetBottom(this.h, (C.int)(pos))
}
func (this *QRect) SetX(x int) {
C.QRect_SetX(this.h, (C.int)(x))
}
func (this *QRect) SetY(y int) {
C.QRect_SetY(this.h, (C.int)(y))
}
func (this *QRect) SetTopLeft(p *QPoint) {
C.QRect_SetTopLeft(this.h, p.cPointer())
}
func (this *QRect) SetBottomRight(p *QPoint) {
C.QRect_SetBottomRight(this.h, p.cPointer())
}
func (this *QRect) SetTopRight(p *QPoint) {
C.QRect_SetTopRight(this.h, p.cPointer())
}
func (this *QRect) SetBottomLeft(p *QPoint) {
C.QRect_SetBottomLeft(this.h, p.cPointer())
}
func (this *QRect) TopLeft() *QPoint {
_goptr := newQPoint(C.QRect_TopLeft(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) BottomRight() *QPoint {
_goptr := newQPoint(C.QRect_BottomRight(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) TopRight() *QPoint {
_goptr := newQPoint(C.QRect_TopRight(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) BottomLeft() *QPoint {
_goptr := newQPoint(C.QRect_BottomLeft(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) Center() *QPoint {
_goptr := newQPoint(C.QRect_Center(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) MoveLeft(pos int) {
C.QRect_MoveLeft(this.h, (C.int)(pos))
}
func (this *QRect) MoveTop(pos int) {
C.QRect_MoveTop(this.h, (C.int)(pos))
}
func (this *QRect) MoveRight(pos int) {
C.QRect_MoveRight(this.h, (C.int)(pos))
}
func (this *QRect) MoveBottom(pos int) {
C.QRect_MoveBottom(this.h, (C.int)(pos))
}
func (this *QRect) MoveTopLeft(p *QPoint) {
C.QRect_MoveTopLeft(this.h, p.cPointer())
}
func (this *QRect) MoveBottomRight(p *QPoint) {
C.QRect_MoveBottomRight(this.h, p.cPointer())
}
func (this *QRect) MoveTopRight(p *QPoint) {
C.QRect_MoveTopRight(this.h, p.cPointer())
}
func (this *QRect) MoveBottomLeft(p *QPoint) {
C.QRect_MoveBottomLeft(this.h, p.cPointer())
}
func (this *QRect) MoveCenter(p *QPoint) {
C.QRect_MoveCenter(this.h, p.cPointer())
}
func (this *QRect) Translate(dx int, dy int) {
C.QRect_Translate(this.h, (C.int)(dx), (C.int)(dy))
}
func (this *QRect) TranslateWithQPoint(p *QPoint) {
C.QRect_TranslateWithQPoint(this.h, p.cPointer())
}
func (this *QRect) Translated(dx int, dy int) *QRect {
_goptr := newQRect(C.QRect_Translated(this.h, (C.int)(dx), (C.int)(dy)))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) TranslatedWithQPoint(p *QPoint) *QRect {
_goptr := newQRect(C.QRect_TranslatedWithQPoint(this.h, p.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) Transposed() *QRect {
_goptr := newQRect(C.QRect_Transposed(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) MoveTo(x int, t int) {
C.QRect_MoveTo(this.h, (C.int)(x), (C.int)(t))
}
func (this *QRect) MoveToWithQPoint(p *QPoint) {
C.QRect_MoveToWithQPoint(this.h, p.cPointer())
}
func (this *QRect) SetRect(x int, y int, w int, h int) {
C.QRect_SetRect(this.h, (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h))
}
func (this *QRect) GetRect(x *int, y *int, w *int, h *int) {
C.QRect_GetRect(this.h, (*C.int)(unsafe.Pointer(x)), (*C.int)(unsafe.Pointer(y)), (*C.int)(unsafe.Pointer(w)), (*C.int)(unsafe.Pointer(h)))
}
func (this *QRect) SetCoords(x1 int, y1 int, x2 int, y2 int) {
C.QRect_SetCoords(this.h, (C.int)(x1), (C.int)(y1), (C.int)(x2), (C.int)(y2))
}
func (this *QRect) GetCoords(x1 *int, y1 *int, x2 *int, y2 *int) {
C.QRect_GetCoords(this.h, (*C.int)(unsafe.Pointer(x1)), (*C.int)(unsafe.Pointer(y1)), (*C.int)(unsafe.Pointer(x2)), (*C.int)(unsafe.Pointer(y2)))
}
func (this *QRect) Adjust(x1 int, y1 int, x2 int, y2 int) {
C.QRect_Adjust(this.h, (C.int)(x1), (C.int)(y1), (C.int)(x2), (C.int)(y2))
}
func (this *QRect) Adjusted(x1 int, y1 int, x2 int, y2 int) *QRect {
_goptr := newQRect(C.QRect_Adjusted(this.h, (C.int)(x1), (C.int)(y1), (C.int)(x2), (C.int)(y2)))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) Size() *QSize {
_goptr := newQSize(C.QRect_Size(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) Width() int {
return (int)(C.QRect_Width(this.h))
}
func (this *QRect) Height() int {
return (int)(C.QRect_Height(this.h))
}
func (this *QRect) SetWidth(w int) {
C.QRect_SetWidth(this.h, (C.int)(w))
}
func (this *QRect) SetHeight(h int) {
C.QRect_SetHeight(this.h, (C.int)(h))
}
func (this *QRect) SetSize(s *QSize) {
C.QRect_SetSize(this.h, s.cPointer())
}
func (this *QRect) OperatorBitwiseOr(r *QRect) *QRect {
_goptr := newQRect(C.QRect_OperatorBitwiseOr(this.h, r.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) OperatorBitwiseAnd(r *QRect) *QRect {
_goptr := newQRect(C.QRect_OperatorBitwiseAnd(this.h, r.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) OperatorBitwiseOrAssign(r *QRect) {
C.QRect_OperatorBitwiseOrAssign(this.h, r.cPointer())
}
func (this *QRect) OperatorBitwiseAndAssign(r *QRect) {
C.QRect_OperatorBitwiseAndAssign(this.h, r.cPointer())
}
func (this *QRect) Contains(r *QRect) bool {
return (bool)(C.QRect_Contains(this.h, r.cPointer()))
}
func (this *QRect) ContainsWithQPoint(p *QPoint) bool {
return (bool)(C.QRect_ContainsWithQPoint(this.h, p.cPointer()))
}
func (this *QRect) Contains2(x int, y int) bool {
return (bool)(C.QRect_Contains2(this.h, (C.int)(x), (C.int)(y)))
}
func (this *QRect) Contains3(x int, y int, proper bool) bool {
return (bool)(C.QRect_Contains3(this.h, (C.int)(x), (C.int)(y), (C.bool)(proper)))
}
func (this *QRect) United(other *QRect) *QRect {
_goptr := newQRect(C.QRect_United(this.h, other.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) Intersected(other *QRect) *QRect {
_goptr := newQRect(C.QRect_Intersected(this.h, other.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) Intersects(r *QRect) bool {
return (bool)(C.QRect_Intersects(this.h, r.cPointer()))
}
func (this *QRect) MarginsAdded(margins *QMargins) *QRect {
_goptr := newQRect(C.QRect_MarginsAdded(this.h, margins.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) MarginsRemoved(margins *QMargins) *QRect {
_goptr := newQRect(C.QRect_MarginsRemoved(this.h, margins.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) OperatorPlusAssign(margins *QMargins) *QRect {
return newQRect(C.QRect_OperatorPlusAssign(this.h, margins.cPointer()))
2024-10-20 05:21:03 +00:00
}
func (this *QRect) OperatorMinusAssign(margins *QMargins) *QRect {
return newQRect(C.QRect_OperatorMinusAssign(this.h, margins.cPointer()))
2024-10-20 05:21:03 +00:00
}
func QRect_Span(p1 *QPoint, p2 *QPoint) *QRect {
_goptr := newQRect(C.QRect_Span(p1.cPointer(), p2.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) ToRectF() *QRectF {
_goptr := newQRectF(C.QRect_ToRectF(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRect) Contains22(r *QRect, proper bool) bool {
return (bool)(C.QRect_Contains22(this.h, r.cPointer(), (C.bool)(proper)))
}
func (this *QRect) Contains23(p *QPoint, proper bool) bool {
return (bool)(C.QRect_Contains23(this.h, p.cPointer(), (C.bool)(proper)))
}
// Delete this object from C++ memory.
func (this *QRect) Delete() {
2024-11-19 06:29:06 +00:00
C.QRect_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +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 *QRect) GoGC() {
runtime.SetFinalizer(this, func(this *QRect) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QRectF struct {
2024-11-19 06:29:06 +00:00
h *C.QRectF
isSubclass bool
2024-10-20 05:21:03 +00:00
}
func (this *QRectF) cPointer() *C.QRectF {
if this == nil {
return nil
}
return this.h
}
func (this *QRectF) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 06:29:06 +00:00
// newQRectF constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQRectF(h *C.QRectF) *QRectF {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QRectF{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQRectF constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQRectF(h unsafe.Pointer) *QRectF {
2024-12-07 04:15:57 +00:00
return newQRectF((*C.QRectF)(h))
2024-10-20 05:21:03 +00:00
}
// NewQRectF constructs a new QRectF object.
func NewQRectF() *QRectF {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRectF(C.QRectF_new())
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQRectF2 constructs a new QRectF object.
func NewQRectF2(topleft *QPointF, size *QSizeF) *QRectF {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRectF(C.QRectF_new2(topleft.cPointer(), size.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQRectF3 constructs a new QRectF object.
func NewQRectF3(topleft *QPointF, bottomRight *QPointF) *QRectF {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRectF(C.QRectF_new3(topleft.cPointer(), bottomRight.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQRectF4 constructs a new QRectF object.
func NewQRectF4(left float64, top float64, width float64, height float64) *QRectF {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRectF(C.QRectF_new4((C.double)(left), (C.double)(top), (C.double)(width), (C.double)(height)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQRectF5 constructs a new QRectF object.
func NewQRectF5(rect *QRect) *QRectF {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRectF(C.QRectF_new5(rect.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQRectF6 constructs a new QRectF object.
func NewQRectF6(param1 *QRectF) *QRectF {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQRectF(C.QRectF_new6(param1.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
func (this *QRectF) IsNull() bool {
return (bool)(C.QRectF_IsNull(this.h))
}
func (this *QRectF) IsEmpty() bool {
return (bool)(C.QRectF_IsEmpty(this.h))
}
func (this *QRectF) IsValid() bool {
return (bool)(C.QRectF_IsValid(this.h))
}
func (this *QRectF) Normalized() *QRectF {
_goptr := newQRectF(C.QRectF_Normalized(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) Left() float64 {
return (float64)(C.QRectF_Left(this.h))
}
func (this *QRectF) Top() float64 {
return (float64)(C.QRectF_Top(this.h))
}
func (this *QRectF) Right() float64 {
return (float64)(C.QRectF_Right(this.h))
}
func (this *QRectF) Bottom() float64 {
return (float64)(C.QRectF_Bottom(this.h))
}
func (this *QRectF) X() float64 {
return (float64)(C.QRectF_X(this.h))
}
func (this *QRectF) Y() float64 {
return (float64)(C.QRectF_Y(this.h))
}
func (this *QRectF) SetLeft(pos float64) {
C.QRectF_SetLeft(this.h, (C.double)(pos))
}
func (this *QRectF) SetTop(pos float64) {
C.QRectF_SetTop(this.h, (C.double)(pos))
}
func (this *QRectF) SetRight(pos float64) {
C.QRectF_SetRight(this.h, (C.double)(pos))
}
func (this *QRectF) SetBottom(pos float64) {
C.QRectF_SetBottom(this.h, (C.double)(pos))
}
func (this *QRectF) SetX(pos float64) {
C.QRectF_SetX(this.h, (C.double)(pos))
}
func (this *QRectF) SetY(pos float64) {
C.QRectF_SetY(this.h, (C.double)(pos))
}
func (this *QRectF) TopLeft() *QPointF {
_goptr := newQPointF(C.QRectF_TopLeft(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) BottomRight() *QPointF {
_goptr := newQPointF(C.QRectF_BottomRight(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) TopRight() *QPointF {
_goptr := newQPointF(C.QRectF_TopRight(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) BottomLeft() *QPointF {
_goptr := newQPointF(C.QRectF_BottomLeft(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) Center() *QPointF {
_goptr := newQPointF(C.QRectF_Center(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) SetTopLeft(p *QPointF) {
C.QRectF_SetTopLeft(this.h, p.cPointer())
}
func (this *QRectF) SetBottomRight(p *QPointF) {
C.QRectF_SetBottomRight(this.h, p.cPointer())
}
func (this *QRectF) SetTopRight(p *QPointF) {
C.QRectF_SetTopRight(this.h, p.cPointer())
}
func (this *QRectF) SetBottomLeft(p *QPointF) {
C.QRectF_SetBottomLeft(this.h, p.cPointer())
}
func (this *QRectF) MoveLeft(pos float64) {
C.QRectF_MoveLeft(this.h, (C.double)(pos))
}
func (this *QRectF) MoveTop(pos float64) {
C.QRectF_MoveTop(this.h, (C.double)(pos))
}
func (this *QRectF) MoveRight(pos float64) {
C.QRectF_MoveRight(this.h, (C.double)(pos))
}
func (this *QRectF) MoveBottom(pos float64) {
C.QRectF_MoveBottom(this.h, (C.double)(pos))
}
func (this *QRectF) MoveTopLeft(p *QPointF) {
C.QRectF_MoveTopLeft(this.h, p.cPointer())
}
func (this *QRectF) MoveBottomRight(p *QPointF) {
C.QRectF_MoveBottomRight(this.h, p.cPointer())
}
func (this *QRectF) MoveTopRight(p *QPointF) {
C.QRectF_MoveTopRight(this.h, p.cPointer())
}
func (this *QRectF) MoveBottomLeft(p *QPointF) {
C.QRectF_MoveBottomLeft(this.h, p.cPointer())
}
func (this *QRectF) MoveCenter(p *QPointF) {
C.QRectF_MoveCenter(this.h, p.cPointer())
}
func (this *QRectF) Translate(dx float64, dy float64) {
C.QRectF_Translate(this.h, (C.double)(dx), (C.double)(dy))
}
func (this *QRectF) TranslateWithQPointF(p *QPointF) {
C.QRectF_TranslateWithQPointF(this.h, p.cPointer())
}
func (this *QRectF) Translated(dx float64, dy float64) *QRectF {
_goptr := newQRectF(C.QRectF_Translated(this.h, (C.double)(dx), (C.double)(dy)))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) TranslatedWithQPointF(p *QPointF) *QRectF {
_goptr := newQRectF(C.QRectF_TranslatedWithQPointF(this.h, p.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) Transposed() *QRectF {
_goptr := newQRectF(C.QRectF_Transposed(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) MoveTo(x float64, y float64) {
C.QRectF_MoveTo(this.h, (C.double)(x), (C.double)(y))
}
func (this *QRectF) MoveToWithQPointF(p *QPointF) {
C.QRectF_MoveToWithQPointF(this.h, p.cPointer())
}
func (this *QRectF) SetRect(x float64, y float64, w float64, h float64) {
C.QRectF_SetRect(this.h, (C.double)(x), (C.double)(y), (C.double)(w), (C.double)(h))
}
func (this *QRectF) GetRect(x *float64, y *float64, w *float64, h *float64) {
C.QRectF_GetRect(this.h, (*C.double)(unsafe.Pointer(x)), (*C.double)(unsafe.Pointer(y)), (*C.double)(unsafe.Pointer(w)), (*C.double)(unsafe.Pointer(h)))
}
func (this *QRectF) SetCoords(x1 float64, y1 float64, x2 float64, y2 float64) {
C.QRectF_SetCoords(this.h, (C.double)(x1), (C.double)(y1), (C.double)(x2), (C.double)(y2))
}
func (this *QRectF) GetCoords(x1 *float64, y1 *float64, x2 *float64, y2 *float64) {
C.QRectF_GetCoords(this.h, (*C.double)(unsafe.Pointer(x1)), (*C.double)(unsafe.Pointer(y1)), (*C.double)(unsafe.Pointer(x2)), (*C.double)(unsafe.Pointer(y2)))
}
func (this *QRectF) Adjust(x1 float64, y1 float64, x2 float64, y2 float64) {
C.QRectF_Adjust(this.h, (C.double)(x1), (C.double)(y1), (C.double)(x2), (C.double)(y2))
}
func (this *QRectF) Adjusted(x1 float64, y1 float64, x2 float64, y2 float64) *QRectF {
_goptr := newQRectF(C.QRectF_Adjusted(this.h, (C.double)(x1), (C.double)(y1), (C.double)(x2), (C.double)(y2)))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) Size() *QSizeF {
_goptr := newQSizeF(C.QRectF_Size(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) Width() float64 {
return (float64)(C.QRectF_Width(this.h))
}
func (this *QRectF) Height() float64 {
return (float64)(C.QRectF_Height(this.h))
}
func (this *QRectF) SetWidth(w float64) {
C.QRectF_SetWidth(this.h, (C.double)(w))
}
func (this *QRectF) SetHeight(h float64) {
C.QRectF_SetHeight(this.h, (C.double)(h))
}
func (this *QRectF) SetSize(s *QSizeF) {
C.QRectF_SetSize(this.h, s.cPointer())
}
func (this *QRectF) OperatorBitwiseOr(r *QRectF) *QRectF {
_goptr := newQRectF(C.QRectF_OperatorBitwiseOr(this.h, r.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) OperatorBitwiseAnd(r *QRectF) *QRectF {
_goptr := newQRectF(C.QRectF_OperatorBitwiseAnd(this.h, r.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) OperatorBitwiseOrAssign(r *QRectF) {
C.QRectF_OperatorBitwiseOrAssign(this.h, r.cPointer())
}
func (this *QRectF) OperatorBitwiseAndAssign(r *QRectF) {
C.QRectF_OperatorBitwiseAndAssign(this.h, r.cPointer())
}
func (this *QRectF) Contains(r *QRectF) bool {
return (bool)(C.QRectF_Contains(this.h, r.cPointer()))
}
func (this *QRectF) ContainsWithQPointF(p *QPointF) bool {
return (bool)(C.QRectF_ContainsWithQPointF(this.h, p.cPointer()))
}
func (this *QRectF) Contains2(x float64, y float64) bool {
return (bool)(C.QRectF_Contains2(this.h, (C.double)(x), (C.double)(y)))
}
func (this *QRectF) United(other *QRectF) *QRectF {
_goptr := newQRectF(C.QRectF_United(this.h, other.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) Intersected(other *QRectF) *QRectF {
_goptr := newQRectF(C.QRectF_Intersected(this.h, other.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) Intersects(r *QRectF) bool {
return (bool)(C.QRectF_Intersects(this.h, r.cPointer()))
}
func (this *QRectF) MarginsAdded(margins *QMarginsF) *QRectF {
_goptr := newQRectF(C.QRectF_MarginsAdded(this.h, margins.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) MarginsRemoved(margins *QMarginsF) *QRectF {
_goptr := newQRectF(C.QRectF_MarginsRemoved(this.h, margins.cPointer()))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) OperatorPlusAssign(margins *QMarginsF) *QRectF {
return newQRectF(C.QRectF_OperatorPlusAssign(this.h, margins.cPointer()))
2024-10-20 05:21:03 +00:00
}
func (this *QRectF) OperatorMinusAssign(margins *QMarginsF) *QRectF {
return newQRectF(C.QRectF_OperatorMinusAssign(this.h, margins.cPointer()))
2024-10-20 05:21:03 +00:00
}
func (this *QRectF) ToRect() *QRect {
_goptr := newQRect(C.QRectF_ToRect(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QRectF) ToAlignedRect() *QRect {
_goptr := newQRect(C.QRectF_ToAlignedRect(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
// Delete this object from C++ memory.
func (this *QRectF) Delete() {
2024-11-19 06:29:06 +00:00
C.QRectF_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +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 *QRectF) GoGC() {
runtime.SetFinalizer(this, func(this *QRectF) {
this.Delete()
runtime.KeepAlive(this.h)
})
}