comparison nodejs/mbfly_njs.cc @ 869:c18058fb48ee

Export API for JS to feed X events. We need the API that JS code can feed X events to X runtime.
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 24 Sep 2010 03:22:19 +0800
parents 586e50f82c1f
children 67d0fed24120
comparison
equal deleted inserted replaced
868:f41ac71266bc 869:c18058fb48ee
54 xnjsmb_redraw_all(njs_runtime_t *rt) { 54 xnjsmb_redraw_all(njs_runtime_t *rt) {
55 redraw_man_t *rdman; 55 redraw_man_t *rdman;
56 56
57 rdman = X_njs_MB_rdman(rt); 57 rdman = X_njs_MB_rdman(rt);
58 rdman_redraw_all(rdman); 58 rdman_redraw_all(rdman);
59 }
60
61 static void
62 xnjsmb_handle_single_event(njs_runtime_t *rt, void *evt) {
63 X_njs_MB_handle_single_event(rt, evt);
64 }
65
66 static void
67 xnjsmb_no_more_event(njs_runtime_t *rt) {
68 X_njs_MB_no_more_event(rt);
59 } 69 }
60 70
61 static njs_runtime_t * 71 static njs_runtime_t *
62 _X_njs_MB_new(Handle<Object> self, char *display_name, 72 _X_njs_MB_new(Handle<Object> self, char *display_name,
63 int width, int height) { 73 int width, int height) {