Struct oxygengine_user_interface::raui::core::application::ChangeNotifier
source · pub struct ChangeNotifier(_);
Expand description
Allows you to check or indicate that an Application
has changed
A ChangeNotifier
can be obtained from an application with the
change_notifier()
method.
Implementations§
source§impl ChangeNotifier
impl ChangeNotifier
sourcepub fn change(&mut self)
pub fn change(&mut self)
Mark the application as having changed, this will force the UI to re-render its components
sourcepub fn has_changed(&self) -> bool
pub fn has_changed(&self) -> bool
Check whether or not the application has changed
sourcepub fn consume_change(&mut self) -> bool
pub fn consume_change(&mut self) -> bool
Get whether the application has changed and atomically set it’s changed state to `false
Trait Implementations§
source§impl Clone for ChangeNotifier
impl Clone for ChangeNotifier
source§fn clone(&self) -> ChangeNotifier
fn clone(&self) -> ChangeNotifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChangeNotifier
impl Debug for ChangeNotifier
source§impl Default for ChangeNotifier
impl Default for ChangeNotifier
source§fn default() -> ChangeNotifier
fn default() -> ChangeNotifier
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ChangeNotifier
impl Send for ChangeNotifier
impl Sync for ChangeNotifier
impl Unpin for ChangeNotifier
impl UnwindSafe for ChangeNotifier
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<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more