4 ms·
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:
by rstat1 5y ago
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.