| Home
| Previous
| Next
| Up

winmng_t

Declaration

typedef struct {
globalevententry_t *globalEventHandlers;
captureentry_t *capturedEvents;
cursor_t *globalCursor;
struct window_t *rootWnd;
struct window_t *activeWnd;
MGLDC *dc;
region_t *invalidatedRegion;
attributes_t dcAttrs;
ibool updatingDC;
} winmng_t

Prototype In

mgraph.h

Description

This structure represents MGL window manager. MGL WM provides functionality similar to that of Xlib, i.e. bare minimum needed to implement windowing environment on top of SciTech MGL. That is, it manages hierarchy of rectangular windows, takes care of proper repainting (but you must provide painter functions for all windows) and clipping and distributes input events among the windows.

You must create an instance of this object with MGL_wmCreate prior to using WM functionality and destroy it before shutting MGL down with MGL_wmDestroy. winmng_t object is attached to a device context and this device context must not be manipulated by user code other then via painter callbacks (see MGL_wmSetWindowPainter) or via DC obtained from MGL_wmBeginPaint.

Members

globalEventHandlers | Table of event handlers that are used prior to window specific ones
capturedEvents | Captured events redirection table
globalCursor | Currently selected global cursor or NULL
rootWnd | The root window that is parent of all other windows
activeWnd | The window under mouse pointer
dc | Device context associated with the manager
invalidatedRegion | Area of device context that needs repainting
dcAttrs | Pointer to next capture entry in the chain
updatingDC | true if inside MGL_wmUpdateDC, false otherwise

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