summaryrefslogtreecommitdiff
path: root/redo/control_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/control_windows.go')
-rw-r--r--redo/control_windows.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/redo/control_windows.go b/redo/control_windows.go
index 36f3d4a..f75c765 100644
--- a/redo/control_windows.go
+++ b/redo/control_windows.go
@@ -29,16 +29,7 @@ func newControl(class C.LPCWSTR, style C.DWORD, extstyle C.DWORD) *controlbase {
c.fcontainerHide = func() {
C.ShowWindow(c.hwnd, C.SW_HIDE)
}
- c.fallocate = func(x int, y int, width int, height int, d *sizing) []*allocation {
- // TODO split into its own function
- return []*allocation{&allocation{
- x: x,
- y: y,
- width: width,
- height: height,
- this: c,
- }}
- }
+ c.fallocate = baseallocate(c)
c.fpreferredSize = func(d *sizing) (int, int) {
// TODO
return 75, 23