| In: |
win32ole/win32ole.c
|
| Parent: | Object |
Translates and dispatches Windows message.
/*
* WIN32OLE_EVENT.message_loop
* ---
* Translates and dispatches Windows message.
*/
static VALUE
fev_s_msg_loop(klass)
VALUE klass;
{
ole_msg_loop();
return Qnil;
}
WIN32OLE_EVENT#on_event([event]){…}
defines the callback event. If argument is omitted, this method defines the callback of all events.
/*
* WIN32OLE_EVENT#on_event([event]){...}
* ----
* defines the callback event.
* If argument is omitted, this method defines the callback of all events.
*/
static VALUE
fev_on_event(argc, argv, self)
int argc;
VALUE *argv;
VALUE self;
{
return ev_on_event(argc, argv, self, Qfalse);
}
WIN32OLE_EVENT#on_event_with_outargs([event]){…}
defines the callback of event. If you want modify argument in callback, you should use this method instead of WIN32OLE_EVENT#on_event.
/*
* WIN32OLE_EVENT#on_event_with_outargs([event]){...}
* ----
* defines the callback of event.
* If you want modify argument in callback,
* you should use this method instead of WIN32OLE_EVENT#on_event.
*/
static VALUE
fev_on_event_with_outargs(argc, argv, self)
int argc;
VALUE *argv;
VALUE self;
{
return ev_on_event(argc, argv, self, Qtrue);
}