transmission/macosx/PiecesView.h

29 lines
563 B
C
Raw Normal View History

// This file Copyright © 2006-2022 Transmission authors and contributors.
// It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder.
2007-09-16 01:02:06 +00:00
#import <Cocoa/Cocoa.h>
2008-11-01 15:22:32 +00:00
@class Torrent;
2007-09-16 01:02:06 +00:00
@interface PiecesView : NSImageView
{
int8_t* fPieces;
NSColor* fGreenAvailabilityColor;
NSColor* fBluePieceColor;
Torrent* fTorrent;
NSInteger fNumPieces;
NSInteger fAcross;
NSInteger fWidth;
NSInteger fExtraBorder;
2007-09-16 01:02:06 +00:00
}
- (void)setTorrent:(Torrent*)torrent;
2008-06-09 21:20:01 +00:00
- (void)clearView;
- (void)updateView;
2007-09-16 01:02:06 +00:00
@end