mirror of https://github.com/adamdruppe/arsd.git
staticlayout
This commit is contained in:
parent
13f9209c60
commit
0453e59f29
11
minigui.d
11
minigui.d
|
@ -677,7 +677,18 @@ class Widget {
|
||||||
|
|
||||||
class VerticalLayout : Widget {
|
class VerticalLayout : Widget {
|
||||||
// intentionally blank - widget's default is vertical layout right now
|
// intentionally blank - widget's default is vertical layout right now
|
||||||
|
this(Widget parent = null) { super(parent); if(parent) this.parentWindow = parent.parentWindow; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class StaticLayout : Widget {
|
||||||
|
this(Widget parent = null) { super(parent); if(parent) this.parentWindow = parent.parentWindow; }
|
||||||
|
override void recomputeChildLayout() {
|
||||||
|
registerMovement();
|
||||||
|
foreach(child; children)
|
||||||
|
child.recomputeChildLayout();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class HorizontalLayout : Widget {
|
class HorizontalLayout : Widget {
|
||||||
this(Widget parent = null) { super(parent); if(parent) this.parentWindow = parent.parentWindow; }
|
this(Widget parent = null) { super(parent); if(parent) this.parentWindow = parent.parentWindow; }
|
||||||
override void recomputeChildLayout() {
|
override void recomputeChildLayout() {
|
||||||
|
|
Loading…
Reference in New Issue