Commit Graph

23 Commits

Author SHA1 Message Date
Pietro Gagliardi cdd535cc71 Made Stack.SetStretchy() panic on invalid index, ending that group of functions. Also added the tests for those functions who did not have tests already written. 2014-03-11 17:37:04 -04:00
Pietro Gagliardi ce571bad52 Removed error returns from Control.preferredSize() since errors are not going to be returned anymore. 2014-03-09 19:44:41 -04:00
Pietro Gagliardi bca8979b36 More Space() documentation fixes; also a TODO for Space(). 2014-03-07 19:31:57 -05:00
Pietro Gagliardi 9dc6e6f7b3 Pinned (or marked for later pinninig) behavior of various controls; also improved Space()'s documentation. 2014-03-07 19:28:25 -05:00
Pietro Gagliardi d6f289bc86 Split NewStack() into NewHorizontalStack() and NewVerticalStack(). Unexported Orientation and its values accordingly. 2014-03-06 20:30:13 -05:00
Pietro Gagliardi 962a84e056 Fixed Mac OS X control placement flipping. This is done by passing the height of the window around setRect() calls to avoid polling the content view frame each time. 2014-03-03 17:44:03 -05:00
Pietro Gagliardi 69bff124a6 Lock Stack's mutex lock like with all other Controls. 2014-02-25 19:16:26 -05:00
Pietro Gagliardi d55b2a9d18 Fixed up Grid and Space() documentation. 2014-02-25 19:05:01 -05:00
Pietro Gagliardi 700cbbec7e More documentation fixups. 2014-02-25 15:44:57 -05:00
Pietro Gagliardi cd73e42850 Documentation fixups. 2014-02-25 15:43:12 -05:00
Pietro Gagliardi 8440c7a078 Added Space() for padding layouts. 2014-02-25 15:38:04 -05:00
Pietro Gagliardi f839192c8f Made sure Stack.SetStretchy() (like all other layout-changing functions) cannot be called once the parent Window has been opened. 2014-02-24 11:19:57 -05:00
Pietro Gagliardi b716530863 Added Stack.preferredSize() and fixed errors in stack.go. 2014-02-24 11:14:26 -05:00
Pietro Gagliardi 1510af0005 Fixed some compiler errors in the last few commits. 2014-02-24 10:44:20 -05:00
Pietro Gagliardi 1c540117d3 Wrote the new Stack.setRect(). 2014-02-24 10:42:58 -05:00
Pietro Gagliardi a174fbebbd Changed Orientation to a bool to prevent invalid values outright. 2014-02-24 10:30:14 -05:00
Pietro Gagliardi 19f9761a81 Started rewriting Stack to conform to the new layout plan. 2014-02-24 10:29:15 -05:00
Pietro Gagliardi fb82e651a4 Moved to a proper package; main() is now a test and go test -c is used to build. Once I iron out a bug with Windows event handling, I'll add a README. 2014-02-19 11:41:10 -05:00
Pietro Gagliardi 1bb2371e8d More TODO reduction. 2014-02-15 15:38:41 -05:00
Pietro Gagliardi 168b6eb112 Handled all controls's created field. 2014-02-14 20:41:36 -05:00
Pietro Gagliardi 80f43a613a Renamed Control.apply() to Control.make(). 2014-02-14 11:12:08 -05:00
Pietro Gagliardi 9a4e7bf5eb Changed Stack so that controls are added only at creation time. 2014-02-14 10:58:16 -05:00
Pietro Gagliardi 5436f8f5fa Added Stacks of controls. 2014-02-13 17:04:57 -05:00