You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found in the manual errors in the order of the parameters of four functions of the painter class.
In the function $setFont the help says from line 302 of file src/modules/objects/KvsObject_painter.cpp
!fn: $setFont(family:string,size:integer[,style:enum,style:enum,..])[br]
Set the font's family, size and style, valid flag for style are:[br]
the same as in class widget but in the code the order says:
Maybe the correct solution is to change the order of the parameters to this function, so that the two classes widget and painter would have a setFont function with the same order of parameters.
The same occurs with the following three functions:
$drawPie(<x:integer>,<y:integer>,<w:unsigned integer>,<h:unsigned integer>,angle:integer,alen:integer)
$drawArc(<x:integer>,<y:integer>,<w:unsigned integer>,<h:unsigned integer>,angle:integer,alen:integer)
$drawChord(<x:integer>,<y:integer>,<w:unsigned integer>,<h:unsigned integer>,angle:integer,alen:integer)
in the code the order of the three is:
(angle:integer,alen:integer,<x:integer>,<y:integer>,<w:unsigned integer>,<h:unsigned integer>)
I don't know when the order of the parameters of these last three was changed, the Grifisx/Noldor scripts used the order indicated in the manual, so the code was changed at some point.
The text was updated successfully, but these errors were encountered:
I found in the manual errors in the order of the parameters of four functions of the painter class.
In the function $setFont the help says from line 302 of file src/modules/objects/KvsObject_painter.cpp
!fn: $setFont(family:string,size:integer[,style:enum,style:enum,..])[br]
Set the font's family, size and style, valid flag for style are:[br]
the same as in class widget but in the code the order says:
this was introduced in dbaac33
Maybe the correct solution is to change the order of the parameters to this function, so that the two classes widget and painter would have a setFont function with the same order of parameters.
The same occurs with the following three functions:
$drawPie(<x:integer>,<y:integer>,<w:unsigned integer>,<h:unsigned integer>,angle:integer,alen:integer)
$drawArc(<x:integer>,<y:integer>,<w:unsigned integer>,<h:unsigned integer>,angle:integer,alen:integer)
$drawChord(<x:integer>,<y:integer>,<w:unsigned integer>,<h:unsigned integer>,angle:integer,alen:integer)
in the code the order of the three is:
(angle:integer,alen:integer,<x:integer>,<y:integer>,<w:unsigned integer>,<h:unsigned integer>)
I don't know when the order of the parameters of these last three was changed, the Grifisx/Noldor scripts used the order indicated in the manual, so the code was changed at some point.
The text was updated successfully, but these errors were encountered: