pub struct WindowCreated<U: Ui>(/* private fields */);Expand description
Hookable: Triggers when a new window is opened
§Arguments
- The window builder, which can be used to push widgets to the edges of the window, surrounding the inner file region.
This is a rather “advanced” hook, since it lets you change the
layout of Widgets around the screen. If you don’t need all
that power, you can check out WidgetCreated, which is a more
straightforward form of changing Widgets, and doesn’t
interfere with the default hooks of "FileWidgets" and
"WindowWidgets", preset by Duat.
Trait Implementations§
Source§impl<U: Ui> Hookable for WindowCreated<U>
impl<U: Ui> Hookable for WindowCreated<U>
Auto Trait Implementations§
impl<U> !Freeze for WindowCreated<U>
impl<U> !RefUnwindSafe for WindowCreated<U>
impl<U> !Send for WindowCreated<U>
impl<U> !Sync for WindowCreated<U>
impl<U> Unpin for WindowCreated<U>
impl<U> !UnwindSafe for WindowCreated<U>
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