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

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