generate

package
v0.0.0-...-1cf32ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromRoot

func FromRoot(name, version string, noFormat bool)

Types

type Alias

type Alias struct {
	Namespace *Namespace

	Name      string `xml:"name,attr"`
	Blacklist bool   `xml:"blacklist,attr"`
	CType     string `xml:"type,attr"`
	Type      *Type  `xml:"type"`
	Doc       *Doc   `xml:"doc"`
	// contains filtered or unexported fields
}

type Aliases

type Aliases []*Alias

type Array

type Array struct {
	Namespace *Namespace

	Type           *Type  `xml:"type"`
	CType          string `xml:"http://www.gtk.org/introspection/c/1.0 type,attr"`
	FixedSize      *int   `xml:"fixed-size,attr"`
	Length         *int   `xml:"length,attr"`
	ZeroTerminated string `xml:"zero-terminated,attr"`
	// contains filtered or unexported fields
}

type CInclude

type CInclude struct {
	Name    string `xml:"name,attr"`
	Version string `xml:"version,attr"`
}

type CIncludes

type CIncludes []*CInclude

type Callback

type Callback struct {
	*Function
	CType string `xml:"http://www.gtk.org/introspection/c/1.0 type,attr"`
}

type Callbacks

type Callbacks []*Callback

type Class

type Class struct {
	*Record
	Implements Implementss `xml:"implements"`
}

type Classes

type Classes []*Class

type Constant

type Constant struct {
	Namespace *Namespace

	Name      string `xml:"name,attr"`
	Blacklist bool   `xml:"blacklist,attr"`
	Value     string `xml:"value,attr"`
	Version   string `xml:"version,attr"`
	CType     string `xml:"http://www.gtk.org/introspection/c/1.0 type,attr"`
	Doc       *Doc   `xml:"doc"`
	Type      *Type  `xml:"type"`
	// contains filtered or unexported fields
}

type Constants

type Constants []*Constant

type Constructor

type Constructor struct {
	*Function
}

type Constructors

type Constructors []*Constructor

type Doc

type Doc struct {
	Text string `xml:",chardata"`
}

type Enumeration

type Enumeration struct {
	Namespace *Namespace

	Name         string    `xml:"name,attr"`
	Blacklist    bool      `xml:"blacklist,attr"`
	GoTypeName   string    `xml:"goname,attr"` // used in addenda files
	Version      string    `xml:"version,attr"`
	CType        string    `xml:"http://www.gtk.org/introspection/c/1.0 type,attr"`
	GlibTypeName string    `xml:"http://www.gtk.org/introspection/glib/1.0 type-name,attr"`
	GlibGetType  string    `xml:"http://www.gtk.org/introspection/glib/1.0 get-type,attr"`
	Doc          *Doc      `xml:"doc"`
	Members      Members   `xml:"member"`
	Functions    Functions `xml:"function"`
	// contains filtered or unexported fields
}

type Enumerations

type Enumerations []*Enumeration

type Field

type Field struct {
	Namespace *Namespace

	Name     string `xml:"name,attr"`
	Writable int    `xml:"writable,attr"`
	Bits     int    `xml:"bits,attr"`
	Private  bool   `xml:"private,attr"`
	Doc      *Doc   `xml:"doc"`
	Type     *Type  `xml:"type"`
	// contains filtered or unexported fields
}

type Fields

type Fields []*Field

type Function

type Function struct {
	Namespace *Namespace

	Name              string       `xml:"name,attr"`
	Blacklist         bool         `xml:"blacklist,attr"`
	GoName            string       `xml:"goname,attr"`
	Version           string       `xml:"version,attr"`
	MovedTo           string       `xml:"moved-to,attr"`
	CIdentifier       string       `xml:"http://www.gtk.org/introspection/c/1.0 identifier,attr"`
	Deprecated        int          `xml:"deprecated,attr"`
	DeprecatedVersion string       `xml:"deprecated-version,attr"`
	Doc               *Doc         `xml:"doc"`
	InstanceParameter *Parameter   `xml:"parameters>instance-parameter"`
	Parameters        Parameters   `xml:"parameters>parameter"`
	ReturnValue       *ReturnValue `xml:"return-value"`
	Throws            int          `xml:"throws,attr"`
	Introspectable    string       `xml:"introspectable,attr"`
	// contains filtered or unexported fields
}

type Functions

type Functions []*Function

type Generatable

type Generatable interface {
	Versioned
	// contains filtered or unexported methods
}

type Generatables

type Generatables interface {
	VersionLister
	// contains filtered or unexported methods
}

type Gir

type Gir struct {
	// contains filtered or unexported fields
}

func (*Gir) LoadFile

func (g *Gir) LoadFile(filename string, required bool) *Repository

type Implements

