pub struct PanelMenuProps {
pub x: f64,
pub y: f64,
pub panel_id: Option<String>,
pub workspace: Workspace,
pub presentation: Presentation,
pub theme: Option<String>,
pub maximized: bool,
pub on_command: Callback<PanelCommand>,
pub on_close: Callback<()>,
}Fields§
§x: f64Viewport (client) coordinates the menu (and any spawned picker) anchors at.
y: f64§panel_id: Option<String>The right-clicked panel this menu targets — or None for the
EMPTY-stage menu (zero panels), which offers only the “New” sub-menu
(its NewFrom items resolve from the loaded-clients registry, no
panel required).
workspace: WorkspaceFor per-panel command context (is_master, pivot state, panel count)
and resolving the target panel’s engines for Export/Copy.
presentation: PresentationFor export_method_to_blob.
theme: Option<String>The TARGET panel’s effective theme (its own, else the registry
default), stamped on both stages’ PortalModal hosts.
maximized: boolWhether the target panel is currently maximized (drives the Maximize/Restore item).
on_command: Callback<PanelCommand>A command was selected — the parent executes it (and ends the session
via the on_close that follows every selection).
on_close: Callback<()>The menu session ended (backdrop dismissal, command selection, or picker close); the parent unmounts this component.
Trait Implementations§
Source§impl PartialEq for PanelMenuProps
impl PartialEq for PanelMenuProps
Auto Trait Implementations§
impl !RefUnwindSafe for PanelMenuProps
impl !Send for PanelMenuProps
impl !Sync for PanelMenuProps
impl !UnwindSafe for PanelMenuProps
impl Freeze for PanelMenuProps
impl Unpin for PanelMenuProps
impl UnsafeUnpin for PanelMenuProps
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
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.