2 * Acess2 Window Manager v3 (axwin3)
3 * - By John Hodge (thePowersGang)
5 * include/wm_renderer.h
6 * - Window renderer API
8 #ifndef _WM_RENDERER_H_
9 #define _WM_RENDERER_H_
12 #include <wm_internals.h>
17 * \brief Internal pointer to next loaded renderer
19 struct sWMRenderer *Next;
22 * \brief Renderer name / identifier
27 * \brief Initialise a window structure for the renderer
28 * \param Flags Flags for the window
29 * \return malloc()'d window structure, or NULL on error
30 * \note \a Flags is provided for convinience, the caller will
31 * set the copy in the window structure.
33 tWindow *(*CreateWindow)(int Arg);
36 * \brief Redraw a window on the screen
37 * \param Window Window to render
39 * Called when a window needs to be re-rendered, e.g. when it is uncovered or
42 * \todo List all conditions for Redraw
44 void (*Redraw)(tWindow *Window);
47 * \brief Handle a message sent to the window using WM_SendMessage
48 * \param Window Target window
49 * \param MessageID Implementation defined message ID (usually the command)
50 * \param Length Length of the buffer \a Data
51 * \param Data Implementation defined data buffer
52 * \return Boolean failure (0: Handled, 1: Unhandled)
54 int (*HandleMessage)(tWindow *Window, int MessageID, int Length, const void *Data);
57 extern void WM_RegisterRenderer(tWMRenderer *Renderer);
58 extern tWindow *WM_CreateWindowStruct(size_t ExtraBytes);