kanzi::autogen::ui::node::parallel_activity_host3d

Struct STYLE_PROPERTY

pub struct STYLE_PROPERTY { /* private fields */ }
Expand description

Sets a style to the node.

Methods from Deref<Target = PropertyType<Resource>>§

pub fn as_ptr(&self) -> *mut PropertyTypeWrapper

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>

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>

Gets name of the property type.

pub fn get_editor_info(&self) -> Result<Option<EditorInfo>, Error>

Gets editor info for the property type.

pub fn cast_ref<T>(&self) -> Result<Option<&PropertyType<T>>, Error>

Casts AbstractPropertyType reference to a more concrete type.

pub unsafe fn cast_ref_unchecked<T>(&self) -> &PropertyType<T>

Casts AbstractPropertyType reference to a more concrete type.

§Safety

The caller must ensure that T matches the internal property type.

pub fn debug_string(&self, object: &Object) -> Result<String, Error>

Constructs a debug string containing the property value of a provided Object.

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>

Gets the default value of a property type. When no other value is available, property functions return the default value.

pub fn debug_string(&self, object: &Object) -> Result<String, Error>

Constructs a debug string representing the property value of an Object.

Trait Implementations§

§

impl Deref for STYLE_PROPERTY

§

type Target = PropertyType<Resource>

The resulting type after dereferencing.
§

fn deref(&self) -> &PropertyType<Resource>

Dereferences the value.
§

impl LazyStatic for STYLE_PROPERTY

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AsAny for T
where T: 'static,

§

fn as_any(&self) -> &(dyn Any + 'static)

§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Inherits<T> for T

§

fn upcast(self) -> Base

§

fn upcast_ref(&self) -> &Base

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.