mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-09 14:09:28 +00:00
Unfriend the 20 IGUIObject classes from CGUI.
Improves separation of concerns and makes the code less error prone,
since the IGUIObject classes can't break CGUI private members without
CGUIs help anymore.
This is achieved by making CGUI GetFocusedObject, UpdateObjects public,
by introducing public CGUI GetBaseObject, GetMousePos, GetMouseButtons,
HasStyle, GetStyle getters,
and by removing the pointless IGUIObject GetMousePos proxy.
Delete GetGUI() checks that are either always or never true following
2c47fbd66a.
Use const references instead of copies for some mouse positions.
Differential Revision: https://code.wildfiregames.com/D2166
This was SVN commit r22641.
This commit is contained in:
1 parent
ca00267faf
commit
d3e56f0f57
20 files changed
+61
-122
No files matched your search
@@ -64,9 +64,6 @@ void CProgressBar::HandleMessage(SGUIMessage& Message)
|
||||
|
||||
void CProgressBar::Draw()
|
||||
{
|
||||
if (!GetGUI())
|
||||
return;
|
||||
|
||||
float bz = GetBufferedZ();
|
||||
|
||||
CGUISpriteInstance* sprite_background;
|
||||
|
||||
Reference in new issue
Block a user