forked from tomcool420/SMFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SMFController.h
57 lines (51 loc) · 1.38 KB
/
SMFController.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
//
// SMController.h
// SoftwareMenuFramework
//
// Created by Thomas Cool on 11/30/09.
// Copyright 2009 Thomas Cool. All rights reserved.
//
#import "Backrow/AppleTV.h"
@interface BRController (Compat)
-(CGRect)frame;
@end
@interface SMFController : BRController {
int padding[128];
int m_screen_saver_timeout;
NSString * _title;
BRHeaderControl * _headerControl;
BRWaitSpinnerControl * _spinner;
BRImage * _image;
BRImageControl * _imageControl;
}
///*
// * Used to disable the screen
// */
//- (void) disableScreenSaver;
//- (void) enableScreenSaver;
/*
* getMasterFrame returns the Controller frame actually used to add the controls to.
*/
- (CGRect)getMasterFrame;
/*
* The following two are simply to adjust the screen size for 1080i as TV
* seems to return strange values for that size. They should be used at same time
* as getMasterFrame
*/
- (BOOL)is1080i;
- (CGSize)sizeFor1080i;
/*
*Method to overwrite when subclassing. THis is where all the drawing calls are made
*/
- (void)drawSelf;
@end
@interface SMFController (layout)
/*
* The Following three methods provide examples of layouts and how to set them up
* You would simply call them from the draw self in the following way:
* [self layoutSpinner]
*/
-(void)layoutSpinner;
-(void)layoutHeader;
-(void)layoutImage;
@end