Jeck - Begun documentation for the WGui classes. Also updated doxygen config to support STL.

This commit is contained in:
wagic.jeck
2011-01-31 10:24:06 +00:00
parent 8af5870d48
commit c68a989915
3 changed files with 170 additions and 23 deletions
+10 -2
View File
@@ -7,7 +7,11 @@
#include "TranslateKeys.h"
#include <hge/hgedistort.h>
//WGuiBase
/**
Provides an interface to retrieve some standardized colors. The idea here is that a child of WGuiBase
could override, for example, the color of the background based on whether or notit is highlighted
(as WGuiButton does), or be given a particular styling with the WDecoStyled decorator.
*/
PIXEL_TYPE WGuiBase::getColor(int type)
{
switch (type)
@@ -34,7 +38,10 @@ PIXEL_TYPE WGuiBase::getColor(int type)
}
return ARGB(150,50,50,50);
}
/**
Renders the backdrop of a WGui item.
Meant to be overriden in subclasses that require a unique backdrop.
*/
void WGuiBase::renderBack(WGuiBase * it)
{
if (!it) return;
@@ -44,6 +51,7 @@ void WGuiBase::renderBack(WGuiBase * it)
else
subBack(it);
}
WGuiBase::CONFIRM_TYPE WGuiBase::needsConfirm()
{
for (vector<WGuiBase*>::iterator it = items.begin(); it != items.end(); ++it)