pub struct MainPanelProps {Show 21 fields
pub on_settings: Callback<()>,
pub on_reset: Callback<bool>,
pub on_activate_panel: Callback<String>,
pub on_close_panel: Callback<String>,
pub on_panel_command: Callback<(String, PanelCommand)>,
pub session_props: SessionProps,
pub renderer_props: RendererProps,
pub presentation_props: PresentationProps,
pub is_settings_open: bool,
pub update_count: u32,
pub panel_ids: Vec<PanelId>,
pub panel_titles: Vec<(String, Option<String>)>,
pub panel_themes: Vec<(String, Option<String>)>,
pub panel_masters: Vec<PanelId>,
pub global_filters: Vec<Filter>,
pub on_remove_global_filter: Callback<usize>,
pub on_clear_global_filters: Callback<()>,
pub workspace: Workspace,
pub session: Session,
pub renderer: Renderer,
pub presentation: Presentation,
}Fields§
§on_settings: Callback<()>Toggle the settings sidebar open. Fired by a PanelTab’s open-settings
button (after selecting + activating that panel) — the tabs are the
only open-settings affordance.
on_reset: Callback<bool>Reset callback forwarded from the root component. Fired when the user
clicks the reset button; bool is true for a full reset (expressions
- column configs),
falsefor config-only.
on_activate_panel: Callback<String>Fired with a panel id when its frame titlebar is pressed, to make it the active panel.
on_close_panel: Callback<String>Fired with a panel id when its frame’s close button removes it from the layout, so the root can dispose the panel.
on_panel_command: Callback<(String, PanelCommand)>Fired with (panel id, command) when the panel context menu selects a
command the root executes (New/Duplicate/Reset/ToggleMaster/Close).
Maximize/Restore are handled HERE (this component owns the layout
element), and Export/Copy end-to-end by
PanelMenu itself.
session_props: SessionPropsSnapshots threaded from root. Read for has_table, title here in
the panel itself; threaded wholesale to StatusBar/StatusIndicator.
renderer_props: RendererProps§presentation_props: PresentationProps§is_settings_open: boolDerived from root: settings_open && has_table_loaded.
update_count: u32Root-managed in-flight render counter (not engine state).
panel_ids: Vec<PanelId>Ids of every layout panel, in order; one <regular-layout> cell is
rendered per id. Drives re-render when panels are added/removed.
panel_titles: Vec<(String, Option<String>)>(panel id, session title) for every panel. Rendered into the
<regular-layout> style as --regular-layout-<id>--title custom
properties, which regular-layout’s tabs display via ::before content.
panel_themes: Vec<(String, Option<String>)>(panel id, per-panel theme) for every panel. A snapshot so a
per-panel theme change re-renders MainPanel — renderer.theme() is
interior-mutable and not otherwise observed by eq. Each frame inlines
its theme’s --psp-* block only when it diverges from the host theme.
panel_masters: Vec<PanelId>The master (filter-source) panel ids, sorted. A snapshot so a master
toggle re-renders MainPanel — the role set is interior-mutable on
Workspace and not otherwise observed by eq. Drives each tab’s
broadcast badge.
global_filters: Vec<Filter>Element-level global filters (fed by master/detail selection), threaded
to the StatusBar where the global-filter chips are rendered.
on_remove_global_filter: Callback<usize>Remove the global filter at this index (a chip’s × in the StatusBar).
on_clear_global_filters: Callback<()>Clear all global filters (the “Clear” affordance in the StatusBar).
workspace: WorkspaceThe multi-panel model, for per-panel Renderer/Session access when
reconciling insertPanel/removePanel.
session: SessionState (the active panel’s handles — for the shared status bar).
renderer: Renderer§presentation: PresentationTrait Implementations§
Source§impl Clone for MainPanelProps
impl Clone for MainPanelProps
Source§fn clone(&self) -> MainPanelProps
fn clone(&self) -> MainPanelProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for MainPanelProps
impl PartialEq for MainPanelProps
Auto Trait Implementations§
impl !RefUnwindSafe for MainPanelProps
impl !Send for MainPanelProps
impl !Sync for MainPanelProps
impl !UnwindSafe for MainPanelProps
impl Freeze for MainPanelProps
impl Unpin for MainPanelProps
impl UnsafeUnpin for MainPanelProps
Blanket Implementations§
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> HasAllProps<(), T> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self to a value of a Properties struct.