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/window_builder.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/window_builder.rs') diff --git a/src/window_builder.rs b/src/window_builder.rs index 55c99f2..21787e6 100644 --- a/src/window_builder.rs +++ b/src/window_builder.rs @@ -1,7 +1,5 @@ use crate::*; -use winit::window::{Cursor, Icon}; - pub struct WindowBuilder { pub program: Box, @@ -9,8 +7,8 @@ pub struct WindowBuilder { pub dimensions: Option, pub scale: u32, pub title: Option, + pub cursor: Option, pub icon: Option, - pub cursor: Option, pub fullscreen: bool, } @@ -22,8 +20,8 @@ impl WindowBuilder { dimensions: None, scale: 1, title: None, - icon: None, cursor: None, + icon: None, fullscreen: false, } } -- cgit v1.2.3-70-g09d2