pub struct ParticleSystemEditor {Show 23 fields
pub active_asset: Option<ParticleEffectAsset>,
pub undo_redo: UndoRedoStack,
pub selection: SelectionState,
pub preview: PreviewState,
pub active_tab: EditorTab,
pub emitter_panel: EmitterPanelState,
pub preset_panel: PresetPanelState,
pub statistics: StatisticsState,
pub gpu_panel: GpuSettingsPanelState,
pub curve_editor: CurveEditorState,
pub color_picker: ColorPickerState,
pub notifications: NotificationCenter,
pub preset_manager: PresetManager,
pub renderer: ParticleRenderer,
pub sim_runner: SimulationRunner,
pub inspector: EmitterInspectorState,
pub shortcuts: Vec<KeyShortcut>,
pub recent_files: RecentFiles,
pub search_query: String,
pub search_results: Vec<SearchResult>,
pub next_id: u64,
pub dirty: bool,
pub current_file_path: Option<String>,
}Fields§
§active_asset: Option<ParticleEffectAsset>§undo_redo: UndoRedoStack§selection: SelectionState§preview: PreviewState§active_tab: EditorTab§emitter_panel: EmitterPanelState§preset_panel: PresetPanelState§statistics: StatisticsState§gpu_panel: GpuSettingsPanelState§curve_editor: CurveEditorState§color_picker: ColorPickerState§notifications: NotificationCenter§preset_manager: PresetManager§renderer: ParticleRenderer§sim_runner: SimulationRunner§inspector: EmitterInspectorState§shortcuts: Vec<KeyShortcut>§recent_files: RecentFiles§search_query: String§search_results: Vec<SearchResult>§next_id: u64§dirty: bool§current_file_path: Option<String>Implementations§
Source§impl ParticleSystemEditor
impl ParticleSystemEditor
pub fn new() -> Self
pub fn new_system(&mut self, name: &str)
pub fn load_preset(&mut self, preset: EffectPreset)
pub fn add_emitter(&mut self, emitter: ParticleEmitter)
pub fn remove_emitter(&mut self, emitter_id: u64)
pub fn duplicate_emitter(&mut self, emitter_id: u64) -> Option<u64>
pub fn add_force_field(&mut self, kind: ForceFieldKind)
pub fn remove_force_field(&mut self, field_id: u64)
pub fn play(&mut self)
pub fn stop(&mut self)
pub fn pause(&mut self)
pub fn reset(&mut self)
pub fn update(&mut self, dt: f32)
pub fn undo(&mut self)
pub fn redo(&mut self)
pub fn search(&mut self, query: &str)
pub fn validate(&self) -> ValidationResult
pub fn select_all_emitters(&mut self)
pub fn delete_selected(&mut self)
pub fn get_statistics_summary(&self) -> String
pub fn rename_system(&mut self, new_name: &str)
pub fn set_emitter_enabled(&mut self, emitter_id: u64, enabled: bool)
pub fn set_emission_rate(&mut self, emitter_id: u64, rate: f32)
pub fn process_command(&mut self, cmd: EditorCommand)
Trait Implementations§
Source§impl Clone for ParticleSystemEditor
impl Clone for ParticleSystemEditor
Auto Trait Implementations§
impl Freeze for ParticleSystemEditor
impl RefUnwindSafe for ParticleSystemEditor
impl Send for ParticleSystemEditor
impl Sync for ParticleSystemEditor
impl Unpin for ParticleSystemEditor
impl UnsafeUnpin for ParticleSystemEditor
impl UnwindSafe for ParticleSystemEditor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.