home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 594b.lha / Precognition_rel1 / EmbossedGadget.h < prev    next >
C/C++ Source or Header  |  1991-12-12  |  2KB  |  60 lines

  1. /* ==========================================================================
  2. **
  3. **                   EmbossedGadget.h
  4. **
  5. ** NOTE: EmbossedGadget is not a 'TRUE' object class.  Rather it is a
  6. ** a collection of routines that are shared by many different Interactor
  7. ** classes which have embossed gadgets as part of their structure.
  8. **
  9. ** (This 'phony' class is a result of not having multiple inheritance
  10. ** in my Object Oriented C paradigm.)
  11. **
  12. **           Lee Willis
  13. **
  14. **
  15. ** ©1991 WILLISoft
  16. **
  17. ** ==========================================================================
  18. */
  19.  
  20. #ifndef EMBOSSEDGADGET_H
  21. #define EMBOSSEDGADGET_H
  22.  
  23. #include "precognition3d.h"
  24. #include "Interactor.h"
  25. #include "pcgWindow.h"
  26.  
  27.  
  28.  
  29.  
  30. typedef struct EmbossedGadget /* Gadget with a 3D border. */
  31.    {
  32.       Class             *isa;
  33.       char              *ObjectName;
  34.       void              *Next;
  35.       struct pcgWindow  *IaWindow;
  36.       Point              Location;
  37.       Point              Size;
  38.       pcg_3DPens         Pens;
  39.       USHORT             state;    /* private! */
  40.       ULONG              IDCMPbuf; /* private! */
  41.       pcg_3DBox         *BoxBorder;
  42.       PrecogText         LabelText;
  43.       Gadget             g;
  44.    } EmbossedGadget;
  45.  
  46.    /*
  47.    ** NOTE: For gadgets where the border *exceeds* the hitbox,
  48.    ** (i.e. PropGadgets, StringGadgets) 'Location' and 'Size'
  49.    ** are the dimensions including the border.
  50.    */
  51.  
  52. #define GADGDURATION (RELVERIFY | GADGIMMEDIATE)
  53. /* By setting Activation = GADGDURATION, an embossed gadget will
  54. ** receive messages as long as its pressed.
  55. */
  56.  
  57.  
  58.  
  59. #endif
  60.