Struct KEEP_ACTIVITY_ALIVE_PROPERTY
pub struct KEEP_ACTIVITY_ALIVE_PROPERTY { /* private fields */ }Expand description
Sets how to handle the Activity node when you deactivate it:
- Detach and Destroy. Kanzi detaches the Activity from the node tree and deletes the Activity instance. Default value.
- Hide and Disable. Kanzi hides and disables the Activity. When you activate the Activity again, Kanzi enables and shows the same Activity. This way you skip Activity instantiation when you activate the Activity again.
Methods from Deref<Target = PropertyType<KeepAlivePolicy>>§
pub fn as_ptr(&self) -> *mut PropertyTypeWrapper
pub fn get_native(&self) -> Result<NonNull<c_void>, Error>
pub fn get_native(&self) -> Result<NonNull<c_void>, Error>
Gets a pointer to the backing C++ instance.
pub fn compare(&self, rhs: &PropertyType<T>) -> Result<bool, Error>
pub fn compare(&self, rhs: &PropertyType<T>) -> Result<bool, Error>
Compares two property types.
pub fn is_inherited(&self) -> Result<bool, Error>
pub fn get_change_flags(&self) -> Result<ChangeFlags, Error>
pub fn get_data_type(&self) -> Result<PropertyDataType, Error>
pub fn get_name(&self) -> Result<KanziString, Error>
pub fn get_name(&self) -> Result<KanziString, Error>
Gets name of the property type.
pub fn get_editor_info(&self) -> Result<Option<EditorInfo>, Error>
pub fn get_editor_info(&self) -> Result<Option<EditorInfo>, Error>
Gets editor info for the property type.
pub fn as_abstract(&self) -> &PropertyType<()>
pub fn as_abstract(&self) -> &PropertyType<()>
Casts a PropertyType reference to its abstract representation.
pub fn get_default_value(
&self,
) -> Result<<T as VariantConstraint>::RetArg, Error>
pub fn get_default_value( &self, ) -> Result<<T as VariantConstraint>::RetArg, Error>
Gets the default value of a property type. When no other value is available, property functions return the default value.
Trait Implementations§
§impl Deref for KEEP_ACTIVITY_ALIVE_PROPERTY
impl Deref for KEEP_ACTIVITY_ALIVE_PROPERTY
§type Target = PropertyType<KeepAlivePolicy>
type Target = PropertyType<KeepAlivePolicy>
The resulting type after dereferencing.
§fn deref(&self) -> &PropertyType<KeepAlivePolicy>
fn deref(&self) -> &PropertyType<KeepAlivePolicy>
Dereferences the value.
impl LazyStatic for KEEP_ACTIVITY_ALIVE_PROPERTY
Auto Trait Implementations§
impl Freeze for KEEP_ACTIVITY_ALIVE_PROPERTY
impl RefUnwindSafe for KEEP_ACTIVITY_ALIVE_PROPERTY
impl Send for KEEP_ACTIVITY_ALIVE_PROPERTY
impl Sync for KEEP_ACTIVITY_ALIVE_PROPERTY
impl Unpin for KEEP_ACTIVITY_ALIVE_PROPERTY
impl UnwindSafe for KEEP_ACTIVITY_ALIVE_PROPERTY
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