pub struct ConstViewTransform(/* private fields */);Expand description
Shared read-only native view transform. Borrowed text remains valid while this object is alive, provided external native code does not mutate it.
Implementations§
Source§impl ConstViewTransform
impl ConstViewTransform
Sourcepub fn serialize(&self) -> Result<String>
pub fn serialize(&self) -> Result<String>
Return OCIO’s diagnostic stream output as owned text. It is not a stable interchange format and may contain sensitive paths.
Sourcepub fn description(&self) -> Result<Option<&CStr>>
pub fn description(&self) -> Result<Option<&CStr>>
Borrow the native description without allocating.
Sourcepub fn create_editable_copy(&self) -> Result<ViewTransform>
pub fn create_editable_copy(&self) -> Result<ViewTransform>
Create an editable copy. Native group-transform copies may retain children shared with the original.
Source§impl ConstViewTransform
impl ConstViewTransform
Sourcepub fn try_interchange_attributes(&self) -> Result<BTreeMap<String, String>>
Available on crate feature v2_5 only.
pub fn try_interchange_attributes(&self) -> Result<BTreeMap<String, String>>
v2_5 only.Return an owned snapshot of all interchange attributes.
Sourcepub fn num_categories(&self) -> Result<usize>
pub fn num_categories(&self) -> Result<usize>
Number of categories.
Sourcepub fn category(&self, index: usize) -> Result<Option<&CStr>>
pub fn category(&self, index: usize) -> Result<Option<&CStr>>
Borrow a category; an out-of-range index returns None.
Sourcepub fn has_category(&self, value: &CStr) -> Result<bool>
pub fn has_category(&self, value: &CStr) -> Result<bool>
Check a category without allocating a C string.
Sourcepub fn reference_space_type(&self) -> Result<ReferenceSpaceType>
pub fn reference_space_type(&self) -> Result<ReferenceSpaceType>
Return the native reference-space type.
Sourcepub fn interchange_attribute(&self, name: &CStr) -> Result<Option<&CStr>>
Available on crate feature v2_5 only.
pub fn interchange_attribute(&self, name: &CStr) -> Result<Option<&CStr>>
v2_5 only.Borrow an interchange attribute; invalid attribute names return an error.
Sourcepub fn try_const_transform(
&self,
direction: ViewTransformDirection,
) -> Result<Option<ConstTransform>>
pub fn try_const_transform( &self, direction: ViewTransformDirection, ) -> Result<Option<ConstTransform>>
Share the transform in the requested direction.