Searched refs:jsonShadow (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/texttimer/ |
H A D | text_timer_layout_property.cpp | 50 auto jsonShadow = JsonUtil::Create(true); in ConvertShadowToJson() local 51 jsonShadow->Put("radius", std::to_string(shadow.GetBlurRadius()).c_str()); in ConvertShadowToJson() 52 jsonShadow->Put("color", shadow.GetColor().ColorToString().c_str()); in ConvertShadowToJson() 53 jsonShadow->Put("offsetX", std::to_string(shadow.GetOffset().GetX()).c_str()); in ConvertShadowToJson() 54 jsonShadow->Put("offsetY", std::to_string(shadow.GetOffset().GetY()).c_str()); in ConvertShadowToJson() 55 jsonShadow->Put("type", std::to_string(static_cast<int32_t>(shadow.GetShadowType())).c_str()); in ConvertShadowToJson() 56 return jsonShadow; in ConvertShadowToJson() 89 …auto jsonShadow = (shadow.size() == 1) ? ConvertShadowToJson(shadow.front()) : ConvertShadowsToJso… in ToJsonValue() local 90 json->PutExtAttr("textShadow", jsonShadow, filter); in ToJsonValue()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_layout_property.cpp | 37 auto jsonShadow = JsonUtil::Create(true); in CovertShadowToJson() local 38 jsonShadow->Put("radius", std::to_string(shadow.GetBlurRadius()).c_str()); in CovertShadowToJson() 39 jsonShadow->Put("color", shadow.GetColor().ColorToString().c_str()); in CovertShadowToJson() 40 jsonShadow->Put("offsetX", std::to_string(shadow.GetOffset().GetX()).c_str()); in CovertShadowToJson() 41 jsonShadow->Put("offsetY", std::to_string(shadow.GetOffset().GetY()).c_str()); in CovertShadowToJson() 42 jsonShadow->Put("type", std::to_string(static_cast<int32_t>(shadow.GetShadowType())).c_str()); in CovertShadowToJson() 43 return jsonShadow; in CovertShadowToJson() 123 …auto jsonShadow = (shadow.size() == 1) ? CovertShadowToJson(shadow.front()) : CovertShadowsToJson(… in ToJsonValue() local 124 json->PutExtAttr("textShadow", jsonShadow, filter); in ToJsonValue()
|
H A D | span_node.cpp | 55 auto jsonShadow = JsonUtil::Create(true); in ConvertShadowToJson() local 56 jsonShadow->Put("radius", std::to_string(shadow.GetBlurRadius()).c_str()); in ConvertShadowToJson() 57 jsonShadow->Put("color", shadow.GetColor().ColorToString().c_str()); in ConvertShadowToJson() 58 jsonShadow->Put("offsetX", std::to_string(shadow.GetOffset().GetX()).c_str()); in ConvertShadowToJson() 59 jsonShadow->Put("offsetY", std::to_string(shadow.GetOffset().GetY()).c_str()); in ConvertShadowToJson() 60 jsonShadow->Put("type", std::to_string(static_cast<int32_t>(shadow.GetShadowType())).c_str()); in ConvertShadowToJson() 61 return jsonShadow; in ConvertShadowToJson() 114 …auto jsonShadow = (shadow.size() == 1) ? ConvertShadowToJson(shadow.front()) : ConvertShadowsToJso… in ToJsonValue() local 115 json->PutExtAttr("textShadow", jsonShadow, filter); in ToJsonValue()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | render_property.cpp | 148 auto jsonShadow = JsonUtil::Create(true); in ToJsonValue() local 163 jsonShadow->Put("radius", std::to_string(shadow.GetBlurRadius()).c_str()); in ToJsonValue() 165 jsonShadow->Put("color", "ColoringStrategy.AVERAGE"); in ToJsonValue() 167 jsonShadow->Put("color", "ColoringStrategy.PRIMARY"); in ToJsonValue() 169 jsonShadow->Put("color", shadow.GetColor().ColorToString().c_str()); in ToJsonValue() 171 jsonShadow->Put("offsetX", std::to_string(shadow.GetOffset().GetX()).c_str()); in ToJsonValue() 172 jsonShadow->Put("offsetY", std::to_string(shadow.GetOffset().GetY()).c_str()); in ToJsonValue() 173 … jsonShadow->Put("type", std::to_string(static_cast<int32_t>(shadow.GetShadowType())).c_str()); in ToJsonValue() 174 jsonShadow->Put("fill", std::to_string(shadow.GetIsFilled()).c_str()); in ToJsonValue() 175 json->PutExtAttr("shadow", jsonShadow, filter); in ToJsonValue()
|