From 5eaecae93f7ba32b6bec9515dfa465130bc8b808 Mon Sep 17 00:00:00 2001 From: Jeff Armstrong Date: Sun, 24 Jul 2011 22:26:32 -0400 Subject: Added VDI routines. Added proper resource handling, some menu library code, and object library code. --- lib/gem.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'lib/gem.c') diff --git a/lib/gem.c b/lib/gem.c index cbb3b5b..f842dd1 100644 --- a/lib/gem.c +++ b/lib/gem.c @@ -49,8 +49,15 @@ GemMethods[] = { {"wind_set_string", py_wind_set_string, METH_VARARGS, "Set a string window parameter"}, {"wind_update", py_wind_update, METH_VARARGS, "Lock window redraw for updates"}, + /* AES Event Libary */ {"evnt_multi", py_evnt_multi, METH_VARARGS | METH_KEYWORDS, "Process multiple GEM events."}, + /* AES Menu Library */ + {"menu_bar", py_menu_bar, METH_VARARGS, "Install or hide a GEM menubar"}, + + /* AES Object Library */ + {"objc_draw", py_objc_draw, METH_VARARGS, "Draw an AES object to the screen"}, + /* VDI Functions */ {"v_open_screen", py_v_open_screen, METH_NOARGS, "Open and retrieve a handle to a virtual screen workstation"}, {"v_clsvwk", py_v_clsvwk, METH_VARARGS, "Close a virtual workstation"}, @@ -126,6 +133,12 @@ PROC LibFunc[] = { /* AES Event Library */ "py_evnt_multi", "Internal\n", py_evnt_multi, + /* AES Menu Library */ + "py_menu_bar", "Internal\n", py_menu_bar, + + /* AES Object Library */ + "py_objc_draw", "Internal\n", py_objc_draw, + /* VDI Functions */ "py_v_open_screen", "Internal\n", py_v_open_screen, "py_v_clsvwk", "Internal\n", py_v_clsvwk, @@ -138,7 +151,7 @@ PROC LibFunc[] = { }; LDGLIB LibLdg[] = { - 0x0001, 29, LibFunc, "GEM Extensions for Python", 0 + 0x0001, 31, LibFunc, "GEM Extensions for Python", 0 }; int main( void) -- cgit v1.2.3