cschreib / lxgui

Portable, real time, modular and data-driven GUI C++ library.
https://cschreib.github.io/lxgui
MIT License
73 stars 20 forks source link

Make root uiobjects frames #36

Closed cschreib closed 4 years ago

cschreib commented 4 years ago

Layered regions should not be allowed to be root, so let's enforce this with the type system. Remove the public function add_root_uiobject() and merge this functionality into create_frame() (the overload that takes > 1 parameter) to be renamed create_root_frame().