julius / silverflow

Quicksilver Interface

This URL has Read+Write access

silverflow / SFCFObject.h
100644 38 lines (27 sloc) 0.767 kb
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
//
// SFCFObject.h
// SilverFlow
//
// Created by Julius Eckert on 02.02.08.
// Copyright 2008 Julius Eckert. All rights reserved.
//
 
#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
 
typedef struct _SFCFVector3f { float x, y, z; } SFCFVector3f;
SFCFVector3f SFCFMakeVector3f(float _x, float _y, float _z);
 
@interface SFCFObject : NSObject {
CALayer* parentLayer;
NSThread* creationThread;
 
CALayer* mainLayer1;
 
NSImage* imageStd;
NSImage* sfImage;
 
float alpha1;
}
 
-(SFCFObject*) initWithLayer:(CALayer*)layer withImage:(NSImage*)img;
-(void) redraw;
 
-(void) setPosition:(SFCFVector3f)pos fast:(bool)aniFast;
-(SFCFVector3f) position;
-(void) setDist:(int)dist fast:(bool)aniFast;
 
-(void) setImage: (NSImage*)img;
-(bool) hasImage;
 
@end