andlabs / andlabs/libui

What's the object ownership model?

Aperta
#544 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C
Stelle
10.9k
Fork
612
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When I create a control and add it to a hierarchy, apparently the parent control takes ownership of the child and ensures that it gets cleaned up properly.

If I create a window and show it with `uiControlShow()`, it seems that libui takes ownership of the window. Maybe because it's been reparented to the conceptual screen?

What happens then if I call `uiControlHide()`? Is the window deparented and therefore mine again, or does libui still keep it? What happens if I then show it once more?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.