diff options
Diffstat (limited to 'src/widgets/mod.rs')
-rw-r--r-- | src/widgets/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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); |