#[repr(C)]
pub struct RUColorFuncs {
Show 73 fields pub destroy: extern "C" fn(self_c: *const RUBase), pub is_valid: extern "C" fn(self_c: *const RUBase) -> bool, pub name: extern "C" fn(self_c: *const RUBase) -> *const c_char, pub name_2: extern "C" fn(self_c: *const RUBase, format: u32) -> *const c_char, pub set_named_color: extern "C" fn(self_c: *const RUBase, name: *const c_char), pub spec: extern "C" fn(self_c: *const RUBase) -> u32, pub alpha: extern "C" fn(self_c: *const RUBase) -> i32, pub set_alpha: extern "C" fn(self_c: *const RUBase, alpha: i32), pub alpha_f: extern "C" fn(self_c: *const RUBase) -> f32, pub set_alpha_f: extern "C" fn(self_c: *const RUBase, alpha: f32), pub red: extern "C" fn(self_c: *const RUBase) -> i32, pub green: extern "C" fn(self_c: *const RUBase) -> i32, pub blue: extern "C" fn(self_c: *const RUBase) -> i32, pub set_red: extern "C" fn(self_c: *const RUBase, red: i32), pub set_green: extern "C" fn(self_c: *const RUBase, green: i32), pub set_blue: extern "C" fn(self_c: *const RUBase, blue: i32), pub red_f: extern "C" fn(self_c: *const RUBase) -> f32, pub green_f: extern "C" fn(self_c: *const RUBase) -> f32, pub blue_f: extern "C" fn(self_c: *const RUBase) -> f32, pub set_red_f: extern "C" fn(self_c: *const RUBase, red: f32), pub set_green_f: extern "C" fn(self_c: *const RUBase, green: f32), pub set_blue_f: extern "C" fn(self_c: *const RUBase, blue: f32), pub set_rgb: extern "C" fn(self_c: *const RUBase, r: i32, g: i32, b: i32, a: i32), pub set_rgb_f: extern "C" fn(self_c: *const RUBase, r: f32, g: f32, b: f32, a: f32), pub hue: extern "C" fn(self_c: *const RUBase) -> i32, pub saturation: extern "C" fn(self_c: *const RUBase) -> i32, pub hsv_hue: extern "C" fn(self_c: *const RUBase) -> i32, pub hsv_saturation: extern "C" fn(self_c: *const RUBase) -> i32, pub value: extern "C" fn(self_c: *const RUBase) -> i32, pub hue_f: extern "C" fn(self_c: *const RUBase) -> f32, pub saturation_f: extern "C" fn(self_c: *const RUBase) -> f32, pub hsv_hue_f: extern "C" fn(self_c: *const RUBase) -> f32, pub hsv_saturation_f: extern "C" fn(self_c: *const RUBase) -> f32, pub value_f: extern "C" fn(self_c: *const RUBase) -> f32, pub set_hsv: extern "C" fn(self_c: *const RUBase, h: i32, s: i32, v: i32, a: i32), pub set_hsv_f: extern "C" fn(self_c: *const RUBase, h: f32, s: f32, v: f32, a: f32), pub cyan: extern "C" fn(self_c: *const RUBase) -> i32, pub magenta: extern "C" fn(self_c: *const RUBase) -> i32, pub yellow: extern "C" fn(self_c: *const RUBase) -> i32, pub black: extern "C" fn(self_c: *const RUBase) -> i32, pub cyan_f: extern "C" fn(self_c: *const RUBase) -> f32, pub magenta_f: extern "C" fn(self_c: *const RUBase) -> f32, pub yellow_f: extern "C" fn(self_c: *const RUBase) -> f32, pub black_f: extern "C" fn(self_c: *const RUBase) -> f32, pub set_cmyk: extern "C" fn(self_c: *const RUBase, c: i32, m: i32, y: i32, k: i32, a: i32), pub set_cmyk_f: extern "C" fn(self_c: *const RUBase, c: f32, m: f32, y: f32, k: f32, a: f32), pub hsl_hue: extern "C" fn(self_c: *const RUBase) -> i32, pub hsl_saturation: extern "C" fn(self_c: *const RUBase) -> i32, pub lightness: extern "C" fn(self_c: *const RUBase) -> i32, pub hsl_hue_f: extern "C" fn(self_c: *const RUBase) -> f32, pub hsl_saturation_f: extern "C" fn(self_c: *const RUBase) -> f32, pub lightness_f: extern "C" fn(self_c: *const RUBase) -> f32, pub set_hsl: extern "C" fn(self_c: *const RUBase, h: i32, s: i32, l: i32, a: i32), pub set_hsl_f: extern "C" fn(self_c: *const RUBase, h: f32, s: f32, l: f32, a: f32), pub to_rgb: extern "C" fn(self_c: *const RUBase) -> RUColor, pub to_hsv: extern "C" fn(self_c: *const RUBase) -> RUColor, pub to_cmyk: extern "C" fn(self_c: *const RUBase) -> RUColor, pub to_hsl: extern "C" fn(self_c: *const RUBase) -> RUColor, pub convert_to: extern "C" fn(self_c: *const RUBase, color_spec: u32) -> RUColor, pub from_rgb_2: extern "C" fn(self_c: *const RUBase, r: i32, g: i32, b: i32, a: i32) -> RUColor, pub from_rgb_f: extern "C" fn(self_c: *const RUBase, r: f32, g: f32, b: f32, a: f32) -> RUColor, pub from_rgba64: extern "C" fn(self_c: *const RUBase, r: u16, g: u16, b: u16, a: u16) -> RUColor, pub from_hsv: extern "C" fn(self_c: *const RUBase, h: i32, s: i32, v: i32, a: i32) -> RUColor, pub from_hsv_f: extern "C" fn(self_c: *const RUBase, h: f32, s: f32, v: f32, a: f32) -> RUColor, pub from_cmyk: extern "C" fn(self_c: *const RUBase, c: i32, m: i32, y: i32, k: i32, a: i32) -> RUColor, pub from_cmyk_f: extern "C" fn(self_c: *const RUBase, c: f32, m: f32, y: f32, k: f32, a: f32) -> RUColor, pub from_hsl: extern "C" fn(self_c: *const RUBase, h: i32, s: i32, l: i32, a: i32) -> RUColor, pub from_hsl_f: extern "C" fn(self_c: *const RUBase, h: f32, s: f32, l: f32, a: f32) -> RUColor, pub light: extern "C" fn(self_c: *const RUBase, f: i32) -> RUColor, pub lighter: extern "C" fn(self_c: *const RUBase, f: i32) -> RUColor, pub dark: extern "C" fn(self_c: *const RUBase, f: i32) -> RUColor, pub darker: extern "C" fn(self_c: *const RUBase, f: i32) -> RUColor, pub is_valid_color: extern "C" fn(self_c: *const RUBase, name: *const c_char) -> bool,
}

