diff options
author | 2021-01-15 22:40:16 +0800 | |
---|---|---|
committer | 2021-01-15 22:40:16 +0800 | |
commit | 0b140488b425a7d1fd45ca41592de25b28d3ac17 (patch) | |
tree | c9293863181f7a746822602480fcc8e11e7ce663 /native/src/window | |
parent | 0646280d674e02fb11fcba0dc1c9b2d3d4d8a0fe (diff) | |
download | iced-0b140488b425a7d1fd45ca41592de25b28d3ac17.tar.gz iced-0b140488b425a7d1fd45ca41592de25b28d3ac17.tar.bz2 iced-0b140488b425a7d1fd45ca41592de25b28d3ac17.zip |
add focus event
Diffstat (limited to 'native/src/window')
-rw-r--r-- | native/src/window/event.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/native/src/window/event.rs b/native/src/window/event.rs index b177141a..d649760b 100644 --- a/native/src/window/event.rs +++ b/native/src/window/event.rs @@ -29,4 +29,7 @@ pub enum Event { /// There will be a single `FilesHoveredLeft` event triggered even if /// multiple files were hovered. FilesHoveredLeft, + + /// A window was focused or not + Focused(bool), } |