Usermode/AxWin3 - Fiddliing with things
authorJohn Hodge <[email protected]>
Sat, 29 Oct 2011 01:26:50 +0000 (09:26 +0800)
committerJohn Hodge <[email protected]>
Sat, 29 Oct 2011 01:26:50 +0000 (09:26 +0800)
Usermode/Applications/axwin3_src/WM/include/renderer_widget.h [new file with mode: 0644]
Usermode/Applications/axwin3_src/WM/renderer_widget.c

diff --git a/Usermode/Applications/axwin3_src/WM/include/renderer_widget.h b/Usermode/Applications/axwin3_src/WM/include/renderer_widget.h
new file mode 100644 (file)
index 0000000..fbb3e02
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * Acess2 Window Manager v3
+ * - By John Hodge (thePowersGang)
+ *
+ * render_widget.h
+ * - AxWin2 Widget port
+ */
+#ifndef _RENDERER_WIDGET_H_
+#define _RENDERER_WIDGET_H_
+
+#include <wm_renderer.h>
+
+enum
+{
+       MSG_WIDGET_CREATE,
+       MSG_WIDGET_DELETE,
+       MSG_WIDGET_SETTEXT
+};
+
+#endif
+
index 94f983d..ddcb243 100644 (file)
@@ -7,11 +7,51 @@
  */
 #include <common.h>
 #include <wm_renderer.h>
+#include <renderer_widget.h>
 
 // === TYPES ===
 typedef struct sWidgetWin      tWidgetWin;
+typedef struct sAxWin_Element  tElement;
 
 // === STRUCTURES ===
+struct sAxWin_Element
+{
+       enum eElementTypes      Type;
+       
+       // Element Tree
+       tElement        *Parent;
+       tElement        *FirstChild;
+       tElement        *LastChild;
+       tElement        *NextSibling;
+       
+       // Application
+       tApplication    *Owner; //!< Owning application
+       uint16_t        ApplicationID;  //!< Index into sApplication::EleIndex
+
+       // User modifiable attributes   
+       short   PaddingL, PaddingR;
+       short   PaddingT, PaddingB;
+       short   GapSize;
+       
+       uint32_t        Flags;
+       
+       short   FixedWith;      //!< Fixed lengthways Size attribute (height)
+       short   FixedCross;     //!< Fixed Cross Size attribute (width)
+       
+       char    *Text;
+       
+       // -- Attributes maitained by the element code
+       // Not touched by the user
+       short   MinWith;        //!< Minimum long size
+       short   MinCross;       //!< Minimum cross size
+       void    *Data;  //!< Per-type data
+       
+       // -- Render Cache
+       short   CachedX, CachedY;
+       short   CachedW, CachedH;
+       
+       char    DebugName[];
+};
 struct sWidgetWin
 {
        tElement        RootElement;

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