From a3fc773d757014e81feb968454314427fc2b8d8f Mon Sep 17 00:00:00 2001 From: roxlu Date: Thu, 3 Nov 2016 20:50:25 +0100 Subject: [PATCH] Added CSSNodeIsVisible() --- CSSLayout/CSSLayout.c | 4 ++++ CSSLayout/CSSLayout.h | 1 + 2 files changed, 5 insertions(+) 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);