pub struct SettingsPlugin { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for SettingsPlugin
impl Default for SettingsPlugin
Source§fn default() -> SettingsPlugin
fn default() -> SettingsPlugin
Returns the “default value” for a type. Read more
Source§impl EditorPlugin for SettingsPlugin
impl EditorPlugin for SettingsPlugin
Source§fn on_start(&mut self, editor: &mut Editor)
fn on_start(&mut self, editor: &mut Editor)
This method is called right after the editor was fully initialized. It is guaranteed to be called only once.
Source§fn on_ui_message(&mut self, message: &mut UiMessage, editor: &mut Editor)
fn on_ui_message(&mut self, message: &mut UiMessage, editor: &mut Editor)
This method is called when a UI message was extracted from the message queue. It should be used to react to user
changes, for example a user could click a button, then a
fyrox::gui::button::ButtonMessage::Click will be
passed to this method. It then can be used to perform some other action.Source§fn on_exit(&mut self, editor: &mut Editor)
fn on_exit(&mut self, editor: &mut Editor)
This method is called when the editor is about to close. It is guaranteed to be called only once.
Source§fn on_sync_to_model(&mut self, editor: &mut Editor)
fn on_sync_to_model(&mut self, editor: &mut Editor)
This method is called either when there was some action via command, or a syncing request is performed. It should
be used to synchronize the state of your widgets with the actual data model.
Source§fn on_mode_changed(&mut self, editor: &mut Editor)
fn on_mode_changed(&mut self, editor: &mut Editor)
This method is called when the editor switches to another mode. For example, if a user clicks the “Play” button,
the mode will be changed from
crate::Mode::Edit to crate::Mode::Build, and if the build was successful,
it will then be changed to crate::Mode::Play. When the game was closed, the mode will be changed back to
crate::Mode::Edit.Source§fn on_scene_changed(&mut self, editor: &mut Editor)
fn on_scene_changed(&mut self, editor: &mut Editor)
This method is called when active scene was changed. It could happen if a user opens or loads
a new scene, closes existing scene so the active scene changes to previous in the list of
scenes (if any).
Source§fn on_suspended(&mut self, editor: &mut Editor)
fn on_suspended(&mut self, editor: &mut Editor)
This method is called when the editor suspends its execution. It could happen in a few reasons, but the most
common ones are: Read more
Source§fn on_resumed(&mut self, editor: &mut Editor)
fn on_resumed(&mut self, editor: &mut Editor)
This method is called when the editor continues its execution. See
Self::on_suspended method for more info
about suspension.Source§fn on_leave_preview_mode(&mut self, editor: &mut Editor)
fn on_leave_preview_mode(&mut self, editor: &mut Editor)
This method is called when the editor leaves preview mode. Usually this method is used to
rollback scene changes to the state in which scene objects were before entering the preview
mode. This method is typically called by the editor before execution of any command and before
saving (to prevent “leakage” of preview mode changes into the saved scene).
Source§fn is_in_preview_mode(&self, editor: &Editor) -> bool
fn is_in_preview_mode(&self, editor: &Editor) -> bool
This method is used to tell the editor, whether your plugin is in preview mode or not. Preview mode is a special
state of the editor, when it modifies a content of some scene every frame and discards these changes when the
preview mode is disabled.
Source§fn on_update(
&mut self,
editor: &mut Editor,
loop_controller: ApplicationLoopController<'_>,
)
fn on_update( &mut self, editor: &mut Editor, loop_controller: ApplicationLoopController<'_>, )
This method is called every frame at stable update rate of 60 FPS. It could be used to perform any contiguous
actions.
Source§fn on_post_update(
&mut self,
editor: &mut Editor,
loop_controller: ApplicationLoopController<'_>,
)
fn on_post_update( &mut self, editor: &mut Editor, loop_controller: ApplicationLoopController<'_>, )
This method is called at the end of all update routines of both the engine and the editor. It could be used to
perform some actions, that require all pre-defined steps to be done.
Source§fn on_message(&mut self, message: &Message, editor: &mut Editor)
fn on_message(&mut self, message: &Message, editor: &mut Editor)
This method is called when the editor receives a control message. It could be used to catch and react to specific
actions in the editor (such as: scene loading, command execution, undo, redo, etc.).
Auto Trait Implementations§
impl Freeze for SettingsPlugin
impl !RefUnwindSafe for SettingsPlugin
impl !Send for SettingsPlugin
impl !Sync for SettingsPlugin
impl Unpin for SettingsPlugin
impl UnsafeUnpin for SettingsPlugin
impl !UnwindSafe for SettingsPlugin
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> EditorPluginAsAny for Twhere
T: EditorPlugin,
impl<T> EditorPluginAsAny for Twhere
T: EditorPlugin,
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>
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.