pub struct PaneControls {
pub config: PaneControlsConfig,
}Expand description
Pane control buttons (maximize, minimize, close, settings)
Fields§
§config: PaneControlsConfigDisplay and layout options for this component.
Implementations§
Source§impl PaneControls
impl PaneControls
Sourcepub fn with_config(self, config: PaneControlsConfig) -> Self
pub fn with_config(self, config: PaneControlsConfig) -> Self
Set a custom configuration
Sourcepub fn show(
&self,
ui: &mut Ui,
pane_rect: Rect,
pane_id: PaneId,
pane_hovered: bool,
) -> PaneControlAction
pub fn show( &self, ui: &mut Ui, pane_rect: Rect, pane_id: PaneId, pane_hovered: bool, ) -> PaneControlAction
Show pane controls at the top-right of the given pane rect Only shows if pane is hovered Returns any action triggered
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PaneControls
impl RefUnwindSafe for PaneControls
impl Send for PaneControls
impl Sync for PaneControls
impl Unpin for PaneControls
impl UnsafeUnpin for PaneControls
impl UnwindSafe for PaneControls
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