miqt/qt/gen_qaccessibleplugin.go

129 lines
3.4 KiB
Go

package qt
/*
#cgo CFLAGS: -fPIC
#cgo pkg-config: Qt5Widgets
#include "gen_qaccessibleplugin.h"
#include <stdlib.h>
*/
import "C"
import (
"unsafe"
)
type QAccessiblePlugin struct {
h *C.QAccessiblePlugin
*QObject
}
func (this *QAccessiblePlugin) cPointer() *C.QAccessiblePlugin {
if this == nil {
return nil
}
return this.h
}
func newQAccessiblePlugin(h *C.QAccessiblePlugin) *QAccessiblePlugin {
if h == nil {
return nil
}
return &QAccessiblePlugin{h: h, QObject: newQObject_U(unsafe.Pointer(h))}
}
func newQAccessiblePlugin_U(h unsafe.Pointer) *QAccessiblePlugin {
return newQAccessiblePlugin((*C.QAccessiblePlugin)(h))
}
func (this *QAccessiblePlugin) MetaObject() *QMetaObject {
ret := C.QAccessiblePlugin_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(ret))
}
func QAccessiblePlugin_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _out *C.char = nil
var _out_Strlen C.int = 0
C.QAccessiblePlugin_Tr(s_Cstring, &_out, &_out_Strlen)
ret := C.GoStringN(_out, _out_Strlen)
C.free(unsafe.Pointer(_out))
return ret
}
func QAccessiblePlugin_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _out *C.char = nil
var _out_Strlen C.int = 0
C.QAccessiblePlugin_TrUtf8(s_Cstring, &_out, &_out_Strlen)
ret := C.GoStringN(_out, _out_Strlen)
C.free(unsafe.Pointer(_out))
return ret
}
func (this *QAccessiblePlugin) Create(key string, object *QObject) *QAccessibleInterface {
key_Cstring := C.CString(key)
defer C.free(unsafe.Pointer(key_Cstring))
ret := C.QAccessiblePlugin_Create(this.h, key_Cstring, C.ulong(len(key)), object.cPointer())
return newQAccessibleInterface_U(unsafe.Pointer(ret))
}
func QAccessiblePlugin_Tr2(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _out *C.char = nil
var _out_Strlen C.int = 0
C.QAccessiblePlugin_Tr2(s_Cstring, c_Cstring, &_out, &_out_Strlen)
ret := C.GoStringN(_out, _out_Strlen)
C.free(unsafe.Pointer(_out))
return ret
}
func QAccessiblePlugin_Tr3(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _out *C.char = nil
var _out_Strlen C.int = 0
C.QAccessiblePlugin_Tr3(s_Cstring, c_Cstring, (C.int)(n), &_out, &_out_Strlen)
ret := C.GoStringN(_out, _out_Strlen)
C.free(unsafe.Pointer(_out))
return ret
}
func QAccessiblePlugin_TrUtf82(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _out *C.char = nil
var _out_Strlen C.int = 0
C.QAccessiblePlugin_TrUtf82(s_Cstring, c_Cstring, &_out, &_out_Strlen)
ret := C.GoStringN(_out, _out_Strlen)
C.free(unsafe.Pointer(_out))
return ret
}
func QAccessiblePlugin_TrUtf83(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _out *C.char = nil
var _out_Strlen C.int = 0
C.QAccessiblePlugin_TrUtf83(s_Cstring, c_Cstring, (C.int)(n), &_out, &_out_Strlen)
ret := C.GoStringN(_out, _out_Strlen)
C.free(unsafe.Pointer(_out))
return ret
}
func (this *QAccessiblePlugin) Delete() {
C.QAccessiblePlugin_Delete(this.h)
}