From: Alexis Laferrière Date: Sat, 26 Sep 2015 18:26:48 +0000 (-0400) Subject: lib/mnit: use abstract attributes X-Git-Tag: v0.7.9~42^2~2 X-Git-Url: http://nitlanguage.org lib/mnit: use abstract attributes Signed-off-by: Alexis Laferrière --- diff --git a/lib/mnit/display.nit b/lib/mnit/display.nit index 8c67d13..a871b50 100644 --- a/lib/mnit/display.nit +++ b/lib/mnit/display.nit @@ -28,17 +28,14 @@ end # General image class, will be specialized for each classes interface Image super Sized + fun destroy is abstract - #var scale: Float is abstract # Scale this image when blit - fun scale: Float is abstract - fun scale=( v: Float ) is abstract + var scale: Float is abstract, writable - #var blended: Bool is abstract # Use blending on this image? - fun blended: Bool is abstract - fun blended=( v: Bool ) is abstract + var blended: Bool is abstract, writable # Get another image from this one fun subimage( x, y, w, h: Int ): Image is abstract