Documentation
¶
Index ¶
- Variables
- func GenerateCtkSource(c *cli.Context, src *GtkSource) (output string, err error)
- func ParseGtk2DocFile(path string, c *cli.Context) (err error)
- func ParseGtk2DocUrl(gtk2name string, c *cli.Context) (err error)
- func ProcessDescription(src *GtkSource, s *goquery.Selection)
- func ProcessFunctionDetails(src *GtkSource, s *goquery.Selection)
- func ProcessImplementedInterfaces(src *GtkSource, s *goquery.Selection)
- func ProcessObjectHierarchy(src *GtkSource, s *goquery.Selection)
- func ProcessPropertyDetails(src *GtkSource, s *goquery.Selection)
- func ProcessSignalDetails(src *GtkSource, s *goquery.Selection)
- func ProduceOutput(name string, code string, c *cli.Context) (err error)
- func RewriteGtkThingsToCtkThings(class, input string) (output string)
- func WriteToFile(c *cli.Context, targetFileName string, content []byte) (err error)
- type GtkFunc
- type GtkNamedType
- type GtkProperty
- type GtkSignal
- type GtkSource
- type GtkType
Constants ¶
This section is empty.
Variables ¶
View Source
var CliCommand = &cli.Command{ Name: "gtk2doc", Usage: "generate CTK boilerplate source code from GTK2 documentation", Action: gtk2doc, Flags: []cli.Flag{ &cli.StringFlag{ Name: "page", Usage: "parse the GTK2 developers.gnome.org documentation and output go-ctk source code", }, &cli.StringFlag{ Name: "path", Usage: "parse the GTK2 documentation and output go-ctk source code", }, &cli.StringFlag{ Name: "package-name", Aliases: []string{"package", "pkg"}, Usage: "specify the package name for the generated source code", Value: "ctk", DefaultText: "ctk", }, &cli.StringFlag{ Name: "output", Usage: "write generated source code to the file path given instead of stdout", }, &cli.StringFlag{ Name: "output-path", Usage: "write generated source code to a new file at the path given instead of stdout", }, &cli.BoolFlag{ Name: "force", Aliases: []string{"f"}, Usage: "overwrite output file if it exists", }, &cli.BoolFlag{ Name: "include-deprecated", Aliases: []string{"D"}, Usage: "include deprecated methods", }, }, }
View Source
var CtkInterfaceTemplate = `` /* 607-byte string literal not displayed */
View Source
var CtkSourceTemplate = `` /* 3283-byte string literal not displayed */
Functions ¶
func GenerateCtkSource ¶
func ParseGtk2DocFile ¶
func ParseGtk2DocUrl ¶
func ProcessDescription ¶
func ProcessFunctionDetails ¶
func ProcessObjectHierarchy ¶
func ProcessPropertyDetails ¶
func ProcessSignalDetails ¶
func ProduceOutput ¶
func WriteToFile ¶
Types ¶
type GtkFunc ¶
type GtkFunc struct { Name string Docs string Argv []*GtkNamedType Retv GtkType Body string }
func (*GtkFunc) InterfaceString ¶
type GtkNamedType ¶
func NewNamedType ¶
func NewNamedType(name string, t GtkType) *GtkNamedType
func (GtkNamedType) String ¶
func (n GtkNamedType) String() string
type GtkProperty ¶
type GtkProperty struct { Name string Tag string Decl string Write bool Type GtkType Default string Docs string }
func (GtkProperty) Registration ¶
func (s GtkProperty) Registration() string
func (GtkProperty) String ¶
func (s GtkProperty) String() string
type GtkSignal ¶
type GtkSignal struct { Name string Tag string Docs string UserFnArgs []*GtkNamedType }
type GtkSource ¶
type GtkSource struct { Name string // CamelCase Flat string // snake_case Tag string // tag-case This string // method this name Parent string PackageName string Description string Hierarchy []string Implements []string Signals []*GtkSignal Properties []*GtkProperty Functions []*GtkFunc Constructor *GtkFunc Factories []*GtkFunc Context *cli.Context }
func ParseGtk2Doc ¶
func (GtkSource) ObjectHierarchy ¶
Source Files
¶
- gtk_func.go
- gtk_named_type.go
- gtk_property.go
- gtk_signal.go
- gtk_source.go
- gtk_type.go
- gtkdoc2ctk.go
- helpers.go
- parser.go
- process_description.go
- process_function_details.go
- process_implemented_interfaces.go
- process_object_hierarchy.go
- process_property_details.go
- process_signal_details.go
- template.go
- template_interface.go
- template_source.go
Click to show internal directories.
Click to hide internal directories.