Documentation ¶
Index ¶
- Constants
- Variables
- func CleanName(name, value string) string
- func CleanValue(v string) string
- func Dump()
- func GetCustomLibs(_ string, env map[string]string, tags []string) map[string]string
- func GetLibs() []string
- func IsBlackListedPureGoType(s string) bool
- func IsBlockedDefault() []string
- func IsClass(value string) (string, bool)
- func IsPackedList(v string) bool
- func IsPackedMap(v string) bool
- func IsWhiteListedJsLib(name string) bool
- func IsWhiteListedRaspberryLib(name string) bool
- func IsWhiteListedSailfishLib(name string) bool
- func LoadModules(target string)
- func LoadModulesM(target string)
- func ShouldBuildForTarget(module, target string) bool
- func ShouldBuildForTargetM(module, target string) bool
- func SortedClassNamesForModule(module string, template bool) []string
- func UnpackedGoMapDirty(v string) []string
- func UnpackedList(v string) string
- func UnpackedListDirty(v string) string
- func UnpackedMap(v string) (string, string)
- func UnpackedMapDirty(v string) (string, string)
- func UseJs() bool
- func UseWasm() bool
- type Class
- func (c *Class) FixGenericHelper()
- func (c *Class) GetAllBases() []string
- func (c *Class) GetAllBasesRecursiveCheckFailed(i int) ([]string, bool)
- func (c *Class) GetAllDerivations() []string
- func (c *Class) GetAllDerivationsInSameModule() []string
- func (c *Class) GetBases() []string
- func (c *Class) GetBasesSorted() []string
- func (c *Class) GetFunction(fname string) *Function
- func (c *Class) GetFunctionWithOverloadNumber(fname string, num string) *Function
- func (c *Class) GetTitledFunction(fname string) *Function
- func (c *Class) HasCallbackFunctions() bool
- func (c *Class) HasCallbackFunctionsBesideTheDestructor() bool
- func (c *Class) HasConstructor() bool
- func (c *Class) HasDestructor() bool
- func (c *Class) HasFunction(f *Function) bool
- func (c *Class) HasFunctionWithName(n string) bool
- func (c *Class) HasFunctionWithNameAndOverloadNumber(n string, num string) bool
- func (c *Class) Hash() string
- func (c *Class) IsPolymorphic() bool
- func (c *Class) IsSubClassOf(class string) bool
- func (c *Class) IsSubClassOfQObject() bool
- func (c *Class) IsSupported() bool
- type Enum
- type Function
- func (f *Function) Class() (*Class, bool)
- func (f *Function) ClassName() string
- func (f *Function) FindDeepestImplementation() string
- func (f *Function) Implements() bool
- func (f *Function) IsDerivedFromImpure() bool
- func (f *Function) IsDerivedFromPure() bool
- func (f *Function) IsDerivedFromVirtual() bool
- func (f *Function) IsJNIGeneric() bool
- func (f *Function) IsSupported() bool
- func (f *Function) PossibleDerivationsInAllModules(self bool) ([]string, string)
- func (f *Function) PossibleDerivationsReversedAndRemovedPure(self bool) ([]string, string)
- func (f *Function) PossiblePolymorphicDerivations(self bool) ([]string, string)
- func (f *Function) Root() *Function
- type Module
- type Namespace
- type Parameter
- type SubNamespace
- type Value
- type Variable
Constants ¶
View Source
const ( SIGNAL = "signal" SLOT = "slot" PROP = "prop" IMPURE = "impure" PURE = "pure" PLAIN = "plain" CONSTRUCTOR = "constructor" COPY_CONSTRUCTOR = "copy-constructor" MOVE_CONSTRUCTOR = "move-constructor" DESTRUCTOR = "destructor" CONNECT = "Connect" DISCONNECT = "Disconnect" CALLBACK = "callback" GETTER = "getter" SETTER = "setter" VOID = "void" TILDE = "~" MOC = "moc" )
Variables ¶
View Source
var LibDeps = map[string][]string{ "Core": {"Widgets", "Gui", "Svg"}, "AndroidExtras": {"Core"}, "Gui": {"Widgets", "Core"}, "Network": {"Core"}, "Xml": {"XmlPatterns", "Core"}, "DBus": {"Core"}, "Nfc": {"Core"}, "Script": {"Core"}, "Sensors": {"Core"}, "Positioning": {"Core"}, "Widgets": {"Gui", "Core"}, "Sql": {"Widgets", "Gui", "Core"}, "MacExtras": {"Gui", "Core"}, "Qml": {"Network", "Core"}, "WebSockets": {"Network", "Core"}, "XmlPatterns": {"Network", "Core"}, "Bluetooth": {"Core"}, "WebChannel": {"Network", "Qml", "Core"}, "Svg": {"Widgets", "Gui", "Core"}, "Multimedia": {"MultimediaWidgets", "Widgets", "Network", "Gui", "Core"}, "Quick": {"QuickWidgets", "Widgets", "Network", "Qml", "Gui", "Core"}, "Help": {"Sql", "Network", "Widgets", "Gui", "Core"}, "Location": {"Positioning", "Quick", "Gui", "Core"}, "ScriptTools": {"Script", "Widgets", "Core"}, "UiTools": {"Widgets", "Gui", "Core"}, "X11Extras": {"Gui", "Core"}, "WinExtras": {"Widgets", "Gui", "Core"}, "WebEngine": {"Widgets", "WebEngineWidgets", "WebChannel", "Network", "WebEngineCore", "Quick", "PrintSupport", "Gui", "Qml", "Positioning", "Core"}, "TestLib": {"Widgets", "Gui", "Core"}, "SerialPort": {"Core"}, "SerialBus": {"Core"}, "PrintSupport": {"Widgets", "Gui", "Core"}, "Designer": {"UiPlugin", "Widgets", "Gui", "Xml", "Core"}, "Scxml": {"Network", "Qml", "Core"}, "Gamepad": {"Gui", "Core"}, "Purchasing": {"Core"}, "DataVisualization": {"Gui", "Core"}, "Charts": {"Widgets", "Gui", "Core"}, "VirtualKeyboard": {"Quick", "Gui", "Qml", "Network", "Core"}, "Speech": {"Core"}, "QuickControls2": {"Quick", "QuickWidgets", "Widgets", "Network", "Qml", "Gui", "Core"}, "Sailfish": {"Core"}, "WebView": {"Core"}, "NetworkAuth": {"Network", "Gui", "Core"}, "RemoteObjects": {"Network", "Core"}, "WebKit": {"WebKitWidgets", "Multimedia", "Positioning", "Widgets", "Sql", "Network", "Gui", "Sensors", "Core"}, MOC: make([]string, 0), "build_static": {"Qml"}, "Felgo": {"Qml", "Quick", "Widgets", "Network", "Multimedia", "Sql", "WebSockets"}, }
View Source
var LibDepsMutex = new(sync.Mutex)
TODO: remove global
Functions ¶
func CleanValue ¶
func GetCustomLibs ¶
func IsBlackListedPureGoType ¶
func IsBlockedDefault ¶
func IsBlockedDefault() []string
func IsPackedList ¶
func IsPackedMap ¶
func IsWhiteListedJsLib ¶
TODO: whitelist everything once dependency issue is resolved
func LoadModules ¶
func LoadModules(target string)
func LoadModulesM ¶
func LoadModulesM(target string)
func ShouldBuildForTarget ¶
func ShouldBuildForTargetM ¶
func UnpackedGoMapDirty ¶
func UnpackedList ¶
func UnpackedListDirty ¶
func UnpackedMap ¶
func UnpackedMapDirty ¶
Types ¶
type Class ¶
type Class struct { Name string `xml:"name,attr"` Status string `xml:"status,attr"` Access string `xml:"access,attr"` Abstract bool `xml:"abstract,attr"` Bases string `xml:"bases,attr"` Module string `xml:"module,attr"` Brief string `xml:"brief,attr"` Functions []*Function `xml:"function"` Enums []*Enum `xml:"enum"` Variables []*Variable `xml:"variable"` Properties []*Variable `xml:"property"` Classes []*Class `xml:"class"` Since string `xml:"since,attr"` Filepath string `xml:"filepath,attr"` DocModule string Stub bool WeakLink map[string]struct{} Export bool Fullname string Pkg string Path string HasFinalizer bool Constructors []string Derivations []string ToBeCleanedUp bool sync.Mutex }
func SortedClassesForModule ¶
func (*Class) FixGenericHelper ¶
func (c *Class) FixGenericHelper()
func (*Class) GetAllBases ¶
func (*Class) GetAllBasesRecursiveCheckFailed ¶
func (*Class) GetAllDerivations ¶
func (*Class) GetAllDerivationsInSameModule ¶
func (*Class) GetBasesSorted ¶
func (*Class) GetFunction ¶
func (*Class) GetFunctionWithOverloadNumber ¶
func (*Class) GetTitledFunction ¶
func (*Class) HasCallbackFunctions ¶
func (*Class) HasCallbackFunctionsBesideTheDestructor ¶
func (*Class) HasConstructor ¶
func (*Class) HasDestructor ¶
func (*Class) HasFunction ¶
func (*Class) HasFunctionWithName ¶
func (*Class) HasFunctionWithNameAndOverloadNumber ¶
func (*Class) IsPolymorphic ¶
func (*Class) IsSubClassOf ¶
func (*Class) IsSubClassOfQObject ¶
func (*Class) IsSupported ¶
type Enum ¶
type Function ¶
type Function struct { Name string `xml:"name,attr"` Fullname string `xml:"fullname,attr"` Href string `xml:"href,attr"` Status string `xml:"status,attr"` Access string `xml:"access,attr"` Filepath string `xml:"filepath,attr"` Virtual string `xml:"virtual,attr"` Meta string `xml:"meta,attr"` Static bool `xml:"static,attr"` Overload bool `xml:"overload,attr"` OverloadNumber string `xml:"overload-number,attr"` Output string `xml:"type,attr"` Signature string `xml:"signature,attr"` Parameters []*Parameter `xml:"parameter"` Brief string `xml:"brief,attr"` Since string `xml:"since,attr"` Related string `xml:"related,attr"` SignalMode string TemplateModeJNI string Default bool TmpName string Export bool NeedsFinalizer bool NeedsFinalizerFor []string Container string TemplateModeGo string NonMember bool NoMocDeduce bool Synthetic bool Checked bool Exception bool IsMap bool OgParameters []Parameter OgOutput string IsMocFunction bool IsMocProperty bool PureGoOutput string Connect int Target string Inbound bool BoundByEmscripten bool //TODO: needed at all ? FakeForJSCallback bool }
func (*Function) FindDeepestImplementation ¶
func (*Function) Implements ¶
func (*Function) IsDerivedFromPure ¶
func (*Function) IsDerivedFromVirtual ¶
TODO: combine
func (*Function) IsJNIGeneric ¶
func (*Function) PossibleDerivationsInAllModules ¶
func (*Function) PossibleDerivationsReversedAndRemovedPure ¶
func (*Function) PossiblePolymorphicDerivations ¶
TODO: multipoly [][]string TODO: connect/disconnect slot functions + add necessary SIGNAL_* functions (check first if really needed)
type Module ¶
type Module struct { Namespace *Namespace `xml:"namespace"` Project string `xml:"project,attr"` Pkg string }
func LoadModule ¶
type Namespace ¶
type Namespace struct { Classes []*Class `xml:"class"` Structs []*Class `xml:"struct"` Functions []*Function `xml:"function"` //Enums []*Enum `xml:"enum"` //TODO: uncomment SubNamespaces []*SubNamespace `xml:"namespace"` }
type SubNamespace ¶
type Variable ¶
type Variable struct { Name string `xml:"name,attr"` Fullname string `xml:"fullname,attr"` Href string `xml:"href,attr"` Status string `xml:"status,attr"` Access string `xml:"access,attr"` Filepath string `xml:"filepath,attr"` Static bool `xml:"static,attr"` Output string `xml:"type,attr"` Brief string `xml:"brief,attr"` Getter []struct{} `xml:"getter"` Setter []struct{} `xml:"setter"` IsMocSynthetic bool PureGoType string Connect int ConnectGet bool ConnectSet bool ConnectChanged bool Target string Inbound bool }
Click to show internal directories.
Click to hide internal directories.