public
Description: Three20 is an Objective-C library for iPhone developers
Homepage: http://groups.google.com/group/three20/
Clone URL: git://github.com/facebook/three20.git
three20 / src / Three20 / TTImageView.h
167eaa6e » jverkoey 2009-12-10 Use // instead of /** for l... 1 //
2 // Copyright 2009 Facebook
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
58ebed0b » jverkoey 2009-12-03 Prepend the Apache license ... 16
fdf5c569 » joehewitt 2009-04-10 * Rename TTStyledView to TT... 17 #import "Three20/TTView.h"
6394c48d » joehewitt 2009-02-15 * Fixed bug @1026: Rename T... 18 #import "Three20/TTURLRequest.h"
19
20 @protocol TTImageViewDelegate;
21
fdf5c569 » joehewitt 2009-04-10 * Rename TTStyledView to TT... 22 @interface TTImageView : TTView <TTURLRequestDelegate> {
6394c48d » joehewitt 2009-02-15 * Fixed bug @1026: Rename T... 23 id<TTImageViewDelegate> _delegate;
24 TTURLRequest* _request;
d6d7033c » joehewitt 2009-06-25 * Rename lowercase "url" to... 25 NSString* _URL;
8ecafd28 » joehewitt 2009-04-08 * New vector rendering system 26 UIImage* _image;
6394c48d » joehewitt 2009-02-15 * Fixed bug @1026: Rename T... 27 UIImage* _defaultImage;
28 BOOL _autoresizesToImage;
29 }
30
31 @property(nonatomic,assign) id<TTImageViewDelegate> delegate;
d6d7033c » joehewitt 2009-06-25 * Rename lowercase "url" to... 32 @property(nonatomic,copy) NSString* URL;
8ecafd28 » joehewitt 2009-04-08 * New vector rendering system 33 @property(nonatomic,retain) UIImage* image;
6394c48d » joehewitt 2009-02-15 * Fixed bug @1026: Rename T... 34 @property(nonatomic,retain) UIImage* defaultImage;
35 @property(nonatomic) BOOL autoresizesToImage;
ce8c23ca » joehewitt 2009-03-12 * Fixed bug @1054: Rename m... 36 @property(nonatomic,readonly) BOOL isLoading;
89d590b4 » joehewitt 2009-03-21 * Make navigation bar's spa... 37 @property(nonatomic,readonly) BOOL isLoaded;
6394c48d » joehewitt 2009-02-15 * Fixed bug @1026: Rename T... 38
39 - (void)reload;
40 - (void)stopLoading;
41
89d590b4 » joehewitt 2009-03-21 * Make navigation bar's spa... 42 - (void)imageViewDidStartLoad;
43 - (void)imageViewDidLoadImage:(UIImage*)image;
44 - (void)imageViewDidFailLoadWithError:(NSError*)error;
45
6394c48d » joehewitt 2009-02-15 * Fixed bug @1026: Rename T... 46 @end
47
cb872860 » joehewitt 2009-03-26 * Support background images... 48 ///////////////////////////////////////////////////////////////////////////////////////////////////
49
6394c48d » joehewitt 2009-02-15 * Fixed bug @1026: Rename T... 50 @protocol TTImageViewDelegate <NSObject>
51
52 @optional
89d590b4 » joehewitt 2009-03-21 * Make navigation bar's spa... 53
54 - (void)imageView:(TTImageView*)imageView didLoadImage:(UIImage*)image;
ce8c23ca » joehewitt 2009-03-12 * Fixed bug @1054: Rename m... 55 - (void)imageViewDidStartLoad:(TTImageView*)imageView;
56 - (void)imageView:(TTImageView*)imageView didFailLoadWithError:(NSError*)error;
6394c48d » joehewitt 2009-02-15 * Fixed bug @1026: Rename T... 57
58 @end