-
Notifications
You must be signed in to change notification settings - Fork 25
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
Support custom window icon #44
Comments
Probably the best approach is to add a method providing the icon data to the |
We now have We should allow re-use of the image loading code in the form of a resource manager, updating the image code to use that: // with singleton instances for T == Image, ...
ResourceManager<T> {
// deduplicate path(?) and load:
fn load(&mut self, path: PathBuf) -> Result<ResId, Error>;
fn free(...);
fn get(&self, id: ResId) -> Option<&T>;
} |
In this instance it isn't worth worrying about deduplication, though I did add a |
API: https://docs.rs/winit/0.20.0/winit/window/struct.Icon.html
The text was updated successfully, but these errors were encountered: