ccall

package
v0.0.0-...-e71fdb0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BeginJob     func(*GVJ)
	EndJob       func(*GVJ)
	BeginGraph   func(*GVJ)
	EndGraph     func(*GVJ)
	BeginLayer   func(*GVJ, string, int, int)
	EndLayer     func(*GVJ)
	BeginPage    func(*GVJ)
	EndPage      func(*GVJ)
	BeginCluster func(*GVJ)
	EndCluster   func(*GVJ)
	BeginNodes   func(*GVJ)
	EndNodes     func(*GVJ)
	BeginEdges   func(*GVJ)
	EndEdges     func(*GVJ)
	BeginNode    func(*GVJ)
	EndNode      func(*GVJ)
	BeginEdge    func(*GVJ)
	EndEdge      func(*GVJ)
	BeginAnchor  func(*GVJ, string, string, string, string)
	EndAnchor    func(*GVJ)
	BeginLabel   func(*GVJ, int)
	EndLabel     func(*GVJ)
	Textspan     func(*GVJ, Pointf, *TextSpan)
	ResolveColor func(*GVJ, uint, uint, uint, uint)
	Ellipse      func(*GVJ, Pointf, Pointf, int)
	Polygon      func(*GVJ, []Pointf, int)
	Beziercurve  func(*GVJ, []Pointf, int, int, int)
	Polyline     func(*GVJ, []Pointf)
	Comment      func(*GVJ, string)
	LibraryShape func(*GVJ, string, []Pointf, int)
)
View Source
var (
	Agdirected         = ToAgdesc(&C.Agdirected)
	Agstrictdirected   = ToAgdesc(&C.Agstrictdirected)
	Agundirected       = ToAgdesc(&C.Agundirected)
	Agstrictundirected = ToAgdesc(&C.Agstrictundirected)
)

Functions

func Agalloc

func Agalloc(g *Agraph, size uint) unsafe.Pointer

func Agbindrec

func Agbindrec(obj unsafe.Pointer, name string, size uint, moveToFront int) unsafe.Pointer

func Agcallbacks

func Agcallbacks(g *Agraph, flag int) int

func Agcanon

func Agcanon(s string, i int) string

func AgcanonStr

func AgcanonStr(str string) string

func Agclean

func Agclean(g *Agraph, kind int, recName string)

func Agclearerrors

func Agclearerrors()

func Agclose

func Agclose(g *Agraph) error

func Agcontains

func Agcontains(g *Agraph, p unsafe.Pointer) bool

func Agcopyattr

func Agcopyattr(oldobj unsafe.Pointer, newobj unsafe.Pointer) int

func Agcountuniqedges

func Agcountuniqedges(g *Agraph, n *Agnode, in int, out int) int

func Agdegree

func Agdegree(g *Agraph, n *Agnode, in int, out int) int

func Agdeledge

func Agdeledge(g *Agraph, argE *Agedge) int

func Agdelete

func Agdelete(g *Agraph, obj unsafe.Pointer) error

func Agdelnode

func Agdelnode(g *Agraph, argN *Agnode) int

func Agdelrec

func Agdelrec(obj unsafe.Pointer, name string) int

func Agdelsubg

func Agdelsubg(g *Agraph, sub *Agraph) int32

func Agerr

func Agerr(msg string)

func Agflatten

func Agflatten(g *Agraph, flag int)

func Agfree

func Agfree(g *Agraph, ptr unsafe.Pointer)

func Agget

func Agget(obj unsafe.Pointer, name string) string

func Aghtmlstr

func Aghtmlstr(s string) int

func Aginit

func Aginit(g *Agraph, kind int, recName string, recSize int, moveToFront int)

func Aginternalmapclearlocalnames

func Aginternalmapclearlocalnames(g *Agraph)

func Agisdirected

func Agisdirected(g *Agraph) bool

func Agissimple

func Agissimple(g *Agraph) bool

func Agisstrict

func Agisstrict(g *Agraph) bool

func Agisundirected

func Agisundirected(g *Agraph) bool

func Aglasterr

func Aglasterr() error

func Agnameof

func Agnameof(p unsafe.Pointer) string

func Agnedges

func Agnedges(g *Agraph) int

func Agnnodes

func Agnnodes(g *Agraph) int

func Agnodebefore

func Agnodebefore(u *Agnode, v *Agnode) error

func Agnsubg

func Agnsubg(g *Agraph) int

func Agobjkind

func Agobjkind(obj unsafe.Pointer) int

func Agpopdisc

func Agpopdisc(g *Agraph, disc *Agcbdisc) int

func Agpushdisc

func Agpushdisc(g *Agraph, disc *Agcbdisc, state unsafe.Pointer)

func AgrelabelNode

func AgrelabelNode(n *Agnode, newname string) error

func Agsafeset

func Agsafeset(obj unsafe.Pointer, name string, value string, def string) int

func Agset

func Agset(obj unsafe.Pointer, name string, value string) int

func Agsetfile

func Agsetfile(file string)

func Agstrbind

func Agstrbind(g *Agraph, s string) string

func Agstrcanon

func Agstrcanon(a0 string, a1 string) string

func Agstrdup

func Agstrdup(g *Agraph, s string) string

func AgstrdupHTML

func AgstrdupHTML(g *Agraph, s string) string

func Agstrfree

func Agstrfree(g *Agraph, s string) int

func Agwrite

func Agwrite(g *Agraph, ch unsafe.Pointer) error

func Agxget

func Agxget(obj unsafe.Pointer, sym *Agsym) string

func Agxset

func Agxset(obj unsafe.Pointer, sym *Agsym, value string) int

func AttachAttrs

func AttachAttrs(g *Agraph)

func Dtclose

func Dtclose(a0 *Dict) int

func Dtrenew

func Dtrenew(a0 *Dict, a1 unsafe.Pointer) unsafe.Pointer

func Dtrestore

func Dtrestore(a0 *Dict, a1 *Dtlink) int

func Dtsize

func Dtsize(a0 *Dict) int

func Dtstatf

func Dtstatf(a0 *Dict, a1 *Dtstat, a2 int) int

func Dtstrhash

func Dtstrhash(a0 uint, a1 unsafe.Pointer, a2 int) uint

func Dttreeset

func Dttreeset(a0 *Dict, a1 int, a2 int) int

func Dtwalk

func Dtwalk(a0 *Dict, a1 func(a0 *Dict, a1 unsafe.Pointer, a2 unsafe.Pointer) int, a2 unsafe.Pointer) int

func GoBeginAnchor

func GoBeginAnchor(job *C.GVJ_t, href, tooltip, target, id *C.char)

func GoBeginCluster

func GoBeginCluster(job *C.GVJ_t)

func GoBeginEdge

func GoBeginEdge(job *C.GVJ_t)

func GoBeginEdges

func GoBeginEdges(job *C.GVJ_t)

func GoBeginGraph

func GoBeginGraph(job *C.GVJ_t)

func GoBeginJob

func GoBeginJob(job *C.GVJ_t)

func GoBeginLabel

func GoBeginLabel(job *C.GVJ_t, typ C.int)

func GoBeginLayer

func GoBeginLayer(job *C.GVJ_t, layername *C.char, layerNum C.int, numLayers C.int)

func GoBeginNode

func GoBeginNode(job *C.GVJ_t)

func GoBeginNodes

func GoBeginNodes(job *C.GVJ_t)

func GoBeginPage

func GoBeginPage(job *C.GVJ_t)

func GoBeziercurve

func GoBeziercurve(job *C.GVJ_t, a *C.pointf, n, arrowAtStart, arrowAtEnd, ext C.int)

func GoComment

func GoComment(job *C.GVJ_t, comment *C.char)

func GoDtwalkCallback

func GoDtwalkCallback(a0 *C.Dict_t, a1 unsafe.Pointer, a2 unsafe.Pointer) int

func GoEllipse

func GoEllipse(job *C.GVJ_t, a0, a1 C.pointf, filled C.int)

func GoEndAnchor

func GoEndAnchor(job *C.GVJ_t)

func GoEndCluster

func GoEndCluster(job *C.GVJ_t)

func GoEndEdge

func GoEndEdge(job *C.GVJ_t)

func GoEndEdges

func GoEndEdges(job *C.GVJ_t)

func GoEndGraph

func GoEndGraph(job *C.GVJ_t)

func GoEndJob

func GoEndJob(job *C.GVJ_t)

func GoEndLabel

func GoEndLabel(job *C.GVJ_t)

func GoEndLayer

func GoEndLayer(job *C.GVJ_t)

func GoEndNode

func GoEndNode(job *C.GVJ_t)

func GoEndNodes

func GoEndNodes(job *C.GVJ_t)

func GoEndPage

func GoEndPage(job *C.GVJ_t)

func GoLibraryShape

func GoLibraryShape(job *C.GVJ_t, name *C.char, a *C.pointf, n, filled C.int)

func GoPolygon

func GoPolygon(job *C.GVJ_t, a *C.pointf, n, filled C.int)

func GoPolyline

func GoPolyline(job *C.GVJ_t, a *C.pointf, n C.int)

func GoResolveColor

func GoResolveColor(job *C.GVJ_t, r, g, b, a C.uint)

func GoTextspan

func GoTextspan(job *C.GVJ_t, p C.pointf, span *C.textspan_t)

func GvFinalize

func GvFinalize(gvc *GVC)

func GvFreeContext

func GvFreeContext(gvc *GVC) error

func GvFreeLayout

func GvFreeLayout(gvc *GVC, g *Agraph) error

func GvLayout

func GvLayout(gvc *GVC, g *Agraph, engine string) error

func GvLayoutJobs

func GvLayoutJobs(gvc *GVC, g *Agraph) error

func GvRenderContext

func GvRenderContext(gvc *GVC, g *Agraph, format string, context unsafe.Pointer) error

func GvRenderData

func GvRenderData(gvc *GVC, g *Agraph, format string, w io.Writer) error

func GvRenderFilename

func GvRenderFilename(gvc *GVC, g *Agraph, format, filename string) error

func GvRenderJobs

func GvRenderJobs(gvc *GVC, g *Agraph) error

func GvToolTred

func GvToolTred(g *Agraph) int

func GvcBuildDate

func GvcBuildDate(gvc *GVC) string

func GvcVersion

func GvcVersion(gvc *GVC) string

Types

type Agattr

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

func ToAgattr

func ToAgattr(c *C.Agattr_t) *Agattr

func (*Agattr) C

func (g *Agattr) C() *C.Agattr_t

func (*Agattr) Dict

func (g *Agattr) Dict() *Dict

func (*Agattr) H

func (g *Agattr) H() *Agrec

func (*Agattr) SetDict

func (g *Agattr) SetDict(v *Dict)

func (*Agattr) SetH

func (g *Agattr) SetH(v *Agrec)

func (*Agattr) SetStr

func (g *Agattr) SetStr(v []string)

func (*Agattr) Str

func (g *Agattr) Str() []string

type Agcbdisc

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

func ToAgcbdisc

func ToAgcbdisc(c *C.Agcbdisc_t) *Agcbdisc

type Agcbstack

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

func ToAgcbstack

func ToAgcbstack(c *C.Agcbstack_t) *Agcbstack

func (*Agcbstack) Prev

func (g *Agcbstack) Prev() *Agcbstack

type Agclos

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

func ToAgclos

func ToAgclos(c *C.Agclos_t) *Agclos

func (*Agclos) CallbacksEnabled

func (g *Agclos) CallbacksEnabled() bool

func (*Agclos) Cb

func (g *Agclos) Cb() *Agcbstack

func (*Agclos) Disc

func (g *Agclos) Disc() *Agdisc

func (*Agclos) LookupByID

func (g *Agclos) LookupByID() [3]*Dict

func (*Agclos) LookupByName

func (g *Agclos) LookupByName() [3]*Dict

func (*Agclos) Seq

func (g *Agclos) Seq() [3]uint64

func (*Agclos) SetCallbacksEnabled

func (g *Agclos) SetCallbacksEnabled(v bool)

func (*Agclos) SetCb

func (g *Agclos) SetCb(v *Agcbstack)

func (*Agclos) SetDisc

func (g *Agclos) SetDisc(v *Agdisc)

func (*Agclos) SetSeq

func (g *Agclos) SetSeq(v []uint64)

func (*Agclos) SetState

func (g *Agclos) SetState(v *Agdstate)

func (*Agclos) SetStrdict

func (g *Agclos) SetStrdict(v *Dict)

func (*Agclos) State

func (g *Agclos) State() *Agdstate

func (*Agclos) Strdict

func (g *Agclos) Strdict() *Dict

type Agdatadict

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

func ToAgdatadict

func ToAgdatadict(c *C.Agdatadict_t) *Agdatadict

func (*Agdatadict) DictE

func (g *Agdatadict) DictE() *Dict

func (*Agdatadict) DictG

func (g *Agdatadict) DictG() *Dict

func (*Agdatadict) DictN

func (g *Agdatadict) DictN() *Dict

func (*Agdatadict) H

func (g *Agdatadict) H() *Agrec

func (*Agdatadict) SetDictE

func (g *Agdatadict) SetDictE(v *Dict)

func (*Agdatadict) SetDictG

func (g *Agdatadict) SetDictG(v *Dict)

func (*Agdatadict) SetDictN

func (g *Agdatadict) SetDictN(v *Dict)

func (*Agdatadict) SetH

func (g *Agdatadict) SetH(v *Agrec)

type Agdesc

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

func ToAgdesc

func ToAgdesc(c *C.Agdesc_t) *Agdesc

func (*Agdesc) C

func (g *Agdesc) C() *C.Agdesc_t

type Agdisc

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

func ToAgdisc

func ToAgdisc(c *C.Agdisc_t) *Agdisc

func (*Agdisc) C

func (g *Agdisc) C() *C.Agdisc_t

type Agdstate

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

func ToAgdstate

func ToAgdstate(c *C.Agdstate_t) *Agdstate

func (*Agdstate) ID

func (g *Agdstate) ID() unsafe.Pointer

func (*Agdstate) Mem

func (g *Agdstate) Mem() unsafe.Pointer

type Agedge

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

func Agedgef

func Agedgef(g *Agraph, t *Agnode, h *Agnode, name string, createFlag int) (*Agedge, error)

func Agfstedge

func Agfstedge(g *Agraph, n *Agnode) *Agedge

func Agfstin

func Agfstin(g *Agraph, n *Agnode) *Agedge

func Agfstout

func Agfstout(g *Agraph, n *Agnode) *Agedge

func Agidedge

func Agidedge(g *Agraph, t *Agnode, h *Agnode, id uint64, createFlag int) (*Agedge, error)

func Agnxtedge

func Agnxtedge(g *Agraph, e *Agedge, n *Agnode) *Agedge

func Agnxtin

func Agnxtin(g *Agraph, n *Agedge) *Agedge

func Agnxtout

func Agnxtout(g *Agraph, e *Agedge) *Agedge

func Agsubedge

func Agsubedge(g *Agraph, e *Agedge, createFlag int) (*Agedge, error)

func ToAgedge

func ToAgedge(c *C.Agedge_t) *Agedge

func (*Agedge) Base

func (g *Agedge) Base() *Agobj

func (*Agedge) C

func (g *Agedge) C() *C.Agedge_t
func (g *Agedge) IDLink() *Dtlink

func (*Agedge) Node

func (g *Agedge) Node() *Agnode
func (g *Agedge) SeqLink() *Dtlink

func (*Agedge) SetBase

func (g *Agedge) SetBase(v *Agobj)
func (g *Agedge) SetIDLink(v *Dtlink)

func (*Agedge) SetNode

func (g *Agedge) SetNode(v *Agnode)
func (g *Agedge) SetSeqLink(v *Dtlink)

type Agedgepair

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

func ToAgedgepair

func ToAgedgepair(c *C.Agedgepair_t) *Agedgepair

func (*Agedgepair) C

func (g *Agedgepair) C() *C.Agedgepair_t

func (*Agedgepair) In

func (g *Agedgepair) In() *Agedge

func (*Agedgepair) Out

func (g *Agedgepair) Out() *Agedge

func (*Agedgepair) SetIn

func (g *Agedgepair) SetIn(v *Agedge)

func (*Agedgepair) SetOut

func (g *Agedgepair) SetOut(v *Agedge)

type Agnode

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

func Agfstnode

func Agfstnode(g *Agraph) *Agnode

func Agidnode

func Agidnode(g *Agraph, id uint64, createFlag int) (*Agnode, error)

func Aglstnode

func Aglstnode(g *Agraph) *Agnode

func Agnodef

func Agnodef(g *Agraph, name string, createFlag int) (*Agnode, error)

func Agnxtnode

func Agnxtnode(g *Agraph, n *Agnode) *Agnode

func Agprvnode

func Agprvnode(g *Agraph, n *Agnode) *Agnode

func Agsubnodef

func Agsubnodef(g *Agraph, n *Agnode, createFlag int) (*Agnode, error)

func ToAgnode

func ToAgnode(c *C.Agnode_t) *Agnode

func (*Agnode) Base

func (g *Agnode) Base() *Agobj

func (*Agnode) C

func (g *Agnode) C() *C.Agnode_t

func (*Agnode) Mainsub

func (g *Agnode) Mainsub() *Agsubnode

func (*Agnode) Root

func (g *Agnode) Root() *Agraph

func (*Agnode) SetBase

func (g *Agnode) SetBase(v *Agobj)

func (*Agnode) SetMainsub

func (g *Agnode) SetMainsub(v *Agsubnode)

func (*Agnode) SetRoot

func (g *Agnode) SetRoot(v *Agraph)

type Agobj

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

func ToAgobj

func ToAgobj(c *C.Agobj_t) *Agobj

func (*Agobj) C

func (g *Agobj) C() *C.Agobj_t

func (*Agobj) Data

func (g *Agobj) Data() *Agrec

func (*Agobj) SetData

func (g *Agobj) SetData(v *Agrec)

func (*Agobj) SetTag

func (g *Agobj) SetTag(v *Agtag)

func (*Agobj) Tag

func (g *Agobj) Tag() *Agtag

type Agraph

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

func Agfstsubg

func Agfstsubg(g *Agraph) *Agraph

func Agidsubg

func Agidsubg(g *Agraph, id uint64, cflag int) *Agraph

func Agmemread

func Agmemread(cp string) (*Agraph, error)

func Agnxtsubg

func Agnxtsubg(subg *Agraph) *Agraph

func Agopen

func Agopen(name string, desc *Agdesc, disc *Agdisc) (*Agraph, error)

func Agparent

func Agparent(g *Agraph) *Agraph

func Agread

func Agread(ch unsafe.Pointer, disc *Agdisc) (*Agraph, error)

func Agsubg

func Agsubg(g *Agraph, name string, cflag int) *Agraph

func GvNextInputGraph

func GvNextInputGraph(gvc *GVC) *Agraph

func GvPluginsGraph

func GvPluginsGraph(gvc *GVC) *Agraph

func ToAgraph

func ToAgraph(c *C.Agraph_t) *Agraph

func (*Agraph) Base

func (g *Agraph) Base() *Agobj

func (*Agraph) C

func (g *Agraph) C() *C.Agraph_t

func (*Agraph) Clos

func (g *Agraph) Clos() *Agclos

func (*Agraph) Desc

func (g *Agraph) Desc() *Agdesc

func (*Agraph) EID

func (g *Agraph) EID() *Dict

func (*Agraph) ESeq

func (g *Agraph) ESeq() *Dict

func (*Agraph) GDict

func (g *Agraph) GDict() *Dict
func (g *Agraph) Link() *Dtlink

func (*Agraph) NID

func (g *Agraph) NID() *Dict

func (*Agraph) NSeq

func (g *Agraph) NSeq() *Dict

func (*Agraph) Parent

func (g *Agraph) Parent() *Agraph

func (*Agraph) Root

func (g *Agraph) Root() *Agraph

func (*Agraph) SetBase

func (g *Agraph) SetBase(v *Agobj)

func (*Agraph) SetClos

func (g *Agraph) SetClos(v *Agclos)

func (*Agraph) SetDesc

func (g *Agraph) SetDesc(v *Agdesc)

func (*Agraph) SetEID

func (g *Agraph) SetEID(v *Dict)

func (*Agraph) SetESeq

func (g *Agraph) SetESeq(v *Dict)

func (*Agraph) SetGDict

func (g *Agraph) SetGDict(v *Dict)
func (g *Agraph) SetLink(v *Dtlink)

func (*Agraph) SetNID

func (g *Agraph) SetNID(v *Dict)

func (*Agraph) SetNSeq

func (g *Agraph) SetNSeq(v *Dict)

func (*Agraph) SetParent

func (g *Agraph) SetParent(v *Agraph)

func (*Agraph) SetRoot

func (g *Agraph) SetRoot(v *Agraph)

type Agrec

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

func Aggetrec

func Aggetrec(obj unsafe.Pointer, name string, moveToFront int) *Agrec

func ToAgrec

func ToAgrec(c *C.Agrec_t) *Agrec

func (*Agrec) C

func (g *Agrec) C() *C.Agrec_t

func (*Agrec) Name

func (g *Agrec) Name() string

func (*Agrec) Next

func (g *Agrec) Next() *Agrec

func (*Agrec) SetName

func (g *Agrec) SetName(v string)

func (*Agrec) SetNext

func (g *Agrec) SetNext(v *Agrec)

type Agsubnode

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

func Agsubrep

func Agsubrep(g *Agraph, n *Agnode) *Agsubnode

func ToAgsubnode

func ToAgsubnode(c *C.Agsubnode_t) *Agsubnode

func (*Agsubnode) C

func (g *Agsubnode) C() *C.Agsubnode_t
func (g *Agsubnode) IDLink() *Dtlink

func (*Agsubnode) InID

func (g *Agsubnode) InID() *Dtlink

func (*Agsubnode) InSeq

func (g *Agsubnode) InSeq() *Dtlink

func (*Agsubnode) Node

func (g *Agsubnode) Node() *Agnode

func (*Agsubnode) OutID

func (g *Agsubnode) OutID() *Dtlink

func (*Agsubnode) OutSeq

func (g *Agsubnode) OutSeq() *Dtlink
func (g *Agsubnode) SeqLink() *Dtlink
func (g *Agsubnode) SetIDLink(v *Dtlink)

func (*Agsubnode) SetInID

func (g *Agsubnode) SetInID(v *Dtlink)

func (*Agsubnode) SetInSeq

func (g *Agsubnode) SetInSeq(v *Dtlink)

func (*Agsubnode) SetNode

func (g *Agsubnode) SetNode(v *Agnode)

func (*Agsubnode) SetOutID

func (g *Agsubnode) SetOutID(v *Dtlink)

func (*Agsubnode) SetOutSeq

func (g *Agsubnode) SetOutSeq(v *Dtlink)
func (g *Agsubnode) SetSeqLink(v *Dtlink)

type Agsym

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

func Agattrf

func Agattrf(g *Agraph, kind int, name string, value string) *Agsym

func Agattrsym

func Agattrsym(obj unsafe.Pointer, name string) *Agsym

func Agnxtattr

func Agnxtattr(g *Agraph, kind int, attr *Agsym) *Agsym

func ToAgsym

func ToAgsym(c *C.Agsym_t) *Agsym

