Mercurial > projects > mde
comparison mde/setup/InitStage.d @ 111:1655693702fc
Resolved ticket #4, allowing widgets to reload strings and recalculate sizes mid-run.
Removed prefinalize and finalize and added setup as the new second initialization phase, which can be re-run.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 06 Dec 2008 17:41:42 +0000 |
parents | 2a364c7d82c9 |
children | 264028f4115a |
comparison
equal
deleted
inserted
replaced
110:6acd96f8685f | 111:1655693702fc |
---|---|
25 import tango.util.log.Log : Log, Logger; | 25 import tango.util.log.Log : Log, Logger; |
26 | 26 |
27 // use as hash type for better performance than char[] | 27 // use as hash type for better performance than char[] |
28 alias uint StageName; | 28 alias uint StageName; |
29 StageName toStageName (char[4] x) { | 29 StageName toStageName (char[4] x) { |
30 return *cast(uint*) x.ptr; // NOTE - little hack to read as a uint | 30 return *cast(uint*) x.ptr; // convert to a unique uint |
31 } | 31 } |
32 | 32 |
33 /** Initialization and cleanup functions for one stage. | 33 /** Initialization and cleanup functions for one stage. |
34 * | 34 * |
35 * The init and cleanup functions should return the new StageState. Returning ERROR does not | 35 * The init and cleanup functions should return the new StageState. Returning ERROR does not |