Mercurial > projects > mde
comparison mde/imde.d @ 123:d3b2cefd46c9
minSizeChange() allows run-time changes to widgets' minimal size (except for shrinking in a GridLayoutWidget).
FloatingAreaWidget: correct resize limiters
AStringContent: allows space and ignores modifier keys
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sun, 04 Jan 2009 17:35:15 +0000 |
parents | aba2dd815a1f |
children | 3e648bc53bde |
comparison
equal
deleted
inserted
replaced
122:f96e8d18c00a | 123:d3b2cefd46c9 |
---|---|
24 static this () { | 24 static this () { |
25 // Make these available to all importing modules' static CTORs, as well as during init. | 25 // Make these available to all importing modules' static CTORs, as well as during init. |
26 input = new Input(); | 26 input = new Input(); |
27 mainSchedule = new Scheduler; | 27 mainSchedule = new Scheduler; |
28 | 28 |
29 quit = (new EventContent("quit")).addCallback ((Content){ | 29 quit = new EventContent("quit"); |
30 quit.addCallback ((Content){ | |
30 run = false; | 31 run = false; |
31 }); | 32 }); |
32 menu = new ContentList ("menu",[quit, | 33 menu = new ContentList ("menu",[cast(Content) quit, |
33 new EventContent("a"), | 34 new EventContent("a"), |
34 new ContentList("subMenu",[ | 35 new ContentList("subMenu",[ |
35 new EventContent("b"), | 36 new EventContent("b"), |
36 new EventContent("c")]) | 37 new EventContent("c")]) |
37 ]); | 38 ]); |