i_slint_core::graphics

Function line_for_angle

Source
pub fn line_for_angle(
    angle: f32,
    size: Size2D<f32>,
) -> (Point2D<f32>, Point2D<f32>)
Expand description

Returns the start / end points of a gradient within a rectangle of the given size, based on the angle (in degree).