* Source/NSMenuItemCell.m: Implement drawing a line in the menu

separator item for the Windows95 and Mac modes. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31797 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2010-12-29 17:21:15 +00:00
parent 41923d49c8
commit 5504324af2
2 changed files with 20 additions and 1 deletions

View file

@ -36,7 +36,7 @@
#include <Foundation/NSUserDefaults.h>
#include "AppKit/NSAttributedString.h"
#include "AppKit/NSBox.h"
#include "AppKit/NSBezierPath.h"
#include "AppKit/NSColor.h"
#include "AppKit/NSEvent.h"
#include "AppKit/NSFont.h"
@ -724,6 +724,19 @@
if (style == NSMacintoshInterfaceStyle
|| style == NSWindows95InterfaceStyle)
{
NSBezierPath *path = [NSBezierPath bezierPath];
NSPoint start = NSMakePoint(3, cellFrame.size.height/2 +
cellFrame.origin.y);
NSPoint end = NSMakePoint(cellFrame.size.width - 3,
cellFrame.size.height/2 +
cellFrame.origin.y);
[[NSColor blackColor] set];
[path moveToPoint: start];
[path lineToPoint: end];
[path stroke];
/*
NSRect lineFrame = NSMakeRect(cellFrame.origin.x,
cellFrame.origin.y