home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / e / EasyGUI_v33b2.lha / Docs / led.doc < prev    next >
Text File  |  1996-12-04  |  1KB  |  51 lines

  1. LED PLUGIN
  2. ----------
  3. Draws pairs of digits to look like LED displays (such as clocks).  Uses the
  4. 'led.image' which needs to be in the normal place of libs:images/ (usually
  5. libs: is also assigned to sys:classes/, and .image files should be stored
  6. in the sys:classes/images/ directory).
  7.  
  8. Constructors:
  9.  
  10.     led(pairs=2,values=NIL,colon=FALSE,signed=FALSE,negative=FALSE,pen=1)
  11.         pairs    -> The number of pairs of digits
  12.         values   -> The values (one value per pair of digits)
  13.         colon    -> Whether the colon between pairs is displayed
  14.         signed   -> Whether use will be made of the leading minus sign
  15.         negative -> Whether the leading minus sign is on or off
  16.         pen      -> The pen (colour) of the LED
  17.  
  18. Destructor:
  19.  
  20.     END *must* be called for each NEWed object.
  21.  
  22. Data (should be considered read-only, except as mentioned below):
  23.  
  24.     OBJECT led OF plugin
  25.       pairs
  26.       values:PTR TO INT
  27.       colon
  28.       signed
  29.       negative
  30.       pen
  31.     PRIVATE ...
  32.     ENDOBJECT
  33.  
  34. New methods:
  35.  
  36.     redisplay()  -> Redraw according to new values
  37.  
  38.     Note: it is OK to change the public data just before calling
  39.           redisplay() (and this is the only real use for redisplay()).
  40.  
  41. Action functions:
  42.  
  43.     Ignored.
  44.  
  45. Exceptions:
  46.  
  47.     "led" will be raised by the constructor if the .image file can't be
  48.           opened.
  49.     "led" will be raised by the render()/redisplay() methods if the image
  50.           can't be created.
  51.