summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar JL710 <76447362+JL710@users.noreply.github.com>2024-10-11 11:51:44 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-06 23:20:51 +0100
commitca8aaf9b8daa3d8b925165fb912af425438d4e79 (patch)
treed6596358956f2d1df41caa69f31ea1273d775464 /winit
parent717b296cdb17f22b410e2985b58e73af2199bfcc (diff)
downloadiced-ca8aaf9b8daa3d8b925165fb912af425438d4e79.tar.gz
iced-ca8aaf9b8daa3d8b925165fb912af425438d4e79.tar.bz2
iced-ca8aaf9b8daa3d8b925165fb912af425438d4e79.zip
add Task and Action for changing a window title
Diffstat (limited to 'winit')
-rw-r--r--winit/src/program.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs
index cc19a4e0..052b36b0 100644
--- a/winit/src/program.rs
+++ b/winit/src/program.rs
@@ -1291,6 +1291,11 @@ fn run_action<P, C>(
);
}
}
+ window::Action::ChangeTitle(id, title) => {
+ if let Some(window) = window_manager.get_mut(id) {
+ window.raw.set_title(&title);
+ }
+ }
window::Action::GetSize(id, channel) => {
if let Some(window) = window_manager.get_mut(id) {
let size = window