diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syl_window.h	Tue Apr 28 23:06:07 2009 +0000
@@ -0,0 +1,66 @@
+#ifndef SYL_WINDOW_H_
+#define SYL_WINDOW_H_
+
+#include "datum.h"
+#include "interp.h"
+#include "vis_threading.h"
+
+#ifdef CPLUSPLUS
+
+#include <gui/window.h>
+
+
+class os_window : public os::Window
+{
+public:
+	os_window(datum * vis_wind);
+	~os_window();
+	void HandleMessage(os::Message * msg);
+//	void DispatchMessage(os::Message * pcMsg, os::Handler * pcHandler);
+//	os::View *SetFocusNoHandler(os::View * new_focus );
+//private:
+//	os::View * current_focus;
+	datum * vis_wind;
+};
+
+
+struct vis_window_shown
+{
+	os_window * wind;
+#else
+typedef struct
+{
+	void * wind;
+#endif
+	VIS_CRITICAL_SECTION(lock)
+	datum * title;
+	double width;
+	double height;
+	double xpos;
+	double ypos;
+	queue_entry * wait_entry;
+	int next_msg_code;
+	datum * handler_list;
+	worker_instance instance;
+	datum * widget_types;
+	BOOL is_open;
+#ifdef CPLUSPLUS
+};
+#else
+} vis_window_shown;
+#endif
+
+#ifdef CPLUSPLUS
+extern "C" {
+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);
+}
+#endif
+
+#endif //SYL_WINDOW_H_
+
+
+
+
+
+
+