Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (58 sloc) 1.774 kB
//
// 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
Jump to Line
Something went wrong with that request. Please try again.