github.com/goplus/igop@v0.25.0/pkg/image/draw/go118_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.18 && !go1.19
     4  // +build go1.18,!go1.19
     5  
     6  package draw
     7  
     8  import (
     9  	q "image/draw"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.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]reflect.Type{
    33  			"Op": reflect.TypeOf((*q.Op)(nil)).Elem(),
    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]igop.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]igop.UntypedConst{},
    48  	})
    49  }