Fields

destroy: extern "C" fn(self_c: *const RUBase)is_valid: extern "C" fn(self_c: *const RUBase) -> boolname: extern "C" fn(self_c: *const RUBase) -> *const c_charname_2: extern "C" fn(self_c: *const RUBase, format: u32) -> *const c_charset_named_color: extern "C" fn(self_c: *const RUBase, name: *const c_char)spec: extern "C" fn(self_c: *const RUBase) -> u32alpha: extern "C" fn(self_c: *const RUBase) -> i32set_alpha: extern "C" fn(self_c: *const RUBase, alpha: i32)alpha_f: extern "C" fn(self_c: *const RUBase) -> f32set_alpha_f: extern "C" fn(self_c: *const RUBase, alpha: f32)red: extern "C" fn(self_c: *const RUBase) -> i32green: extern "C" fn(self_c: *const RUBase) -> i32blue: extern "C" fn(self_c: *const RUBase) -> i32set_red: extern "C" fn(self_c: *const RUBase, red: i32)set_green: extern "C" fn(self_c: *const RUBase, green: i32)set_blue: extern "C" fn(self_c: *const RUBase, blue: i32)red_f: extern "C" fn(self_c: *const RUBase) -> f32green_f: extern "C" fn(self_c: *const RUBase) -> f32blue_f: extern "C" fn(self_c: *const RUBase) -> f32set_red_f: extern "C" fn(self_c: *const RUBase, red: f32)set_green_f: extern "C" fn(self_c: *const RUBase, green: f32)set_blue_f: extern "C" fn(self_c: *const RUBase, blue: f32)set_rgb: extern "C" fn(self_c: *const RUBase, r: i32, g: i32, b: i32, a: i32)set_rgb_f: extern "C" fn(self_c: *const RUBase, r: f32, g: f32, b: f32, a: f32)hue: extern "C" fn(self_c: *const RUBase) -> i32saturation: extern "C" fn(self_c: *const RUBase) -> i32hsv_hue: extern "C" fn(self_c: *const RUBase) -> i32hsv_saturation: extern "C" fn(self_c: *const RUBase) -> i32value: extern "C" fn(self_c: *const RUBase) -> i32hue_f: extern "C" fn(self_c: *const RUBase) -> f32saturation_f: extern "C" fn(self_c: *const RUBase) -> f32hsv_hue_f: extern "C" fn(self_c: *const RUBase) -> f32hsv_saturation_f: extern "C" fn(self_c: *const RUBase) -> f32value_f: extern "C" fn(self_c: *const RUBase) -> f32set_hsv: extern "C" fn(self_c: *const RUBase, h: i32, s: i32, v: i32, a: i32)set_hsv_f: extern "C" fn(self_c: *const RUBase, h: f32, s: f32, v: f32, a: f32)cyan: extern "C" fn(self_c: *const RUBase) -> i32magenta: extern "C" fn(self_c: *const RUBase) -> i32yellow: extern "C" fn(self_c: *const RUBase) -> i32black: extern "C" fn(self_c: *const RUBase) -> i32cyan_f: extern "C" fn(self_c: *const RUBase) -> f32magenta_f: extern "C" fn(self_c: *const RUBase) -> f32yellow_f: extern "C" fn(self_c: *const RUBase) -> f32black_f: extern "C" fn(self_c: *const RUBase) -> f32set_cmyk: extern "C" fn(self_c: *const RUBase, c: i32, m: i32, y: i32, k: i32, a: i32)set_cmyk_f: extern "C" fn(self_c: *const RUBase, c: f32, m: f32, y: f32, k: f32, a: f32)hsl_hue: extern "C" fn(self_c: *const RUBase) -> i32hsl_saturation: extern "C" fn(self_c: *const RUBase) -> i32lightness: extern "C" fn(self_c: *const RUBase) -> i32hsl_hue_f: extern "C" fn(self_c: *const RUBase) -> f32hsl_saturation_f: extern "C" fn(self_c: *const RUBase) -> f32lightness_f: extern "C" fn(self_c: *const RUBase) -> f32set_hsl: extern "C" fn(self_c: *const RUBase, h: i32, s: i32, l: i32, a: i32)set_hsl_f: extern "C" fn(self_c: *const RUBase, h: f32, s: f32, l: f32, a: f32)to_rgb: extern "C" fn(self_c: *const RUBase) -> RUColorto_hsv: extern "C" fn(self_c: *const RUBase) -> RUColorto_cmyk: extern "C" fn(self_c: *const RUBase) -> RUColorto_hsl: extern "C" fn(self_c: *const RUBase) -> RUColorconvert_to: extern "C" fn(self_c: *const RUBase, color_spec: u32) -> RUColorfrom_rgb_2: extern "C" fn(self_c: *const RUBase, r: i32, g: i32, b: i32, a: i32) -> RUColorfrom_rgb_f: extern "C" fn(self_c: *const RUBase, r: f32, g: f32, b: f32, a: f32) -> RUColorfrom_rgba64: extern "C" fn(self_c: *const RUBase, r: u16, g: u16, b: u16, a: u16) -> RUColorfrom_hsv: extern "C" fn(self_c: *const RUBase, h: i32, s: i32, v: i32, a: i32) -> RUColorfrom_hsv_f: extern "C" fn(self_c: *const RUBase, h: f32, s: f32, v: f32, a: f32) -> RUColorfrom_cmyk: extern "C" fn(self_c: *const RUBase, c: i32, m: i32, y: i32, k: i32, a: i32) -> RUColorfrom_cmyk_f: extern "C" fn(self_c: *const RUBase, c: f32, m: f32, y: f32, k: f32, a: f32) -> RUColorfrom_hsl: extern "C" fn(self_c: *const RUBase, h: i32, s: i32, l: i32, a: i32) -> RUColorfrom_hsl_f: extern "C" fn(self_c: *const RUBase, h: f32, s: f32, l: f32, a: f32) -> RUColorlight: extern "C" fn(self_c: *const RUBase, f: i32) -> RUColorlighter: extern "C" fn(self_c: *const RUBase, f: i32) -> RUColordark: extern "C" fn(self_c: *const RUBase, f: i32) -> RUColordarker: extern "C" fn(self_c: *const RUBase, f: i32) -> RUColoris_valid_color: extern "C" fn(self_c: *const RUBase, name: *const c_char) -> bool

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.