Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PrimitiveULong = Primitive{"unsigned long", "C.ulong(%s)"} PrimitiveLong = Primitive{"long", "C.long(%s)"} PrimitiveUShort = Primitive{"unsigned short", "C.ushort(%s)"} PrimitiveDouble = Primitive{"double", "C.double(%s)"} )
Functions ¶
This section is empty.
Types ¶
type CGoMsgSend ¶
type CGoMsgSend struct { Name string Class string Selector []SelectorPart Return string }
func (CGoMsgSend) HasReturn ¶
func (m CGoMsgSend) HasReturn() bool
type CGoWrapperArg ¶
type CGoWrapperFunc ¶
type CGoWrapperFunc struct { Name string Args []CGoWrapperArg Returns []CGoWrapperReturn }
func (CGoWrapperFunc) HasReturn ¶
func (f CGoWrapperFunc) HasReturn() bool
type CGoWrapperReturn ¶
type GoPackage ¶
type GoPackage struct { PackageDescription Imports []Import ClassMsgSendWrappers []CGoMsgSend MsgSendWrappers []CGoMsgSend CGoWrapperFuncs []MethodDef Classes []ClassDef }
func Convert ¶
func Convert(desc PackageDescription, imports []PackageContents, schemas ...*schema.Schema) GoPackage
type MethodDef ¶
type MethodDef struct { Name string WrappedFunc CGoWrapperFunc }
type PackageContents ¶
type PackageContents struct { // Import can be `nil` if this is representing the contents of the package // currently being generated, which don't need to be "imported". Import *Import Classes map[string]bool Primitives map[string]Primitive }
PackageContents describes the Objective-C wrapper types found in a Go wrapper package. It's used to locate where to import a type name in the Go code, as well as whether it's a class, or another C type.
type PackageDescription ¶
type SelectorPart ¶
Click to show internal directories.
Click to hide internal directories.