-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathSMFListDropShadowControl.h
68 lines (58 loc) · 1.73 KB
/
SMFListDropShadowControl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// SMFListDropShadowControl.h
// SMFramework
//
// Created by Thomas Cool on 1/21/11.
// Copyright 2011 tomcool.org. All rights reserved.
//
#import "Backrow/AppleTV.h"
@protocol SMFListDropShadowDatasource
- (long)popupItemCount;
- (id)popupItemForRow:(long)row;
@optional
- (float)popupHeightForRow:(long)row;
- (BOOL)popupRowSelectable:(long)row;
- (id)popupTitleForRow:(long)row;
- (long)popupDefaultIndex;
@end
@protocol SMFListDropShadowDelegate
@optional
- (void)popupItemSelected:(long)row;
- (void)popup:(id)p itemSelected:(long)row;
@end
@interface SMFListDropShadowControl : BRDropShadowControl {
NSObject<SMFListDropShadowDelegate> * cDelegate;
NSObject<SMFListDropShadowDatasource>* cDatasource;
BRListControl *list;
BOOL isAnimated;
id sender;
}
/*
* Simply calls [list reload]
*/
-(void)reloadList;
/*
* Should return a CGRect that can be use for the frame. max 6 list rows
* along with appropriate padding
*/
-(CGRect)rectForSize:(CGSize)s;
/*
* If the controller is not an SMFMediaMenuController (or subclass)
* and thus does not possess the showPopup method, the following method
* can be used to add it to a controller
*
* To remove it: you can call: -(void)removeFromParent
*/
-(void)addToController:(BRController *)ctrl;
- (void)setZoomInPosition;
- (void)setZoomOutPosition;
- (void)updateSender;
- (id)getListFromMenuItem:(id)menuItem;
- (id)synthesizeMockItemFrom:(id)theSender withX:(float)xValue;
- (id)synthesizeMockItem;
@property (retain) NSObject<SMFListDropShadowDelegate>* cDelegate;
@property (retain) NSObject<SMFListDropShadowDatasource>* cDatasource;
@property (retain) BRListControl *list;
@property (readwrite, assign) BOOL isAnimated;
@property (nonatomic, retain) id sender;
@end