home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / Button.h < prev    next >
Text File  |  1990-10-15  |  2KB  |  67 lines

  1. /*
  2.     Button.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "Control.h"
  8.  
  9. @interface Button : Control
  10. {
  11. }
  12.  
  13. + setCellClass:factoryId;
  14.  
  15. - init;
  16. - initFrame:(const NXRect *)frameRect;
  17. - initFrame:(const NXRect *)frameRect title:(const char *)aString tag:(int)anInt target:anObject action:(SEL)aSelector key:(unsigned short)charCode enabled:(BOOL)flag;
  18. - initFrame:(const NXRect *)frameRect icon:(const char *)aString tag:(int)anInt target:anObject action:(SEL)aSelector key:(unsigned short)charCode enabled:(BOOL)flag;
  19.  
  20. - (const char *)title;
  21. - setTitle:(const char *)aString;
  22. - setTitleNoCopy:(const char *)aString;
  23. - (const char *)altTitle;
  24. - setAltTitle:(const char *)aString;
  25. - (const char *)icon;
  26. - setIcon:(const char *)iconName;
  27. - (const char *)altIcon;
  28. - setAltIcon:(const char *)iconName;
  29. - image;
  30. - setImage:image;
  31. - altImage;
  32. - setAltImage:image;
  33. - (int)iconPosition;
  34. - setIconPosition:(int)aPosition;
  35. - setIcon:(const char *)iconName position:(int)aPosition;
  36. - setType:(int)aType;
  37. - (int)state;
  38. - setState:(int)value;
  39. - (BOOL)isBordered;
  40. - setBordered:(BOOL)flag;
  41. - (BOOL)isTransparent;
  42. - setTransparent:(BOOL)flag;
  43. - setPeriodicDelay:(float)delay andInterval:(float)interval;
  44. - getPeriodicDelay:(float *)delay andInterval:(float *)interval;
  45. - (unsigned short)keyEquivalent;
  46. - setKeyEquivalent:(unsigned short)charCode;
  47. - sound;
  48. - setSound:soundObj;
  49. - display;
  50. - highlight:(BOOL)flag;
  51. - (BOOL)performKeyEquivalent:(NXEvent *)theEvent;
  52. - performClick:sender;
  53. - (BOOL)acceptsFirstMouse;
  54.  
  55. /* 
  56.  * The following newUD`methods are now obsolete.  They remain in this  
  57.  * interface file for backward compatibility only.  Use Object's alloc method  
  58.  * and the init... methods defined in this class instead.
  59.  */
  60. + new;
  61. + newFrame:(const NXRect *)frameRect;
  62. + newFrame:(const NXRect *)frameRect title:(const char *)aString tag:(int)anInt target:anObject action:(SEL)aSelector key:(unsigned short)charCode enabled:(BOOL)flag;
  63. + newFrame:(const NXRect *)frameRect icon:(const char *)aString tag:(int)anInt target:anObject action:(SEL)aSelector key:(unsigned short)charCode enabled:(BOOL)flag;
  64.  
  65.  
  66. @end
  67.