Home
last modified time | relevance | path

Searched refs:textComponent (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drender_svg_text.cpp32 if (!textComponent) { in Update()
36 x_ = textComponent->GetX(); in Update()
37 y_ = textComponent->GetY(); in Update()
38 dx_ = textComponent->GetDx(); in Update()
39 dy_ = textComponent->GetDy(); in Update()
40 hasX_ = textComponent->GetHasX(); in Update()
41 hasY_ = textComponent->GetHasY(); in Update()
42 textData_ = textComponent->GetTextData(); in Update()
43 rotate_ = textComponent->GetRotate(); in Update()
52 if (!textComponent) { in PrepareAnimations()
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dtext_tdd_test.cpp46 UILabel* uilabelView = reinterpret_cast<UILabel *>(textComponent->GetComponentRootView()); in ComponentTextAttributeSetValueTest001()
64 UpdateCharAttributeOrStyleValue(textComponent, "value", expectTextValue2, true); in ComponentTextAttributeSetValueTest001()
76 UpdateNumAttributeOrStyleValue(textComponent, "value", expectTextIntValue, true); in ComponentTextAttributeSetValueTest001()
102 UILabel* uilabelView = reinterpret_cast<UILabel *>(textComponent->GetComponentRootView()); in ComponentTextStyleSetColorTest002()
121 UpdateNumAttributeOrStyleValue(textComponent, colorStr, expectColorValue2, false); in ComponentTextStyleSetColorTest002()
133 UpdateNumAttributeOrStyleValue(textComponent, colorStr, expectColorValue3, false); in ComponentTextStyleSetColorTest002()
189 UpdateCharAttributeOrStyleValue(textComponent, textOverflow, expectOverflowBreak, false); in ComponentTextStyleSetOverflowTest003()
296 UpdateCharAttributeOrStyleValue(textComponent, textAlign, expectRightAlign, false); in ComponentTextStyleSetAlignTest005()
308 UpdateCharAttributeOrStyleValue(textComponent, textAlign, expectCenterAlign, false); in ComponentTextStyleSetAlignTest005()
359 UpdateNumAttributeOrStyleValue(textComponent, textSize, expectVidaLargerSize, false); in ComponentTextStyleSetSizeFamilyTest006()
[all …]
H A Dtext_tdd_exception_test.cpp44 …Component* textComponent = reinterpret_cast<TextComponent *>(GetRenderedComponent(componentNameId_… in ComponentTextStyleSetExceptionTest007() local
54 UpdateCharAttributeOrStyleValue(textComponent, textOverflow, expectOverflowException, false); in ComponentTextStyleSetExceptionTest007()
62 …UpdateCharAttributeOrStyleValue(textComponent, letterSpacingStr, expectletterSpacingStrValue, fals… in ComponentTextStyleSetExceptionTest007()
70 UpdateCharAttributeOrStyleValue(textComponent, textAlign, expectALignException, false); in ComponentTextStyleSetExceptionTest007()
H A Djsbundle_tdd_test.cpp95 Component *textComponent = ComponentUtils::GetComponentFromBindingObject(el); in CreateElementAttributeLength002() local
96 if (textComponent != nullptr) { in CreateElementAttributeLength002()
97 textComponent->OnViewAttached(); in CreateElementAttributeLength002()
132 Component *textComponent = ComponentUtils::GetComponentFromBindingObject(textEl); in CreateElementAttributeLength003() local
135 if (textComponent == nullptr || divComponent == nullptr || in CreateElementAttributeLength003()
141 Component::BuildViewTree(textComponent, divComponent, divContentParameter); in CreateElementAttributeLength003()
178 Component *textComponent = ComponentUtils::GetComponentFromBindingObject(textEl); in CreateElementAttributeLength004() local
181 if (textComponent == nullptr || divComponent == nullptr || in CreateElementAttributeLength004()
187 Component::BuildViewTree(textComponent, divComponent, divContentParameter); in CreateElementAttributeLength004()
H A Dopacity_tdd_test.cpp186 …Component* textComponent = reinterpret_cast<TextComponent *>(GetRenderedComponent(textComponentNam… in SetOpacityTest005() local
187 UILabel* uiLabel = reinterpret_cast<UILabel *>(textComponent->GetComponentRootView()); in SetOpacityTest005()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dbutton_model_impl.cpp28 auto textComponent = GetTextComponent(); in SetFontSize() local
29 if (textComponent) { in SetFontSize()
48 auto textComponent = GetTextComponent(); in SetFontWeight() local
49 if (textComponent) { in SetFontWeight()
58 auto textComponent = GetTextComponent(); in SetFontStyle() local
59 if (textComponent) { in SetFontStyle()
68 auto textComponent = GetTextComponent(); in SetFontFamily() local
69 if (textComponent) { in SetFontFamily()
79 if (textComponent) { in SetFontColor()
118 padding->SetChild(textComponent); in CreateWithLabel()
[all …]
H A Dtext_model_impl.cpp31 auto textComponent = AceType::MakeRefPtr<TextComponentV2>(content); in Create() local
32 ViewStackProcessor::GetInstance()->ClaimElementId(textComponent); in Create()
33 ViewStackProcessor::GetInstance()->Push(textComponent); in Create()
42 auto textStyle = textComponent->GetTextStyle(); in Create()
46 textComponent->SetTextStyle(textStyle); in Create()
305 auto textComponent = GetComponent(); in SetRemoteMessage() local
306 CHECK_NULL_VOID(textComponent); in SetRemoteMessage()
307 textComponent->SetRemoteMessageEvent(EventMarker(std::move(event))); in SetRemoteMessage()
H A Dselect_model_impl.cpp41 auto textComponent = AceType::MakeRefPtr<OHOS::Ace::TextComponent>(params[i].text); in Create() local
46 optionComponent->SetText(textComponent); in Create()
H A Dview_abstract_model_impl.cpp1479 auto textComponent = AceType::MakeRefPtr<OHOS::Ace::TextComponent>(param.value); in CreateMenuEventWithParams() local
1483 optionComponent->SetText(textComponent); in CreateMenuEventWithParams()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/hyperlink/
H A Drender_hyperlink.cpp107 auto textComponent = AceType::DynamicCast<TextComponent>(node); in SetImageChildColor() local
112 if (textComponent) { in SetImageChildColor()
113 auto textStyle = textComponent->GetTextStyle(); in SetImageChildColor()
115 textComponent->SetTextStyle(std::move(textStyle)); in SetImageChildColor()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Dtab_bar_item_component.cpp115 auto textComponent = AceType::MakeRefPtr<TextComponent>(textStr); in BuildWithTextIcon() local
116 auto textStyle = textComponent->GetTextStyle(); in BuildWithTextIcon()
120 textComponent->SetTextStyle(textStyle); in BuildWithTextIcon()
123 children.emplace_back(textComponent); in BuildWithTextIcon()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dtab_bar_component.cpp58 Component* textComponent = ComponentUtils::GetComponentFromBindingObject(childHandler); in GetTextByIndex() local
59 if (textComponent == nullptr) { in GetTextByIndex()
63 if (textComponent->GetComponentName() == K_TEXT) { in GetTextByIndex()
64 UIView* view = textComponent->GetComponentRootView(); in GetTextByIndex()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/button/
H A Dbutton_component.cpp62 auto textComponent = AceType::MakeRefPtr<TextComponent>(text); in Build() local
64 padding->SetChild(textComponent); in Build()
65 Component::MergeRSNode(padding, textComponent); in Build()
75 textComponent->SetFocusColor(textFocusColor); in Build()
77 textComponent->SetFocusColor(buttonTheme->GetTextFocusColor()); in Build()
79 textComponent->SetTextStyle(textStyle); in Build()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/clock/
H A Drender_clock.cpp66 auto textComponent = AceType::MakeRefPtr<TextComponent>(digitStr); in RenderClock() local
70 digitComponentNodes_.emplace_back(textComponent); in RenderClock()
244 const auto& textComponent = digitComponentNodes_[i]; in UpdateRenderText() local
245 textComponent->SetTextStyle(textStyle); in UpdateRenderText()
246 textComponent->SetFocusColor(digitColor); in UpdateRenderText()
248 digitRenderNodes_[i]->Update(textComponent); in UpdateRenderText()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/counter/
H A Dcounter_component.cpp97 auto textComponent = AceType::MakeRefPtr<TextComponent>(content); in BuildControl() local
98 textComponent->SetTextStyle(counterTheme->GetContentTextStyle()); in BuildControl()
99 buttonChildren.emplace_back(textComponent); in BuildControl()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/container_modal/
H A Dcontainer_modal_element.cpp534 auto textComponent = containerModalComponent_->GetTitleLabel(); in SetAppTitle() local
535 CHECK_NULL_VOID(textComponent); in SetAppTitle()
536 if (textComponent->GetData() == title) { in SetAppTitle()
540 textComponent->SetData(title); in SetAppTitle()
544 renderTitle->Update(textComponent); in SetAppTitle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_element.cpp125 auto textComponent = AceType::MakeRefPtr<TextComponent>(date); in RegisterChangeEndListener() local
133 textComponent->SetTextStyle(style); in RegisterChangeEndListener()
134 renderText->Update(textComponent); in RegisterChangeEndListener()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/stepper/
H A Drender_stepper.cpp256 buttonData.textComponent = AceType::MakeRefPtr<TextComponent>(""); in InitHotArea()
257 buttonData.textComponent->SetData(buttonData.text); in InitHotArea()
259 …buttonData.textRender = AceType::DynamicCast<RenderText>(buttonData.textComponent->CreateRenderNod… in InitHotArea()
262 buttonData.textRender->Update(buttonData.textComponent); in InitHotArea()
344 buttonData.textComponent->SetData(buttonData.text); in UpdateButton()
346 buttonData.textComponent->SetTextStyle(textStyles_[currentIndex_]); in UpdateButton()
347 buttonData.textRender->Update(buttonData.textComponent); in UpdateButton()
H A Drender_stepper.h69 RefPtr<TextComponent> textComponent; member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/search/
H A Drender_search.cpp265 const auto& textComponent = AceType::MakeRefPtr<TextComponent>(searchText); in CreateRenderButton() local
271 textComponent->SetTextStyle(textStyle); in CreateRenderButton()
272 auto renderText = AceType::DynamicCast<RenderText>(textComponent->CreateRenderNode()); in CreateRenderButton()
277 renderText->Update(textComponent); in CreateRenderButton()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_tool_bar_item.cpp260 RefPtr<TextComponent> textComponent = AceType::MakeRefPtr<TextComponent>(value_); in BuildOptionComponent() local
264 optionComponent->SetText(textComponent); in BuildOptionComponent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Drosen_render_swiper.cpp243 RefPtr<TextComponent> textComponent = AceType::MakeRefPtr<TextComponent>(indicatorText); in LayoutDigitalIndicator() local
244 renderDigitalIndicator_ = AceType::DynamicCast<RenderText>(textComponent->CreateRenderNode()); in LayoutDigitalIndicator()
247 textComponent->SetTextStyle(textStyle); in LayoutDigitalIndicator()
249 renderDigitalIndicator_->Update(textComponent); in LayoutDigitalIndicator()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/
H A Dtext_overlay_component.cpp399 auto textComponent = AceType::MakeRefPtr<TextComponent>(text); in BuildMenuOption() local
400 optionComponent->SetText(textComponent); in BuildMenuOption()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/web/
H A Drender_web.cpp1272 auto textComponent = AceType::MakeRefPtr<TextComponent>(value); in BuildSelectMenu() local
1273 optionComponent->SetText(textComponent); in BuildSelectMenu()