Supported Browsers Home   
MGL_wmProcessEvent Previous   
MGL_wmPushWindowEventHandler Next   
External Functions Up   

MGL_wmPushGlobalEventHandler

Adds event handler to the window manager.

Declaration

void MGLAPI MGL_wmPushGlobalEventHandler(
    winmng_t *wm,
    globaleventhandler_t hndFunc,
    ulong mask,
    int id)
typedef ibool (MGLAPIP globaleventhandler_t)(event_t *event)

Prototype In

mgraph.h

Parameters

wm

window manager

hndFunc

handler callback function

mask

mask of events the handler will handle (for event_t.what)

id

arbitrary user-choosen ID of this handler, used only when removing the event handler from the middle of handlers stack

 

Description

This function adds event handler to the stack of window manager's global event handlers. The meaning of parameters is same as in MGL_wmPushWindowEventHandler and they work in very similar way. The only difference is that global event handlers are independent of windows (they don't have window parameter) and that they take precedence over window-specific handlers.

See Also

MGL_wmProcessEvent, MGL_wmPushWindowEventHandler, MGL_wmPopWindowEventHandler, MGL_wmRemoveWindowEventHandler, MGL_wmPopGlobalEventHandler, MGL_wmRemoveGlobalEventHander, MGL_wmCaptureEvents, MGL_wmUncaptureEvents

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com