pub struct DockPanelOptions {
pub title: String,
pub icon: Option<IconGlyph>,
pub closable: bool,
pub dirty: bool,
pub min_size: Size,
}Expand description
Presentation and behavior of one dock panel’s tab.
Options are owned by the workspace’s panel registry. Change them after
registration with DockWorkspaceState::update_panel.
Fields§
§title: String§icon: Option<IconGlyph>§closable: boolShows a close button on the tab. A close press is routed through
DockWorkspace::on_close_request.
dirty: boolMarks the tab as holding unsaved changes.
min_size: SizeSmallest content size the panel remains usable at. Splits keep every docked group, and the workspace keeps every floating group, at least this large while the workspace has room.
Implementations§
Trait Implementations§
Source§impl Clone for DockPanelOptions
impl Clone for DockPanelOptions
Source§impl Debug for DockPanelOptions
impl Debug for DockPanelOptions
Source§impl From<&str> for DockPanelOptions
impl From<&str> for DockPanelOptions
Source§impl From<String> for DockPanelOptions
impl From<String> for DockPanelOptions
Source§impl PartialEq for DockPanelOptions
impl PartialEq for DockPanelOptions
impl StructuralPartialEq for DockPanelOptions
Auto Trait Implementations§
impl Forget for DockPanelOptions
impl Freeze for DockPanelOptions
impl Move for DockPanelOptions
impl RefUnwindSafe for DockPanelOptions
impl Send for DockPanelOptions
impl Sync for DockPanelOptions
impl Unpin for DockPanelOptions
impl UnsafeUnpin for DockPanelOptions
impl UnwindSafe for DockPanelOptions
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