home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / LazyScrollDir / Defaults.h < prev    next >
Encoding:
Text File  |  1996-02-08  |  2.2 KB  |  55 lines

  1. //=============================================================================
  2. //
  3. //        Copyright (C) 1995,1996 by Paul S. McCarthy and Eric Sunshine.
  4. //                Written by Paul S. McCarthy and Eric Sunshine.
  5. //                            All Rights Reserved.
  6. //
  7. //        This notice may not be removed from this source code.
  8. //
  9. //        This object is included in the MiscKit by permission from the authors
  10. //        and its use is governed by the MiscKit license, found in the file
  11. //        "License.rtf" in the MiscKit distribution.    Please refer to that file
  12. //        for a list of all applicable permissions and restrictions.
  13. //
  14. //=============================================================================
  15. //-----------------------------------------------------------------------------
  16. // Defaults.h
  17. //
  18. //        Simplified interface to NeXT defaults system.
  19. //
  20. //-----------------------------------------------------------------------------
  21. //-----------------------------------------------------------------------------
  22. // $Id$
  23. // $Log$
  24. //-----------------------------------------------------------------------------
  25.  
  26. #import <objc/Object.h>
  27. #import <appkit/graphics.h>
  28. @class Font;
  29.  
  30. @interface Defaults : Object
  31.  
  32. + (void) set:(char const*)def str:    (char const*)s;
  33. + (void) set:(char const*)def int:    (int)i;
  34. + (void) set:(char const*)def float:(float)f;
  35. + (void) set:(char const*)def color:(NXColor)c;
  36. + (void) set:(char const*)def bool: (BOOL)b;
  37. + (void) set:(char const*)def font: (Font*)f;
  38. + (void) set:(char const*)def size: (NXSize)s;
  39. + (void) set:(char const*)def point:(NXPoint)p;
  40. + (void) set:(char const*)def rect: (NXRect)r;
  41.  
  42. + (char const*) getStr:     (char const*)def fallback:(char const*)s;
  43. + (int)            getInt:     (char const*)def fallback:(int)i;
  44. + (int)            getInt:     (char const*)def fallback:(int)i min:(int)n;
  45. + (int)            getInt:     (char const*)def fallback:(int)i min:(int)n max:(int)x;
  46. + (float)        getFloat:(char const*)def fallback:(float)f;
  47. + (NXColor)        getColor:(char const*)def fallback:(NXColor)c;
  48. + (BOOL)        getBool: (char const*)def fallback:(BOOL)b;
  49. + (Font*)        getFont: (char const*)def fallback:(Font*)f;
  50. + (NXSize)        getSize: (char const*)def fallback:(NXSize)s;
  51. + (NXPoint)        getPoint:(char const*)def fallback:(NXPoint)p;
  52. + (NXRect)        getRect: (char const*)def fallback:(NXRect)r;
  53.  
  54. @end
  55.