Make SurfaceLink an io.Closer
This commit is contained in:
parent
763ee33574
commit
f59c8b1e96
@ -1,5 +1,6 @@
|
|||||||
package system
|
package system
|
||||||
|
|
||||||
|
import "io"
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/tomo/tomo/canvas"
|
import "git.tebibyte.media/tomo/tomo/canvas"
|
||||||
|
|
||||||
@ -23,6 +24,7 @@ type BackendLink interface {
|
|||||||
// SurfaceLink wraps a Surface created by the backend implementation, allowing
|
// SurfaceLink wraps a Surface created by the backend implementation, allowing
|
||||||
// the System a higher level of control over it.
|
// the System a higher level of control over it.
|
||||||
type SurfaceLink interface {
|
type SurfaceLink interface {
|
||||||
|
io.Closer
|
||||||
GetSurface () any
|
GetSurface () any
|
||||||
SetSize (image.Rectangle)
|
SetSize (image.Rectangle)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user