achimdoebler / UGUI

µGUI - Open Source GUI module for embedded systems
Other
1.2k stars 415 forks source link

Inconsistent API #41

Open mrbell321 opened 3 years ago

mrbell321 commented 3 years ago

https://github.com/achimdoebler/UGUI/blob/ce0bccb5b7d4877c42081419fccadf7aa5727303/ugui.h#L898-L899

UG_PutString, as with most other functions, has the location first, then the object. UG_PutChar, on the other hand, has the object first, then the location. Additionally UG_PutChar sets the foreground&background colors, but UG_PutString does not have any color information. Other graphics primitives have only the foreground color. This makes for an inconsistent UI.