From 63a67e40d11429b534e2565cdd56adc7e51a7a66 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 4 Sep 2023 01:28:04 -0400 Subject: [PATCH] Added a Bounds() method to Texture --- canvas/texture.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/canvas/texture.go b/canvas/texture.go index 328ead5..8dd89e8 100644 --- a/canvas/texture.go +++ b/canvas/texture.go @@ -11,6 +11,9 @@ type Texture interface { // internal data. Becaue of this, closing a clipped section will close // the original texture as well. Clip (image.Rectangle) Texture + + // Bounds returns the size of this texture. + Bounds () image.Rectangle } type protectedTexture struct {