type Implements struct {
	Name    string `xml:"name,attr"`
	Version string `xml:"version,attr"`
}

type Implementss

type Implementss []*Implements

type Include

type Include struct {
	Name    string `xml:"name,attr"`
	Version string `xml:"version,attr"`
}

type Interface

type Interface struct {
	*Record
	VirtualMethods Methods `xml:"virtual-method"`
}

type Interfaces

type Interfaces []*Interface

type Member

type Member struct {
	Namespace *Namespace

	Name        string `xml:"name,attr"`
	Blacklist   bool   `xml:"blacklist,attr"`
	Value       int    `xml:"value,attr"`
	CIdentifier string `xml:"http://www.gtk.org/introspection/c/1.0 identifier,attr"`
	GlibNick    string `xml:"http://www.gtk.org/introspection/glib/1.0 nick,attr"`
	Doc         *Doc   `xml:"doc"`
	// contains filtered or unexported fields
}

type Members

type Members []*Member

type Method

type Method struct {
	*Function
}

type Methods

type Methods []*Method

type Namespace

type Namespace struct {
	Blacklist           bool         `xml:"blacklist,attr"`
	Name                string       `xml:"name,attr"`
	Version             string       `xml:"version,attr"`
	SharedLibrary       string       `xml:"shared-library,attr"`
	CDocPath            string       `xml:"c-doc-path,attr"`
	CIdentifierPrefixes string       `xml:"http://www.gtk.org/introspection/c/1.0 identifier-prefixes,attr"`
	CSymbolPrefixes     string       `xml:"http://www.gtk.org/introspection/c/1.0 symbol-prefixes,attr"`
	Aliases             Aliases      `xml:"alias"`
	Bitfields           Enumerations `xml:"bitfield"`
	Callbacks           Callbacks    `xml:"callback"`
	Classes             Classes      `xml:"class"`
	Constants           Constants    `xml:"constant"`
	Enumerations        Enumerations `xml:"enumeration"`
	Functions           Functions    `xml:"function"`
	Records             Records      `xml:"record"`
	Interfaces          Interfaces   `xml:"interface"`
	// contains filtered or unexported fields
}

type Package

type Package struct {
	Name string `xml:"name,attr"`
}

type Parameter

type Parameter struct {
	Namespace *Namespace

	Name              string    `xml:"name,attr"`
	Direction         string    `xml:"direction,attr"`
	TransferOwnership string    `xml:"transfer-ownership,attr"`
	Nullable          bool      `xml:"nullable,attr"`
	AllowNone         bool      `xml:"allow-none,attr"`
	Doc               *Doc      `xml:"doc"`
	Type              *Type     `xml:"type"`
	Array             *Array    `xml:"array"`
	Varargs           *struct{} `xml:"varargs"`
	// contains filtered or unexported fields
}

type Parameters

type Parameters []*Parameter

type QName

type QName struct {
	// contains filtered or unexported fields
}

func QNameNew

func QNameNew(referingNamespace *Namespace, name string) *QName

func (*QName) String

func (q *QName) String() string

type Record

type Record struct {
	Namespace *Namespace

	Blacklist     bool `xml:"blacklist,attr"`
	FieldsPrivate bool `xml:"fieldsPrivate,attr"`

	Name           string       `xml:"name,attr"`
	GoName         string       `xml:"goname,attr"`
	Version        string       `xml:"version,attr"`
	CSymbolPrefix  string       `xml:"http://www.gtk.org/introspection/c/1.0 symbol-prefix,attr"`
	CType          string       `xml:"http://www.gtk.org/introspection/c/1.0 type,attr"`
	ParentName     string       `xml:"parent,attr"`
	GlibTypeName   string       `xml:"http://www.gtk.org/introspection/glib/1.0 type-name,attr"`
	GlibGetType    string       `xml:"http://www.gtk.org/introspection/glib/1.0 get-type,attr"`
	GlibTypeStruct string       `xml:"http://www.gtk.org/introspection/glib/1.0 type-struct,attr"`
	Doc            *Doc         `xml:"doc"`
	Fields         Fields       `xml:"field"`
	Constructors   Constructors `xml:"constructor"`
	Functions      Functions    `xml:"function"`
	Methods        Methods      `xml:"method"`
	Signals        Signals      `xml:"http://www.gtk.org/introspection/glib/1.0 signal"`
	// contains filtered or unexported fields
}

type RecordEqualFunc

type RecordEqualFunc struct {
	*Record
}

type RecordNewFromCFunc

type RecordNewFromCFunc struct {
	*Record
}

type RecordToCFunc

type RecordToCFunc struct {
	*Record
}

type Records

type Records []*Record

type Repository

