2024-11-26 22:31:32 +13:00
|
|
|
package webkit
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qwebelement.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mappu/miqt/qt"
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QWebElement__StyleResolveStrategy int
|
|
|
|
|
|
|
|
const (
|
|
|
|
QWebElement__InlineStyle QWebElement__StyleResolveStrategy = 0
|
|
|
|
QWebElement__CascadedStyle QWebElement__StyleResolveStrategy = 1
|
|
|
|
QWebElement__ComputedStyle QWebElement__StyleResolveStrategy = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
type QWebElement struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QWebElement
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) cPointer() *C.QWebElement {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
// newQWebElement constructs the type using only CGO pointers.
|
|
|
|
func newQWebElement(h *C.QWebElement) *QWebElement {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
|
2024-11-26 22:31:32 +13:00
|
|
|
return &QWebElement{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnsafeNewQWebElement constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQWebElement(h unsafe.Pointer) *QWebElement {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQWebElement((*C.QWebElement)(h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQWebElement constructs a new QWebElement object.
|
|
|
|
func NewQWebElement() *QWebElement {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQWebElement(C.QWebElement_new())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQWebElement2 constructs a new QWebElement object.
|
|
|
|
func NewQWebElement2(param1 *QWebElement) *QWebElement {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQWebElement(C.QWebElement_new2(param1.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) OperatorAssign(param1 *QWebElement) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_operatorAssign(this.h, param1.cPointer())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) OperatorEqual(o *QWebElement) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElement_operatorEqual(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) OperatorNotEqual(o *QWebElement) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElement_operatorNotEqual(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) IsNull() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElement_isNull(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) FindAll(selectorQuery string) *QWebElementCollection {
|
|
|
|
selectorQuery_ms := C.struct_miqt_string{}
|
|
|
|
selectorQuery_ms.data = C.CString(selectorQuery)
|
|
|
|
selectorQuery_ms.len = C.size_t(len(selectorQuery))
|
|
|
|
defer C.free(unsafe.Pointer(selectorQuery_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection(C.QWebElement_findAll(this.h, selectorQuery_ms))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) FindFirst(selectorQuery string) *QWebElement {
|
|
|
|
selectorQuery_ms := C.struct_miqt_string{}
|
|
|
|
selectorQuery_ms.data = C.CString(selectorQuery)
|
|
|
|
selectorQuery_ms.len = C.size_t(len(selectorQuery))
|
|
|
|
defer C.free(unsafe.Pointer(selectorQuery_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElement_findFirst(this.h, selectorQuery_ms))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) SetPlainText(text string) {
|
|
|
|
text_ms := C.struct_miqt_string{}
|
|
|
|
text_ms.data = C.CString(text)
|
|
|
|
text_ms.len = C.size_t(len(text))
|
|
|
|
defer C.free(unsafe.Pointer(text_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_setPlainText(this.h, text_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) ToPlainText() string {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_toPlainText(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) SetOuterXml(markup string) {
|
|
|
|
markup_ms := C.struct_miqt_string{}
|
|
|
|
markup_ms.data = C.CString(markup)
|
|
|
|
markup_ms.len = C.size_t(len(markup))
|
|
|
|
defer C.free(unsafe.Pointer(markup_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_setOuterXml(this.h, markup_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) ToOuterXml() string {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_toOuterXml(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) SetInnerXml(markup string) {
|
|
|
|
markup_ms := C.struct_miqt_string{}
|
|
|
|
markup_ms.data = C.CString(markup)
|
|
|
|
markup_ms.len = C.size_t(len(markup))
|
|
|
|
defer C.free(unsafe.Pointer(markup_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_setInnerXml(this.h, markup_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) ToInnerXml() string {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_toInnerXml(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) SetAttribute(name string, value string) {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
value_ms := C.struct_miqt_string{}
|
|
|
|
value_ms.data = C.CString(value)
|
|
|
|
value_ms.len = C.size_t(len(value))
|
|
|
|
defer C.free(unsafe.Pointer(value_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_setAttribute(this.h, name_ms, value_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) SetAttributeNS(namespaceUri string, name string, value string) {
|
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
value_ms := C.struct_miqt_string{}
|
|
|
|
value_ms.data = C.CString(value)
|
|
|
|
value_ms.len = C.size_t(len(value))
|
|
|
|
defer C.free(unsafe.Pointer(value_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_setAttributeNS(this.h, namespaceUri_ms, name_ms, value_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Attribute(name string) string {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_attribute(this.h, name_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) AttributeNS(namespaceUri string, name string) string {
|
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_attributeNS(this.h, namespaceUri_ms, name_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) HasAttribute(name string) bool {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElement_hasAttribute(this.h, name_ms))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) HasAttributeNS(namespaceUri string, name string) bool {
|
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElement_hasAttributeNS(this.h, namespaceUri_ms, name_ms))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) RemoveAttribute(name string) {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_removeAttribute(this.h, name_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) RemoveAttributeNS(namespaceUri string, name string) {
|
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_removeAttributeNS(this.h, namespaceUri_ms, name_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) HasAttributes() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElement_hasAttributes(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) AttributeNames() []string {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ma C.struct_miqt_array = C.QWebElement_attributeNames(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := make([]string, int(_ma.len))
|
|
|
|
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
|
|
var _lv_ms C.struct_miqt_string = _outCast[i]
|
|
|
|
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_lv_ms.data))
|
|
|
|
_ret[i] = _lv_ret
|
|
|
|
}
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Classes() []string {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ma C.struct_miqt_array = C.QWebElement_classes(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := make([]string, int(_ma.len))
|
|
|
|
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
|
|
var _lv_ms C.struct_miqt_string = _outCast[i]
|
|
|
|
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_lv_ms.data))
|
|
|
|
_ret[i] = _lv_ret
|
|
|
|
}
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) HasClass(name string) bool {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElement_hasClass(this.h, name_ms))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) AddClass(name string) {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_addClass(this.h, name_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) RemoveClass(name string) {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_removeClass(this.h, name_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) ToggleClass(name string) {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_toggleClass(this.h, name_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) HasFocus() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElement_hasFocus(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) SetFocus() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_setFocus(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Geometry() *qt.QRect {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := qt.UnsafeNewQRect(unsafe.Pointer(C.QWebElement_geometry(this.h)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) TagName() string {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_tagName(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Prefix() string {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_prefix(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) LocalName() string {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_localName(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) NamespaceUri() string {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_namespaceUri(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Parent() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElement_parent(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) FirstChild() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElement_firstChild(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) LastChild() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElement_lastChild(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) NextSibling() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElement_nextSibling(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) PreviousSibling() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElement_previousSibling(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Document() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElement_document(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) WebFrame() *QWebFrame {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebFrame(C.QWebElement_webFrame(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) AppendInside(markup string) {
|
|
|
|
markup_ms := C.struct_miqt_string{}
|
|
|
|
markup_ms.data = C.CString(markup)
|
|
|
|
markup_ms.len = C.size_t(len(markup))
|
|
|
|
defer C.free(unsafe.Pointer(markup_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_appendInside(this.h, markup_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) AppendInsideWithElement(element *QWebElement) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_appendInsideWithElement(this.h, element.cPointer())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) PrependInside(markup string) {
|
|
|
|
markup_ms := C.struct_miqt_string{}
|
|
|
|
markup_ms.data = C.CString(markup)
|
|
|
|
markup_ms.len = C.size_t(len(markup))
|
|
|
|
defer C.free(unsafe.Pointer(markup_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_prependInside(this.h, markup_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) PrependInsideWithElement(element *QWebElement) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_prependInsideWithElement(this.h, element.cPointer())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) AppendOutside(markup string) {
|
|
|
|
markup_ms := C.struct_miqt_string{}
|
|
|
|
markup_ms.data = C.CString(markup)
|
|
|
|
markup_ms.len = C.size_t(len(markup))
|
|
|
|
defer C.free(unsafe.Pointer(markup_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_appendOutside(this.h, markup_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) AppendOutsideWithElement(element *QWebElement) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_appendOutsideWithElement(this.h, element.cPointer())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) PrependOutside(markup string) {
|
|
|
|
markup_ms := C.struct_miqt_string{}
|
|
|
|
markup_ms.data = C.CString(markup)
|
|
|
|
markup_ms.len = C.size_t(len(markup))
|
|
|
|
defer C.free(unsafe.Pointer(markup_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_prependOutside(this.h, markup_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) PrependOutsideWithElement(element *QWebElement) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_prependOutsideWithElement(this.h, element.cPointer())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) EncloseContentsWith(element *QWebElement) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_encloseContentsWith(this.h, element.cPointer())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) EncloseContentsWithWithMarkup(markup string) {
|
|
|
|
markup_ms := C.struct_miqt_string{}
|
|
|
|
markup_ms.data = C.CString(markup)
|
|
|
|
markup_ms.len = C.size_t(len(markup))
|
|
|
|
defer C.free(unsafe.Pointer(markup_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_encloseContentsWithWithMarkup(this.h, markup_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) EncloseWith(markup string) {
|
|
|
|
markup_ms := C.struct_miqt_string{}
|
|
|
|
markup_ms.data = C.CString(markup)
|
|
|
|
markup_ms.len = C.size_t(len(markup))
|
|
|
|
defer C.free(unsafe.Pointer(markup_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_encloseWith(this.h, markup_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) EncloseWithWithElement(element *QWebElement) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_encloseWithWithElement(this.h, element.cPointer())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Replace(markup string) {
|
|
|
|
markup_ms := C.struct_miqt_string{}
|
|
|
|
markup_ms.data = C.CString(markup)
|
|
|
|
markup_ms.len = C.size_t(len(markup))
|
|
|
|
defer C.free(unsafe.Pointer(markup_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_replace(this.h, markup_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) ReplaceWithElement(element *QWebElement) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_replaceWithElement(this.h, element.cPointer())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Clone() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElement_clone(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) TakeFromDocument() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebElement(C.QWebElement_takeFromDocument(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) RemoveFromDocument() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_removeFromDocument(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) RemoveAllChildren() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_removeAllChildren(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) EvaluateJavaScript(scriptSource string) *qt.QVariant {
|
|
|
|
scriptSource_ms := C.struct_miqt_string{}
|
|
|
|
scriptSource_ms.data = C.CString(scriptSource)
|
|
|
|
scriptSource_ms.len = C.size_t(len(scriptSource))
|
|
|
|
defer C.free(unsafe.Pointer(scriptSource_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := qt.UnsafeNewQVariant(unsafe.Pointer(C.QWebElement_evaluateJavaScript(this.h, scriptSource_ms)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) StyleProperty(name string, strategy QWebElement__StyleResolveStrategy) string {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_styleProperty(this.h, name_ms, (C.int)(strategy))
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) SetStyleProperty(name string, value string) {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
value_ms := C.struct_miqt_string{}
|
|
|
|
value_ms.data = C.CString(value)
|
|
|
|
value_ms.len = C.size_t(len(value))
|
|
|
|
defer C.free(unsafe.Pointer(value_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_setStyleProperty(this.h, name_ms, value_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Render(painter *qt.QPainter) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_render(this.h, (*C.QPainter)(painter.UnsafePointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Render2(painter *qt.QPainter, clipRect *qt.QRect) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_render2(this.h, (*C.QPainter)(painter.UnsafePointer()), (*C.QRect)(clipRect.UnsafePointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) Attribute2(name string, defaultValue string) string {
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
defaultValue_ms := C.struct_miqt_string{}
|
|
|
|
defaultValue_ms.data = C.CString(defaultValue)
|
|
|
|
defaultValue_ms.len = C.size_t(len(defaultValue))
|
|
|
|
defer C.free(unsafe.Pointer(defaultValue_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_attribute2(this.h, name_ms, defaultValue_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) AttributeNS3(namespaceUri string, name string, defaultValue string) string {
|
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
|
|
|
defaultValue_ms := C.struct_miqt_string{}
|
|
|
|
defaultValue_ms.data = C.CString(defaultValue)
|
|
|
|
defaultValue_ms.len = C.size_t(len(defaultValue))
|
|
|
|
defer C.free(unsafe.Pointer(defaultValue_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QWebElement_attributeNS3(this.h, namespaceUri_ms, name_ms, defaultValue_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElement) AttributeNames1(namespaceUri string) []string {
|
|
|
|
namespaceUri_ms := C.struct_miqt_string{}
|
|
|
|
namespaceUri_ms.data = C.CString(namespaceUri)
|
|
|
|
namespaceUri_ms.len = C.size_t(len(namespaceUri))
|
|
|
|
defer C.free(unsafe.Pointer(namespaceUri_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ma C.struct_miqt_array = C.QWebElement_attributeNames1(this.h, namespaceUri_ms)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := make([]string, int(_ma.len))
|
|
|
|
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
|
|
var _lv_ms C.struct_miqt_string = _outCast[i]
|
|
|
|
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_lv_ms.data))
|
|
|
|
_ret[i] = _lv_ret
|
|
|
|
}
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QWebElement) Delete() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElement_delete(this.h)
|
2024-11-26 22:31:32 +13: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 *QWebElement) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QWebElement) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
type QWebElementCollection struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QWebElementCollection
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) cPointer() *C.QWebElementCollection {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
// newQWebElementCollection constructs the type using only CGO pointers.
|
|
|
|
func newQWebElementCollection(h *C.QWebElementCollection) *QWebElementCollection {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
|
2024-11-26 22:31:32 +13:00
|
|
|
return &QWebElementCollection{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnsafeNewQWebElementCollection constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQWebElementCollection(h unsafe.Pointer) *QWebElementCollection {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQWebElementCollection((*C.QWebElementCollection)(h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQWebElementCollection constructs a new QWebElementCollection object.
|
|
|
|
func NewQWebElementCollection() *QWebElementCollection {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQWebElementCollection(C.QWebElementCollection_new())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQWebElementCollection2 constructs a new QWebElementCollection object.
|
|
|
|
func NewQWebElementCollection2(contextElement *QWebElement, query string) *QWebElementCollection {
|
|
|
|
query_ms := C.struct_miqt_string{}
|
|
|
|
query_ms.data = C.CString(query)
|
|
|
|
query_ms.len = C.size_t(len(query))
|
|
|
|
defer C.free(unsafe.Pointer(query_ms.data))
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQWebElementCollection(C.QWebElementCollection_new2(contextElement.cPointer(), query_ms))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQWebElementCollection3 constructs a new QWebElementCollection object.
|
|
|
|
func NewQWebElementCollection3(param1 *QWebElementCollection) *QWebElementCollection {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQWebElementCollection(C.QWebElementCollection_new3(param1.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) OperatorAssign(param1 *QWebElementCollection) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElementCollection_operatorAssign(this.h, param1.cPointer())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) OperatorPlus(other *QWebElementCollection) *QWebElementCollection {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection(C.QWebElementCollection_operatorPlus(this.h, other.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) OperatorPlusAssign(other *QWebElementCollection) *QWebElementCollection {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebElementCollection(C.QWebElementCollection_operatorPlusAssign(this.h, other.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) Append(collection *QWebElementCollection) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElementCollection_append(this.h, collection.cPointer())
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) Count() int {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QWebElementCollection_count(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) At(i int) *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElementCollection_at(this.h, (C.int)(i)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) OperatorSubscript(i int) *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElementCollection_operatorSubscript(this.h, (C.int)(i)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) First() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElementCollection_first(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) Last() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElementCollection_last(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) ToList() []QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ma C.struct_miqt_array = C.QWebElementCollection_toList(this.h)
|
2024-11-26 22:31:32 +13:00
|
|
|
_ret := make([]QWebElement, int(_ma.len))
|
|
|
|
_outCast := (*[0xffff]*C.QWebElement)(unsafe.Pointer(_ma.data)) // hey ya
|
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-12-07 15:02:06 +13:00
|
|
|
_lv_goptr := newQWebElement(_outCast[i])
|
2024-11-26 22:31:32 +13:00
|
|
|
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_ret[i] = *_lv_goptr
|
|
|
|
}
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) Begin() *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__const_iterator(C.QWebElementCollection_begin(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) End() *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__const_iterator(C.QWebElementCollection_end(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) ConstBegin() *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__const_iterator(C.QWebElementCollection_constBegin(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) ConstEnd() *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__const_iterator(C.QWebElementCollection_constEnd(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) Begin2() *QWebElementCollection__iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__iterator(C.QWebElementCollection_begin2(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection) End2() *QWebElementCollection__iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__iterator(C.QWebElementCollection_end2(this.h))
|
2024-11-26 22:31:32 +13: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 *QWebElementCollection) Delete() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElementCollection_delete(this.h)
|
2024-11-26 22:31:32 +13: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 *QWebElementCollection) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QWebElementCollection) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
type QWebElementCollection__const_iterator struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QWebElementCollection__const_iterator
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) cPointer() *C.QWebElementCollection__const_iterator {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
// newQWebElementCollection__const_iterator constructs the type using only CGO pointers.
|
|
|
|
func newQWebElementCollection__const_iterator(h *C.QWebElementCollection__const_iterator) *QWebElementCollection__const_iterator {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
|
2024-11-26 22:31:32 +13:00
|
|
|
return &QWebElementCollection__const_iterator{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnsafeNewQWebElementCollection__const_iterator constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQWebElementCollection__const_iterator(h unsafe.Pointer) *QWebElementCollection__const_iterator {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQWebElementCollection__const_iterator((*C.QWebElementCollection__const_iterator)(h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQWebElementCollection__const_iterator constructs a new QWebElementCollection::const_iterator object.
|
|
|
|
func NewQWebElementCollection__const_iterator(collection_ *QWebElementCollection, index int) *QWebElementCollection__const_iterator {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQWebElementCollection__const_iterator(C.QWebElementCollection__const_iterator_new(collection_.cPointer(), (C.int)(index)))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQWebElementCollection__const_iterator2 constructs a new QWebElementCollection::const_iterator object.
|
|
|
|
func NewQWebElementCollection__const_iterator2(o *QWebElementCollection__const_iterator) *QWebElementCollection__const_iterator {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQWebElementCollection__const_iterator(C.QWebElementCollection__const_iterator_new2(o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorMultiply() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElementCollection__const_iterator_operatorMultiply(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorEqual(o *QWebElementCollection__const_iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__const_iterator_operatorEqual(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorNotEqual(o *QWebElementCollection__const_iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__const_iterator_operatorNotEqual(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorLesser(o *QWebElementCollection__const_iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__const_iterator_operatorLesser(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorLesserOrEqual(o *QWebElementCollection__const_iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__const_iterator_operatorLesserOrEqual(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorGreater(o *QWebElementCollection__const_iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__const_iterator_operatorGreater(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorGreaterOrEqual(o *QWebElementCollection__const_iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__const_iterator_operatorGreaterOrEqual(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorPlusPlus() *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebElementCollection__const_iterator(C.QWebElementCollection__const_iterator_operatorPlusPlus(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorPlusPlusWithInt(param1 int) *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__const_iterator(C.QWebElementCollection__const_iterator_operatorPlusPlusWithInt(this.h, (C.int)(param1)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorMinusMinus() *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebElementCollection__const_iterator(C.QWebElementCollection__const_iterator_operatorMinusMinus(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorMinusMinusWithInt(param1 int) *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__const_iterator(C.QWebElementCollection__const_iterator_operatorMinusMinusWithInt(this.h, (C.int)(param1)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorPlusAssign(j int) *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebElementCollection__const_iterator(C.QWebElementCollection__const_iterator_operatorPlusAssign(this.h, (C.int)(j)))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorMinusAssign(j int) *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebElementCollection__const_iterator(C.QWebElementCollection__const_iterator_operatorMinusAssign(this.h, (C.int)(j)))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorPlus(j int) *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__const_iterator(C.QWebElementCollection__const_iterator_operatorPlus(this.h, (C.int)(j)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorMinus(j int) *QWebElementCollection__const_iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__const_iterator(C.QWebElementCollection__const_iterator_operatorMinus(this.h, (C.int)(j)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__const_iterator) OperatorMinusWithQWebElementCollectionconstIterator(j QWebElementCollection__const_iterator) int {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QWebElementCollection__const_iterator_operatorMinusWithQWebElementCollectionconstIterator(this.h, j.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QWebElementCollection__const_iterator) Delete() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElementCollection__const_iterator_delete(this.h)
|
2024-11-26 22:31:32 +13: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 *QWebElementCollection__const_iterator) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QWebElementCollection__const_iterator) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
type QWebElementCollection__iterator struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QWebElementCollection__iterator
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) cPointer() *C.QWebElementCollection__iterator {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
// newQWebElementCollection__iterator constructs the type using only CGO pointers.
|
|
|
|
func newQWebElementCollection__iterator(h *C.QWebElementCollection__iterator) *QWebElementCollection__iterator {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
|
2024-11-26 22:31:32 +13:00
|
|
|
return &QWebElementCollection__iterator{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnsafeNewQWebElementCollection__iterator constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQWebElementCollection__iterator(h unsafe.Pointer) *QWebElementCollection__iterator {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQWebElementCollection__iterator((*C.QWebElementCollection__iterator)(h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQWebElementCollection__iterator constructs a new QWebElementCollection::iterator object.
|
|
|
|
func NewQWebElementCollection__iterator(collection_ *QWebElementCollection, index int) *QWebElementCollection__iterator {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQWebElementCollection__iterator(C.QWebElementCollection__iterator_new(collection_.cPointer(), (C.int)(index)))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQWebElementCollection__iterator2 constructs a new QWebElementCollection::iterator object.
|
|
|
|
func NewQWebElementCollection__iterator2(o *QWebElementCollection__iterator) *QWebElementCollection__iterator {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQWebElementCollection__iterator(C.QWebElementCollection__iterator_new2(o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorMultiply() *QWebElement {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElement(C.QWebElementCollection__iterator_operatorMultiply(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorEqual(o *QWebElementCollection__iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__iterator_operatorEqual(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorNotEqual(o *QWebElementCollection__iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__iterator_operatorNotEqual(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorLesser(o *QWebElementCollection__iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__iterator_operatorLesser(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorLesserOrEqual(o *QWebElementCollection__iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__iterator_operatorLesserOrEqual(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorGreater(o *QWebElementCollection__iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__iterator_operatorGreater(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorGreaterOrEqual(o *QWebElementCollection__iterator) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QWebElementCollection__iterator_operatorGreaterOrEqual(this.h, o.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorPlusPlus() *QWebElementCollection__iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebElementCollection__iterator(C.QWebElementCollection__iterator_operatorPlusPlus(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorPlusPlusWithInt(param1 int) *QWebElementCollection__iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__iterator(C.QWebElementCollection__iterator_operatorPlusPlusWithInt(this.h, (C.int)(param1)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorMinusMinus() *QWebElementCollection__iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebElementCollection__iterator(C.QWebElementCollection__iterator_operatorMinusMinus(this.h))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorMinusMinusWithInt(param1 int) *QWebElementCollection__iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__iterator(C.QWebElementCollection__iterator_operatorMinusMinusWithInt(this.h, (C.int)(param1)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorPlusAssign(j int) *QWebElementCollection__iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebElementCollection__iterator(C.QWebElementCollection__iterator_operatorPlusAssign(this.h, (C.int)(j)))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorMinusAssign(j int) *QWebElementCollection__iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQWebElementCollection__iterator(C.QWebElementCollection__iterator_operatorMinusAssign(this.h, (C.int)(j)))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorPlus(j int) *QWebElementCollection__iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__iterator(C.QWebElementCollection__iterator_operatorPlus(this.h, (C.int)(j)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorMinus(j int) *QWebElementCollection__iterator {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQWebElementCollection__iterator(C.QWebElementCollection__iterator_operatorMinus(this.h, (C.int)(j)))
|
2024-11-26 22:31:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QWebElementCollection__iterator) OperatorMinusWithQWebElementCollectioniterator(j QWebElementCollection__iterator) int {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QWebElementCollection__iterator_operatorMinusWithQWebElementCollectioniterator(this.h, j.cPointer()))
|
2024-11-26 22:31:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QWebElementCollection__iterator) Delete() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QWebElementCollection__iterator_delete(this.h)
|
2024-11-26 22:31:32 +13: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 *QWebElementCollection__iterator) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QWebElementCollection__iterator) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|