home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / NSColorWell.h < prev    next >
Encoding:
Text File  |  1996-09-09  |  716 b   |  38 lines

  1. /*
  2.     NSColorWell.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #import <AppKit/NSControl.h>
  9.  
  10. @interface NSColorWell : NSControl
  11. {
  12.     NSColor *_color;
  13.     id _target;
  14.     SEL _action;
  15.     struct __cwFlags {
  16.     unsigned int        isActive:1;
  17.     unsigned int        isBordered:1;
  18.     unsigned int        cantDraw:1;
  19.     unsigned int        isNotContinuous:1;
  20.     unsigned int        reservedColorWell:28;
  21.     } _cwFlags;
  22. }
  23.  
  24. - (void)deactivate;
  25. - (void)activate:(BOOL)exclusive;
  26. - (BOOL)isActive;
  27.  
  28. - (void)drawWellInside:(NSRect)insideRect;
  29.  
  30. - (BOOL)isBordered;
  31. - (void)setBordered:(BOOL)flag;
  32.  
  33. - (void)takeColorFrom:(id)sender;
  34. - (void)setColor:(NSColor *)color;
  35. - (NSColor *)color;
  36.  
  37. @end
  38.