home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / CANMAIN.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  1KB  |  36 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef canmainH
  3. #define canmainH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. const int  MaxPoints    = 15;  // Number of points to be drawn 
  11.  
  12. struct TRPoint {
  13.   float X, Y;
  14. };
  15. //---------------------------------------------------------------------------
  16. class TForm1 : public TForm
  17. {
  18. __published:    // IDE-managed Components 
  19.     TTimer *Timer1;
  20.     void __fastcall FormCreate(TObject *Sender);
  21.     void __fastcall FormPaint(TObject *Sender);
  22.     void __fastcall FormResize(TObject *Sender);
  23.     void __fastcall Timer1Timer(TObject *Sender);
  24. private:        // User declarations
  25.     TRPoint     Points[MaxPoints];
  26.     float       Rotation;     // in radians
  27.     int         PointCount;
  28.     void __fastcall RotatePoints();
  29. public:         // User declarations
  30.     virtual __fastcall TForm1(TComponent* Owner);
  31. };
  32. //---------------------------------------------------------------------------
  33. extern TForm1 *Form1;
  34. //---------------------------------------------------------------------------
  35. #endif
  36.