#[repr(C)]pub struct PF_ColorCallbacks {
pub RGBtoHLS: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, hls: *mut PF_Fixed) -> PF_Err>,
pub HLStoRGB: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, hls: *mut PF_Fixed, rgb: *mut PF_Pixel) -> PF_Err>,
pub RGBtoYIQ: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, yiq: *mut PF_Fixed) -> PF_Err>,
pub YIQtoRGB: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, yiq: *mut PF_Fixed, rgb: *mut PF_Pixel) -> PF_Err>,
pub Luminance: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, lum100: *mut A_long) -> PF_Err>,
pub Hue: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, hue: *mut A_long) -> PF_Err>,
pub Lightness: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, lightness: *mut A_long) -> PF_Err>,
pub Saturation: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, saturation: *mut A_long) -> PF_Err>,
}Expand description
––––– Colorspace Conversion Callbacks
Fields§
§RGBtoHLS: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, hls: *mut PF_Fixed) -> PF_Err>§HLStoRGB: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, hls: *mut PF_Fixed, rgb: *mut PF_Pixel) -> PF_Err>§RGBtoYIQ: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, yiq: *mut PF_Fixed) -> PF_Err>§YIQtoRGB: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, yiq: *mut PF_Fixed, rgb: *mut PF_Pixel) -> PF_Err>§Luminance: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, lum100: *mut A_long) -> PF_Err>§Hue: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, hue: *mut A_long) -> PF_Err>§Lightness: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, lightness: *mut A_long) -> PF_Err>§Saturation: Option<unsafe extern "C" fn(effect_ref: PF_ProgPtr, rgb: *mut PF_Pixel, saturation: *mut A_long) -> PF_Err>Trait Implementations§
Source§impl Clone for PF_ColorCallbacks
impl Clone for PF_ColorCallbacks
Source§fn clone(&self) -> PF_ColorCallbacks
fn clone(&self) -> PF_ColorCallbacks
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 moreSource§impl Debug for PF_ColorCallbacks
impl Debug for PF_ColorCallbacks
impl Copy for PF_ColorCallbacks
Auto Trait Implementations§
impl Freeze for PF_ColorCallbacks
impl RefUnwindSafe for PF_ColorCallbacks
impl Send for PF_ColorCallbacks
impl Sync for PF_ColorCallbacks
impl Unpin for PF_ColorCallbacks
impl UnwindSafe for PF_ColorCallbacks
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