Mercurial > projects > mde
comparison mde/gui/content/Content.d @ 100:0ea4a3e651ae
There is now a position marker for text editing.
Changed the way fonts are configured. Actually, not much of the new way exists yet.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 15 Nov 2008 17:39:14 +0000 |
parents | 5de5810e3516 |
children | 71f0f1f83620 |
comparison
equal
deleted
inserted
replaced
99:5de5810e3516 | 100:0ea4a3e651ae |
---|---|
223 debug logger.trace ("Symbol: {}", sym); | 223 debug logger.trace ("Symbol: {}", sym); |
224 } | 224 } |
225 return v; | 225 return v; |
226 } | 226 } |
227 | 227 |
228 size_t getEditIndex () { | |
229 size_t i = 0; | |
230 for (size_t p = 0; p < pos; ++p) | |
231 if (!(v[p] & 0x80) || v[p] & 0x40) | |
232 ++i; | |
233 return i; | |
234 } | |
235 | |
228 /// Gives all callbacks the modified value | 236 /// Gives all callbacks the modified value |
229 void endEdit () { | 237 void endEdit () { |
230 foreach (cb; cngCb) | 238 foreach (cb; cngCb) |
231 cb(symb, v); | 239 cb(symb, v); |
232 } | 240 } |