From 77bf566ebbcb62acd4d08d905d9542d6ff9b6b80 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 30 Aug 2014 23:02:02 -0400 Subject: ...in with the new. --- control.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 control.go (limited to 'control.go') diff --git a/control.go b/control.go new file mode 100644 index 0000000..0358965 --- /dev/null +++ b/control.go @@ -0,0 +1,20 @@ +// 30 july 2014 + +package ui + +// Control represents a control. +type Control interface { + setParent(p *controlParent) // controlParent defined per-platform + controlSizing +} + +// this is the same across all platforms +func baseallocate(c Control, x int, y int, width int, height int, d *sizing) []*allocation { + return []*allocation{&allocation{ + x: x, + y: y, + width: width, + height: height, + this: c, + }} +} -- cgit v1.2.3