Commit Graph

213 Commits

Author SHA1 Message Date
34ef447728 Add more notes to canvas/shatter.go
Maybe this should be an issue.
2024-09-12 14:01:40 -04:00
964381eaf4 Replace NASTY ASS map return with iter.Seq in event.Broadcaster 2024-09-12 03:32:03 -04:00
0efaee30cc Apparently go is picky and wierd 2024-09-12 03:29:37 -04:00
45ec1338af You know what, why not. We can have a little iterators as a treat. 2024-09-12 03:26:48 -04:00
6ee6684eea Upgrade to go 1.22
Recently read https://go.dev/blog/loopvar-preview. Nopony should be
using go versions < 1.22
2024-09-12 03:24:06 -04:00
5ae19bd434 Shatter uses slices.Delete properly 2024-09-12 03:06:31 -04:00
1fb7fac874 Change WindowKindToolbar to WindowKindTorn 2024-09-12 03:02:17 -04:00
679ee2c011 Shatter function uses slices package 2024-09-12 00:23:18 -04:00
484ead0f76 More doc comment improvements 2024-09-12 00:21:44 -04:00
018f93cbf9 Add String method to IconSize 2024-09-12 00:02:08 -04:00
8657730c25 Forgot one 2024-09-11 23:56:12 -04:00
9d63e27ab6 Many doc comment fixes 2024-09-11 23:52:36 -04:00
8a3f41c7db The "pressed" tag now references config.ButtonChordInteract 2024-09-11 23:15:10 -04:00
987bb613dd Change the buttons in config to button chords 2024-09-11 22:56:46 -04:00
7bf62c25fe Fix misspelling in config doc comment 2024-09-11 22:42:35 -04:00
763e5db3fc Config now stores common keybinds 2024-09-11 22:41:30 -04:00
dcdb411c0e Modifier keys are now stored using bit flags
Or-ing together constants is cleaner than a struct literal with
booleans
2024-09-11 22:40:19 -04:00
efbdaef390 Add utilities for key/mouse chords to input 2024-09-11 18:44:26 -04:00
8546f11471 Add config package
Closes #6
2024-09-11 01:49:25 -04:00
46f4c50381 Document the window kinds 2024-09-11 01:06:54 -04:00
b88e32fa49 Introduce the concept of window kinds 2024-09-11 00:54:45 -04:00
8f43fa310c Add new child window constructors
Closes #29
2024-09-11 00:21:57 -04:00
20c7e0fdb1 Add FuncCookie
Closes #27
2024-08-20 22:55:31 -04:00
d8a8ad7e0a Re-organize event.go 2024-08-20 22:55:20 -04:00
3feba5f811 event.Cookie is now just io.Closer
Closes #26
2024-08-20 22:50:51 -04:00
75c654d4ae Add error to Window.Close 2024-08-20 22:42:31 -04:00
da38e5411f Add TryClose event to Window
Closes #24
2024-08-20 22:41:41 -04:00
d47b525e42 Add documentation for AttrKind 2024-08-20 21:29:12 -04:00
862e08edf1 Add AttrCursor 2024-08-20 21:25:54 -04:00
47b2231acd Add list of cursor shapes
Progress on #25
2024-08-20 21:22:19 -04:00
b05e1f5d50 Fixed IconListContract being identical to IconListExpand 2024-08-18 16:16:40 -04:00
608a898be3 Fix deadlock in Stop 2024-08-16 17:40:39 -04:00
91a8ae2fa5 Add some new icons
Closes #23
2024-08-16 17:08:28 -04:00
cacfd20a8a Describe IconUnknown 2024-08-16 17:05:11 -04:00
d08fe845fc Add Bounds, InnerBounds to Window
Closes #22
2024-08-16 17:03:24 -04:00
e23a688103 Remove checkbox icons 2024-08-13 12:30:47 -04:00
f4cc47eb16 Fix meaningless panics 2024-08-13 12:17:54 -04:00
43fb3b8feb Remove AttrIcon
- Has no compelling use case (all use cases need the texture size
  which this attribute cannot provide)
- Duplicates functionality
- The rationale for adding it initially was never that strong
2024-08-11 22:23:42 -04:00
a022fa3ad4 Remove the registry mechanism
Nasin has its own registry system that is way more flexible than
what was in this module, that ought to be used instead.
2024-08-11 01:45:51 -04:00
7e3a9759ee AttrIcon has size information 2024-08-10 21:08:09 -04:00
559490e5e8 Remove AttrSet 2024-08-09 23:24:02 -04:00
bc38ea14e1 Add String methods for all types in unit.go 2024-08-07 19:13:17 -04:00
b264e11ea6 Merge style.go and unit.go 2024-08-03 22:09:16 -04:00
a01e5f8716 Change the name of MimeIcon to MimeIconTexture 2024-08-03 22:04:59 -04:00
3de570373f Remove Style as per #21 2024-08-03 22:04:06 -04:00
a1eb53c4db Added functions to get icon textures from the backend 2024-08-03 21:57:10 -04:00
750882eef1 Address icon attribute changes in #21 2024-08-03 21:52:36 -04:00
a98d09d320 golang.org/x/image is no longer a dependency 2024-08-03 21:26:05 -04:00
e6a4b6c70e Change AttrFont to AttrFace as per #21 2024-08-02 19:12:25 -04:00
03fab6fcc0 Remove the font interface and add a Face struct as per #21 2024-08-02 19:08:48 -04:00