AmendHub

Download

pfuentes69

/

FractalViewer

/

TWindow.h

 

(View History)

pfp   First commit Latest amendment: 1 on 2022-08-26

1 /*****
2 * TWindow.h
3 *
4 * Copyright © 1991 Symantec Corporation
5 *
6 * Class definition of window class.
7 * This class is intended to demonstrate the new
8 * object-oriented features of THINK C 5.0. It is not
9 * intended to be a general purpose window class for use
10 * in commerical-quaility applications.
11 *
12 *****/
13
14 #pragma once // include this header
15 // only once per source file
16
17 #define TWINDOWKIND 'TW' // Windows whose windowKind is
18 // TWINDOWKIND have a TWindow
19 // object stored in their refCon.
20 // If it's any other windowKind,
21 // it's not one of ours.
22
23 #define TWinRSRC 128 // Resource ID of WIND resource
24 // for TWindow windows
25
26 #if __cplusplus
27 class TWindow { // Using Symantec C++
28 #else
29 class TWindow : indirect { // ...or THINK C's oop extensions
30 #endif
31
32 private:
33 Rect drag;
34 Rect smallest;
35 WindowPtr theWindow; // the window record
36
37 static short windowCounter; // counter for the stacker
38
39
40 public:
41 TWindow(void); // constructor
42 ~TWindow(void); // destructor
43
44 virtual void Close(void);
45 short GetWindowNumber(void);
46 virtual void Draw(void);
47 virtual void Hit(Point where);
48 virtual long Grow(Point where);
49 virtual void Zoom(short part);
50 virtual void Update(void);
51 virtual void Activate(short active);
52 virtual void Drag(Point where);
53 virtual void Select(void);
54 virtual void Show(void);
55 virtual void Hide(void);
56 virtual void TrackClose(Point where);
57 virtual void TrackZoom(Point where, short part);
58 virtual short IsVisible(void);
59 virtual void GetWindowTitle (Str255 theTitle);
60 virtual void SetWindowTitle (Str255 theTitle);
61 virtual void GetWindowRect(Rect *theRect, Boolean entireWindow);
62 virtual void RefreshWindow(Boolean entireWindow);
63 virtual void ZoomContent(short z);
64
65 };