Function i_slint_core::graphics::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).