From: John Hodge Date: Sun, 21 Aug 2011 08:34:41 +0000 (+0800) Subject: Usermode/axwin3 - Fiddling X-Git-Tag: rel0.11~143 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=eb4f3a69b2ad7ccfe1428a91fd0686ba23f32203;p=tpg%2Facess2.git Usermode/axwin3 - Fiddling --- diff --git a/Usermode/Applications/axwin3_src/WM/renderer_classes.c b/Usermode/Applications/axwin3_src/WM/renderer_classes.c index 8737ed10..7eea9ac4 100644 --- a/Usermode/Applications/axwin3_src/WM/renderer_classes.c +++ b/Usermode/Applications/axwin3_src/WM/renderer_classes.c @@ -37,7 +37,7 @@ tWindow *Renderer_Class_Create(int Width, int Height, int Flags) void Renderer_Class_Redraw(tWindow *Window) { - + Render_DrawFilledRect(Window, info->BGColour, 0, 0, Window->W, Window->H); } int Renderer_Class_HandleMessage(tWindow *Target, int Msg, int Len, void *Data) diff --git a/Usermode/Applications/axwin3_src/WM/renderer_widget.c b/Usermode/Applications/axwin3_src/WM/renderer_widget.c new file mode 100644 index 00000000..7407e5fd --- /dev/null +++ b/Usermode/Applications/axwin3_src/WM/renderer_widget.c @@ -0,0 +1,59 @@ +/* + * Acess2 Window Manager v3 + * - By John Hodge (thePowersGang) + * + * render_widget.c + * - AxWin2 Widget port + */ +#include +#include + +// === TYPES === +typedef struct sWidgetWin tWidgetWin; + +// === STRUCTURES === +struct sWidgetWin +{ + tElement RootElement; +}; + +// === PROTOTYPES === +tWindow *Renderer_Widget_Create(int Width, int Height, int Flags); +void Renderer_Widget_Redraw(tWindow *Window); +int Renderer_Widget_HandleMessage(tWindow *Target, int Msg, int Len, void *Data); + +// === GLOBALS === +tWMRenderer gRenderer_Widget = { + .Name = "Classful", + .CreateWindow = Renderer_Widget_Create, + .Redraw = Renderer_Widget_Redraw, + .HandleMessage = Renderer_Widget_HandleMessage +}; + +// === CODE === +int Renderer_Widget_Init(void) +{ + WM_RegisterRenderer(&gRenderer_Widget); + + return 0; +} + +tWindow *Renderer_Widget_Create(int Width, int Height, int Flags) +{ + // TODO: Add info + return WM_CreateWindowStruct(tWidgetWin_Info); +} + +void Renderer_Widget_Redraw(tWindow *Window) +{ +} + +int Renderer_Widget_HandleMessage(tWindow *Target, int Msg, int Len, void *Data) +{ + tClassfulInfo *info = Target->RendererInfo; + switch(Msg) + { + + } +} +