OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #import <Foundation/Foundation.h> | 5 #import <Foundation/Foundation.h> |
6 #import <UIKit/UIKit.h> | 6 #import <UIKit/UIKit.h> |
7 | 7 |
8 #import "Immi.h" | 8 #import "Immi.h" |
9 | 9 |
10 @protocol ImageCache | 10 @protocol ImageCache |
11 - (id)get:(NSString*)key; | 11 - (id)get:(NSString*)key; |
12 - (id)put:(NSString*)key value:(id)value; | 12 - (id)put:(NSString*)key value:(id)value; |
13 @end | 13 @end |
14 | 14 |
15 @interface ImagePresenter : UIImageView <ImagePresenter> | 15 @interface ImagePresenter : UIImageView <ImagePresenter> |
16 - (void)presentImage:(ImageNode*)node; | 16 - (void)presentImage:(ImageNode*)node; |
17 - (void)presentImageFromData:(NSData*)data; | 17 - (void)presentImageFromData:(NSData*)data; |
18 - (void)setCache:(id<ImageCache>)cache; | 18 - (void)setCache:(id<ImageCache>)cache; |
19 - (void)setDefaultImage:(UIImage*)image; | 19 - (void)setDefaultImage:(UIImage*)image; |
20 @end | 20 @end |
21 | 21 |
OLD | NEW |