Documentation ¶
Index ¶
- Constants
- Variables
- func CleanName(name, value string) string
- func CleanValue(v string) string
- func Dump()
- func GetLibs() []string
- func IsBlockedDefault() []string
- func IsPackedList(v string) bool
- func IsPackedMap(v string) bool
- func LoadModule(m string) error
- func LoadModules()
- func ShouldBuild(module string) bool
- func SortedClassNamesForModule(module string, template bool) []string
- func UnpackedList(v string) string
- func UnpackedListDirty(v string) string
- func UnpackedMap(v string) (string, string)
- func UnpackedMapDirty(v string) (string, string)
- 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) GetFunction(fname string) *Function
- func (c *Class) HasCallbackFunctions() 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) 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": {"QuickControls2", "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": {"QuickControls2", "QuickWidgets", "Widgets", "Network", "Qml", "Gui", "Core"}, "Help": {"Sql", "CLucene", "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", "Gui", "Qml", "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"}, "Speech": {"Core"}, "QuickControls2": {"Quick", "QuickWidgets", "Widgets", "Network", "Qml", "Gui", "Core"}, "Sailfish": {"Core"}, "WebView": {"Core"}, MOC: make([]string, 0), "build_ios": {"Core", "Gui", "Network", "Sql", "Xml", "Nfc", "Script", "Sensors", "Positioning", "Widgets", "Qml", "WebSockets", "XmlPatterns", "Bluetooth", "WebChannel", "Svg", "Multimedia", "Quick", "Help", "Location", "ScriptTools", "MultimediaWidgets", "UiTools", "PrintSupport", "WebView"}, }
View Source
var Libs = []string{
"Core",
"AndroidExtras",
"Gui",
"Network",
"Xml",
"DBus",
"Nfc",
"Script",
"Sensors",
"Positioning",
"Widgets",
"Sql",
"MacExtras",
"Qml",
"WebSockets",
"XmlPatterns",
"Bluetooth",
"WebChannel",
"Svg",
"Multimedia",
"Quick",
"Help",
"Location",
"ScriptTools",
"UiTools",
"X11Extras",
"WinExtras",
"WebEngine",
"TestLib",
"SerialPort",
"SerialBus",
"PrintSupport",
"Designer",
"Scxml",
"Gamepad",
"Purchasing",
"DataVisualization",
"Charts",
"Speech",
"QuickControls2",
"Sailfish",
"WebView",
}
Functions ¶
func CleanValue ¶
func IsBlockedDefault ¶
func IsBlockedDefault() []string
func IsPackedList ¶
func IsPackedMap ¶
func LoadModule ¶
func LoadModules ¶
func LoadModules()
func ShouldBuild ¶
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"` DocModule string Stub bool WeakLink map[string]struct{} Export bool Fullname string Constructors []string Derivations []string }
func SortedClassesForModule ¶
func (*Class) FixGenericHelper ¶
func (c *Class) FixGenericHelper()
func (*Class) GetAllBases ¶
func (*Class) GetAllBasesRecursiveCheckFailed ¶
func (*Class) GetAllDerivations ¶
func (*Class) GetAllDerivationsInSameModule ¶
func (*Class) GetFunction ¶
func (*Class) HasCallbackFunctions ¶
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"` SignalMode string TemplateModeJNI string Default bool TmpName string Export bool NeedsFinalizer bool Container string TemplateModeGo string NonMember bool NoMocDeduce bool AsError bool Synthetic bool Checked bool Exception bool IsMap bool OgParameters []Parameter IsMocFunction bool }
func (*Function) FindDeepestImplementation ¶
func (*Function) Implements ¶
func (*Function) IsDerivedFromPure ¶
func (*Function) IsDerivedFromVirtual ¶
TODO: combine
func (*Function) IsJNIGeneric ¶
func (*Function) IsSupported ¶
func (*Function) PossibleDerivationsInAllModules ¶
func (*Function) PossibleDerivationsReversedAndRemovedPure ¶
func (*Function) PossiblePolymorphicDerivations ¶
type Namespace ¶
type Namespace struct { Classes []*Class `xml:"class"` //Functions []*Function `xml:"function"` //TODO: uncomment //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"` }
Click to show internal directories.
Click to hide internal directories.