pub struct LevelStreamingEditorUiState {Show 16 fields
pub active_panel: EditorPanel,
pub selected_level_ids: HashSet<u64>,
pub search_filter: String,
pub state_filter: Option<StreamingState>,
pub sort_by_distance: bool,
pub sort_by_memory: bool,
pub show_only_visible: bool,
pub timeline_scroll_x: f32,
pub timeline_zoom: f32,
pub map_scroll: Vec2,
pub map_zoom: f32,
pub is_editing_volume: bool,
pub editing_volume_id: Option<u64>,
pub simulation_panel_open: bool,
pub budget_panel_open: bool,
pub dep_graph_panel_open: bool,
}Fields§
§active_panel: EditorPanel§selected_level_ids: HashSet<u64>§search_filter: String§state_filter: Option<StreamingState>§sort_by_distance: bool§sort_by_memory: bool§show_only_visible: bool§timeline_scroll_x: f32§timeline_zoom: f32§map_scroll: Vec2§map_zoom: f32§is_editing_volume: bool§editing_volume_id: Option<u64>§simulation_panel_open: bool§budget_panel_open: bool§dep_graph_panel_open: boolImplementations§
Source§impl LevelStreamingEditorUiState
impl LevelStreamingEditorUiState
pub fn new() -> Self
pub fn select_level(&mut self, id: u64, multi_select: bool)
pub fn deselect_level(&mut self, id: u64)
pub fn is_level_selected(&self, id: u64) -> bool
pub fn filtered_levels<'a>( &'a self, levels: &'a [StreamingLevel], ) -> Vec<&'a StreamingLevel>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LevelStreamingEditorUiState
impl RefUnwindSafe for LevelStreamingEditorUiState
impl Send for LevelStreamingEditorUiState
impl Sync for LevelStreamingEditorUiState
impl Unpin for LevelStreamingEditorUiState
impl UnsafeUnpin for LevelStreamingEditorUiState
impl UnwindSafe for LevelStreamingEditorUiState
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.