pub struct BackgroundFillGradient {
pub top_color: i32,
pub bottom_color: i32,
pub rotation_angle: i32,
}
Expand description
Describes a gradient fill of a background
Fields§
§top_color: i32
A top color of the background in the RGB24 format
bottom_color: i32
A bottom color of the background in the RGB24 format
rotation_angle: i32
Clockwise rotation angle of the gradient, in degrees; 0-359. Must always be divisible by 45
Trait Implementations§
Source§impl Clone for BackgroundFillGradient
impl Clone for BackgroundFillGradient
Source§fn clone(&self) -> BackgroundFillGradient
fn clone(&self) -> BackgroundFillGradient
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 BackgroundFillGradient
impl Debug for BackgroundFillGradient
Source§impl Default for BackgroundFillGradient
impl Default for BackgroundFillGradient
Source§fn default() -> BackgroundFillGradient
fn default() -> BackgroundFillGradient
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackgroundFillGradient
impl<'de> Deserialize<'de> for BackgroundFillGradient
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BackgroundFillGradient
impl PartialEq for BackgroundFillGradient
Source§impl Serialize for BackgroundFillGradient
impl Serialize for BackgroundFillGradient
impl StructuralPartialEq for BackgroundFillGradient
Auto Trait Implementations§
impl Freeze for BackgroundFillGradient
impl RefUnwindSafe for BackgroundFillGradient
impl Send for BackgroundFillGradient
impl Sync for BackgroundFillGradient
impl Unpin for BackgroundFillGradient
impl UnwindSafe for BackgroundFillGradient
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