pub struct CompositionChannelInfo(/* private fields */);Expand description
This structure gathers all information about a channel for the purpose of multi-channel-composition.
Implementations§
Source§impl CompositionChannelInfo
impl CompositionChannelInfo
pub fn new( weight: f32, enable_tinting: u8, tinting_color_r: u8, tinting_color_g: u8, tinting_color_b: u8, black_point: f32, white_point: f32, look_up_table_element_count: i32, look_up_table: &[u8], ) -> Self
pub fn get_weight(&self) -> f32
pub fn get_enable_tinting(&self) -> u8
pub fn get_tinting_color_r(&self) -> u8
pub fn get_tinting_color_g(&self) -> u8
pub fn get_tinting_color_b(&self) -> u8
pub fn get_black_point(&self) -> f32
pub fn get_white_point(&self) -> f32
pub fn get_look_up_table_element_count(&self) -> i32
pub fn get_look_up_table(&self) -> Vec<u8> ⓘ
pub fn set_weight(&mut self, weight: f32)
pub fn set_enable_tinting(&mut self, enable_tinting: u8)
pub fn set_tinting_color_r(&mut self, tinting_color_r: u8)
pub fn set_tinting_color_g(&mut self, tinting_color_g: u8)
pub fn set_tinting_color_b(&mut self, tinting_color_b: u8)
pub fn set_black_point(&mut self, black_point: f32)
pub fn set_white_point(&mut self, white_point: f32)
pub fn set_look_up_table_element_count( &mut self, look_up_table_element_count: i32, )
pub fn set_look_up_table(&mut self, look_up_table: &[u8])
Trait Implementations§
Source§impl Clone for CompositionChannelInfo
impl Clone for CompositionChannelInfo
Source§fn clone(&self) -> CompositionChannelInfo
fn clone(&self) -> CompositionChannelInfo
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CompositionChannelInfo
impl RefUnwindSafe for CompositionChannelInfo
impl !Send for CompositionChannelInfo
impl !Sync for CompositionChannelInfo
impl Unpin for CompositionChannelInfo
impl UnsafeUnpin for CompositionChannelInfo
impl UnwindSafe for CompositionChannelInfo
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