/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_text_clock_ffi.cpp | 202 std::vector<Shadow> shadows(nativeTextShadowVec.size()); in FfiOHOSAceFrameworkTextClockTextShadow() 207 shadows[i].SetBlurRadius(nativeTextShadowVec[i].radius); in FfiOHOSAceFrameworkTextClockTextShadow() 208 shadows[i].SetOffsetX(dOffsetX.Value()); in FfiOHOSAceFrameworkTextClockTextShadow() 209 shadows[i].SetOffsetY(dOffsetY.Value()); in FfiOHOSAceFrameworkTextClockTextShadow() 210 shadows[i].SetColor(Color(nativeTextShadowVec[i].color)); in FfiOHOSAceFrameworkTextClockTextShadow() 213 TextClockModel::GetInstance()->SetTextShadow(shadows); in FfiOHOSAceFrameworkTextClockTextShadow()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | span_model_adapter.cpp | 85 std::vector<Shadow> shadows; in CreateSpanItem() local 86 shadows.reserve(textStyle->shadows.size()); in CreateSpanItem() 87 for (const auto& shadow : textStyle->shadows) { in CreateSpanItem() 88 shadows.emplace_back(shadow.blurRadius, 0, Offset { shadow.offset.GetX(), shadow.offset.GetY() }, in CreateSpanItem() 92 UPDATE_SPAN_FONT_STYLE_ITEM(spanItem, TextShadow, shadows); in CreateSpanItem()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/common/ |
H A D | text_style.cpp | 141 shadows == rhs.shadows && in operator ==() 173 return shadows == rhs.shadows; in MatchOneAttribute()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/texttimer/ |
H A D | text_timer_layout_property.cpp | 57 std::unique_ptr<JsonValue> ConvertShadowsToJson(const std::vector<Shadow>& shadows) in ConvertShadowsToJson() argument 60 for (const auto& shadow : shadows) { in ConvertShadowsToJson()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_styles.cpp | 174 auto& shadows = propTextShadow.value(); in UpdateColorByResourceId() local 175 std::for_each(shadows.begin(), shadows.end(), [](Shadow& sd) { sd.UpdateColorByResourceId(); }); in UpdateColorByResourceId()
|
H A D | text_layout_property.cpp | 42 std::unique_ptr<JsonValue> CovertShadowsToJson(const std::vector<Shadow>& shadows) in CovertShadowsToJson() argument 45 for (const auto& shadow : shadows) { in CovertShadowsToJson()
|
H A D | text_content_modifier.cpp | 554 std::vector<Shadow> shadows; in ModifyTextShadowsInTextStyle() local 555 shadows.reserve(shadows_.size()); in ModifyTextShadowsInTextStyle() 561 shadows.emplace_back(blurRadius, 0, Offset(offsetX, offsetY), Color(color.GetValue())); in ModifyTextShadowsInTextStyle() 563 textStyle.SetTextShadows(shadows); in ModifyTextShadowsInTextStyle()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | text_timer_modifier.cpp | 139 void SetTextShadow(ArkUINodeHandle node, struct ArkUITextShadowStruct* shadows, ArkUI_Uint32 length) in SetTextShadow() argument 141 CHECK_NULL_VOID(shadows); in SetTextShadow() 147 ArkUITextShadowStruct* shadowStruct = shadows + i; in SetTextShadow()
|
H A D | text_clock_modifier.cpp | 122 void SetTextShadow(ArkUINodeHandle node, struct ArkUITextShadowStruct* shadows, ArkUI_Uint32 length) in SetTextShadow() argument 124 CHECK_NULL_VOID(shadows); in SetTextShadow() 130 ArkUITextShadowStruct* shadowStruct = shadows + i; in SetTextShadow()
|
H A D | node_span_modifier.cpp | 371 void SetTextTextShadow(ArkUINodeHandle node, struct ArkUITextShadowStruct* shadows, ArkUI_Uint32 length) in SetTextTextShadow() argument 373 CHECK_NULL_VOID(shadows); in SetTextTextShadow() 379 ArkUITextShadowStruct* shadowStruct = shadows + i; in SetTextTextShadow()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_text_clock.cpp | 272 std::vector<Shadow> shadows; in SetTextShadow() local 273 ParseTextShadowFromShadowObject(info[0], shadows); in SetTextShadow() 274 if (!shadows.empty()) { in SetTextShadow() 275 TextClockModel::GetInstance()->SetTextShadow(shadows); in SetTextShadow()
|
H A D | js_texttimer.cpp | 216 std::vector<Shadow> shadows; in SetTextShadow() local 217 ParseTextShadowFromShadowObject(info[0], shadows); in SetTextShadow() 218 if (!shadows.empty()) { in SetTextShadow() 219 TextTimerModel::GetInstance()->SetTextShadow(shadows); in SetTextShadow()
|
H A D | js_span.cpp | 317 std::vector<Shadow> shadows; in SetTextShadow() local 318 ParseTextShadowFromShadowObject(info[0], shadows); in SetTextShadow() 319 SpanModel::GetInstance()->SetTextShadow(shadows); in SetTextShadow()
|
H A D | js_utils.cpp | 271 void ParseTextShadowFromShadowObject(const JSRef<JSVal>& shadowObject, std::vector<Shadow>& shadows) in ParseTextShadowFromShadowObject() argument 281 shadows.push_back(shadow); in ParseTextShadowFromShadowObject() 292 shadows.push_back(shadow); in ParseTextShadowFromShadowObject()
|
H A D | js_utils.h | 77 void ParseTextShadowFromShadowObject(const JSRef<JSVal>& shadowObject, std::vector<Shadow>& shadows);
|
/foundation/arkui/ace_engine/adapter/ohos/capability/html/ |
H A D | span_to_html.cpp | 179 std::string SpanToHtml::ToHtml(const std::optional<std::vector<Shadow>>& shadows) in ToHtml() argument 181 if (!shadows.has_value()) { in ToHtml() 185 if (shadows.value().empty()) { in ToHtml() 190 for (const auto& shadow : shadows.value()) { in ToHtml()
|
H A D | span_to_html.h | 39 static std::string ToHtml(const std::optional<std::vector<Shadow>>& shadows);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
H A D | tlv_util.cpp | 174 std::vector<Shadow> shadows; in ReadTextShadows() local 176 return shadows; in ReadTextShadows() 180 shadows.emplace_back(ReadTextShadow(buff, cursor)); in ReadTextShadows() 182 return shadows; in ReadTextShadows()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_model.h | 140 auto& shadows = updateTextShadows.value(); in UpdateColorByResourceId() local 141 std::for_each(shadows.begin(), shadows.end(), [](Shadow& sd) { sd.UpdateColorByResourceId(); }); in UpdateColorByResourceId()
|
H A D | rich_editor_layout_algorithm.cpp | 210 auto shadows = span->fontStyle->GetTextShadowValue(); in GetShadowOffset() local 213 for (const auto& shadow : shadows) { in GetShadowOffset()
|
/foundation/graphic/graphic_2d/rosen/modules/texgine/export/texgine/ |
H A D | text_style.h | 142 std::vector<TextShadow> shadows; member
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/export/rosen_text/ |
H A D | text_style.h | 105 std::vector<TextShadow> shadows; member
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/ |
H A D | js_span_object.cpp | 590 std::vector<Shadow> shadows; in Constructor() local 591 span = AceType::MakeRefPtr<TextShadowSpan>(shadows); in Constructor() 608 std::vector<Shadow> shadows; in ParseJSTextShadowSpan() local 609 ParseTextShadowFromShadowObject(obj, shadows); in ParseJSTextShadowSpan() 610 return AceType::MakeRefPtr<TextShadowSpan>(shadows); in ParseJSTextShadowSpan() 616 auto shadows = textShadowSpan_->GetTextShadow(); in GetTextShadow() local 620 for (auto iterator = shadows.begin(); iterator != shadows.end(); ++iterator) { in GetTextShadow()
|
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/ |
H A D | convert_test.cpp | 203 EXPECT_EQ(sptextStyle.textShadows.size(), textStyle.shadows.size()); in HWTEST_F() 224 std::vector<TextShadow> shadows = { {}, {} }; in HWTEST_F() local
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/ |
H A D | convert.cpp | 144 for (const auto& [color, offset, radius] : style.shadows) { in SplitTextStyleConvert() 229 textStyle.shadows.emplace_back(shadowColor, shadowOffset, radius); in SplitTextStyleConvert()
|