#[non_exhaustive]pub enum TilesEvent {
BoundsChanged {
panel: PanelId,
bounds: Bounds<Pixels>,
},
BringToFront {
panel: PanelId,
},
ClosePanel {
panel: PanelId,
},
DragDrop {
item: AnyDrag,
},
ZoomIn {
panel: PanelId,
},
ZoomOut,
}Expand description
What a tiles canvas cannot carry out on its own.
The canvas mirrors one Tiles node but does not own the tree that node
lives in, so — exactly as with TabGroupEvent —
every outcome is reported as an intent and applied by the container
through PaneTree::set_tile_bounds / PaneTree::bring_to_front.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BoundsChanged
A tile finished moving or resizing at bounds.
BringToFront
A tile was interacted with and should stack above its peers.
ClosePanel
The user asked to close panel, dismissing its tile.
DragDrop
A host-owned drag landed on the canvas. The canvas has free coordinates, so the host reads the landing position itself.
ZoomIn
One tile asked to fill the whole dock. The container installs the canvas as its zoomed view, and the canvas draws that one tile with its chrome — which is where the control that zooms back out lives.
ZoomOut
The zoomed tile gave the dock back.
Trait Implementations§
impl EventEmitter<TilesEvent> for TilesState
Auto Trait Implementations§
impl !RefUnwindSafe for TilesEvent
impl !Send for TilesEvent
impl !Sync for TilesEvent
impl !UnwindSafe for TilesEvent
impl Freeze for TilesEvent
impl Unpin for TilesEvent
impl UnsafeUnpin for TilesEvent
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
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 more