pub struct UiState {
pub selected_category: usize,
pub selected_distro: usize,
pub scroll_offset: usize,
pub mode: UiMode,
pub status_message: Option<&'static str>,
pub selected_iso: usize,
pub iso_count: usize,
}Expand description
UI state for navigation
Fields§
§selected_category: usizeCurrently selected category index
selected_distro: usizeCurrently selected distro index within category
scroll_offset: usizeScroll offset for distro list
mode: UiModeCurrent UI mode
status_message: Option<&'static str>Status message to display
selected_iso: usizeSelected ISO index in manage view
iso_count: usizeTotal ISO count (cached from storage)
Implementations§
Source§impl UiState
impl UiState
Sourcepub const VISIBLE_ITEMS: usize = 8usize
pub const VISIBLE_ITEMS: usize = 8usize
Maximum visible items in distro list
Sourcepub fn next_category(&mut self, num_categories: usize)
pub fn next_category(&mut self, num_categories: usize)
Move to next category
Sourcepub fn prev_category(&mut self)
pub fn prev_category(&mut self)
Move to previous category
Sourcepub fn next_distro(&mut self, num_distros: usize)
pub fn next_distro(&mut self, num_distros: usize)
Move to next distro in list
Sourcepub fn prev_distro(&mut self)
pub fn prev_distro(&mut self)
Move to previous distro in list
Sourcepub fn start_download(&mut self)
pub fn start_download(&mut self)
Start download mode
Sourcepub fn show_confirm(&mut self)
pub fn show_confirm(&mut self)
Show confirmation dialog
Sourcepub fn return_to_browse(&mut self)
pub fn return_to_browse(&mut self)
Return to browse mode
Sourcepub fn show_result(&mut self, message: &'static str)
pub fn show_result(&mut self, message: &'static str)
Show result mode
Sourcepub fn current_category(&self) -> DistroCategory
pub fn current_category(&self) -> DistroCategory
Get current category
Sourcepub fn set_status(&mut self, message: &'static str)
pub fn set_status(&mut self, message: &'static str)
Set status message
Sourcepub fn clear_status(&mut self)
pub fn clear_status(&mut self)
Clear status message
Sourcepub fn is_browsing(&self) -> bool
pub fn is_browsing(&self) -> bool
Check if in browsable state
Sourcepub fn is_confirming(&self) -> bool
pub fn is_confirming(&self) -> bool
Check if showing confirmation
Sourcepub fn is_downloading(&self) -> bool
pub fn is_downloading(&self) -> bool
Check if downloading
Sourcepub fn show_manage(&mut self)
pub fn show_manage(&mut self)
Switch to ISO management view
Sourcepub fn return_from_manage(&mut self)
pub fn return_from_manage(&mut self)
Return to browse from manage
Sourcepub fn update_iso_count(&mut self, count: usize)
pub fn update_iso_count(&mut self, count: usize)
Update ISO count (call after storage changes)
Sourcepub fn show_confirm_delete(&mut self)
pub fn show_confirm_delete(&mut self)
Show confirm delete dialog
Sourcepub fn cancel_confirm(&mut self)
pub fn cancel_confirm(&mut self)
Cancel confirmation and return to manage
Sourcepub fn is_managing(&self) -> bool
pub fn is_managing(&self) -> bool
Check if in manage mode