pub struct InspectorProps {
pub visible: bool,
pub width: f64,
pub edge: PaneEdge,
}Expand description
A kinds::INSPECTOR split (docs/inspector.md): content beside a trailing inspector
pane. The pane’s visibility is Day-owned state (the piece’s bound signal), so the
props carry the value to draw and InspectorPatch::Visible keeps it current;
a native affordance hiding the pane (a dock close button, a dragged-shut divider)
reports back with crate::Event::InspectorChanged.
Fields§
§visible: boolWhether the pane is showing now.
width: f64The pane’s preferred width in points. A backend with a user-draggable divider treats it as the initial width; one without draws it at exactly this.
edge: PaneEdgeWhich side of the content the pane sits on. Trailing is the classic inspector;
Leading is a utility pane like a layer panel (docs/tree.md).
Trait Implementations§
Source§impl Clone for InspectorProps
impl Clone for InspectorProps
Source§fn clone(&self) -> InspectorProps
fn clone(&self) -> InspectorProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InspectorProps
impl Debug for InspectorProps
Source§impl PartialEq for InspectorProps
impl PartialEq for InspectorProps
impl StructuralPartialEq for InspectorProps
Auto Trait Implementations§
impl Freeze for InspectorProps
impl RefUnwindSafe for InspectorProps
impl Send for InspectorProps
impl Sync for InspectorProps
impl Unpin for InspectorProps
impl UnsafeUnpin for InspectorProps
impl UnwindSafe for InspectorProps
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