WidgetReflector: Add support for GlobalInvalidation.

#rb vincent.gauthier

[CL 14781816 by Patrick Boutot in ue5-main branch]
This commit is contained in:
Patrick Boutot
2020-11-18 16:33:17 -04:00
parent 8d4c415d78
commit 595e36d594
13 changed files with 225 additions and 75 deletions
@@ -77,18 +77,40 @@ public:
virtual FText GetWidgetClippingText() const = 0;
/**
* @return The bool indicating whether or not the widget we were initialized from reports as Focusable
*/
* @return The bool indicating whether or not the widget we were initialized from reports as Focusable
*/
virtual bool GetWidgetFocusable() const = 0;
/** Is the widget visible? */
/**
* @return The bool indicating whether or not the widget we were initialized from reports is visible
*/
virtual bool GetWidgetVisible() const = 0;
/**
* @return The bool indicating whether or not the widget we were initialized from reports needs tick
*/
virtual bool GetWidgetNeedsTick() const = 0;
/**
* @return The bool indicating whether or not the widget we were initialized from reports is volatile
*/
virtual bool GetWidgetIsVolatile() const = 0;
/**
* @return The bool indicating whether or not the widget we were initialized from reports is volatile indirectly
*/
virtual bool GetWidgetIsVolatileIndirectly() const = 0;
/**
* @return The bool indicating whether or not the widget we were initialized from reports has active timers
*/
virtual bool GetWidgetHasActiveTimers() const = 0;
/**
* @return The bool indicating whether or not the widget we were initialized from reports is an Invalidation Root
*/
virtual bool GetWidgetIsInvalidationRoot() const = 0;
/**
* The human readable location for widgets that are defined in C++ is the file and line number
* The human readable location for widgets that are defined in UMG is the asset name
@@ -240,6 +262,7 @@ public:
virtual bool GetWidgetIsVolatile() const override;
virtual bool GetWidgetIsVolatileIndirectly() const override;
virtual bool GetWidgetHasActiveTimers() const override;
virtual bool GetWidgetIsInvalidationRoot() const override;
virtual FText GetWidgetReadableLocation() const override;
virtual FString GetWidgetFile() const override;
virtual int32 GetWidgetLineNumber() const override;
@@ -296,6 +319,7 @@ public:
virtual bool GetWidgetIsVolatile() const override;
virtual bool GetWidgetIsVolatileIndirectly() const override;
virtual bool GetWidgetHasActiveTimers() const override;
virtual bool GetWidgetIsInvalidationRoot() const override;
virtual FText GetWidgetReadableLocation() const override;
virtual FString GetWidgetFile() const override;
virtual int32 GetWidgetLineNumber() const override;
@@ -334,7 +358,7 @@ private:
/** The visibility string of the widget at the point it was passed to Initialize */
FText CachedWidgetVisibilityText;
/** Is the widget visible? */
/** The visible of the widget at the point it was passed to Initialize */
bool bCachedWidgetVisible;
/** The focusability of the widget at the point it was passed to Initialize */
@@ -351,6 +375,9 @@ private:
/** The active timer state of the widget at the point it was passed to Initialize */
bool bCachedWidgetHasActiveTimers;
/** If the widget was an invalidation root at the point it was passed to Initialize */
bool bCachedWidgetIsInvalidationRoot;
/** The enabled state of the widget at the point it was passed to Initialize */
bool bCachedWidgetEnabled;
@@ -500,6 +527,7 @@ public:
static bool GetWidgetIsVolatile(const TSharedPtr<const SWidget>& InWidget);
static bool GetWidgetIsVolatileIndirectly(const TSharedPtr<const SWidget>& InWidget);
static bool GetWidgetHasActiveTimers(const TSharedPtr<const SWidget>& InWidget);
static bool GetWidgetIsInvalidationRoot(const TSharedPtr<const SWidget>& InWidget);
/**
* The human readable location for widgets that are defined in C++ is the file and line number