Home
last modified time | relevance | path

Searched refs:styleValue_ (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/
H A Dapp_style_item.h84 styleValue_({ 0.0 }), in AppStyleItem()
94 ACE_FREE(styleValue_.string); in ~AppStyleItem()
115 return (styleValue_.string != nullptr) ? strlen(styleValue_.string) : 0; in GetStrValueLen()
120 return (valueType_ != STYLE_PROP_VALUE_TYPE_NUMBER) ? 0 : styleValue_.number; in GetNumValue()
125 return (valueType_ != STYLE_PROP_VALUE_TYPE_BOOL) ? false : styleValue_.boolean; in GetBoolValue()
135 return (valueType_ != STYLE_PROP_VALUE_TYPE_PERCENT) ? 0 : styleValue_.percent; in GetPercentValue()
193 styleValue_.number = value; in SetNumValue()
199 styleValue_.boolean = value; in SetBoolValue()
205 styleValue_.floating = value; in SetFloatingValue()
211 styleValue_.percent = value; in SetPercentValue()
[all …]
H A Dapp_style_item.cpp56 styleValue_.string = static_cast<char *>(ace_malloc(sizeof(char) * (len + 1))); in SetStringValue()
57 if (styleValue_.string == nullptr) { in SetStringValue()
61 if (memcpy_s(styleValue_.string, len, value, len) != 0) { in SetStringValue()
63 ace_free(styleValue_.string); in SetStringValue()
64 styleValue_.string = nullptr; in SetStringValue()
67 *(styleValue_.string + len) = '\0'; in SetStringValue()
177 ACE_FREE(styleValue_.string); in CreateStyleItem()