In that case, if it is not yet implemented I would like to propose something.
Normally setOrigin function is just taking x and y coordinates in local coordinate system, however in my opinion it would be very handy to have another overload.
This overload should take two std::string arguments which would determine the position of the origin.
First std::string should take only 3 possible values: "Left", "Middle", "Right", second one should take another 3 values: "Top", "Middle", "Bottom". This gives you 9 very easy to set origin points which are very often used (from my experience).
What do you think about it?
Normally setOrigin function is just taking x and y coordinates in local coordinate system, however in my opinion it would be very handy to have another overload.
This overload should take two std::string arguments which would determine the position of the origin.
First std::string should take only 3 possible values: "Left", "Middle", "Right", second one should take another 3 values: "Top", "Middle", "Bottom". This gives you 9 very easy to set origin points which are very often used (from my experience).
Code (cpp) Select
Widget widget;
widget->setOrigin("Middle", "Middle");What do you think about it?