summaryrefslogtreecommitdiffstats
path: root/core/src/event.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-06-11 19:41:05 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-06-11 19:41:05 +0200
commit5d7dcf417c694853a606b8fb0a47a580277fc9c0 (patch)
tree8209e3787ee4f4b8ef028fafc9635b1acf777c75 /core/src/event.rs
parent83296a73ebbb3c02ed63dfb4661056a8a8962267 (diff)
downloadiced-5d7dcf417c694853a606b8fb0a47a580277fc9c0.tar.gz
iced-5d7dcf417c694853a606b8fb0a47a580277fc9c0.tar.bz2
iced-5d7dcf417c694853a606b8fb0a47a580277fc9c0.zip
Introduce `subscription::Event`
... and remove `PlatformSpecific` from `Event`
Diffstat (limited to 'core/src/event.rs')
-rw-r--r--core/src/event.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/core/src/event.rs b/core/src/event.rs
index 953cd73f..b6cf321e 100644
--- a/core/src/event.rs
+++ b/core/src/event.rs
@@ -23,27 +23,6 @@ pub enum Event {
/// A touch event
Touch(touch::Event),
-
- /// A platform specific event
- PlatformSpecific(PlatformSpecific),
-}
-
-/// A platform specific event
-#[derive(Debug, Clone, PartialEq, Eq)]
-pub enum PlatformSpecific {
- /// A MacOS specific event
- MacOS(MacOS),
-}
-
-/// Describes an event specific to MacOS
-#[derive(Debug, Clone, PartialEq, Eq)]
-pub enum MacOS {
- /// Triggered when the app receives an URL from the system
- ///
- /// _**Note:** For this event to be triggered, the executable needs to be properly [bundled]!_
- ///
- /// [bundled]: https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW19
- ReceivedUrl(String),
}
/// The status of an [`Event`] after being processed.