lib/mnit: use abstract attributes
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 26 Sep 2015 18:26:48 +0000 (14:26 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 5 Oct 2015 17:17:24 +0000 (13:17 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/mnit/display.nit

index 8c67d13..a871b50 100644 (file)
@@ -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