mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:50:48 +00:00
* move DPSOperators.h to XDPS.
* move GPS headers into a new backend. * define GSContext.h/GSContext.m as abstract super for all drawing destinations (eliminates the need for DPS, GPS, DGS at the root of the AppKit) add appropriate defintion to various classes. * NSMatrix.m add abstract backend code from xraw (eliminate backend). * NSSlider.m add abstract backend code from xraw (eliminate backend). * NSSliderCell.m add abstract backend code from xraw (eliminate backend). * NSSplitView.m add abstract backend code from xraw (eliminate backend). replace private divider highlight method with NSHighlightRect() * NSWindow.m add class method to create backend specific window view. * NSTextField.m add abstract backend code from xraw (eliminate backend). * NSForm.m add abstract backend code from xraw (eliminate backend). * NSFormCell.m add abstract backend code from xraw (eliminate backend). * NSColorWell.m add abstract backend code from xraw (eliminate backend). * NSButton.m add abstract backend code from xraw (eliminate backend). * NSControl.m add abstract backend code from xraw (eliminate backend). * NSBox.m add abstract backend code from xraw (eliminate backend). * NSBrowser.m add abstract backend code from xraw (eliminate backend). * NSBrowserCell.m add abstract backend code from xraw (eliminate backend). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3321 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d1456177e3
commit
2d4079f2cf
53 changed files with 2429 additions and 5144 deletions
|
@ -240,6 +240,41 @@
|
|||
//
|
||||
- (void)drawRect:(NSRect)rect
|
||||
{
|
||||
// Fill inside
|
||||
[[window backgroundColor] set];
|
||||
NSRectFill(bounds);
|
||||
|
||||
// Draw border
|
||||
switch(border_type)
|
||||
{
|
||||
case NSNoBorder:
|
||||
break;
|
||||
case NSLineBorder:
|
||||
NSFrameRect(border_rect);
|
||||
break;
|
||||
case NSBezelBorder:
|
||||
NSDrawGrayBezel(border_rect, bounds);
|
||||
break;
|
||||
case NSGrooveBorder:
|
||||
NSDrawGroove(border_rect, bounds);
|
||||
break;
|
||||
}
|
||||
|
||||
// Draw title
|
||||
switch(title_position)
|
||||
{
|
||||
case NSNoTitle:
|
||||
// Nothing to do
|
||||
break;
|
||||
case NSAboveTop:
|
||||
case NSAtTop:
|
||||
case NSBelowTop:
|
||||
case NSAboveBottom:
|
||||
case NSAtBottom:
|
||||
case NSBelowBottom:
|
||||
[cell setBackgroundColor: [window backgroundColor]];
|
||||
[cell drawWithFrame: title_rect inView: self];
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue