Download
pfuentes69
/FractalViewer
/TFractalViewerWindow.h
(View History)
pfp First commit | Latest amendment: 1 on 2022-08-26 |
1 | /***** |
2 | * TFractalViewerWindow.h |
3 | * |
4 | * Object definitions for window to draw a fractal in. |
5 | * |
6 | *****/ |
7 | |
8 | #pragma once // include this header |
9 | // only once per source file |
10 | |
11 | #include "TWindow.h" |
12 | |
13 | class TFractalViewerWindow : public TWindow { |
14 | protected: |
15 | short style; |
16 | short drawMode; |
17 | short sWidth, sHeigth, sLeft, sTop; |
18 | public: |
19 | TFractalViewerWindow(void); // constructor |
20 | |
21 | virtual void Hit(Point where); |
22 | virtual void Draw(void); |
23 | virtual void DrawShape(Rect *drawingRect); |
24 | virtual void SetStyle(short s); |
25 | virtual short GetStyle(); |
26 | virtual void SetDrawMode(short m); |
27 | virtual short GetDrawMode(); |
28 | virtual void ZoomContent(short z); |
29 | |
30 | }; |
31 | |
32 | |
33 | |
34 | // This macro gets the object that stored in |
35 | // the refCon of the window and casts is so we |
36 | // can send messages to it |
37 | |
38 | #define OBJ(win) ((TFractalViewerWindow *)(((WindowPeek) win)->refCon)) |