pub struct OnFileOpen<U: Ui>(/* private fields */);
Expand description
Hookable
: Triggers when a File
is opened
§Arguments
- The file builder, which can be used to push widgets to the file, and to eachother.
This is a rather “advanced” hook, since it lets you change the
layout of Widget
s around the screen. If you don’t need all
that power, you can check out WidgetCreated
, which is a more
straightforward form of changing Widget
s, and doesn’t
interfere with the default hooks of "FileWidgets"
and
"WindowWidgets"
, preset by Duat.
Trait Implementations§
Source§impl<U: Ui> Hookable for OnFileOpen<U>
impl<U: Ui> Hookable for OnFileOpen<U>
Source§type Input<'h> = &'h mut FileBuilder<U>
type Input<'h> = &'h mut FileBuilder<U>
The arguments that are passed to each hook.
Auto Trait Implementations§
impl<U> !Freeze for OnFileOpen<U>
impl<U> !RefUnwindSafe for OnFileOpen<U>
impl<U> !Send for OnFileOpen<U>
impl<U> !Sync for OnFileOpen<U>
impl<U> Unpin for OnFileOpen<U>
impl<U> !UnwindSafe for OnFileOpen<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