cutego/quickcontrols2/quickcontrols2.go
therecipe 0506a9f95d re-gen and make the cgo-less version the default one
This commit replaces the default (cgo) binding with a cgo-less one, which was generated by setting "QT_GEN_GO=true" prior running qtsetup.

The cgo-less version is still experimental and also lacking integration with most of the advanced features provided by qtmoc and qtrcc, but it should already be sufficiently stable and cover a great part of the basic features.

The intention for these changes are to simplify and speedup onboarding of new users, speedup development circles of existing users, simplify the usage of this package in a go module context and also to have the portable therecipe/qt runtime (http://github.com/therecipe/box) tested more broadly.

Also since this version removes all dependencies on cgo, one is now able to "go get" an project that makes use of therecipe/qt like this: ("go get -ldflags="-w" github.com/therecipe/examples/basic/widgets && $(go env GOPATH)/bin/widgets") without any additional requirements.
2020-08-17 19:25:49 +02:00

136 lines
3.4 KiB
Go

// +build !minimal
package quickcontrols2
import (
"github.com/therecipe/qt/internal"
"strings"
"unsafe"
)
func unpackStringList(s string) []string {
if len(s) == 0 {
return make([]string, 0)
}
return strings.Split(s, "¡¦!")
}
type QQuickStyle struct {
internal.Internal
}
type QQuickStyle_ITF interface {
QQuickStyle_PTR() *QQuickStyle
}
func (ptr *QQuickStyle) QQuickStyle_PTR() *QQuickStyle {
return ptr
}
func (ptr *QQuickStyle) Pointer() unsafe.Pointer {
if ptr != nil {
return unsafe.Pointer(ptr.Internal.Pointer())
}
return nil
}
func (ptr *QQuickStyle) SetPointer(p unsafe.Pointer) {
if ptr != nil {
ptr.Internal.SetPointer(uintptr(p))
}
}
func PointerFromQQuickStyle(ptr QQuickStyle_ITF) unsafe.Pointer {
if ptr != nil {
return ptr.QQuickStyle_PTR().Pointer()
}
return nil
}
func (n *QQuickStyle) ClassNameInternalF() string {
return n.Internal.ClassNameInternalF()
}
func NewQQuickStyleFromPointer(ptr unsafe.Pointer) (n *QQuickStyle) {
n = new(QQuickStyle)
n.InitFromInternal(uintptr(ptr), "quickcontrols2.QQuickStyle")
return
}
func (ptr *QQuickStyle) DestroyQQuickStyle() {
}
func QQuickStyle_AddStylePath(path string) {
internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_AddStylePath", "", path})
}
func (ptr *QQuickStyle) AddStylePath(path string) {
internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_AddStylePath", "", path})
}
func QQuickStyle_AvailableStyles() []string {
return internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_AvailableStyles", ""}).([]string)
}
func (ptr *QQuickStyle) AvailableStyles() []string {
return internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_AvailableStyles", ""}).([]string)
}
func QQuickStyle_Name() string {
return internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_Name", ""}).(string)
}
func (ptr *QQuickStyle) Name() string {
return internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_Name", ""}).(string)
}
func QQuickStyle_Path() string {
return internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_Path", ""}).(string)
}
func (ptr *QQuickStyle) Path() string {
return internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_Path", ""}).(string)
}
func QQuickStyle_SetFallbackStyle(style string) {
internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_SetFallbackStyle", "", style})
}
func (ptr *QQuickStyle) SetFallbackStyle(style string) {
internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_SetFallbackStyle", "", style})
}
func QQuickStyle_SetStyle(style string) {
internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_SetStyle", "", style})
}
func (ptr *QQuickStyle) SetStyle(style string) {
internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_SetStyle", "", style})
}
func QQuickStyle_StylePathList() []string {
return internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_StylePathList", ""}).([]string)
}
func (ptr *QQuickStyle) StylePathList() []string {
return internal.CallLocalFunction([]interface{}{"", "", "quickcontrols2.QQuickStyle_StylePathList", ""}).([]string)
}
func init() {
internal.ConstructorTable["quickcontrols2.QQuickStyle"] = NewQQuickStyleFromPointer
}