<HTML>
<HEAD>
<TITLE>Includes</TITLE></HEAD><BODY><H6><A href=main.html>Contents page</A></H6><P>
<H6><A href=Main.html>Index</A></H6><P>
<H1>Includes</H1>
<HR>
  //////////////////////////////////////////////////////////////////////////////<PRE>
  // Led.hpp
  //
  // Deryk B Robosson
  // April 26, 1996
  //////////////////////////////////////////////////////////////////////////////<P>

  #ifndef __LED_HPP__
  #define __LED_HPP__<P>

  //////////////////////////////////////////////////////////////////////////////
  // INCLUDES
  #include &quot;aframe:include/aframe.hpp&quot;
  #include &quot;aframe:include/rect.hpp&quot;
  #include &quot;aframe:include/window.hpp&quot;
  #include &lt;dos/dos.h&gt;
  #include &lt;exec/types.h&gt;
  #include &lt;exec/libraries.h&gt;
  #include &lt;intuition/intuition.h&gt;
  #include &lt;intuition/imageclass.h&gt;
  #include &lt;intuition/gadgetclass.h&gt;
  #include &lt;intuition/classes.h&gt;
  #include &lt;intuition/icclass.h&gt;
  #include &lt;intuition/intuitionbase.h&gt;
  #include &lt;images/led.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;<P>

  #include &lt;clib/macros.h&gt;
  #include &lt;clib/dos_protos.h&gt;
  #include &lt;clib/exec_protos.h&gt;
  #include &lt;clib/intuition_protos.h&gt;<P>

  #include &lt;pragmas/dos_pragmas.h&gt;
  #include &lt;pragmas/exec_pragmas.h&gt;
  #include &lt;pragmas/intuition_pragmas.h&gt;<P>

  //////////////////////////////////////////////////////////////////////////////
  // Definitions
  typedef struct
  {
      BOOL Added;             // Gadget added to window
      BOOL Colon;             // Colon on/off default=TRUE
      BOOL Negative;          // Negative on/off default=FALSE
      BOOL Signed;            // Signed on/off default=TRUE
      LONG FGPen;             // Foreground Pen
      LONG BGPen;             // Background Pen
      LONG NumPairs;          // Number of digit pairs default=1
      AFWindow *Window;       // Window to which gadget has been added
      struct Image *Image;    // Image Struct
      AFRect rect;            // Image size and position
      WORD DigitPairs[8];     // DigitPairs array
  } LED;<P>

  //////////////////////////////////////////////////////////////////////////////
  // Led Class<P>

  class AFLed : public AFObject
  {
      public:
          AFLed();
          ~AFLed();<P>

          virtual void DestroyObject();
          virtual char *ObjectType() { return &quot;Led&quot;; };<P>

          BOOL Create(AFWindow *window, AFRect *rect, ULONG gadid);
          LONG RemoveObject();
          void RefreshImage();<P>

          LED m_Global;<P>

      private:
          struct ClassLibrary *LedLibrary;
  };<P>

  //////////////////////////////////////////////////////////////////////////////
  #endif // __LED_HPP__
<HR>
