home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / ipl / gprocs / wattrib.icn < prev    next >
Text File  |  2000-07-29  |  1KB  |  52 lines

  1. ############################################################################
  2. #
  3. #    File:     wattrib.icn
  4. #
  5. #    Subject:  Procedures for attributes
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     March 6, 1995
  10. #
  11. ############################################################################
  12. #
  13. #   This file is in the public domain.
  14. #
  15. ############################################################################
  16. #
  17. #  These are "helper" procedures to use in place of WAttrib().
  18. #
  19. #  This is a work in progress; at present it only handles fetching
  20. #  of a few attribute values.
  21. #
  22. ############################################################################
  23. #
  24. #  Requires:  Version 9 graphics
  25. #
  26. ############################################################################
  27.  
  28.  
  29. procedure Width(win)
  30.  
  31.    /win := &window
  32.  
  33.    return WAttrib(win, "width")
  34.  
  35. end
  36.  
  37. procedure Height(win)
  38.  
  39.    /win := &window
  40.  
  41.    return WAttrib(win, "height")
  42.  
  43. end
  44.  
  45. procedure LineWidth(win)
  46.  
  47.    /win := &window
  48.  
  49.    return WAttrib(win, "linewidth")
  50.  
  51. end
  52.