reorginise
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
use iced::{window, Rectangle};
|
||||
|
||||
/// What a module asks the app to do — the single effect vocabulary shared by
|
||||
/// modules and app, so mapping module output into a `Message` is a plain
|
||||
/// `.map(Message::Effect)` with no mirror enum.
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum ModuleEffect {
|
||||
/// Toggle a popup for the given module id (element id anchors it).
|
||||
RequestPopup(String, String),
|
||||
/// A widget-tree pass reported a module's laid-out bounds; anchor the
|
||||
/// popup there. App-internal, but one effect type keeps routing trivial.
|
||||
BoundsFound(String, Rectangle),
|
||||
/// Request removal of the popup surface.
|
||||
ClosePopup(window::Id),
|
||||
}
|
||||
Reference in New Issue
Block a user