Skip to content
Newer
Older
100644 63 lines (50 sloc) 2.46 KB
a17af5a @gmoledina Reusable cells and edit mode support
authored Nov 13, 2011
1 //
2 // GMGridViewCell+Extended.h
3 // GMGridView
4 //
5 // Created by Gulam Moledina on 11-10-22.
6 // Copyright (c) 2011 GMoledina.ca. All rights reserved.
7 //
8 // Latest code can be found on GitHub: https://github.com/gmoledina/GMGridView
9 //
10 // Permission is hereby granted, free of charge, to any person obtaining a copy
11 // of this software and associated documentation files (the "Software"), to deal
12 // in the Software without restriction, including without limitation the rights
13 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 // copies of the Software, and to permit persons to whom the Software is
15 // furnished to do so, subject to the following conditions:
16 //
17 // The above copyright notice and this permission notice shall be included in
18 // all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26 // THE SOFTWARE.
27 //
28
29 #import <Foundation/Foundation.h>
56c4008 @gmoledina Created constants headerfile
authored Dec 14, 2011
30 #import "GMGridView-Constants.h"
05d714f @steipete Add initial support for iOS4
steipete authored Dec 12, 2011
31 #import "GMGridView.h"
a17af5a @gmoledina Reusable cells and edit mode support
authored Nov 14, 2011
32 #import "GMGridViewCell.h"
33
34 typedef void (^GMGridViewCellDeleteBlock)(GMGridViewCell*);
35
36 //////////////////////////////////////////////////////////////
bb10557 @steipete merged conflict
steipete authored Dec 20, 2011
37 #pragma mark - Interface GMGridViewCell (Extended)
a17af5a @gmoledina Reusable cells and edit mode support
authored Nov 14, 2011
38 //////////////////////////////////////////////////////////////
39
40 @interface GMGridViewCell ()
41
42 @property (nonatomic, strong) UIView *fullSizeView;
43 @property (nonatomic, assign) CGSize fullSize;
44
45 @property (nonatomic, readonly, getter=isInShakingMode) BOOL inShakingMode;
46 @property (nonatomic, readonly, getter=isInFullSizeMode) BOOL inFullSizeMode;
47
48 @property (nonatomic, getter=isEditing) BOOL editing;
bb10557 @steipete merged conflict
steipete authored Dec 20, 2011
49 - (void)setEditing:(BOOL)editing animated:(BOOL)animated;
50
a17af5a @gmoledina Reusable cells and edit mode support
authored Nov 14, 2011
51 @property (nonatomic, copy) GMGridViewCellDeleteBlock deleteBlock;
52
53 @property (nonatomic, assign) UIViewAutoresizing defaultFullsizeViewResizingMask;
05d714f @steipete Add initial support for iOS4
steipete authored Dec 12, 2011
54 @property (nonatomic, gm_weak) UIButton *deleteButton;
a17af5a @gmoledina Reusable cells and edit mode support
authored Nov 14, 2011
55
56 - (void)prepareForReuse;
57 - (void)shake:(BOOL)on; // shakes the contentView only, not the fullsize one
58
59 - (void)switchToFullSizeMode:(BOOL)fullSizeEnabled;
60 - (void)stepToFullsizeWithAlpha:(CGFloat)alpha; // not supported yet
61
62 @end
Something went wrong with that request. Please try again.