The function fn (ctx &Context) draw_line_with_config(x f32, y f32, x2 f32, y2 f32, config PenConfig) in module gg is very useful for drawing custom lines.
Currently, there exists only fn (c &CanvasLayout) draw_device_line(d DrawDevice, ..., color gx.Color) which accepts only color as a config param.
A new function fn (c &CanvasLayout) draw_device_line_with_config(d DrawDevice, ..., config LineConfig) that accepts a similar PenConfig struct as an argument would be very helpful.
The function
fn (ctx &Context) draw_line_with_config(x f32, y f32, x2 f32, y2 f32, config PenConfig)
in modulegg
is very useful for drawing custom lines.Currently, there exists only
fn (c &CanvasLayout) draw_device_line(d DrawDevice, ..., color gx.Color)
which accepts only color as a config param.A new function
fn (c &CanvasLayout) draw_device_line_with_config(d DrawDevice, ..., config LineConfig)
that accepts a similar PenConfig struct as an argument would be very helpful.