Documentation ¶
Index ¶
- Constants
- Variables
- func CleanName(name, value string) string
- func CleanValue(v string) string
- func Dump()
- func GetLibs() []string
- func IsPackedList(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
- type Class
- func (c *Class) GetAllBases() []string
- func (c *Class) GetAllBasesRecursiveCheckFailed(i int) ([]string, bool)
- func (c *Class) GetBases() []string
- func (class *Class) HasCallbackFunctions() bool
- func (c *Class) HasConstructor() 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
- func (c *Class) NeedsDestructor() bool
- type Enum
- type Function
- func (f *Function) Class() (*Class, bool)
- func (f *Function) ClassName() string
- func (f *Function) IsDerivedFromVirtual() bool
- func (f *Function) IsJNIGeneric() bool
- func (f *Function) IsSupported() bool
- func (f *Function) IsSupportedDefault() bool
- func (f *Function) PossiblePolymorphic(self bool) ([]string, string)
- type Module
- type Namespace
- type Parameter
- type SubNamespace
- type Value
- type Variable
Constants ¶
View Source
const ( SIGNAL = "signal" SLOT = "slot" 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"}, "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", "CLucene", "Network", "Widgets", "Gui", "Core"}, "Location": {"Positioning", "Quick", "Gui", "Core"}, "ScriptTools": {"Script", "Widgets", "Core"}, "UiTools": {"Widgets", "Gui", "Core"}, "X11Extras": {"Gui", "Core"}, "WinExtras": {"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"}, "Sailfish": {"Core"}, MOC: make([]string, 0), "build_ios": {"Core", "Gui", "Network", "Sql", "Xml", "DBus", "Nfc", "Script", "Sensors", "Positioning", "Widgets", "Qml", "WebSockets", "XmlPatterns", "Bluetooth", "WebChannel", "Svg", "Multimedia", "Quick", "Help", "Location", "ScriptTools", "MultimediaWidgets", "UiTools", "PrintSupport"}, }
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",
"Sailfish",
}
Functions ¶
func CleanValue ¶
func IsPackedList ¶
func LoadModule ¶
func LoadModules ¶
func LoadModules()
func ShouldBuild ¶
func UnpackedList ¶
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"` DocModule string Stub bool WeakLink map[string]struct{} Export bool Fullname string }
func SortedClassesForModule ¶
func (*Class) GetAllBases ¶
func (*Class) GetAllBasesRecursiveCheckFailed ¶
func (*Class) HasCallbackFunctions ¶
func (*Class) HasConstructor ¶
func (*Class) HasFunctionWithName ¶
func (*Class) HasFunctionWithNameAndOverloadNumber ¶
func (*Class) IsPolymorphic ¶
func (*Class) IsSubClassOf ¶
func (*Class) IsSubClassOfQObject ¶
func (*Class) IsSupported ¶
func (*Class) NeedsDestructor ¶
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"` SignalMode string TemplateModeJNI string Default bool TmpName string Export bool NeedsFinalizer bool Container string TemplateModeGo string Child *Function NonMember bool NoMocDeduce bool PureBaseFunction bool AsError bool }
func (*Function) IsDerivedFromVirtual ¶
func (*Function) IsJNIGeneric ¶
func (*Function) IsSupported ¶
func (*Function) IsSupportedDefault ¶
type Namespace ¶
type Namespace struct { Classes []*Class `xml:"class"` //Functions []*Function `xml:"function"` //TODO: uncomment SubNamespace *SubNamespace `xml:"namespace"` }
type SubNamespace ¶
type SubNamespace struct { //Classes []*Class `xml:"class"` //TODO: uncomment //Functions []*Function `xml:"function"` //TODO: uncomment Enums []*Enum `xml:"enum"` }
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.