aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* lay/strain: refactor data structureslayout2Sam Anthony4 days1-50/+66
|
* lay/strain: wrap Solver in private structSam Anthony4 days1-70/+80
| | | | Reduces the number of args passed to private functions.
* lay/strain: replace Solver mutex with channelsSam Anthony4 days3-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 SolverSam Anthony12 days4-28/+88
|
* lay/strain: use synctestSam Anthony12 days1-33/+37
|
* lay/strain: remove TODOSam Anthony12 days1-1/+0
| | | | | Decided it's better to log an error and continue rather than abort early.
* lay/strain: simplify Solver internal synchronizationSam Anthony12 days3-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 Anthony12 days3-25/+131
|
* fix compiler errorsSam Anthony12 days3-10/+11
|
* style: unit conversionSam Anthony12 days7-8/+465
| | | | | Implemented the golang.org/x/exp/shiny/unit.Converter interface on style.Style.
* create lay/strain packageSam Anthony13 days13-36/+477
| | | | | The lay/strain package uses the Cassowary algorithm to solve systems of layout constraints.
* Merge branch 'modules' into layout2Sam Anthony2026-02-252-0/+12
|\
| * mod tidySam Anthony2026-02-252-0/+12
| |
* | update examples to use new Env interfaceSam Anthony2026-02-258-18/+20
| |
* | Merge branch 'modules' into layout2Sam Anthony2026-02-258-6/+75
|\|
| * create modules for library and examplesSam Anthony2026-02-258-0/+84
| |
* | win: implement new Env interfaceSam Anthony2026-02-252-76/+102
| |
* | mux: implement new Env interfaceSam Anthony2026-02-241-82/+87
| |
* | add layout constraints and abs/rel unitsSam Anthony2026-02-243-0/+75
| |
* | add Impose() Constraint chan to EnvSam Anthony2026-02-241-20/+30
| |
* | create go moduleSam Anthony2026-02-243-1/+16
|/
* Merge pull request #7 from Id405/without-monitorHEADmasterMichal Štrba2019-05-221-4/+34
|\ | | | | Adding the options borderless and maximized to win
| * fixed formatting8o7wer2019-05-201-7/+7
| |
| * Update win.goId4052019-05-101-3/+3
| |
| * Update win.goId4052019-05-101-2/+2
| |
| * Delete monitor.goId4052019-05-101-42/+0
| |
| * Fixing w.ratio going under zero and causing a divide by zero exception8o7wer2019-05-101-0/+30
| | | | | | | | Adds Borderless and Maximized options
| * Adds the ability to get monitor information through win.GetPrimaryMonitor()8o7wer2019-05-101-0/+42
| |
| * Revert "Added the ability to get width, height, and refresh rate from the ↵8o7wer2019-05-102-72/+0
| | | | | | | | | | | | monitor through win.GetPrimaryMonitor()." This reverts commit dc5d91b238e9260b2e61224fc8b8cabbb3440323.
| * Added the ability to get width, height, and refresh rate from the monitor ↵8o7wer2019-05-102-0/+72
|/ | | | | | through win.GetPrimaryMonitor(). Added the borderless and maximized options.
* README: add the Credits section (sorry Tori)faiface2019-05-091-0/+4
|
* README: fix wordfaiface2019-05-091-1/+1
|
* README: update events infofaiface2019-05-091-46/+36
|
* change event strings to event typesfaiface2019-05-0911-195/+212
|
* examples/imageviewer: rename DrawText to MakeTextImagefaiface2019-05-074-5/+5
|
* README: change 'package' to 'foundation' in thefirst linefaiface2019-05-071-1/+1
|
* fix event docfaiface2019-05-071-3/+3
|
* mux: simplify delivering the last resize eventfaiface2019-05-071-11/+8
|
* minorfaiface2019-05-071-1/+2
|
* typofaiface2019-05-071-1/+1
|
* add Mux docsfaiface2019-05-071-0/+10
|
* minorfaiface2019-05-075-40/+40
|
* correctly document the resize eventfaiface2019-05-072-3/+5
|
* mux: make sure to always correctly deliver resize eventfaiface2019-05-071-3/+3
|
* mux: fix not delivering resize correctly sometimesfaiface2019-05-071-0/+13
|
* win: another hiDPI fixfaiface2019-05-071-1/+1
|
* README: add 'chat on discord' badgefaiface2019-05-061-1/+1
|
* README: better wordfaiface2019-05-061-1/+1
|
* README: add 'A note on race conditions'faiface2019-05-061-0/+34
|
* add mouse scrolling docsfaiface2019-05-063-3/+6
|