git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added sanity checking to kernel vnsprintf
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin2_src
/
WM
/
wm.c
diff --git
a/Usermode/Applications/axwin2_src/WM/wm.c
b/Usermode/Applications/axwin2_src/WM/wm.c
index
a8fc96d
..
9bd5aa4
100644
(file)
--- a/
Usermode/Applications/axwin2_src/WM/wm.c
+++ b/
Usermode/Applications/axwin2_src/WM/wm.c
@@
-6,7
+6,7
@@
*/
#include "common.h"
#include <stdlib.h>
*/
#include "common.h"
#include <stdlib.h>
-#include <string
s
.h>
+#include <string.h>
#include "wm.h"
// === IMPORTS ===
#include "wm.h"
// === IMPORTS ===
@@
-90,6
+90,10
@@
void WM_SetSize(tElement *Element, int Size)
return ;
}
return ;
}
+/**
+ * \brief Set the text field of an element
+ * \note Used for the image path on ELETYPE_IMAGE
+ */
void WM_SetText(tElement *Element, char *Text)
{
if(!Element) return ;
void WM_SetText(tElement *Element, char *Text)
{
if(!Element) return ;
@@
-125,6
+129,11
@@
void WM_SetText(tElement *Element, char *Text)
}
// --- Pre-Rendering ---
}
// --- Pre-Rendering ---
+/**
+ * \name Pre-Rendering
+ * \brief Updates the element positions and sizes
+ * \{
+ */
/**
* \brief Updates the dimensions of an element
*
/**
* \brief Updates the dimensions of an element
*
@@
-286,7
+295,6
@@
void WM_UpdatePosition(tElement *Element)
);
}
);
}
-
/**
* \brief Update the minimum dimensions of the element
* \note Called after a child's minimum dimensions have changed
/**
* \brief Update the minimum dimensions of the element
* \note Called after a child's minimum dimensions have changed
@@
-331,6
+339,9
@@
void WM_UpdateMinDims(tElement *Element)
// Recurse upwards
WM_UpdateMinDims(Element->Parent);
}
// Recurse upwards
WM_UpdateMinDims(Element->Parent);
}
+/**
+ * \}
+ */
// --- Render ---
void WM_RenderWidget(tElement *Element)
// --- Render ---
void WM_RenderWidget(tElement *Element)
UCC
git Repository :: git.ucc.asn.au