allegroflare / allegro_flare

Application toolkit for Allegro 5
https://clubcatt.com/allegroflare
MIT License
35 stars 6 forks source link

UIWidgets Should Have Their SurfaceAreas passed by Object #121

Closed MarkOates closed 2 years ago

MarkOates commented 7 years ago

Situation

Currently, SurfaceAreas are initialized by new when creating a UIWidget object:

new UIWidget(parent, "UIWidget", new UISurfaceAreaBox(10, 20, 30, 40));

Rather they should be passed by value:

new UIWidget(parent, "UIWidget", UISurfaceAreaBox(10, 20, 30, 40));
MarkOates commented 2 years ago

All UIWidget classes will be depreciated in the migration. Closing this issue.