ui icon indicating copy to clipboard operation
ui copied to clipboard

Add a new function `draw_device_line_with_config`

Open impopular-guy opened this issue 3 years ago • 0 comments

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.

impopular-guy avatar Feb 25 '23 20:02 impopular-guy