Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shiny: overhaul api for v4 #198

Merged
merged 32 commits into from
Apr 9, 2022
Merged

shiny: overhaul api for v4 #198

merged 32 commits into from
Apr 9, 2022

Conversation

200sc
Copy link
Contributor

@200sc 200sc commented Mar 29, 2022

This still needs work on every non-windows driver, as well as adjustment in window.Window to only include those things all default drivers have.

200sc and others added 28 commits March 26, 2022 17:12
This still needs work on every non-windows driver, as well as adjustment in window.Window to only include those things all default drivers have.
This is a small api correction to ensure consumers cannot try to send on receive only channels.
set tray icon is still in progress.
SetIcon is much more likely to be a thing a real application will want to call over using tray icons. In addition, there are existing libraries (beeep) that do notifications well already.
Inexpliciably, this appears to do nothing.
this was a failed attempt to make SetIcon work on osx
We do not use this and if we ever did, I do not know what we would do with the knowledge that a os level back buffer was preserved or not.
@200sc 200sc marked this pull request as ready for review April 9, 2022 14:43
@codecov-commenter
Copy link

codecov-commenter commented Apr 9, 2022

Codecov Report

Merging #198 (eeb19dc) into release/v4.0.0 (38f3cc4) will increase coverage by 0.71%.
The diff coverage is 80.00%.

@@                Coverage Diff                 @@
##           release/v4.0.0     #198      +/-   ##
==================================================
+ Coverage           91.75%   92.47%   +0.71%     
==================================================
  Files                 138      137       -1     
  Lines                6222     6149      -73     
==================================================
- Hits                 5709     5686      -23     
+ Misses                449      406      -43     
+ Partials               64       57       -7     
Impacted Files Coverage Δ
default.go 0.00% <ø> (ø)
inputTracker.go 69.23% <0.00%> (+7.16%) ⬆️
event/bind.go 97.01% <60.00%> (-2.99%) ⬇️
lifecycle.go 72.05% <87.50%> (ø)
drawLoop.go 39.75% <100.00%> (ø)
event/trigger.go 100.00% <100.00%> (ø)
inputLoop.go 41.42% <100.00%> (ø)
window.go 60.00% <100.00%> (+0.35%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

This was referenced Apr 9, 2022

// BUG: this doesn't work, and it doesn't error either
func (w *Window) SetIcon(img image.Image) error {
w.window.SetIcon([]image.Image{img})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: the documentation suggests that you can call SetIcon from outside of the main thread, but maybe they are lying? Try sending this through the update window request channel.

@200sc 200sc merged commit 625f93f into release/v4.0.0 Apr 9, 2022
@200sc 200sc deleted the feature/v4-drivers branch April 9, 2022 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants