mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-28 21:25:16 +03:00
56 lines
1.1 KiB
Go
Executable file
56 lines
1.1 KiB
Go
Executable file
package xml
|
|
|
|
//#include "xml.h"
|
|
import "C"
|
|
import (
|
|
"github.com/therecipe/qt"
|
|
"unsafe"
|
|
)
|
|
|
|
type QDomComment struct {
|
|
QDomCharacterData
|
|
}
|
|
|
|
type QDomComment_ITF interface {
|
|
QDomCharacterData_ITF
|
|
QDomComment_PTR() *QDomComment
|
|
}
|
|
|
|
func PointerFromQDomComment(ptr QDomComment_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QDomComment_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQDomCommentFromPointer(ptr unsafe.Pointer) *QDomComment {
|
|
var n = new(QDomComment)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
func (ptr *QDomComment) QDomComment_PTR() *QDomComment {
|
|
return ptr
|
|
}
|
|
|
|
func NewQDomComment() *QDomComment {
|
|
defer qt.Recovering("QDomComment::QDomComment")
|
|
|
|
return NewQDomCommentFromPointer(C.QDomComment_NewQDomComment())
|
|
}
|
|
|
|
func NewQDomComment2(x QDomComment_ITF) *QDomComment {
|
|
defer qt.Recovering("QDomComment::QDomComment")
|
|
|
|
return NewQDomCommentFromPointer(C.QDomComment_NewQDomComment2(PointerFromQDomComment(x)))
|
|
}
|
|
|
|
func (ptr *QDomComment) NodeType() QDomNode__NodeType {
|
|
defer qt.Recovering("QDomComment::nodeType")
|
|
|
|
if ptr.Pointer() != nil {
|
|
return QDomNode__NodeType(C.QDomComment_NodeType(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|