mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 04:50:47 +00:00
Initial implementation of NSScreen.
Add mouse dragged events for mouse tracking. Implement methods for converting points to/from views. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@1638 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d4848b7da2
commit
acbe822337
10 changed files with 139 additions and 25 deletions
|
@ -231,6 +231,7 @@ id MB_NSBUTTON_CLASS;
|
|||
|
||||
- (void)highlight:(BOOL)flag
|
||||
{
|
||||
[cell highlight: flag withFrame: bounds inView: self];
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -260,8 +261,8 @@ id MB_NSBUTTON_CLASS;
|
|||
NSApplication *theApp = [NSApplication sharedApplication];
|
||||
BOOL mouseUp, done;
|
||||
NSEvent *e;
|
||||
unsigned int event_mask = NSLeftMouseDownMask | NSLeftMouseUpMask
|
||||
| NSMouseMovedMask;
|
||||
unsigned int event_mask = NSLeftMouseDownMask | NSLeftMouseUpMask |
|
||||
NSMouseMovedMask | NSLeftMouseDraggedMask | NSRightMouseDraggedMask;
|
||||
|
||||
NSDebugLog(@"NSButton mouseDown\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue