diff options
Diffstat (limited to 'macosx/HBImageAndTextCell.h')
-rw-r--r-- | macosx/HBImageAndTextCell.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/macosx/HBImageAndTextCell.h b/macosx/HBImageAndTextCell.h new file mode 100644 index 000000000..1da12cf94 --- /dev/null +++ b/macosx/HBImageAndTextCell.h @@ -0,0 +1,30 @@ +/* HBImageAndTextCell + + This file is part of the HandBrake source code. + Homepage: <http://handbrake.m0k.org/>. + It may be used under the terms of the GNU General Public License. +*/ + +#import <Cocoa/Cocoa.h> + +@interface HBImageAndTextCell : NSTextFieldCell +{ +@private + NSImage *image; + NSImageAlignment imageAlignment; // defaults to NSImageAlignTop. Supports NSImageAlignCenter & NSImageAlignBottom + NSSize imageSpacing; // horizontal and vertical spacing around the image +} + +- (void) setImage:(NSImage *)anImage; +- (NSImage *) image; + +- (void) setImageAlignment:(NSImageAlignment)alignment; +- (NSImageAlignment) imageAlignment; + +- (void)setImageSpacing:(NSSize)aSize; +- (NSSize)imageSpacing; + +- (void) drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; +- (NSSize) cellSize; + +@end |