#[repr(C)]pub struct Tvg_Color_Stop {
pub offset: f32,
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
@brief A data structure storing the information about the color and its relative position inside the gradient bounds.
Fields§
§offset: f32< The relative position of the color.
r: u8< The red color channel value in the range [0 ~ 255].
g: u8< The green color channel value in the range [0 ~ 255].
b: u8< The blue color channel value in the range [0 ~ 255].
a: u8< The alpha channel value in the range [0 ~ 255], where 0 is completely transparent and 255 is opaque.
Trait Implementations§
Source§impl Clone for Tvg_Color_Stop
impl Clone for Tvg_Color_Stop
Source§fn clone(&self) -> Tvg_Color_Stop
fn clone(&self) -> Tvg_Color_Stop
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Tvg_Color_Stop
impl Debug for Tvg_Color_Stop
impl Copy for Tvg_Color_Stop
Auto Trait Implementations§
impl Freeze for Tvg_Color_Stop
impl RefUnwindSafe for Tvg_Color_Stop
impl Send for Tvg_Color_Stop
impl Sync for Tvg_Color_Stop
impl Unpin for Tvg_Color_Stop
impl UnsafeUnpin for Tvg_Color_Stop
impl UnwindSafe for Tvg_Color_Stop
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