package qt /* #cgo CFLAGS: -fPIC #cgo pkg-config: Qt5Widgets #include "gen_qcommonstyle.h" #include */ import "C" import ( "unsafe" ) type QCommonStyle struct { h *C.QCommonStyle *QStyle } func (this *QCommonStyle) cPointer() *C.QCommonStyle { if this == nil { return nil } return this.h } func newQCommonStyle(h *C.QCommonStyle) *QCommonStyle { return &QCommonStyle{h: h, QStyle: newQStyle_U(unsafe.Pointer(h))} } func newQCommonStyle_U(h unsafe.Pointer) *QCommonStyle { return newQCommonStyle((*C.QCommonStyle)(h)) } // NewQCommonStyle constructs a new QCommonStyle object. func NewQCommonStyle() *QCommonStyle { ret := C.QCommonStyle_new() return newQCommonStyle(ret) } func (this *QCommonStyle) MetaObject() *QMetaObject { ret := C.QCommonStyle_MetaObject(this.h) return newQMetaObject_U(unsafe.Pointer(ret)) } func QCommonStyle_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.QCommonStyle_Tr(s_Cstring, &_out, &_out_Strlen) ret := C.GoStringN(_out, _out_Strlen) C.free(unsafe.Pointer(_out)) return ret } func QCommonStyle_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.QCommonStyle_TrUtf8(s_Cstring, &_out, &_out_Strlen) ret := C.GoStringN(_out, _out_Strlen) C.free(unsafe.Pointer(_out)) return ret } func (this *QCommonStyle) Polish(param1 *QPalette) { C.QCommonStyle_Polish(this.h, param1.cPointer()) } func (this *QCommonStyle) PolishWithApp(app *QApplication) { C.QCommonStyle_PolishWithApp(this.h, app.cPointer()) } func (this *QCommonStyle) PolishWithWidget(widget *QWidget) { C.QCommonStyle_PolishWithWidget(this.h, widget.cPointer()) } func (this *QCommonStyle) Unpolish(widget *QWidget) { C.QCommonStyle_Unpolish(this.h, widget.cPointer()) } func (this *QCommonStyle) UnpolishWithApplication(application *QApplication) { C.QCommonStyle_UnpolishWithApplication(this.h, application.cPointer()) } func QCommonStyle_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.QCommonStyle_Tr2(s_Cstring, c_Cstring, &_out, &_out_Strlen) ret := C.GoStringN(_out, _out_Strlen) C.free(unsafe.Pointer(_out)) return ret } func QCommonStyle_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.QCommonStyle_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 QCommonStyle_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.QCommonStyle_TrUtf82(s_Cstring, c_Cstring, &_out, &_out_Strlen) ret := C.GoStringN(_out, _out_Strlen) C.free(unsafe.Pointer(_out)) return ret } func QCommonStyle_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.QCommonStyle_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 *QCommonStyle) Delete() { C.QCommonStyle_Delete(this.h) }