#include <stdlib.h>
#include <string.h>
#include "wm.h"
+#include <acess/sys.h> // _SysDebug
// === IMPORTS ===
extern void Decorator_RenderWidget(tElement *Element);
void WM_Update(void);
// === GLOBALS ===
+// - TODO: Handle windows by having multiple root elements
tElement gWM_RootElement = {
.DebugName = "ROOT"
};
+
+tApplication *gWM_Applications;
+
+// --- Element type flags
struct {
void (*Init)(tElement *This);
void (*UpdateFlags)(tElement *This);
void AxWin_DeleteElement(tElement *Element)
{
// TODO: Implement AxWin_DeleteElement
+ free(Element);
}
/**
}
}
break;
+ default: // Any other, no special case
+ break ;
}
return ;
*/
/**
* \brief Updates the dimensions of an element
+ * \todo What is the \a Pass parameter for
*
* The dimensions of an element are calculated from the parent's
* cross dimension (the side at right angles to the alignment) sans some
else
child->CachedW = with;
- WM_UpdateDimensions(child, 0);
+ WM_UpdateDimensions(child, Pass);
}
_SysDebug("%p'%s' Done", Element, Element->DebugName);