Minor clean up.

This commit is contained in:
Martín Lucas Golini
2024-02-10 20:46:05 -03:00
parent 0a23b3682b
commit a09377f8e6
7 changed files with 36 additions and 34 deletions

View File

@@ -108,6 +108,10 @@ class EE_API SceneNode : public Node {
const Float& getDPI() const;
bool getVerbose() const;
void setVerbose( bool verbose );
protected:
friend class Node;
typedef UnorderedSet<Node*> CloseList;
@@ -117,6 +121,7 @@ class EE_API SceneNode : public Node {
FrameBuffer* mFrameBuffer;
EventDispatcher* mEventDispatcher;
CloseList mCloseList;
Clock mClock;
bool mFrameBufferBound;
bool mUseInvalidation;
bool mUseGlobalCursors;
@@ -127,6 +132,9 @@ class EE_API SceneNode : public Node {
bool mHighlightOver;
bool mHighlightFocus;
bool mHighlightInvalidation;
bool mFirstUpdate{ true };
bool mFirstFrame{ true };
bool mVerbose{ false };
Color mHighlightFocusColor;
Color mHighlightOverColor;
Color mHighlightInvalidationColor;

View File

@@ -99,10 +99,6 @@ class EE_API UISceneNode : public SceneNode {
UIWidget* getRoot() const;
bool getVerbose() const;
void setVerbose( bool verbose );
void invalidateStyle( UIWidget* widget );
void invalidateStyleState( UIWidget* widget, bool disableCSSAnimations = false );
@@ -179,11 +175,8 @@ class EE_API UISceneNode : public SceneNode {
Translator mTranslator;
std::vector<UIWindow*> mWindowsList;
CSS::StyleSheet mStyleSheet;
bool mIsLoading;
bool mVerbose;
bool mUpdatingLayouts;
bool mFirstUpdate{ true };
Clock mClock;
bool mIsLoading{ false };
bool mUpdatingLayouts{ false };
UIThemeManager* mUIThemeManager{ nullptr };
UIIconThemeManager* mUIIconThemeManager{ nullptr };
std::vector<Font*> mFontFaces;