| Home
| Previous
| Next
| Up

MGL_wmGetRootWindow

Returns pointer to window manager's root window.

Declaration

window_t* MGLAPI MGL_wmGetRootWindow(
winmng_t *wm)

Prototype In

mgraph.h

Parameters

wm | the window manager

Return Value

The root window.

Description

This function returns pointer to window manager's root window. The root window is a special window several notable properties: You don't create or destroy it directly, MGL_wmCreate and MGL_wmDestroy do it. It covers entire device context and all windows are its children (or grand-children or grand-grand-children and so on). Windows created with NULL parent are direct children of the root window.

Note: There is neither default event handling nor painter set to root window by MGL_wmCreate. You have to set at least the painter yourself.

See Also

MGL_wmCreate, MGL_wmDestroy

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