package qt /* #cgo CFLAGS: -fPIC #cgo pkg-config: Qt5Widgets #include "gen_qwidgetaction.h" #include */ import "C" import ( "unsafe" ) type QWidgetAction struct { h *C.QWidgetAction *QAction } func (this *QWidgetAction) cPointer() *C.QWidgetAction { if this == nil { return nil } return this.h } func newQWidgetAction(h *C.QWidgetAction) *QWidgetAction { return &QWidgetAction{h: h, QAction: newQAction_U(unsafe.Pointer(h))} } func newQWidgetAction_U(h unsafe.Pointer) *QWidgetAction { return newQWidgetAction((*C.QWidgetAction)(h)) } // NewQWidgetAction constructs a new QWidgetAction object. func NewQWidgetAction(parent *QObject) *QWidgetAction { ret := C.QWidgetAction_new(parent.cPointer()) return newQWidgetAction(ret) } func (this *QWidgetAction) MetaObject() *QMetaObject { ret := C.QWidgetAction_MetaObject(this.h) return newQMetaObject_U(unsafe.Pointer(ret)) } func QWidgetAction_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.QWidgetAction_Tr(s_Cstring, &_out, &_out_Strlen) ret := C.GoStringN(_out, _out_Strlen) C.free(unsafe.Pointer(_out)) return ret } func QWidgetAction_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.QWidgetAction_TrUtf8(s_Cstring, &_out, &_out_Strlen) ret := C.GoStringN(_out, _out_Strlen) C.free(unsafe.Pointer(_out)) return ret } func (this *QWidgetAction) SetDefaultWidget(w *QWidget) { C.QWidgetAction_SetDefaultWidget(this.h, w.cPointer()) } func (this *QWidgetAction) DefaultWidget() *QWidget { ret := C.QWidgetAction_DefaultWidget(this.h) return newQWidget_U(unsafe.Pointer(ret)) } func (this *QWidgetAction) RequestWidget(parent *QWidget) *QWidget { ret := C.QWidgetAction_RequestWidget(this.h, parent.cPointer()) return newQWidget_U(unsafe.Pointer(ret)) } func (this *QWidgetAction) ReleaseWidget(widget *QWidget) { C.QWidgetAction_ReleaseWidget(this.h, widget.cPointer()) } func QWidgetAction_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.QWidgetAction_Tr2(s_Cstring, c_Cstring, &_out, &_out_Strlen) ret := C.GoStringN(_out, _out_Strlen) C.free(unsafe.Pointer(_out)) return ret } func QWidgetAction_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.QWidgetAction_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 QWidgetAction_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.QWidgetAction_TrUtf82(s_Cstring, c_Cstring, &_out, &_out_Strlen) ret := C.GoStringN(_out, _out_Strlen) C.free(unsafe.Pointer(_out)) return ret } func QWidgetAction_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.QWidgetAction_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 *QWidgetAction) Delete() { C.QWidgetAction_Delete(this.h) }