//
//  NSImage+TDImage.h
//  iStorageMac
//
//  Created by Lukáš Foldýna on 12.12.12.
//  Copyright (c) 2012 OCSoftware. All rights reserved.
//

#import <Cocoa/Cocoa.h>


//from: http://code.google.com/p/tdappkit/ Apache License 2.0
typedef struct {
    CGFloat top;
    CGFloat left;
    CGFloat bottom;
    CGFloat right;
} TDEdgeInsets;

TDEdgeInsets TDEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right);


@interface NSImage (TDImage)

- (void) drawStretchableInRect:(NSRect)rect edgeInsets:(TDEdgeInsets)insets operation:(NSCompositingOperation)op fraction:(CGFloat)delta;

@end
