diff options
| author | Pietro Gagliardi <[email protected]> | 2015-12-11 20:37:59 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-12-11 20:37:59 -0500 |
| commit | f8e3f12ab02b528f2a05a4f713d7af7ea8e44b42 (patch) | |
| tree | 82dedf4d37f0f6d31e88ebb2ca1ce6499dead261 /prev/container.go | |
| parent | e34c561ed5bedeb180437ec165882b98d70d38c1 (diff) | |
LET'S GET THIS FINAL REWRITE EVER STARTED
Diffstat (limited to 'prev/container.go')
| -rw-r--r-- | prev/container.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/prev/container.go b/prev/container.go new file mode 100644 index 0000000..27674d0 --- /dev/null +++ b/prev/container.go @@ -0,0 +1,26 @@ +// 25 june 2014 + +package ui + +type sizingbase struct { + xpadding int + ypadding int +} + +// The container type, which is defined per-platform, is an internal Control that is only used to house other Controls from the underlying UI toolkit's point of view + +/* TODO +func (c *container) resize(x, y, width, height int) { + if c.child == nil { // no children; nothing to do + return + } + d := c.beginResize() + allocations := c.child.allocate(x+d.xmargin, y+d.ymargintop, + width-(2*d.xmargin), height-d.ymargintop-d.ymarginbottom, d) + c.translateAllocationCoords(allocations, width, height) + // move in reverse so as to approximate right->left order so neighbors make sense + for i := len(allocations) - 1; i >= 0; i-- { + allocations[i].this.commitResize(allocations[i], d) + } +} +*/ |
