github.com/goplus/gossa@v0.3.25/pkg/image/draw/go118_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.18
     4  // +build go1.18
     5  
     6  package draw
     7  
     8  import (
     9  	q "image/draw"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/gossa"
    15  )
    16  
    17  func init() {
    18  	gossa.RegisterPackage(&gossa.Package{
    19  		Name: "draw",
    20  		Path: "image/draw",
    21  		Deps: map[string]string{
    22  			"image":                    "image",
    23  			"image/color":              "color",
    24  			"image/internal/imageutil": "imageutil",
    25  		},
    26  		Interfaces: map[string]reflect.Type{
    27  			"Drawer":      reflect.TypeOf((*q.Drawer)(nil)).Elem(),
    28  			"Image":       reflect.TypeOf((*q.Image)(nil)).Elem(),
    29  			"Quantizer":   reflect.TypeOf((*q.Quantizer)(nil)).Elem(),
    30  			"RGBA64Image": reflect.TypeOf((*q.RGBA64Image)(nil)).Elem(),
    31  		},
    32  		NamedTypes: map[string]gossa.NamedType{
    33  			"Op": {reflect.TypeOf((*q.Op)(nil)).Elem(), "Draw", ""},
    34  		},
    35  		AliasTypes: map[string]reflect.Type{},
    36  		Vars: map[string]reflect.Value{
    37  			"FloydSteinberg": reflect.ValueOf(&q.FloydSteinberg),
    38  		},
    39  		Funcs: map[string]reflect.Value{
    40  			"Draw":     reflect.ValueOf(q.Draw),
    41  			"DrawMask": reflect.ValueOf(q.DrawMask),
    42  		},
    43  		TypedConsts: map[string]gossa.TypedConst{
    44  			"Over": {reflect.TypeOf(q.Over), constant.MakeInt64(int64(q.Over))},
    45  			"Src":  {reflect.TypeOf(q.Src), constant.MakeInt64(int64(q.Src))},
    46  		},
    47  		UntypedConsts: map[string]gossa.UntypedConst{},
    48  	})
    49  }