From eeb43ab44097cecfa1ad3a6cb6fb9eedeb95cab8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sat, 16 Jan 2016 12:15:18 -0500 Subject: [PATCH] lib/gamnit: document `offset` methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/textures.nit | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/gamnit/textures.nit b/lib/gamnit/textures.nit index 2e693d2..874fb5e 100644 --- a/lib/gamnit/textures.nit +++ b/lib/gamnit/textures.nit @@ -67,9 +67,16 @@ abstract class Texture return subtex end + # Offset of the left border on `root` from 0.0 to 1.0 fun offset_left: Float do return 0.0 + + # Offset of the top border on `root` from 0.0 to 1.0 fun offset_top: Float do return 0.0 + + # Offset of the right border on `root` from 0.0 to 1.0 fun offset_right: Float do return 1.0 + + # Offset of the bottom border on `root` from 0.0 to 1.0 fun offset_bottom: Float do return 1.0 end -- 1.7.9.5