func (*Agsym) C

func (g *Agsym) C() *C.Agsym_t

func (*Agsym) Defval

func (g *Agsym) Defval() string

func (*Agsym) Fixed

func (g *Agsym) Fixed() uint

func (*Agsym) ID

func (g *Agsym) ID() int

func (*Agsym) Kind

func (g *Agsym) Kind() uint
func (g *Agsym) Link() *Dtlink

func (*Agsym) Name

func (g *Agsym) Name() string

func (*Agsym) Print

func (g *Agsym) Print() uint

func (*Agsym) SetDefval

func (g *Agsym) SetDefval(v string)

func (*Agsym) SetFixed

func (g *Agsym) SetFixed(v uint)

func (*Agsym) SetID

func (g *Agsym) SetID(v int)

func (*Agsym) SetKind

func (g *Agsym) SetKind(v uint)
func (g *Agsym) SetLink(v *Dtlink)

func (*Agsym) SetName

func (g *Agsym) SetName(v string)

func (*Agsym) SetPrint

func (g *Agsym) SetPrint(v uint)

type Agtag

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

func ToAgtag

func ToAgtag(c *C.Agtag_t) *Agtag

func (*Agtag) C

func (g *Agtag) C() *C.Agtag_t

func (*Agtag) ID

func (g *Agtag) ID() uint64

func (*Agtag) SetID

func (g *Agtag) SetID(v uint64)

type Box

type Box struct {
	LL Point
	UR Point
}

func ToBox

func ToBox(c C.box) Box

type Boxf

type Boxf struct {
	LL Pointf
	UR Pointf
}

func ToBoxf

func ToBoxf(c C.boxf) Boxf

type Dict

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

func Dtopen

func Dtopen(a0 *Dtdisc, a1 *Dtmethod) *Dict

func Dtview

func Dtview(a0 *Dict, a1 *Dict) *Dict

func ToDict

func ToDict(c *C.Dict_t) *Dict

func (*Dict) C

func (g *Dict) C() *C.Dict_t

func (*Dict) Data

func (g *Dict) Data() *Dtdata

func (*Dict) Disc

func (g *Dict) Disc() *Dtdisc

func (*Dict) Memory

func (g *Dict) Memory() Dtmemory

func (*Dict) Meth

func (g *Dict) Meth() *Dtmethod

func (*Dict) Nview

func (g *Dict) Nview() int

func (*Dict) Search

func (g *Dict) Search() Dtsearch

func (*Dict) SetData

func (g *Dict) SetData(v *Dtdata)

func (*Dict) SetDisc

func (g *Dict) SetDisc(v *Dtdisc)

func (*Dict) SetMeth

func (g *Dict) SetMeth(v *Dtmethod)

func (*Dict) SetNview

func (g *Dict) SetNview(v int)

func (*Dict) SetType

func (g *Dict) SetType(v int)

func (*Dict) SetUser

func (g *Dict) SetUser(v unsafe.Pointer)

func (*Dict) SetView

func (g *Dict) SetView(v *Dict)

func (*Dict) SetWalk

func (g *Dict) SetWalk(v *Dict)

func (*Dict) Type

func (g *Dict) Type() int

func (*Dict) User

func (g *Dict) User() unsafe.Pointer

func (*Dict) View

func (g *Dict) View() *Dict

func (*Dict) Walk

func (g *Dict) Walk() *Dict

type Dtcompare

type Dtcompare func(*Dict, unsafe.Pointer, unsafe.Pointer, *Dtdisc) int

type Dtdata

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

func ToDtdata

func ToDtdata(c *C.Dtdata_t) *Dtdata

func (*Dtdata) C

func (g *Dtdata) C() *C.Dtdata_t

func (*Dtdata) Head

func (g *Dtdata) Head() *Dtlink

func (*Dtdata) Here

func (g *Dtdata) Here() *Dtlink

func (*Dtdata) Htab

func (g *Dtdata) Htab() []*Dtlink

func (*Dtdata) Loop

func (g *Dtdata) Loop() int

func (*Dtdata) Minp

func (g *Dtdata) Minp() int

func (*Dtdata) Ntab

func (g *Dtdata) Ntab() int

func (*Dtdata) SetHead

func (g *Dtdata) SetHead(v *Dtlink)

func (*Dtdata) SetHere

func (g *Dtdata) SetHere(v *Dtlink)

func (*Dtdata) SetHtab

func (g *Dtdata) SetHtab(v []*Dtlink)

func (*Dtdata) SetLoop

func (g *Dtdata) SetLoop(v int)

func (*Dtdata) SetMinp

func (g *Dtdata) SetMinp(v int)

func (*Dtdata) SetNtab

func (g *Dtdata) SetNtab(v int)

func (*Dtdata) SetSize

func (g *Dtdata) SetSize(v int)

func (*Dtdata) SetType

func (g *Dtdata) SetType(v int)

func (*Dtdata) Size

func (g *Dtdata) Size() int

func (*Dtdata) Type

func (g *Dtdata) Type() int

type Dtdisc

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

func Dtdiscf

func Dtdiscf(a0 *Dict, a1 *Dtdisc, a2 int) *Dtdisc

func ToDtdisc

func ToDtdisc(c *C.Dtdisc_t) *Dtdisc

func (*Dtdisc) C

func (g *Dtdisc) C() *C.Dtdisc_t

func (*Dtdisc) Compare

func (g *Dtdisc) Compare() Dtcompare

func (*Dtdisc) Event

func (g *Dtdisc) Event() Dtevent

func (*Dtdisc) Free

func (g *Dtdisc) Free() Dtfree

func (*Dtdisc) Hash

func (g *Dtdisc) Hash() Dthash

func (*Dtdisc) Key

func (g *Dtdisc) Key() int
func (g *Dtdisc) Link() int

func (*Dtdisc) Make

func (g *Dtdisc) Make() Dtmake

func (*Dtdisc) Memory

func (g *Dtdisc) Memory() Dtmemory

func (*Dtdisc) SetKey

func (g *Dtdisc) SetKey(v int)
func (g *Dtdisc) SetLink(v int)

func (*Dtdisc) SetSize

func (g *Dtdisc) SetSize(v int)

func (*Dtdisc) Size

func (g *Dtdisc) Size() int

type Dtevent

type Dtevent func(*Dict, int, unsafe.Pointer, *Dtdisc) int

type Dtfree

type Dtfree func(*Dict, unsafe.Pointer, *Dtdisc)

type Dthash

type Dthash func(*Dict, unsafe.Pointer, *Dtdisc) uint

type Dthold

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

func ToDthold

func ToDthold(c *C.Dthold_t) *Dthold

func (*Dthold) C

func (g *Dthold) C() *C.Dthold_t

func (*Dthold) Hdr

func (g *Dthold) Hdr() *Dtlink

func (*Dthold) Obj

func (g *Dthold) Obj() unsafe.Pointer

func (*Dthold) SetHdr

func (g *Dthold) SetHdr(v *Dtlink)

func (*Dthold) SetObj

func (g *Dthold) SetObj(v unsafe.Pointer)
type Dtlink struct {
	// contains filtered or unexported fields
}

func Dtextract

func Dtextract(a0 *Dict) *Dtlink

func Dtflatten

func Dtflatten(a0 *Dict) *Dtlink
func ToDtlink(c *C.Dtlink_t) *Dtlink

func (*Dtlink) C

func (g *Dtlink) C() *C.Dtlink_t

func (*Dtlink) Hash

func (g *Dtlink) Hash() uint

func (*Dtlink) Left

func (g *Dtlink) Left() *Dtlink

func (*Dtlink) Right

func (g *Dtlink) Right() *Dtlink

func (*Dtlink) SetHash

func (g *Dtlink) SetHash(v uint)

func (*Dtlink) SetLeft

func (g *Dtlink) SetLeft(v *Dtlink)

func (*Dtlink) SetRight

func (g *Dtlink) SetRight(v *Dtlink)

type Dtmake

type Dtmake func(*Dict, unsafe.Pointer, *Dtdisc) unsafe.Pointer

type Dtmemory

type Dtmemory func(*Dict, unsafe.Pointer, uint, *Dtdisc) unsafe.Pointer

type Dtmethod

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

func Dtmethodf

func Dtmethodf(a0 *Dict, a1 *Dtmethod) *Dtmethod

func ToDtmethod

func ToDtmethod(c *C.Dtmethod_t) *Dtmethod

func (*Dtmethod) C

func (g *Dtmethod) C() *C.Dtmethod_t

func (*Dtmethod) Search

func (g *Dtmethod) Search() Dtsearch

func (*Dtmethod) SetSearch

func (g *Dtmethod) SetSearch(v Dtsearch)

func (*Dtmethod) SetType

func (g *Dtmethod) SetType(v int)

func (*Dtmethod) Type

func (g *Dtmethod) Type() int

type Dtsearch

type Dtsearch func(*Dict, unsafe.Pointer, int) unsafe.Pointer

type Dtstat

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

func ToDtstat

func ToDtstat(c *C.Dtstat_t) *Dtstat

func (*Dtstat) C

func (g *Dtstat) C() *C.Dtstat_t

func (*Dtstat) DtCount

func (g *Dtstat) DtCount() []int

func (*Dtstat) DtMax

func (g *Dtstat) DtMax() int

func (*Dtstat) DtMeth

func (g *Dtstat) DtMeth() int

func (*Dtstat) DtN

func (g *Dtstat) DtN() int

func (*Dtstat) DtSetSize

func (g *Dtstat) DtSetSize(v int)

func (*Dtstat) DtSize

func (g *Dtstat) DtSize() int

func (*Dtstat) SetDtCount

func (g *Dtstat) SetDtCount(v []int)

func (*Dtstat) SetDtMax

func (g *Dtstat) SetDtMax(v int)

func (*Dtstat) SetDtMeth

func (g *Dtstat) SetDtMeth(v int)

func (*Dtstat) SetDtN

func (g *Dtstat) SetDtN(v int)

type EmitState

type EmitState int
const (
	EMIT_GDRAW EmitState = iota
	EMIT_CDRAW
	EMIT_TDRAW
	EMIT_HDRAW
	EMIT_GLABEL
	EMIT_CLABEL
	EMIT_TLABEL
	EMIT_HLABEL
	EMIT_NDRAW
	EMIT_EDRAW
	EMIT_NLABEL
	EMIT_ELABEL
)

type FillType

type FillType int
const (
	FILL_NONE FillType = iota
	FILL_SOLID
	FILL_LINEAR
	FILL_RADIAL
)

type GVC

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

func GvContext

func GvContext() *GVC

func ToGVC

func ToGVC(c *C.GVC_t) *GVC

func (*GVC) C

func (g *GVC) C() *C.GVC_t

type GVColor

type GVColor struct {
	R uint
	G uint
	B uint
	A uint
}

func ToGVColor

func ToGVColor(c C.gvcolor_t) GVColor

type GVCommon

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

func ToGVCommon

func ToGVCommon(c *C.GVCOMMON_t) *GVCommon

type GVJ

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

func ToGVJ

func ToGVJ(c *C.GVJ_t) *GVJ

func (*GVJ) ActiveTooltip

func (g *GVJ) ActiveTooltip() []byte

func (*GVJ) BB

func (g *GVJ) BB() Boxf

func (*GVJ) BoundingBox

func (g *GVJ) BoundingBox() Box

func (*GVJ) Button

func (g *GVJ) Button() uint

func (*GVJ) C

func (g *GVJ) C() *C.GVJ_t

func (*GVJ) CanvasBox

func (g *GVJ) CanvasBox() Boxf

func (*GVJ) Click

func (g *GVJ) Click() bool

func (*GVJ) Clip

func (g *GVJ) Clip() Boxf

func (*GVJ) Common

func (g *GVJ) Common() *GVCommon

func (*GVJ) Context

func (g *GVJ) Context() unsafe.Pointer

func (*GVJ) CurrentObj

func (g *GVJ) CurrentObj() unsafe.Pointer

func (*GVJ) DPI

func (g *GVJ) DPI() Pointf

func (*GVJ) DevScale

func (g *GVJ) DevScale() Pointf

func (*GVJ) DeviceDPI

func (g *GVJ) DeviceDPI() Pointf

func (*GVJ) DeviceSetsDPI

func (g *GVJ) DeviceSetsDPI() bool

func (*GVJ) Display

func (g *GVJ) Display() unsafe.Pointer

func (*GVJ) ExternalContext

func (g *GVJ) ExternalContext() bool

func (*GVJ) FitMode

func (g *GVJ) FitMode() bool

func (*GVJ) Flags

func (g *GVJ) Flags() int

func (*GVJ) Focus

func (g *GVJ) Focus() Pointf

func (*GVJ) GVC

func (g *GVJ) GVC() *GVC

func (*GVJ) GraphIndex

func (g *GVJ) GraphIndex() int

func (*GVJ) HasBeenRendered

func (g *GVJ) HasBeenRendered() bool

func (*GVJ) HasGrown

func (g *GVJ) HasGrown() bool

func (*GVJ) Height

func (g *GVJ) Height() uint

func (*GVJ) ImageData

func (g *GVJ) ImageData() []byte

func (*GVJ) InputFilename

func (g *GVJ) InputFilename() string

func (*GVJ) KeyCodes

func (g *GVJ) KeyCodes() unsafe.Pointer

func (*GVJ) LayerNum

func (g *GVJ) LayerNum() int

func (*GVJ) LayoutType

func (g *GVJ) LayoutType() string

func (*GVJ) Margin

func (g *GVJ) Margin() Pointf

func (*GVJ) NeedsRefresh

func (g *GVJ) NeedsRefresh() bool

func (*GVJ) Next

func (g *GVJ) Next() *GVJ

func (*GVJ) NextActive

func (g *GVJ) NextActive() *GVJ

func (*GVJ) NumKeys

func (g *GVJ) NumKeys() int

func (*GVJ) NumLayers

func (g *GVJ) NumLayers() int

func (*GVJ) NumPages

func (g *GVJ) NumPages() int

func (*GVJ) Obj

func (g *GVJ) Obj() *ObjState

func (*GVJ) OldPointer

func (g *GVJ) OldPointer() Pointf

func (*GVJ) OutputData

func (g *GVJ) OutputData() []byte

func (*GVJ) OutputDataAllocated

func (g *GVJ) OutputDataAllocated() uint

func (*GVJ) OutputDataPosition

func (g *GVJ) OutputDataPosition() uint

func (*GVJ) OutputFile

func (g *GVJ) OutputFile() *os.File

func (*GVJ) OutputFilename

func (g *GVJ) OutputFilename() string

func (*GVJ) OutputLang

func (g *GVJ) OutputLang() int

func (*GVJ) OutputLangname

func (g *GVJ) OutputLangname() string

func (*GVJ) Pad

func (g *GVJ) Pad() Pointf

func (*GVJ) PageBoundingBox

func (g *GVJ) PageBoundingBox() Box

func (*GVJ) PageBox

func (g *GVJ) PageBox() Boxf

func (*GVJ) PageSize

func (g *GVJ) PageSize() Pointf

func (*GVJ) PagesArrayElem

func (g *GVJ) PagesArrayElem() Point

func (*GVJ) PagesArrayFirst

func (g *GVJ) PagesArrayFirst() Point

func (*GVJ) PagesArrayMajor

func (g *GVJ) PagesArrayMajor() Point

func (*GVJ) PagesArrayMinor

func (g *GVJ) PagesArrayMinor() Point

func (*GVJ) PagesArraySize

func (g *GVJ) PagesArraySize() Point

func (*GVJ) Pointer

func (g *GVJ) Pointer() Pointf

func (*GVJ) Rotation

func (g *GVJ) Rotation() int

func (*GVJ) Scale

func (g *GVJ) Scale() Pointf

func (*GVJ) Screen

func (g *GVJ) Screen() int

func (*GVJ) SelectedHref

func (g *GVJ) SelectedHref() []byte

func (*GVJ) SelectedObj

func (g *GVJ) SelectedObj() unsafe.Pointer

func (*GVJ) SetOutputData

func (g *GVJ) SetOutputData(v []byte)

func (*GVJ) Translation

func (g *GVJ) Translation() Pointf

func (*GVJ) View

func (g *GVJ) View() Pointf

func (*GVJ) Width

func (g *GVJ) Width() uint

func (*GVJ) Window

func (g *GVJ) Window() unsafe.Pointer

func (*GVJ) Zoom

func (g *GVJ) Zoom() float64

type MapShape

type MapShape int
const (
	MAP_RECTANGLE MapShape = iota
	MAP_CIRCLE
	MAP_POLYGON
)

type ObjState

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

func ToObjState

func ToObjState(c *C.obj_state_t) *ObjState

func (*ObjState) Edge

func (g *ObjState) Edge() *Agedge

func (*ObjState) EmitState

func (g *ObjState) EmitState() EmitState

func (*ObjState) Fill

func (g *ObjState) Fill() FillType

func (*ObjState) FillColor

func (g *ObjState) FillColor() GVColor

func (*ObjState) GradientAngle

func (g *ObjState) GradientAngle() int

func (*ObjState) GradientFrac

func (g *ObjState) GradientFrac() float32

func (*ObjState) Graph

func (g *ObjState) Graph() *Agraph

func (*ObjState) HeadEndURLMapN

func (g *ObjState) HeadEndURLMapN() int

func (*ObjState) HeadEndURLMapP

func (g *ObjState) HeadEndURLMapP() []Pointf

func (*ObjState) HeadLabel

