home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / YellowBox / Kits / MiscTableScroll-138.1 / Palettes / MiscTableScroll / Framework / MiscMouseTracker.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-31  |  2.3 KB  |  60 lines

  1. #ifndef __MiscMouseTracker_h
  2. #define __MiscMouseTracker_h
  3. //=============================================================================
  4. //
  5. //    Copyright (C) 1995-1997 by Paul S. McCarthy and Eric Sunshine.
  6. //        Written by Paul S. McCarthy and Eric Sunshine.
  7. //                All Rights Reserved.
  8. //
  9. //    This notice may not be removed from this source code.
  10. //
  11. //    This object is included in the MiscKit by permission from the authors
  12. //    and its use is governed by the MiscKit license, found in the file
  13. //    "License.rtf" in the MiscKit distribution.  Please refer to that file
  14. //    for a list of all applicable permissions and restrictions.
  15. //    
  16. //=============================================================================
  17. //-----------------------------------------------------------------------------
  18. // MiscMouseTracker.h
  19. //
  20. //    Abstract class defining selection behavior based upon mouse tracking.
  21. //
  22. //-----------------------------------------------------------------------------
  23. //-----------------------------------------------------------------------------
  24. // $Id: MiscMouseTracker.h,v 1.5 97/04/15 09:01:46 sunshine Exp $
  25. // $Log:    MiscMouseTracker.h,v $
  26. //  Revision 1.5  97/04/15  09:01:46  sunshine
  27. //  v0.125.8: Added "MiscTableScroll/" prefix to #import to facilitate new
  28. //  framework organization.  Added implicit (id) type.
  29. //  
  30. //  Revision 1.4  96/12/30  09:12:50  sunshine
  31. //  v107.1: All access to the selection now goes through MiscTableBorder.
  32. //  
  33. //  Revision 1.3  96/05/07  02:12:37  sunshine
  34. //  For OpenStep conformance, keyboard events are now treated the same as
  35. //  mouse events (i.e. one must use the same modifiers with keyboard events
  36. //  as one does with mouse events rather than the behavior being different
  37. //  for keyboard events).  Ditched -keyDown:atPos: method.
  38. //-----------------------------------------------------------------------------
  39. extern "Objective-C" {
  40. #import <Foundation/NSObject.h>
  41. }
  42. #import <MiscTableScroll/MiscTableTypes.h>
  43.  
  44. class MiscTableBorder;
  45. @class NSEvent;
  46.  
  47. @interface MiscMouseTracker : NSObject
  48.     {
  49.     MiscTableBorder* border;
  50.     }
  51.  
  52. - (id)initBorder:(MiscTableBorder*)border;
  53. - (void)mouseDown:(NSEvent*)event atPos:(MiscCoord_V)pos;
  54. - (void)mouseDragged:(NSEvent*)event atPos:(MiscCoord_V)pos;
  55. - (void)mouseUp:(NSEvent*)event atPos:(MiscCoord_V)pos;
  56.  
  57. @end
  58.  
  59. #endif // __MiscMouseTracker_h
  60.