-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoxLayout.nimpl
More file actions
48 lines (37 loc) · 1001 Bytes
/
BoxLayout.nimpl
File metadata and controls
48 lines (37 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module BoxLayout;
import Common;
import Widget;
import Layout;
import Enums;
import Object;
namedbits SignalMask extends Layout.SignalMask {
// none extra
}
interface SignalHandler {
// Object:
void destroyed(Object.Handle obj);
void objectNameChanged(string objectName);
// Layout:
// (none)
// none of our own
}
enum Direction {
LeftToRight,
RightToLeft,
TopToBottom,
BottomToTop
}
opaque Handle extends Layout.Handle {
void setDirection(Direction dir);
// item adding:
void addSpacing(int size);
void addStretch(int stretch);
void addWidget(Widget.Handle widget);
void addWidget(Widget.Handle widget, int stretch);
void addWidget(Widget.Handle widget, int stretch, Alignment align);
void addLayout(Layout.Handle layout);
void addLayout(Layout.Handle layout, int stretch);
void setSignalMask(SignalMask mask);
}
Handle create(Direction dir, SignalHandler handler);
Handle createNoHandler(Direction dir);