use std::fmt::Debug;
use crate::{DialogEngine, EditorBuffer, EditorEngine, FlexBoxId, GlobalData, HasFocus};
pub struct RenderArgs<'a> {
pub engine: &'a mut EditorEngine,
pub buffer: &'a EditorBuffer,
pub has_focus: &'a mut HasFocus,
}
pub struct EditorArgsMut<'a> {
pub engine: &'a mut EditorEngine,
pub buffer: &'a mut EditorBuffer,
}
pub struct DialogEngineArgs<'a, S, AS>
where
S: Debug + Default + Clone + Sync + Send,
AS: Debug + Default + Clone + Sync + Send,
{
pub self_id: FlexBoxId,
pub global_data: &'a mut GlobalData<S, AS>,
pub engine: &'a mut DialogEngine,
pub has_focus: &'a mut HasFocus,
}