From c2d89772336c52cce0b629f6ffc506eb1f221867 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Thu, 21 Nov 2024 12:33:58 -0500 Subject: Thu Nov 21 12:33:58 PM EST 2024 --- src/widgets/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/widgets/mod.rs') diff --git a/src/widgets/mod.rs b/src/widgets/mod.rs index 46bfa20..7751b2d 100644 --- a/src/widgets/mod.rs +++ b/src/widgets/mod.rs @@ -17,5 +17,8 @@ pub trait TerminalWidget: DowncastSync { /// Called when a terminal input event is invoked to update any state accordingly fn handle_events(&mut self, _event: &TerminalInputEvent, _commands: &mut Commands) {} + + /// Called every frame during the Update schedule + fn update(&mut self, _time: &Time, _commands: &mut Commands) {} } impl_downcast!(sync TerminalWidget); -- cgit v1.2.3