Re:Raygui – A simple and easy-to-use immediate-mode GUI library
by rstat1 on Saturday March 26, 2022 @02:39PM
(#30814175)
Its entirely dependent on how w/e library your using implements that pattern.
For the code I just recently wrote that does a similar thing, its literally just:
button.SetIcon(<icon-path-or-font-glyph>)
box.add(button)
Doesn't really seem all that weird to me.