From 7b92bd22e7e99f077b1741c838b63cf0ea507f84 Mon Sep 17 00:00:00 2001 From: veeso Date: Tue, 9 Mar 2021 08:17:46 +0100 Subject: [PATCH] Removed ligatures --- src/ui/layout/view.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/ui/layout/view.rs b/src/ui/layout/view.rs index d1b6eee..629c3a0 100644 --- a/src/ui/layout/view.rs +++ b/src/ui/layout/view.rs @@ -40,30 +40,6 @@ pub struct View { focus_stack: Vec, // Focus stack; used to give focus in case the current element loses focus } -/// ## Ligature -/// -/// A ligature describes how a certain event must be handled by the view when a certain element 'a has focus. -/// The purpose of the ligature is to make a certain event to trigger another component. -/// This means a ligature is an event that if triggered on 'a causes 'b to something else. -/// E.g. 'a -> onKey(KeyCode::Char('e')) -> focus -> 'b -struct Ligature { - origin: String, // Element which causes the Ligature to trigger - event: Msg, // The event the ligature summons - action: Action, // The action which must be performed in case the ligature triggers - target: String, // The element the action is performed for -} - -/// ## Action -/// -/// Action describes an action to perform in case a ligature triggers -pub enum Action { - Active, // Give focus to component - Blur, // Remove focus to component - Show, // Set component to visible - Hide, // Hide component - Umount, // Umount element -} - // -- view impl View {