-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathBFActor.h
54 lines (43 loc) · 1.22 KB
/
BFActor.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
//
// BFActor.h
// Briefs
//
// Created by Rob Rhyne on 7/17/09.
// Copyright Digital Arch Design, 2009. See LICENSE file for details.
//
#import <Foundation/Foundation.h>
@interface BFActor : NSObject
{
id bg;
NSString *name;
CGRect size;
NSString *action;
BOOL isActive;
BOOL visible;
BOOL scrollable;
// Optional behavior states
id touchedBg;
id releasedBg;
id disabledBg;
}
@property (nonatomic, retain) id bg;
@property (nonatomic, retain) NSString *name;
@property (nonatomic) CGRect size;
@property (nonatomic, retain) NSString *action;
@property (readonly) BOOL isActive;
@property (nonatomic) BOOL visible;
@property (nonatomic) BOOL scrollable;
@property (nonatomic, retain) id touchedBg;
@property (nonatomic, retain) id releasedBg;
@property (nonatomic, retain) id disabledBg;
// initialization
- (id)init:(NSString*)name withDictionary:(NSDictionary*)dict;
- (NSDictionary *)copyAsDictionary;
// state management
- (void)activate;
- (void)deactivate;
- (void)toggle;
- (NSString *)background;
// Actions
+ (NSArray *)copyOfAvailableActions;
@end