-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAQTGraphic.h
56 lines (47 loc) · 945 Bytes
/
AQTGraphic.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
//
// AQTGraphic.h
// AquaTerm
//
// Created by ppe on Wed May 16 2001.
// Copyright (c) 2001, 2002 Aquaterm. All rights reserved.
//
#import <Foundation/Foundation.h>
@class AQTModel;
typedef struct _AQTColor {
float red;
float green;
float blue;
float alpha;
} AQTColor;
typedef struct _AQTPoint {
float x;
float y;
} AQTPoint;
typedef struct _AQTSize {
float width;
float height;
} AQTSize;
typedef struct _AQTRect {
AQTPoint origin;
AQTSize size;
} AQTRect;
@interface AQTGraphic : NSObject <NSCoding>
{
AQTColor _color;
NSRect _bounds;
NSRect _clipRect;
BOOL _isClipped;
BOOL _shouldShowBounds;
@protected
id _cache;
}
/*" accessor methods "*/
-(NSRect)bounds;
-(void)setBounds:(NSRect)bounds;
-(NSRect)clipRect;
-(void)setClipRect:(NSRect)clipRect;
-(void)setIsClipped:(BOOL)clipState;
/*" color handling "*/
-(AQTColor)color;
-(void)setColor:(AQTColor)newColor;
@end