I've searched through loosescrews for somthing like this but cant find it so I ask one of or talented module writers to have a go shouldn't be too hard (I Hope).
I would like a module that would draw a line from PointA to PointB with no mouse reaction just somthing like
*line x1,y1,x2,y2,pixilwidth,color
with x1,y1 being the start and x2,y2 the end
Of course you should be able to define more that one like this
*line 10,10,200,10,2,FFFFF
*line 10,20,200,20,2,FF00FF
or on an angle
*line 10,10,200,200,1,FFFFF
This would come in very handy for drawing themes dont you think
JEZZ
I guess to be really usefull you could add line creation with bangs and a ontop var groups
maybe name them so you can destroy thm and hide them on the fly as well so the new format is
*line name #group/flags x1,y1,x2,y2 pixilwidth color
with bangs line
!line create testline #1T 10,10,200,10 2 FFFFF
!line destroy testline
!line ontop testline
etc etc etc
I'm unsure what your purpose is.. but if it's to make desktop backgrounds.. blackbox (bb4win) comes with the Blackbox bsetroot program that creates a pattern on the desktop based on your input.. it creates lines, grids, etc..
just search in google for bb4win.. or if you just want the bbsetroot i guess i can give it to you. I'm not sure how exactly to use it tho, i just copied the command line from a blackbox style.
i'd use label and have it draw underlined blank text or just underscores as the LabelText.
Well that dosn't let you draw diagonal lines does it
And as for the purpose stricly for graphic design like maybe linking labels and shortcuts with line and stuff.
The ability to have individual lines move up and down through z-order would make them very inefficient. (really, anything other than onbottom) Each one would need to be its own window, with a custom region. If you wanted them to be antialiased, that's even worse. You could be clever and combine lines with the same z-order, but it might be a little complicated to keep track of everything. (and anti-aliasing makes that worse as well)
I don't see how this could look very nice without fills at least though... Theoretically, you could have filled shapes bounded by lines and cubic splines, but I imagine the interface and point management code would be quite tedius to write.
I'd rather have some form of SVG implemented. At least then you'd end up with something semi-standardized after all that work.