Home
last modified time | relevance | path

Searched refs:textShadow (Results 1 - 25 of 31) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/declaration/text/
H A Dtext_declaration.cpp301 Shadow textShadow; in ParseTextShadow() local
306 textShadow.SetOffsetX(declaration.ParseDouble(textShadowProps[pos++])); in ParseTextShadow()
307 textShadow.SetOffsetY(declaration.ParseDouble(textShadowProps[pos])); in ParseTextShadow()
312 textShadow.SetOffsetX(declaration.ParseDouble(textShadowProps[pos++])); in ParseTextShadow()
313 textShadow.SetOffsetY(declaration.ParseDouble(textShadowProps[pos++])); in ParseTextShadow()
316 textShadow.SetBlurRadius(declaration.ParseDouble(textShadowProps[pos])); in ParseTextShadow()
319 textShadow.SetColor(declaration.ParseColor(textShadowProps[pos])); in ParseTextShadow()
323 textShadow.SetColor(declaration.ParseColor(textShadowProps[pos++])); in ParseTextShadow()
324 textShadow.SetOffsetX(declaration.ParseDouble(textShadowProps[pos++])); in ParseTextShadow()
325 textShadow in ParseTextShadow()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_base.cpp259 Shadow textShadow; in SetContentModifier() local
260 textShadow.SetBlurRadius(BLURRADIUS_VALUE); in SetContentModifier()
261 textShadow.SetColor(TEXT_COLOR_VALUE); in SetContentModifier()
262 textShadow.SetSpreadRadius(SPREADRADIUS_VALUE); in SetContentModifier()
263 textShadow.SetOffsetX(ADAPT_OFFSETX_VALUE); in SetContentModifier()
264 textShadow.SetOffsetY(ADAPT_OFFSETY_VALUE); in SetContentModifier()
265 textContentModifier.SetTextShadow({ textShadow }); in SetContentModifier()
290 Shadow textShadow; in UpdateTextLayoutProperty() local
291 textShadow.SetBlurRadius(BLURRADIUS_VALUE); in UpdateTextLayoutProperty()
292 textShadow in UpdateTextLayoutProperty()
[all...]
H A Dtext_testsix_ng.cpp45 Shadow textShadow; in HWTEST_F() local
46 textShadow.SetBlurRadius(BLURRADIUS_VALUE); in HWTEST_F()
47 textShadow.SetColor(TEXT_COLOR_VALUE); in HWTEST_F()
48 textShadow.SetSpreadRadius(SPREADRADIUS_VALUE); in HWTEST_F()
49 textShadow.SetOffsetX(ADAPT_OFFSETX_VALUE); in HWTEST_F()
50 textShadow.SetOffsetY(ADAPT_OFFSETY_VALUE); in HWTEST_F()
51 fontStyle->UpdateTextShadow({ textShadow }); in HWTEST_F()
H A Dspan_string_test_ng.cpp260 Shadow textShadow; in HWTEST_F() local
261 textShadow.SetBlurRadius(0.0); in HWTEST_F()
262 textShadow.SetColor(Color::BLUE); in HWTEST_F()
263 textShadow.SetOffsetX(5.0); in HWTEST_F()
264 textShadow.SetOffsetY(5.0); in HWTEST_F()
265 vector<Shadow> textShadows { textShadow }; in HWTEST_F()
301 Shadow textShadow; in HWTEST_F() local
302 textShadow.SetBlurRadius(0.0); in HWTEST_F()
303 textShadow.SetColor(Color::BLUE); in HWTEST_F()
304 textShadow in HWTEST_F()
1353 Shadow textShadow; HWTEST_F() local
[all...]
H A Dtext_testtwo_ng.cpp102 Shadow textShadow; in HWTEST_F() local
103 textShadow.SetBlurRadius(BLURRADIUS_VALUE); in HWTEST_F()
104 textShadow.SetColor(TEXT_COLOR_VALUE); in HWTEST_F()
105 textShadow.SetSpreadRadius(SPREADRADIUS_VALUE); in HWTEST_F()
106 textShadow.SetOffsetX(ADAPT_OFFSETX_VALUE); in HWTEST_F()
107 textShadow.SetOffsetY(ADAPT_OFFSETY_VALUE); in HWTEST_F()
108 textLayoutProperty->UpdateTextShadow({ textShadow }); in HWTEST_F()
261 * The TextShadowValue of textLayoutProperty is textShadow. in HWTEST_F()
266 Shadow textShadow; in HWTEST_F() local
267 text.SetTextShadow({ textShadow }); in HWTEST_F()
[all...]
H A Dtext_testfive_ng.cpp1944 Shadow textShadow; in HWTEST_F() local
1945 textShadow.SetBlurRadius(BLURRADIUS_VALUE); in HWTEST_F()
1946 textShadow.SetColor(TEXT_COLOR_VALUE); in HWTEST_F()
1947 textShadow.SetSpreadRadius(SPREADRADIUS_VALUE); in HWTEST_F()
1948 textShadow.SetOffsetX(ADAPT_OFFSETX_VALUE); in HWTEST_F()
1949 textShadow.SetOffsetY(ADAPT_OFFSETY_VALUE); in HWTEST_F()
1950 spanItem->fontStyle->UpdateTextShadow({ textShadow }); in HWTEST_F()
2781 Shadow textShadow; in HWTEST_F() local
2782 textShadow.SetBlurRadius(BLURRADIUS_VALUE); in HWTEST_F()
2783 textShadow in HWTEST_F()
[all...]
H A Dtext_testthree_ng.cpp1713 Shadow textShadow; in HWTEST_F() local
1714 textShadow.SetBlurRadius(3.f); // 3.f means BlurRadius. in HWTEST_F()
1715 textShadow.SetOffsetX(ADAPT_OFFSETX_VALUE); in HWTEST_F()
1716 textShadow.SetOffsetY(ADAPT_OFFSETY_VALUE); in HWTEST_F()
1717 textModelNG.SetTextShadow({ textShadow }); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/
H A Dtext_style_test.cpp92 TextShadow textShadow(color, offset, 0.0); in HWTEST_F()
93 EXPECT_NE(textShadowDefault, textShadow); in HWTEST_F()
94 EXPECT_FALSE(textShadow.HasShadow()); in HWTEST_F()
98 textShadows.emplace_back(textShadow); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/adapter/ohos/capability/
H A Dhtml_convert_test.cpp153 Shadow textShadow; in HWTEST_F() local
154 textShadow.SetBlurRadius(0.0); in HWTEST_F()
155 textShadow.SetColor(Color::BLUE); in HWTEST_F()
156 textShadow.SetOffsetX(5.0); in HWTEST_F()
157 textShadow.SetOffsetY(5.0); in HWTEST_F()
165 vector<Shadow> textShadows { textShadow, textShadow1 }; in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/picker/
H A Ddate_picker_test_two.cpp215 Shadow textShadow; in HWTEST_F() local
216 textShadow.SetOffsetX(5.0); in HWTEST_F()
217 textShadow.SetOffsetY(5.0); in HWTEST_F()
218 textShadow.SetBlurRadius(0.0); in HWTEST_F()
219 textShadow.SetColor(Color::BLUE); in HWTEST_F()
222 pickerDialog.shadow = textShadow; in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_timer/
H A Dtext_timer_test_ng.cpp71 std::optional<std::vector<Shadow>> textShadow = std::nullopt; member
117 if (testProperty.textShadow.has_value()) { in CreateTextTimerParagraph()
118 textTimerModel.SetTextShadow(testProperty.textShadow.value()); in CreateTextTimerParagraph()
148 testProperty.textShadow = std::make_optional(TEXT_SHADOWS); in HWTEST_F()
396 testProperty.textShadow = std::make_optional(TEXT_SHADOWS); in HWTEST_F()
444 testProperty.textShadow = std::make_optional(TEXT_SHADOWS); in HWTEST_F()
509 testProperty.textShadow = std::make_optional(TEXT_SHADOWS); in HWTEST_F()
605 testProperty.textShadow = std::make_optional(TEXT_SHADOWS); in HWTEST_F()
713 testProperty.textShadow = std::make_optional(TEXT_SHADOWS); in HWTEST_F()
743 * @tc.expected: step4. the value is "textShadow", chec in HWTEST_F()
[all...]
H A Dtext_timer_builder_test_ng.cpp52 std::optional<std::vector<Shadow>> textShadow = std::nullopt; member
98 if (testProperty.textShadow.has_value()) { in CreateTextTimerParagraph()
99 textTimerModel.SetTextShadow(testProperty.textShadow.value()); in CreateTextTimerParagraph()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_content_modifier.cpp194 for (auto&& textShadow : textShadows) { in SetDefaultTextShadow()
195 AddShadow(textShadow); in SetDefaultTextShadow()
205 Shadow textShadow; in AddShadow() local
206 textShadow.SetBlurRadius(shadow.GetBlurRadius()); in AddShadow()
207 textShadow.SetOffset(shadow.GetOffset()); in AddShadow()
208 textShadow.SetColor(shadow.GetColor()); in AddShadow()
209 shadows_.emplace_back(ShadowProp { .shadow = textShadow, in AddShadow()
792 Shadow textShadow; in SetTextShadow() local
793 textShadow.SetBlurRadius(newShadow.GetBlurRadius()); in SetTextShadow()
794 textShadow in SetTextShadow()
[all...]
H A Dmultiple_paragraph_layout_algorithm.cpp323 auto textShadow = layoutProperty->GetTextShadow(); in SetPropertyToModifier() local
324 if (textShadow.has_value()) { in SetPropertyToModifier()
325 modifier->SetTextShadow(textShadow.value()); in SetPropertyToModifier()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/
H A Dtext_clock_layout_property.cpp56 std::string ConvertTextShadow(const std::vector<Shadow>& textShadow) in ConvertTextShadow() argument
59 for (const auto& item : textShadow) { in ConvertTextShadow()
105 json->PutExtAttr("textShadow", in ToJsonValue()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_text_clock_ffi.cpp84 VectorNativeTextShadow vec, int64_t index, NativeTextShadow textShadow) in FFICJVectorNativeTextShadowSetElement()
88 (*actualVec)[index] = textShadow; in FFICJVectorNativeTextShadowSetElement()
83 FFICJVectorNativeTextShadowSetElement( VectorNativeTextShadow vec, int64_t index, NativeTextShadow textShadow) FFICJVectorNativeTextShadowSetElement() argument
H A Dcj_text_clock_ffi.h60 VectorNativeTextShadow vec, int64_t index, NativeTextShadow textShadow);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_span_bridge.cpp99 ArkUITextShadowStruct textShadow; in ParseTextShadow() local
100 textShadow.radius = radiusArray[i]; in ParseTextShadow()
101 textShadow.type = typeArray[i]; in ParseTextShadow()
102 textShadow.color = colorArray[i]; in ParseTextShadow()
103 textShadow.offsetX = offsetXArray[i]; in ParseTextShadow()
104 textShadow.offsetY = offsetYArray[i]; in ParseTextShadow()
105 textShadow.fill = fillArray[i]; in ParseTextShadow()
106 textShadowArray.emplace_back(textShadow); in ParseTextShadow()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dspan_object.cpp441 TextShadowSpan::TextShadowSpan(std::vector<Shadow> textShadow) : SpanBase(0, 0), textShadow_(std::move(textShadow)) {} in TextShadowSpan() argument
443 TextShadowSpan::TextShadowSpan(std::vector<Shadow> textShadow, int32_t start, int32_t end) in TextShadowSpan() argument
444 : SpanBase(start, end), textShadow_(std::move(textShadow)) in TextShadowSpan()
504 auto textShadow = textShadowSpan->GetTextShadow(); in IsAttributesEqual() local
506 if (textShadow.size() != selfTextShadow.size()) { in IsAttributesEqual()
510 if (selfTextShadow[i] != textShadow[i]) { in IsAttributesEqual()
/foundation/arkui/ace_engine/adapter/ohos/capability/html/
H A Dhtml_to_span.cpp462 Shadow textShadow; in InitTextShadow() local
463 InitShadow(textShadow, attribute); in InitTextShadow()
464 shadow->emplace_back(std::move(textShadow)); in InitTextShadow()
468 void HtmlToSpan::InitShadow(Shadow &textShadow, std::vector<std::string> &attribute) in InitShadow() argument
471 textShadow.SetOffsetX(FromString(attribute[FIRST_PARAM]).Value()); in InitShadow()
474 textShadow.SetOffsetY(FromString(attribute[SECOND_PARAM]).Value()); in InitShadow()
477 textShadow.SetBlurRadius(FromString(attribute[THIRD_PARAM]).Value()); in InitShadow()
480 textShadow.SetColor(ToSpanColor(attribute[FOUTH_PARAM])); in InitShadow()
H A Dhtml_to_span.h122 void InitShadow(Shadow &textShadow, std::vector<std::string> &attribute);
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_clock/
H A Dtext_clock_test_ng.cpp65 std::optional<std::vector<Shadow>> textShadow = std::nullopt; member
100 if (testProperty.textShadow.has_value()) { in CreateTextClockParagraph()
101 textClockModel.SetTextShadow(testProperty.textShadow.value()); in CreateTextClockParagraph()
525 testProperty.textShadow = std::make_optional(setShadows); in HWTEST_F()
H A Dtext_clock_content_modifier_add_test_ng.cpp64 std::optional<std::vector<Shadow>> textShadow = std::nullopt; member
98 if (testProperty.textShadow.has_value()) { in CreateTextClockParagraph()
99 textClockModel.SetTextShadow(testProperty.textShadow.value()); in CreateTextClockParagraph()
H A Dtext_clock_content_modifier_test_ng.cpp64 std::optional<std::vector<Shadow>> textShadow = std::nullopt; member
98 if (testProperty.textShadow.has_value()) { in CreateTextClockParagraph()
99 textClockModel.SetTextShadow(testProperty.textShadow.value()); in CreateTextClockParagraph()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_text_typography_test.cpp659 OH_Drawing_TextShadow* textShadow = OH_Drawing_CreateTextShadow(); in HWTEST_F() local
660 EXPECT_NE(textShadow, nullptr); in HWTEST_F()
661 OH_Drawing_DestroyTextShadow(textShadow); in HWTEST_F()

Completed in 41 milliseconds

12