pub struct ColorSpaceMenuParameters { /* private fields */ }Expand description
Mutable native options used to construct a color-space menu.
Implementations§
Source§impl ColorSpaceMenuParameters
impl ColorSpaceMenuParameters
Sourcepub fn create(config: &Config) -> Result<Self>
pub fn create(config: &Config) -> Result<Self>
Create options for a configuration. The native parameters retain the config.
Sourcepub fn create_from_const(config: &ConstConfig) -> Result<Self>
pub fn create_from_const(config: &ConstConfig) -> Result<Self>
Create options retaining a read-only config without copying it.
Sourcepub fn set_config(&mut self, config: &Config)
pub fn set_config(&mut self, config: &Config)
Replace the retained configuration.
Sourcepub fn set_const_config(&mut self, config: &ConstConfig)
pub fn set_const_config(&mut self, config: &ConstConfig)
Replace the retained configuration with a read-only shared config.
Sourcepub fn config(&self) -> Result<Config>
pub fn config(&self) -> Result<Config>
Return an editable copy of the retained native configuration. Native group-transform copies may retain children shared with the source.
Sourcepub fn const_config(&self) -> Result<ConstConfig>
pub fn const_config(&self) -> Result<ConstConfig>
Retain the native configuration for read-only access without copying it.
Sourcepub fn include_color_spaces(&self) -> bool
pub fn include_color_spaces(&self) -> bool
Return the native include color spaces setting.
Sourcepub fn set_include_color_spaces(&mut self, value: bool)
pub fn set_include_color_spaces(&mut self, value: bool)
Update the native include color spaces setting.
Sourcepub fn include_named_transforms(&self) -> bool
pub fn include_named_transforms(&self) -> bool
Return the native include named transforms setting.
Sourcepub fn set_include_named_transforms(&mut self, value: bool)
pub fn set_include_named_transforms(&mut self, value: bool)
Update the native include named transforms setting.
Sourcepub fn treat_no_category_as_any(&self) -> bool
Available on crate feature v2_5 only.
pub fn treat_no_category_as_any(&self) -> bool
v2_5 only.Return the native treat no category as any setting.
Sourcepub fn set_treat_no_category_as_any(&mut self, value: bool)
Available on crate feature v2_5 only.
pub fn set_treat_no_category_as_any(&mut self, value: bool)
v2_5 only.Update the native treat no category as any setting.
Sourcepub fn app_categories(&self) -> &CStr
pub fn app_categories(&self) -> &CStr
Return the native app categories setting.
Sourcepub fn set_app_categories(&mut self, value: &CStr)
pub fn set_app_categories(&mut self, value: &CStr)
Update the native app categories setting.
Sourcepub fn set_encodings(&mut self, value: &CStr)
pub fn set_encodings(&mut self, value: &CStr)
Update the native encodings setting.
Sourcepub fn user_categories(&self) -> &CStr
pub fn user_categories(&self) -> &CStr
Return the native user categories setting.
Sourcepub fn set_user_categories(&mut self, value: &CStr)
pub fn set_user_categories(&mut self, value: &CStr)
Update the native user categories setting.
Sourcepub fn include_roles(&self) -> bool
pub fn include_roles(&self) -> bool
Return the native include roles setting.
Sourcepub fn set_include_roles(&mut self, value: bool)
pub fn set_include_roles(&mut self, value: bool)
Update the native include roles setting.
Sourcepub fn search_reference_space_type(&self) -> SearchReferenceSpaceType
pub fn search_reference_space_type(&self) -> SearchReferenceSpaceType
Return the native search reference space type setting.
Sourcepub fn set_search_reference_space_type(
&mut self,
value: SearchReferenceSpaceType,
)
pub fn set_search_reference_space_type( &mut self, value: SearchReferenceSpaceType, )
Update the native search reference space type setting.
Sourcepub fn add_color_space(&mut self, name: &CStr)
pub fn add_color_space(&mut self, name: &CStr)
Include an additional color space or named transform by name.
Sourcepub fn num_added_color_spaces(&self) -> usize
pub fn num_added_color_spaces(&self) -> usize
Count explicitly added entries before native menu construction.
Sourcepub fn added_color_space(&self, index: usize) -> &CStr
pub fn added_color_space(&self, index: usize) -> &CStr
Return an explicitly added name, or an empty string for an invalid index.
Sourcepub fn clear_added_color_spaces(&mut self)
pub fn clear_added_color_spaces(&mut self)
Clear explicitly added entries.