func (g *ObjState) HeadLabel() string

func (*ObjState) HeadTarget

func (g *ObjState) HeadTarget() string

func (*ObjState) HeadTooltip

func (g *ObjState) HeadTooltip() string

func (*ObjState) HeadURL

func (g *ObjState) HeadURL() string

func (*ObjState) HeadZ

func (g *ObjState) HeadZ() float64

func (*ObjState) ID

func (g *ObjState) ID() string

func (*ObjState) Label

func (g *ObjState) Label() string

func (*ObjState) LabelTarget

func (g *ObjState) LabelTarget() string

func (*ObjState) LabelTooltip

func (g *ObjState) LabelTooltip() string

func (*ObjState) LabelURL

func (g *ObjState) LabelURL() string

func (*ObjState) Node

func (g *ObjState) Node() *Agnode

func (*ObjState) Parent

func (g *ObjState) Parent() *ObjState

func (*ObjState) Pen

func (g *ObjState) Pen() PenType

func (*ObjState) PenColor

func (g *ObjState) PenColor() GVColor

func (*ObjState) PenWidth

func (g *ObjState) PenWidth() float64

func (*ObjState) RawStyle

func (g *ObjState) RawStyle() []string

func (*ObjState) StopColor

func (g *ObjState) StopColor() GVColor

func (*ObjState) SubGraph

func (g *ObjState) SubGraph() *Agraph

func (*ObjState) TailEndURLMapN

func (g *ObjState) TailEndURLMapN() int

func (*ObjState) TailEndURLMapP

func (g *ObjState) TailEndURLMapP() []Pointf

func (*ObjState) TailLabel

func (g *ObjState) TailLabel() string

func (*ObjState) TailTarget

func (g *ObjState) TailTarget() string

func (*ObjState) TailTooltip

func (g *ObjState) TailTooltip() string

func (*ObjState) TailURL

func (g *ObjState) TailURL() string

func (*ObjState) TailZ

func (g *ObjState) TailZ() float64

func (*ObjState) Target

func (g *ObjState) Target() string

func (*ObjState) Tooltip

func (g *ObjState) Tooltip() string

func (*ObjState) Type

func (g *ObjState) Type() ObjType

func (*ObjState) URL

func (g *ObjState) URL() string

func (*ObjState) URLBsplinemapN

func (g *ObjState) URLBsplinemapN() []int

func (*ObjState) URLBsplinemapP

func (g *ObjState) URLBsplinemapP() []Pointf

func (*ObjState) URLBsplinemapPolyN

func (g *ObjState) URLBsplinemapPolyN() int

func (*ObjState) URLMapN

func (g *ObjState) URLMapN() int

func (*ObjState) URLMapP

func (g *ObjState) URLMapP() []Pointf

func (*ObjState) URLMapShape

func (g *ObjState) URLMapShape() MapShape

func (*ObjState) XLabel

func (g *ObjState) XLabel() string

func (*ObjState) Z

func (g *ObjState) Z() float64

type ObjType

type ObjType int
const (
	ROOTGRAPH_OBJTYPE ObjType = iota
	CLUSTER_OBJTYPE
	NODE_OBJTYPE
	EDGE_OBJTYPE
)

type PenType

type PenType int
const (
	PEN_NONE PenType = iota
	PEN_DASHED
	PEN_DOTTED
	PEN_SOLID
)

type Point

type Point struct {
	X int
	Y int
}

func ToPoint

func ToPoint(c C.point) Point

type Pointf

type Pointf struct {
	X float64
	Y float64
}

func ToPointf

func ToPointf(c C.pointf) Pointf

func ToPointsf

func ToPointsf(c *C.pointf, n C.int) []Pointf

type PostscriptAlias

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

func ToPostscriptAlias

func ToPostscriptAlias(c *C.PostscriptAlias) *PostscriptAlias

func (*PostscriptAlias) C

func (*PostscriptAlias) Family

func (g *PostscriptAlias) Family() string

func (*PostscriptAlias) Name

func (g *PostscriptAlias) Name() string

func (*PostscriptAlias) SVGFontFamily

func (g *PostscriptAlias) SVGFontFamily() string

func (*PostscriptAlias) SVGFontStyle

func (g *PostscriptAlias) SVGFontStyle() string

func (*PostscriptAlias) SVGFontWeight

func (g *PostscriptAlias) SVGFontWeight() string

func (*PostscriptAlias) Stretch

func (g *PostscriptAlias) Stretch() string

func (*PostscriptAlias) Style

func (g *PostscriptAlias) Style() string

func (*PostscriptAlias) Weight

func (g *PostscriptAlias) Weight() string

func (*PostscriptAlias) XFigCode

func (g *PostscriptAlias) XFigCode() int

type TextFont

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

func ToTextFont

func ToTextFont(c *C.textfont_t) *TextFont

func (*TextFont) Color

func (g *TextFont) Color() string

func (*TextFont) Name

func (g *TextFont) Name() string

func (*TextFont) PostscriptAlias

func (g *TextFont) PostscriptAlias() *PostscriptAlias

func (*TextFont) Size

func (g *TextFont) Size() float64

type TextSpan

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

func ToTextSpan

func ToTextSpan(c *C.textspan_t) *TextSpan

func (*TextSpan) C

func (t *TextSpan) C() *C.textspan_t

func (*TextSpan) Font

func (t *TextSpan) Font() *TextFont

func (*TextSpan) Just

func (t *TextSpan) Just() byte

func (*TextSpan) Layout

func (t *TextSpan) Layout() unsafe.Pointer

func (*TextSpan) Size

func (t *TextSpan) Size() Pointf

func (*TextSpan) Str

func (t *TextSpan) Str() string

func (*TextSpan) YOffsetCenterLine

func (t *TextSpan) YOffsetCenterLine() float64

func (*TextSpan) YOffsetLayout

func (t *TextSpan) YOffsetLayout() float64

Jump to

Keyboard shortcuts

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