mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Added methods for drawing tableheader cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31668 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5751234b4b
commit
942841a1d4
4 changed files with 21 additions and 6 deletions
|
@ -1,3 +1,11 @@
|
|||
2010-11-26 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/GSThemeDrawing.m: Added methods to draw NSSliderCell view.
|
||||
* Source/NSTableHeaderCell.m: Added call in
|
||||
tableHeaderCellDrawingRectForBounds: to drawing methods in GSTheme.
|
||||
* Headers/Additions/GNUstepGUI/GSTheme.h:
|
||||
Added declaration for new method.
|
||||
|
||||
2010-11-26 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/GSThemeDrawing.m: Added methods to draw NSSliderCell view.
|
||||
|
|
|
@ -963,6 +963,8 @@ APPKIT_EXPORT NSString *GSThemeWillDeactivateNotification;
|
|||
flipped: (BOOL)flipped;
|
||||
|
||||
- (void) drawKnobInCell: (NSCell *)cell;
|
||||
|
||||
- (NSRect) tableHeaderCellDrawingRectForBounds: (NSRect)theRect;
|
||||
@end
|
||||
|
||||
/**
|
||||
|
|
|
@ -2051,4 +2051,14 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
|
|||
[sliderCell knobRectFlipped:
|
||||
[controlView isFlipped]]];
|
||||
}
|
||||
|
||||
- (NSRect) tableHeaderCellDrawingRectForBounds: (NSRect)theRect
|
||||
{
|
||||
NSSize borderSize;
|
||||
|
||||
// This adjustment must match the drawn border
|
||||
borderSize = NSMakeSize(1, 1);
|
||||
|
||||
return NSInsetRect(theRect, borderSize.width, borderSize.height);
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -53,12 +53,7 @@
|
|||
|
||||
- (NSRect) drawingRectForBounds: (NSRect)theRect
|
||||
{
|
||||
NSSize borderSize;
|
||||
|
||||
// This adjustment must match the drawn border
|
||||
borderSize = NSMakeSize(1, 1);
|
||||
|
||||
return NSInsetRect(theRect, borderSize.width, borderSize.height);
|
||||
return [[GSTheme theme] tableHeaderCellDrawingRectForBounds: theRect];
|
||||
}
|
||||
|
||||
- (void) _drawBorderAndBackgroundWithFrame: (NSRect)cellFrame
|
||||
|
|
Loading…
Reference in a new issue