next up previous contents index
Next: Functions Summary Up: guid2 Previous: Miscellaneous System Functions   Contents   Index

Wdevice Library and window facilities

The Wdevice library provides an interface to the window manager: it helps the user to write modules which have to access to the window manager resources, as the screen, the mouse, etc. It not only replaces some painful operations which require a lot of code (such opening a window, mapping the content of an image into a window, etc.) to a simple call to one function, but it provides also an interface which is independant to the type of the window system: the calls to the Wdevice functions remain the same even if the window system changes (and the result should be the same).

This library is independant to the MegaWave2 System Library although some modules cannot be linked without it : it is added when needed during the link process of a MegaWave2 command. Of course, one Wdevice library per window system is needed. At this time, there exists a Wdevice library for the X Window System Version 11 (X11) only. In the past, one could find a Wdevice library for the Suntools System but, because of the renunciation of Suntools from Sun MicroSystem, this library is no longer maintained (and no longer distributed).

On can found in the system library some packages that use functions defined by Wdevice to perform more high-levels tasks, such as Wpanel : The Wpanel (Panel display facilities) is a small package that allows to handle buttons and bars. It is not documented yet, and will probably change quite much in the future. For the time being, it is used only in the module llview.c.



Subsections
next up previous contents index
Next: Functions Summary Up: guid2 Previous: Miscellaneous System Functions   Contents   Index
mw 2004-05-05