Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
EventTarget.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: EventTarget.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Event Target interface class
13
*/
14
15
#ifndef EventTarget_h
16
#define EventTarget_h
17
18
#include "
Types.h
"
19
#include "
Geometry.h
"
20
21
// +--------------------------------------------------------------------+
22
23
class
EventTarget
24
{
25
public
:
26
static
const
char
*
TYPENAME
() {
return
"EventTarget"
; }
27
28
virtual
~EventTarget
() { }
29
30
int
operator ==
(
const
EventTarget
& t)
const
{
return
this
== &t; }
31
32
virtual
int
OnMouseMove
(
int
x,
int
y) {
return
0; }
33
virtual
int
OnLButtonDown
(
int
x,
int
y) {
return
0; }
34
virtual
int
OnLButtonUp
(
int
x,
int
y) {
return
0; }
35
virtual
int
OnClick
() {
return
0; }
36
virtual
int
OnSelect
() {
return
0; }
37
virtual
int
OnRButtonDown
(
int
x,
int
y) {
return
0; }
38
virtual
int
OnRButtonUp
(
int
x,
int
y) {
return
0; }
39
virtual
int
OnMouseEnter
(
int
x,
int
y) {
return
0; }
40
virtual
int
OnMouseExit
(
int
x,
int
y) {
return
0; }
41
virtual
int
OnMouseWheel
(
int
wheel) {
return
0; }
42
43
virtual
int
OnKeyDown
(
int
vk,
int
flags) {
return
0; }
44
45
virtual
void
SetFocus
() { }
46
virtual
void
KillFocus
() { }
47
virtual
bool
HasFocus
()
const
{
return
false
; }
48
49
virtual
bool
IsEnabled
()
const
{
return
true
; }
50
virtual
bool
IsVisible
()
const
{
return
true
; }
51
virtual
bool
IsFormActive
()
const
{
return
true
; }
52
53
virtual
Rect
TargetRect
()
const
{
return
Rect
(); }
54
55
virtual
const
char
*
GetDescription
()
const
{
return
"EventTarget"
; }
56
};
57
58
#endif EventTarget_h
59
nGenEx
EventTarget.h
Generated on Tue Jun 5 2012 20:46:21 for Starshatter_Open by
1.8.1