type Repository struct {
	XMLName   xml.Name   `xml:"repository"`
	Version   string     `xml:"version,attr"`
	CIncludes CIncludes  `xml:"http://www.gtk.org/introspection/c/1.0 include"`
	Includes  []Include  `xml:"http://www.gtk.org/introspection/core/1.0 include"`
	Packages  []Package  `xml:"package"`
	Namespace *Namespace `xml:"namespace"`
}

func (*Repository) Generate

func (r *Repository) Generate()

func (*Repository) Init

func (r *Repository) Init()

func (*Repository) MergeAddenda

func (r *Repository) MergeAddenda(addenda *Repository)

type ReturnValue

type ReturnValue struct {
	Namespace *Namespace

	TransferOwnership string `xml:"transfer-ownership,attr"`
	Nullable          bool   `xml:"nullable,attr"`
	Doc               *Doc   `xml:"doc"`
	Type              *Type  `xml:"type"`
	Array             *Array `xml:"array"`
}

type Signal

type Signal struct {
	Namespace *Namespace

	Name        string       `xml:"name,attr"`
	When        string       `xml:"when,attr"`
	Version     string       `xml:"version,attr"`
	Doc         *Doc         `xml:"doc"`
	Parameters  Parameters   `xml:"parameters>parameter"`
	ReturnValue *ReturnValue `xml:"return-value"`
	// contains filtered or unexported fields
}

type Signals

type Signals []*Signal

type Type

type Type struct {
	Namespace *Namespace

	Name  string `xml:"name,attr"`
	CType string `xml:"http://www.gtk.org/introspection/c/1.0 type,attr"`
	// contains filtered or unexported fields
}

type TypeGenerator

type TypeGenerator interface {
	// contains filtered or unexported methods
}

TypeGenerator is an interface where implementors provide generator support for a type or types.

type TypeGeneratorArgcArgv

type TypeGeneratorArgcArgv struct {
	TypeGeneratorPanic
	// contains filtered or unexported fields
}

func TypeGeneratorArgcArgvNew

func TypeGeneratorArgcArgvNew(typ *Type) *TypeGeneratorArgcArgv

type TypeGeneratorBoolean

type TypeGeneratorBoolean struct {
	TypeGeneratorPanic
	// contains filtered or unexported fields
}

func TypeGeneratorBooleanNew

func TypeGeneratorBooleanNew(typ *Type) *TypeGeneratorBoolean

type TypeGeneratorEnumeration

type TypeGeneratorEnumeration struct {
	TypeGeneratorPanic
	// contains filtered or unexported fields
}

func TypeGeneratorEnumerationNew

func TypeGeneratorEnumerationNew(typ *Type, enum *Enumeration) *TypeGeneratorEnumeration

type TypeGeneratorIgnore

type TypeGeneratorIgnore struct {
	TypeGeneratorPanic
}

func TypeGeneratorIgnoreNew

func TypeGeneratorIgnoreNew(typ *Type) *TypeGeneratorIgnore

type TypeGeneratorInterface

type TypeGeneratorInterface struct {
	TypeGeneratorPanic
	// contains filtered or unexported fields
}

func TypeGeneratorInterfaceNew

func TypeGeneratorInterfaceNew(typ *Type, iface *Interface) *TypeGeneratorInterface

type TypeGeneratorNumber

type TypeGeneratorNumber struct {
	TypeGeneratorPanic
	// contains filtered or unexported fields
}

func TypeGeneratorIntegerNew

func TypeGeneratorIntegerNew(typ *Type) *TypeGeneratorNumber

type TypeGeneratorPanic

type TypeGeneratorPanic struct {
	// contains filtered or unexported fields
}

type TypeGeneratorRecord

type TypeGeneratorRecord struct {
	TypeGeneratorPanic
	// contains filtered or unexported fields
}

func TypeGeneratorRecordNew

func TypeGeneratorRecordNew(typ *Type, record *Record) *TypeGeneratorRecord

type TypeGeneratorString

type TypeGeneratorString struct {
	TypeGeneratorPanic
	// contains filtered or unexported fields
}

func TypeGeneratorStringNew

func TypeGeneratorStringNew(typ *Type) *TypeGeneratorString

type Version

type Version struct {
	// contains filtered or unexported fields
}

func VersionNew

func VersionNew(value string) Version

func (Version) GTE

func (v Version) GTE(other Version) bool

func (Version) LTE

func (v Version) LTE(other Version) bool

type VersionLister

type VersionLister interface {
	// contains filtered or unexported methods
}

type Versioned

type Versioned interface {
	// contains filtered or unexported methods
}

type Versions

type Versions []Version

func (Versions) Len

func (vv Versions) Len() int

func (Versions) Less

func (vv Versions) Less(i, j int) bool

func (Versions) String

func (vv Versions) String() string

func (Versions) Swap

func (vv Versions) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL