Added CSSNodeIsVisible()

This commit is contained in:
roxlu
2016-11-03 20:50:25 +01:00
parent a048b6e4c7
commit a3fc773d75
2 changed files with 5 additions and 0 deletions

View File

@@ -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;

View File

@@ -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);