pub struct EventSystemEditor {Show 27 fields
pub library: EventLibrary,
pub graphs: Vec<EventGraph>,
pub active_graph: usize,
pub listeners: Vec<EventListener>,
pub publishers: Vec<EventPublisher>,
pub channels: Vec<EventChannel>,
pub trace: EventTrace,
pub queue_vis: EventQueueVisualizer,
pub statistics: EventStatistics,
pub active_panel: EventEditorPanel,
pub selected_event: Option<u64>,
pub selected_node: Option<u64>,
pub selected_listener: Option<usize>,
pub selected_publisher: Option<usize>,
pub search_query: String,
pub category_filter: Option<String>,
pub codegen_language: CodeGenLanguage,
pub generated_code: String,
pub zoom: f32,
pub pan: Vec2,
pub simulation_time_ms: f64,
pub auto_trace: bool,
pub trace_max_entries: usize,
pub show_cancelled: bool,
pub show_consumed: bool,
pub history: Vec<Vec<EventGraphNode>>,
pub history_pos: usize,
}Fields§
§library: EventLibrary§graphs: Vec<EventGraph>§active_graph: usize§listeners: Vec<EventListener>§publishers: Vec<EventPublisher>§channels: Vec<EventChannel>§trace: EventTrace§queue_vis: EventQueueVisualizer§statistics: EventStatistics§active_panel: EventEditorPanel§selected_event: Option<u64>§selected_node: Option<u64>§selected_listener: Option<usize>§selected_publisher: Option<usize>§search_query: String§category_filter: Option<String>§codegen_language: CodeGenLanguage§generated_code: String§zoom: f32§pan: Vec2§simulation_time_ms: f64§auto_trace: bool§trace_max_entries: usize§show_cancelled: bool§show_consumed: bool§history: Vec<Vec<EventGraphNode>>§history_pos: usizeImplementations§
Source§impl EventSystemEditor
impl EventSystemEditor
pub fn active_graph(&self) -> &EventGraph
pub fn active_graph_mut(&mut self) -> &mut EventGraph
pub fn simulate_tick(&mut self, dt_ms: f64)
pub fn generate_code(&mut self)
pub fn filtered_events(&self) -> Vec<&EventDefinition>
pub fn listeners_for_event(&self, event_id: u64) -> Vec<&EventListener>
pub fn snapshot(&mut self)
pub fn undo(&mut self)
pub fn redo(&mut self)
Trait Implementations§
Source§impl Debug for EventSystemEditor
impl Debug for EventSystemEditor
Auto Trait Implementations§
impl Freeze for EventSystemEditor
impl RefUnwindSafe for EventSystemEditor
impl Send for EventSystemEditor
impl Sync for EventSystemEditor
impl Unpin for EventSystemEditor
impl UnsafeUnpin for EventSystemEditor
impl UnwindSafe for EventSystemEditor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.