Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Painter DrawLine proposal
Painter DrawLine proposal [message #23781] |
Sat, 21 November 2009 14:56 |
|
koldo
Messages: 3372 Registered: August 2008
|
Senior Veteran |
|
|
Hello Mirek
Now Painter function DrawLine is shifted to the South East.
void Painter::DrawLineOp(int x1, int y1, int x2, int y2, int width, Color color)
{
double h = width / 2;
Move(x1 + h, y1 + h);
Line(x2 + h, y2 + h);*/
DrawLineStroke(width, color);
}
However Draw DrawLine function is centered to the axis x1, y1 and x2, y2.
I propose you to have the same behavior in both so the Painter function would be:
void Painter::DrawLineOp(int x1, int y1, int x2, int y2, int width, Color color)
{
Move(x1, y1);
Line(x2, y2);
DrawLineStroke(width, color);
}
This way the code for a control in a .usc file is valid in a .cpp file. And the behavior in Painter is more natural.
What do you think ?
Best regards
Koldo
Best regards
IƱaki
|
|
|
|
Goto Forum:
Current Time: Wed Jun 05 07:55:37 CEST 2024
Total time taken to generate the page: 0.01273 seconds
|