Usermode/axwin3 - Fiddling
authorJohn Hodge <[email protected]>
Sun, 21 Aug 2011 08:34:41 +0000 (16:34 +0800)
committerJohn Hodge <[email protected]>
Sun, 21 Aug 2011 08:34:41 +0000 (16:34 +0800)
Usermode/Applications/axwin3_src/WM/renderer_classes.c
Usermode/Applications/axwin3_src/WM/renderer_widget.c [new file with mode: 0644]

index 8737ed1..7eea9ac 100644 (file)
@@ -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 (file)
index 0000000..7407e5f
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+ * Acess2 Window Manager v3
+ * - By John Hodge (thePowersGang)
+ *
+ * render_widget.c
+ * - AxWin2 Widget port
+ */
+#include <common.h>
+#include <wm_renderer.h>
+
+// === 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)
+       {
+
+       }
+}
+

UCC git Repository :: git.ucc.asn.au