Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ActiveWindow.h File Reference
#include <vector>
#include "Types.h"
#include "Color.h"
#include "Geometry.h"
#include "Bitmap.h"
#include "Window.h"
#include "EventTarget.h"
#include "List.h"
#include "Text.h"

Go to the source code of this file.

Classes

struct  AWEvent
struct  AWMap
class  ActiveWindow

Macros

#define DEF_MAP_CLIENT(cname, fname)
#define REGISTER_CLIENT(eid, ctrl, cname, fname)   if (ctrl) ctrl->RegisterClient(eid, this, Map##cname##fname);
#define UNREGISTER_CLIENT(eid, ctrl, cname)   if (ctrl) ctrl->UnregisterClient(eid, this);

Typedefs

typedef void(* PFVAWE )(ActiveWindow *, AWEvent *)

Enumerations

enum  {
  WIN_NO_FRAME = 0x0000, WIN_BLACK_FRAME = 0x0001, WIN_WHITE_FRAME = 0x0002, WIN_THIN_FRAME = 0x0004,
  WIN_THICK_FRAME = 0x0008, WIN_RAISED_FRAME = 0x0010, WIN_SUNK_FRAME = 0x0020, WIN_TEXT_SHADOW = 0x0040,
  WIN_FRAME_ONLY = 0x0080
}
enum  {
  EID_CREATE, EID_DESTROY, EID_MOUSE_MOVE, EID_CLICK,
  EID_SELECT, EID_LBUTTON_DOWN, EID_LBUTTON_UP, EID_RBUTTON_DOWN,
  EID_RBUTTON_UP, EID_KEY_DOWN, EID_SET_FOCUS, EID_KILL_FOCUS,
  EID_MOUSE_ENTER, EID_MOUSE_EXIT, EID_MOUSE_WHEEL, EID_DRAG_START,
  EID_DRAG_DROP, EID_USER_1, EID_USER_2, EID_USER_3,
  EID_USER_4, EID_NUM_EVENTS
}

Macro Definition Documentation

#define DEF_MAP_CLIENT (   cname,
  fname 
)
Value:
void Map##cname##fname(ActiveWindow* client, AWEvent* event) \
{ cname* c = (cname*) client; c->fname(event); }

Definition at line 314 of file ActiveWindow.h.

#define REGISTER_CLIENT (   eid,
  ctrl,
  cname,
  fname 
)    if (ctrl) ctrl->RegisterClient(eid, this, Map##cname##fname);

Definition at line 318 of file ActiveWindow.h.

#define UNREGISTER_CLIENT (   eid,
  ctrl,
  cname 
)    if (ctrl) ctrl->UnregisterClient(eid, this);

Definition at line 321 of file ActiveWindow.h.


Typedef Documentation

typedef void(* PFVAWE)(ActiveWindow *, AWEvent *)

Definition at line 98 of file ActiveWindow.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
EID_CREATE 
EID_DESTROY 
EID_MOUSE_MOVE 
EID_CLICK 
EID_SELECT 
EID_LBUTTON_DOWN 
EID_LBUTTON_UP 
EID_RBUTTON_DOWN 
EID_RBUTTON_UP 
EID_KEY_DOWN 
EID_SET_FOCUS 
EID_KILL_FOCUS 
EID_MOUSE_ENTER 
EID_MOUSE_EXIT 
EID_MOUSE_WHEEL 
EID_DRAG_START 
EID_DRAG_DROP 
EID_USER_1 
EID_USER_2 
EID_USER_3 
EID_USER_4 
EID_NUM_EVENTS 

Definition at line 49 of file ActiveWindow.h.

anonymous enum
Enumerator:
WIN_NO_FRAME 
WIN_BLACK_FRAME 
WIN_WHITE_FRAME 
WIN_THIN_FRAME 
WIN_THICK_FRAME 
WIN_RAISED_FRAME 
WIN_SUNK_FRAME 
WIN_TEXT_SHADOW 
WIN_FRAME_ONLY 

Definition at line 37 of file ActiveWindow.h.