diff --git a/CSSLayout/CSSLayout.c b/CSSLayout/CSSLayout.c index 668ba35b..e448a409 100644 --- a/CSSLayout/CSSLayout.c +++ b/CSSLayout/CSSLayout.c @@ -297,6 +297,10 @@ void CSSNodeShow(const CSSNodeRef node) { node->isVisible = true;; } +WIN_EXPORT bool CSSNodeIsVisible(const CSSNodeRef node) { + return node->isVisible; +} + inline float CSSNodeStyleGetFlexGrow(CSSNodeRef node) { if (!CSSValueIsUndefined(node->style.flexGrow)) { return node->style.flexGrow; diff --git a/CSSLayout/CSSLayout.h b/CSSLayout/CSSLayout.h index 8a08910c..02d451e1 100644 --- a/CSSLayout/CSSLayout.h +++ b/CSSLayout/CSSLayout.h @@ -159,6 +159,7 @@ WIN_EXPORT bool CSSNodeIsDirty(const CSSNodeRef node); WIN_EXPORT void CSSNodeHide(const CSSNodeRef node); WIN_EXPORT void CSSNodeShow(const CSSNodeRef node); +WIN_EXPORT bool CSSNodeIsVisible(const CSSNodeRef node); WIN_EXPORT void CSSNodePrint(const CSSNodeRef node, const CSSPrintOptions options);