comparison syl_window.h @ 0:76568becd6d6

Rhope Alpha 2a source import
author Mike Pavone <pavone@retrodev.com>
date Tue, 28 Apr 2009 23:06:07 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:76568becd6d6
1 #ifndef SYL_WINDOW_H_
2 #define SYL_WINDOW_H_
3
4 #include "datum.h"
5 #include "interp.h"
6 #include "vis_threading.h"
7
8 #ifdef CPLUSPLUS
9
10 #include <gui/window.h>
11
12
13 class os_window : public os::Window
14 {
15 public:
16 os_window(datum * vis_wind);
17 ~os_window();
18 void HandleMessage(os::Message * msg);
19 // void DispatchMessage(os::Message * pcMsg, os::Handler * pcHandler);
20 // os::View *SetFocusNoHandler(os::View * new_focus );
21 //private:
22 // os::View * current_focus;
23 datum * vis_wind;
24 };
25
26
27 struct vis_window_shown
28 {
29 os_window * wind;
30 #else
31 typedef struct
32 {
33 void * wind;
34 #endif
35 VIS_CRITICAL_SECTION(lock)
36 datum * title;
37 double width;
38 double height;
39 double xpos;
40 double ypos;
41 queue_entry * wait_entry;
42 int next_msg_code;
43 datum * handler_list;
44 worker_instance instance;
45 datum * widget_types;
46 BOOL is_open;
47 #ifdef CPLUSPLUS
48 };
49 #else
50 } vis_window_shown;
51 #endif
52
53 #ifdef CPLUSPLUS
54 extern "C" {
55 void add_widget_shared(vis_window_shown * window_show, datum * widget_datum, char * name, double xpos, double ypos, queue_entry * worker_entry, os::View * parent_view);
56 }
57 #endif
58
59 #endif //SYL_WINDOW_H_
60
61
62
63
64
65
66