/***** * TFractalViewerWindow.h * * Object definitions for window to draw a fractal in. * *****/ #pragma once // include this header // only once per source file #include "TWindow.h" class TFractalViewerWindow : public TWindow { protected: short style; short drawMode; short sWidth, sHeigth, sLeft, sTop; public: TFractalViewerWindow(void); // constructor virtual void Hit(Point where); virtual void Draw(void); virtual void DrawShape(Rect *drawingRect); virtual void SetStyle(short s); virtual short GetStyle(); virtual void SetDrawMode(short m); virtual short GetDrawMode(); virtual void ZoomContent(short z); }; // This macro gets the object that stored in // the refCon of the window and casts is so we // can send messages to it #define OBJ(win) ((TFractalViewerWindow *)(((WindowPeek) win)->refCon))