| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | lay/strain: refactor data structureslayout2 | Sam Anthony | 4 days | 1 | -50/+66 |
| | | |||||
| * | lay/strain: wrap Solver in private struct | Sam Anthony | 4 days | 1 | -70/+80 |
| | | | | | Reduces the number of args passed to private functions. | ||||
| * | lay/strain: replace Solver mutex with channels | Sam Anthony | 4 days | 3 | -109/+239 |
| | | | | | | | | | | Partially reverts 483236742ddcd7883b5f9cff92244129274aa79c. Solver still closes itself automatically, but reverted to using request/reply channels. Mutex was becoming annoying to manage, as expected. TODO: TestRows fails intermittently due to constraint channels not being flushed when Solve() is called. | ||||
| * | lay/strain: add default constraints to Solver | Sam Anthony | 12 days | 4 | -28/+88 |
| | | |||||
| * | lay/strain: use synctest | Sam Anthony | 12 days | 1 | -33/+37 |
| | | |||||
| * | lay/strain: remove TODO | Sam Anthony | 12 days | 1 | -1/+0 |
| | | | | | | Decided it's better to log an error and continue rather than abort early. | ||||
| * | lay/strain: simplify Solver internal synchronization | Sam Anthony | 12 days | 3 | -124/+135 |
| | | | | | | | | | Replaced the AddConstraint() and Solve() methods' request/reply channels, used a mutex instread. Solver now closes the fieldConstrs channel automatically; removed the Close() method. Generally tidied up. | ||||
| * | lay/strain: represent rectangles as (origin, size) | Sam Anthony | 12 days | 3 | -25/+131 |
| | | |||||
| * | fix compiler errors | Sam Anthony | 12 days | 3 | -10/+11 |
| | | |||||
| * | style: unit conversion | Sam Anthony | 12 days | 7 | -8/+465 |
| | | | | | | Implemented the golang.org/x/exp/shiny/unit.Converter interface on style.Style. | ||||
| * | create lay/strain package | Sam Anthony | 13 days | 13 | -36/+477 |
| | | | | | | The lay/strain package uses the Cassowary algorithm to solve systems of layout constraints. | ||||
| * | Merge branch 'modules' into layout2 | Sam Anthony | 2026-02-25 | 2 | -0/+12 |
| |\ | |||||
| | * | mod tidy | Sam Anthony | 2026-02-25 | 2 | -0/+12 |
| | | | |||||
| * | | update examples to use new Env interface | Sam Anthony | 2026-02-25 | 8 | -18/+20 |
| | | | |||||
| * | | Merge branch 'modules' into layout2 | Sam Anthony | 2026-02-25 | 8 | -6/+75 |
| |\| | |||||
| | * | create modules for library and examples | Sam Anthony | 2026-02-25 | 8 | -0/+84 |
| | | | |||||
| * | | win: implement new Env interface | Sam Anthony | 2026-02-25 | 2 | -76/+102 |
| | | | |||||
| * | | mux: implement new Env interface | Sam Anthony | 2026-02-24 | 1 | -82/+87 |
| | | | |||||
| * | | add layout constraints and abs/rel units | Sam Anthony | 2026-02-24 | 3 | -0/+75 |
| | | | |||||
| * | | add Impose() Constraint chan to Env | Sam Anthony | 2026-02-24 | 1 | -20/+30 |
| | | | |||||
| * | | create go module | Sam Anthony | 2026-02-24 | 3 | -1/+16 |
| |/ | |||||
| * | Merge pull request #7 from Id405/without-monitorHEADmaster | Michal Štrba | 2019-05-22 | 1 | -4/+34 |
| |\ | | | | | Adding the options borderless and maximized to win | ||||
| | * | fixed formatting | 8o7wer | 2019-05-20 | 1 | -7/+7 |
| | | | |||||
| | * | Update win.go | Id405 | 2019-05-10 | 1 | -3/+3 |
| | | | |||||
| | * | Update win.go | Id405 | 2019-05-10 | 1 | -2/+2 |
| | | | |||||
| | * | Delete monitor.go | Id405 | 2019-05-10 | 1 | -42/+0 |
| | | | |||||
| | * | Fixing w.ratio going under zero and causing a divide by zero exception | 8o7wer | 2019-05-10 | 1 | -0/+30 |
| | | | | | | | | | Adds Borderless and Maximized options | ||||
| | * | Adds the ability to get monitor information through win.GetPrimaryMonitor() | 8o7wer | 2019-05-10 | 1 | -0/+42 |
| | | | |||||
| | * | Revert "Added the ability to get width, height, and refresh rate from the ↵ | 8o7wer | 2019-05-10 | 2 | -72/+0 |
| | | | | | | | | | | | | | monitor through win.GetPrimaryMonitor()." This reverts commit dc5d91b238e9260b2e61224fc8b8cabbb3440323. | ||||
| | * | Added the ability to get width, height, and refresh rate from the monitor ↵ | 8o7wer | 2019-05-10 | 2 | -0/+72 |
| |/ | | | | | | through win.GetPrimaryMonitor(). Added the borderless and maximized options. | ||||
| * | README: add the Credits section (sorry Tori) | faiface | 2019-05-09 | 1 | -0/+4 |
| | | |||||
| * | README: fix word | faiface | 2019-05-09 | 1 | -1/+1 |
| | | |||||
| * | README: update events info | faiface | 2019-05-09 | 1 | -46/+36 |
| | | |||||
| * | change event strings to event types | faiface | 2019-05-09 | 11 | -195/+212 |
| | | |||||
| * | examples/imageviewer: rename DrawText to MakeTextImage | faiface | 2019-05-07 | 4 | -5/+5 |
| | | |||||
| * | README: change 'package' to 'foundation' in thefirst line | faiface | 2019-05-07 | 1 | -1/+1 |
| | | |||||
| * | fix event doc | faiface | 2019-05-07 | 1 | -3/+3 |
| | | |||||
| * | mux: simplify delivering the last resize event | faiface | 2019-05-07 | 1 | -11/+8 |
| | | |||||
| * | minor | faiface | 2019-05-07 | 1 | -1/+2 |
| | | |||||
| * | typo | faiface | 2019-05-07 | 1 | -1/+1 |
| | | |||||
| * | add Mux docs | faiface | 2019-05-07 | 1 | -0/+10 |
| | | |||||
| * | minor | faiface | 2019-05-07 | 5 | -40/+40 |
| | | |||||
| * | correctly document the resize event | faiface | 2019-05-07 | 2 | -3/+5 |
| | | |||||
| * | mux: make sure to always correctly deliver resize event | faiface | 2019-05-07 | 1 | -3/+3 |
| | | |||||
| * | mux: fix not delivering resize correctly sometimes | faiface | 2019-05-07 | 1 | -0/+13 |
| | | |||||
| * | win: another hiDPI fix | faiface | 2019-05-07 | 1 | -1/+1 |
| | | |||||
| * | README: add 'chat on discord' badge | faiface | 2019-05-06 | 1 | -1/+1 |
| | | |||||
| * | README: better word | faiface | 2019-05-06 | 1 | -1/+1 |
| | | |||||
| * | README: add 'A note on race conditions' | faiface | 2019-05-06 | 1 | -0/+34 |
| | | |||||
| * | add mouse scrolling docs | faiface | 2019-05-06 | 3 | -3/+6 |
| | | |||||