Struct cursive_core::style::gradient::Angled
source · pub struct Angled {
pub angle_rad: f32,
pub gradient: Linear,
}Expand description
An angled linear gradient.
Fields§
§angle_rad: f32Angle of the gradient in radians.
- 0 = vertical from top to bottom.
- Pi/2 = horizontal from left to right.
- Pi = vertical from bottom to top.
- 3.Pi/2 = vertical from bottom to top.
gradient: LinearThe gradient to apply following the gradient angle.
Trait Implementations§
source§impl Interpolator for Angled
impl Interpolator for Angled
Auto Trait Implementations§
impl Freeze for Angled
impl RefUnwindSafe for Angled
impl Send for Angled
impl Sync for Angled
impl Unpin for Angled
impl UnwindSafe for Angled
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