mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 06:50:38 +00:00
* 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:
parent
41923d49c8
commit
5504324af2
2 changed files with 20 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue