mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 00:00:43 +00:00
* Headers/AppKit/NSSegmentedCell.h: Added rect ivar to cache frame.
* Source/NSBundleAdditions.m: Minor formatting changes. * Source/NSController.m: Added ivars to encodeWithCoder:. * Source/NSNibBindingConnector.m: Added ivars to encodeWithCoder:. * Source/NSSegmentedCell.m: Changes to fully implement rendering of the cell. * Source/NSSegmentedControl.m: Changes to fully implement control. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25900 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5b5447d12d
commit
a70afb2bae
7 changed files with 120 additions and 16 deletions
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <AppKit/NSControl.h>
|
||||
#include <AppKit/NSSegmentedControl.h>
|
||||
#include <AppKit/NSEvent.h>
|
||||
|
||||
@implementation NSSegmentedControl
|
||||
|
||||
|
@ -115,4 +116,16 @@
|
|||
{
|
||||
return [_cell isEnabledForSegment: segment];
|
||||
}
|
||||
|
||||
/*
|
||||
- (void) mouseDown: (NSEvent *)event
|
||||
{
|
||||
NSPoint location = [self convertPoint: [event locationInWindow]
|
||||
fromView: nil];
|
||||
|
||||
[super mouseDown: event];
|
||||
[_cell _detectHit: location];
|
||||
NSLog(@"%@",NSStringFromPoint(location));
|
||||
}
|
||||
*/
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue