summaryrefslogtreecommitdiff
path: root/src/events.rs
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2024-10-29 09:31:09 +1300
committerBen Bridle <bridle.benjamin@gmail.com>2024-10-29 09:40:29 +1300
commit608494aad09f520e7d78bff9950dbb282f8276a2 (patch)
tree543cb64ac945d358cbf646544c5aa663db083d6c /src/events.rs
parent47a754a7beb8741bfe0469236036cb8023043cd8 (diff)
downloadphosphor-608494aad09f520e7d78bff9950dbb282f8276a2.zip
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.
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs2
1 files changed, 1 insertions, 1 deletions
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<CursorIcon>),
+ SetIcon(Option<Icon>),
Redraw,
CreateWindow(WindowBuilder),
CloseWindow,