forked from jlamarche/Tile-Cutter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTileOperation.h
46 lines (37 loc) · 1.17 KB
/
TileOperation.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
//
// TileOperation.h
// Tile Cutter
//
// Created by jeff on 10/30/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "TileCutterSettings.h"
@class TileOperation;
@protocol TileOperationDelegate
@optional
- (void)operationDidFinishTile:(TileOperation *)op;
- (void)operationDidFinishSuccessfully:(TileOperation *)op;
- (void)operation:(TileOperation *)op didFailWithMessage:(NSString *)message;
@end
@interface TileOperation : NSOperation
{
}
@property (assign) NSObject <TileOperationDelegate> *delegate;
@property (retain) NSBitmapImageRep *imageRep;
@property NSUInteger row;
@property (retain) NSString *baseFilename;
@property (readwrite, copy) NSString *outputSuffix;
@property NSUInteger tileHeight;
@property NSUInteger tileWidth;
@property TileCutterOutputPrefs outputFormat;
@property (readwrite) BOOL skipTransparentTiles;
@property (readwrite) BOOL rigidTiles;
@property (readwrite) BOOL POTTiles;
/* array of tiles info,
* each item = NSDictionary {
* NSString *name - output filename of tile
* NSString from CGRect of that tile in source Image
*/
@property (readwrite, retain)NSMutableArray *tilesInfo;
@end