Debian Codegraph @

stdlib/go1_22_image_draw.go

raw symbols SCIP
1 // Code generated by 'yaegi extract image/draw'. DO NOT EDIT.
2
3 //go:build go1.22
4 // +build go1.22
5
6 package stdlib
7
8 import (
9 "image"
10 "image/color"
11 "image/draw"
12 "reflect"
13 )
14
15 func init() {
16 Symbols["image/draw/draw"] = map[string]reflect.Value{
17 // function, constant and variable definitions
18 "Draw": reflect.ValueOf(draw.Draw),
19 "DrawMask": reflect.ValueOf(draw.DrawMask),
20 "FloydSteinberg": reflect.ValueOf(&draw.FloydSteinberg).Elem(),
21 "Over": reflect.ValueOf(draw.Over),
22 "Src": reflect.ValueOf(draw.Src),
23
24 // type definitions
25 "Drawer": reflect.ValueOf((*draw.Drawer)(nil)),
26 "Image": reflect.ValueOf((*draw.Image)(nil)),
27 "Op": reflect.ValueOf((*draw.Op)(nil)),
28 "Quantizer": reflect.ValueOf((*draw.Quantizer)(nil)),
29 "RGBA64Image": reflect.ValueOf((*draw.RGBA64Image)(nil)),
30
31 // interface wrapper definitions
32 "_Drawer": reflect.ValueOf((*_image_draw_Drawer)(nil)),
33 "_Image": reflect.ValueOf((*_image_draw_Image)(nil)),
34 "_Quantizer": reflect.ValueOf((*_image_draw_Quantizer)(nil)),
35 "_RGBA64Image": reflect.ValueOf((*_image_draw_RGBA64Image)(nil)),
36 }
37 }
38
39 // _image_draw_Drawer is an interface wrapper for Drawer type
40 type _image_draw_Drawer struct {
41 IValue interface{}
42 WDraw func(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point)
43 }
44
45 func (W _image_draw_Drawer) Draw(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point) {
46 W.WDraw(dst, r, src, sp)
47 }
48
49 // _image_draw_Image is an interface wrapper for Image type
50 type _image_draw_Image struct {
51 IValue interface{}
52 WAt func(x int, y int) color.Color
53 WBounds func() image.Rectangle
54 WColorModel func() color.Model
55 WSet func(x int, y int, c color.Color)
56 }
57
58 func (W _image_draw_Image) At(x int, y int) color.Color { return W.WAt(x, y) }
59 func (W _image_draw_Image) Bounds() image.Rectangle { return W.WBounds() }
60 func (W _image_draw_Image) ColorModel() color.Model { return W.WColorModel() }
61 func (W _image_draw_Image) Set(x int, y int, c color.Color) { W.WSet(x, y, c) }
62
63 // _image_draw_Quantizer is an interface wrapper for Quantizer type
64 type _image_draw_Quantizer struct {
65 IValue interface{}
66 WQuantize func(p color.Palette, m image.Image) color.Palette
67 }
68
69 func (W _image_draw_Quantizer) Quantize(p color.Palette, m image.Image) color.Palette {
70 return W.WQuantize(p, m)
71 }
72
73 // _image_draw_RGBA64Image is an interface wrapper for RGBA64Image type
74 type _image_draw_RGBA64Image struct {
75 IValue interface{}
76 WAt func(x int, y int) color.Color
77 WBounds func() image.Rectangle
78 WColorModel func() color.Model
79 WRGBA64At func(x int, y int) color.RGBA64
80 WSet func(x int, y int, c color.Color)
81 WSetRGBA64 func(x int, y int, c color.RGBA64)
82 }
83
84 func (W _image_draw_RGBA64Image) At(x int, y int) color.Color { return W.WAt(x, y) }
85 func (W _image_draw_RGBA64Image) Bounds() image.Rectangle { return W.WBounds() }
86 func (W _image_draw_RGBA64Image) ColorModel() color.Model { return W.WColorModel() }
87 func (W _image_draw_RGBA64Image) RGBA64At(x int, y int) color.RGBA64 { return W.WRGBA64At(x, y) }
88 func (W _image_draw_RGBA64Image) Set(x int, y int, c color.Color) { W.WSet(x, y, c) }
89 func (W _image_draw_RGBA64Image) SetRGBA64(x int, y int, c color.RGBA64) { W.WSetRGBA64(x, y, c) }