0ad/source/gui/ObjectBases
wraitii fc60d80af1 Simplify GUI Proxy implementation & customisation.
This finishes 7c04ea0211 and 1b67a079fb.
GUI Proxy objects are now easier to specialize, code duplication is
reduced, code is made safer.
In details:
- the proxy private is always the IGUIObject* pointer
- the private data is accessed through a safer wrapper
- CreateJSObject returns an opaque type to allow easier extension &
prevent errors.
- The implementation of CreateJSObject is moved near the GUI Proxy
template instantiation, and both are wrapped in a convenient macro (this
makes it so that if you use the macro, you can't forget to overload the
method, and vice-versa).
- The common IGUIObject JS interface no longer needs to be repeated.
- All specialisations are again put in the same file, for improved
compile-time & clarity, given there are so few lines now.
- While at it, implement toSource which makes it possible to `uneval`
components (does the same as toString though).


Differential Revision: https://code.wildfiregames.com/D3826
This was SVN commit r25225.
2021-04-09 18:01:47 +00:00
..
IGUIButtonBehavior.cpp Cleanups CGUISprite, removes redundant method. 2021-03-31 19:26:05 +00:00
IGUIButtonBehavior.h Clean up header includes, add new forward declarations. 2020-11-21 11:20:29 +00:00
IGUIObject.cpp Simplify GUI Proxy implementation & customisation. 2021-04-09 18:01:47 +00:00
IGUIObject.h Simplify GUI Proxy implementation & customisation. 2021-04-09 18:01:47 +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 Replaces CPos by more a consistent CVector2D, reduces geometry code duplication. 2021-03-28 21:55:13 +00:00
IGUITextOwner.h Moves CRect from ps to maths to related geometric primitives. 2021-03-30 21:14:36 +00:00