-
Notifications
You must be signed in to change notification settings - Fork 16
/
FlurryUtils.h
69 lines (56 loc) · 1.85 KB
/
FlurryUtils.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
69
#import <Cocoa/Cocoa.h>
#import <ScreenSaver/ScreenSaver.h>
#import "Gl_saver.h"
#define RANDOM_PRESET_KEY @"randomPreset"
#define RANDOM_DISPLAY_KEY @"randomDisplay"
#define VERSION_STRING [[[NSBundle bundleWithIdentifier:@"com.calumr.Flurry"] infoDictionary] \
objectForKey:@"CFBundleShortVersionString"]
#define UPDATE_COLOUR_NOTIF @"updateColours"
#define COLOUR_REFRESH_INTERVAL 0.1
@interface Flurry : NSObject <NSCoding, NSCopying> {
global_info_t *flurry_info;
NSString *name;
unsigned int randomFactor;
unsigned int screens;
}
+ (Flurry *)flurryWithStreams:(int)s colour:(ColorModes)c thickness:(float)t speed:(float)sp;
- (NSString *)name;
- (void)setName:(NSString *)newName;
- (id)colour;
- (NSNumber *)streamCount;
- (void)setStreamCount:(NSNumber *)newStreamCount;
- (global_info_t *)info;
- (void)randomiseDisplays:(BOOL)goRandom;
- (void)setDraws:(BOOL)doesDraw onScreen:(int)screen;
- (BOOL)shouldDrawOnScreenIndex:(int)index randomise:(BOOL)randomise;
- (BOOL)shouldDrawOnScreen:(NSScreen *)screen randomise:(BOOL)randomise;
- (BOOL)shouldDrawInView:(NSView *)view randomise:(BOOL)randomise;
@end
@interface FlurryPreset : NSObject <NSCoding, NSCopying> {
NSString *name;
NSMutableArray *flurries;
NSString *shortcut;
}
+ (FlurryPreset *)classicFlurryPreset;
+ (FlurryPreset *)rgbFlurryPreset;
+ (FlurryPreset *)waterFlurryPreset;
+ (FlurryPreset *)fireFlurryPreset;
+ (FlurryPreset *)psychedelicFlurryPreset;
- (void)addFlurry:(Flurry *)flurry;
- (void)deleteFlurry:(Flurry *)flurry;
- (NSArray *)flurries;
- (NSString *)name;
- (void)setName:(NSString *)newName;
- (NSString *)shortcut;
- (void)setShortcut:(NSString *)newShortcut;
@end
@interface FlurryColour : NSColor {
Flurry *flurry;
}
- (Flurry *)flurry;
- (void)setFlurry:(Flurry *)new_flurry;
@end
@interface ColourCell : NSCell { }
@end
@interface FlurryOpenGLView : NSOpenGLView { }
@end