-
Notifications
You must be signed in to change notification settings - Fork 0
/
SKProgressCell.h
32 lines (26 loc) · 935 Bytes
/
SKProgressCell.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
//
// SKProgressCell.h
// Skreenics
//
// Created by naixn on 17/09/09.
// Copyright 2009 Thibault Martin-Lagardette. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "SKProgressIndicator.h"
@interface SKProgressCell : NSCell
{
}
// AttributedStrings Generation
- (NSAttributedString *)attributedStringForFilename;
- (NSAttributedString *)attributedStringForProgress;
// Padding calculations
- (CGFloat)infoAreaLeftPadding;
- (CGFloat)infoAreaWidthInBounds:(NSRect)bounds;
// Bounds calculations
- (NSRect)iconRectForBounds:(NSRect)bounds;
- (NSRect)progressIndicRectForBounds:(NSRect)bounds;
- (NSRect)filenameRectForBounds:(NSRect)bounds withAttributedString:(NSAttributedString *)filenameAttributedString;
- (NSRect)progressStringRectForBounds:(NSRect)bounds withAttributedString:(NSAttributedString *)progressAttributedString;
// Draw
- (void)drawInteriorWithFrame:(NSRect)frame inView:(NSView *)controlView;
@end