Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
View.h
Go to the documentation of this file.
1
/* Project nGenEx
2
Destroyer Studios LLC
3
Copyright © 1997-2004. All Rights Reserved.
4
5
SUBSYSTEM: nGenEx.lib
6
FILE: View.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Abstract View class
13
*/
14
15
#ifndef View_h
16
#define View_h
17
18
#include "
Types.h
"
19
20
// +--------------------------------------------------------------------+
21
22
class
Window
;
23
24
// +--------------------------------------------------------------------+
25
26
class
View
27
{
28
friend
class
Window
;
29
30
public
:
31
static
const
char
*
TYPENAME
() {
return
"View"
; }
32
33
View
(
Window
* c) :
window
(c) { }
34
virtual
~View
() { }
35
36
int
operator ==
(
const
View
& that)
const
{
return
this
== &that; }
37
38
// Operations:
39
virtual
void
Refresh
() { }
40
virtual
void
OnWindowMove
() { }
41
virtual
void
OnShow
() { }
42
virtual
void
OnHide
() { }
43
44
virtual
void
SetWindow
(
Window
* w) {
window
= w;
OnWindowMove
(); }
45
virtual
Window
*
GetWindow
() {
return
window
; }
46
47
protected
:
48
Window
*
window
;
49
};
50
51
#endif View_h
52
nGenEx
View.h
Generated on Tue Jun 5 2012 20:46:42 for Starshatter_Open by
1.8.1