0ad/source/gui/ObjectBases
wraitii 1b67a079fb Reduce duplication in JSI GUI objects implementation.
- Store the functions in an unordered_map. A no-container implementation
is doable but likely not worth the added code complexity, maybe with
C++20
- Move more things into the _impl.h
- Clear out the un-necessary friends declaration in the specific types
by moving the functions to the public interface, which makes sense.
- Fix a memory leak (JS::PersistentRootedObject weren't deleted).

This doesn't change what one needs to do to add a new type, but it does
reduce the actual code that's necessary, and makes it less error prone.

Differential Revision: https://code.wildfiregames.com/D3214
This was SVN commit r24384.
2020-12-13 15:06:18 +00:00
..
IGUIButtonBehavior.cpp Allow right-click on disabled buttons. 2020-11-14 18:16:24 +00:00
IGUIButtonBehavior.h Clean up header includes, add new forward declarations. 2020-11-21 11:20:29 +00:00
IGUIObject.cpp Reduce duplication in JSI GUI objects implementation. 2020-12-13 15:06:18 +00:00
IGUIObject.h Further header & precompiled cleanup, fix no-PCH builds. 2020-12-09 14:39:14 +00:00
IGUIScrollBarOwner.cpp Further header & precompiled cleanup, fix no-PCH builds. 2020-12-09 14:39:14 +00:00
IGUIScrollBarOwner.h Further header & precompiled cleanup, fix no-PCH builds. 2020-12-09 14:39:14 +00:00
IGUITextOwner.cpp Further header & precompiled cleanup, fix no-PCH builds. 2020-12-09 14:39:14 +00:00
IGUITextOwner.h Further header & precompiled cleanup, fix no-PCH builds. 2020-12-09 14:39:14 +00:00