pub struct SeriesSettingsDialog {
pub config: SeriesSettingsConfig,
pub is_open: bool,
pub series_id: Option<SeriesId>,
pub active_tab: SeriesSettingsTab,
pub settings: SeriesSettings,
pub original_settings: SeriesSettings,
}Expand description
Series settings dialog with sidebar layout
Fields§
§config: SeriesSettingsConfigDisplay and layout options for this component.
is_open: boolWhether the dialog is currently visible.
series_id: Option<SeriesId>Identifier of the series being edited, when open.
active_tab: SeriesSettingsTabCurrently selected tab.
settings: SeriesSettingsEditable settings currently shown by the dialog.
original_settings: SeriesSettingsSettings captured when the dialog opened.
Implementations§
Source§impl SeriesSettingsDialog
impl SeriesSettingsDialog
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a SeriesSettingsDialog with default settings.
Sourcepub fn open(&mut self, id: SeriesId, settings: SeriesSettings)
pub fn open(&mut self, id: SeriesId, settings: SeriesSettings)
Open the dialog with the supplied state.
Sourcepub fn sync_open_state(&mut self, should_be_open: bool)
pub fn sync_open_state(&mut self, should_be_open: bool)
Sync dialog open/close state from an external flag.
Opening requires series context, so only close is synced here.
Sourcepub fn show(&mut self, ctx: &Context) -> SeriesSettingsAction
pub fn show(&mut self, ctx: &Context) -> SeriesSettingsAction
Show the dialog and return the requested action.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SeriesSettingsDialog
impl RefUnwindSafe for SeriesSettingsDialog
impl Send for SeriesSettingsDialog
impl Sync for SeriesSettingsDialog
impl Unpin for SeriesSettingsDialog
impl UnsafeUnpin for SeriesSettingsDialog
impl UnwindSafe for SeriesSettingsDialog
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more