From 608494aad09f520e7d78bff9950dbb282f8276a2 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Tue, 29 Oct 2024 09:31:09 +1300 Subject: Add a SetIcon request type This is used to set the window icon at runtime. This commit also exposes the Icon and CursorIcon types in the crate root, as they were previously inaccessible. --- src/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/events.rs') diff --git a/src/events.rs b/src/events.rs index b738e5b..7729a63 100644 --- a/src/events.rs +++ b/src/events.rs @@ -3,7 +3,6 @@ use crate::*; use winit::dpi::PhysicalSize; use winit::event::ElementState; use winit::keyboard::KeyCode; -use winit::window::CursorIcon; use std::path::PathBuf; @@ -17,6 +16,7 @@ pub enum Request { SetVisible(bool), SetPixelScale(u32), SetCursor(Option), + SetIcon(Option), Redraw, CreateWindow(WindowBuilder), CloseWindow, -- cgit v1.2.3-70-g09d2