Home
last modified time | relevance | path

Searched refs:GetFontWeight (Results 1 - 25 of 180) sorted by relevance

12345678

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/
H A Djs_date_picker_theme.h40 textStyle.fontWeight = selectedStyle.GetFontWeight(); in ApplyTheme()
46 textStyle.fontWeight = disappearStyle.GetFontWeight(); in ApplyTheme()
52 textStyle.fontWeight = normalStyle.GetFontWeight(); in ApplyTheme()
H A Djs_text_picker_theme.h40 textStyle.fontWeight = selectedStyle.GetFontWeight(); in ApplyTheme()
46 textStyle.fontWeight = disappearStyle.GetFontWeight(); in ApplyTheme()
52 textStyle.fontWeight = normalStyle.GetFontWeight(); in ApplyTheme()
H A Djs_time_picker_theme.h40 textStyle.fontWeight = selectedStyle.GetFontWeight(); in ApplyTheme()
46 textStyle.fontWeight = disappearStyle.GetFontWeight(); in ApplyTheme()
52 textStyle.fontWeight = normalStyle.GetFontWeight(); in ApplyTheme()
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dtexttimer_composed_element.cpp31 { "fontWeight", [](const TextTimerComposedElement& inspector) { return inspector.GetFontWeight(); } },
46 DumpLog::GetInstance().AddDesc(std::string("fontWeight : ").append(GetFontWeight())); in Dump()
102 std::string TextTimerComposedElement::GetFontWeight() const in GetFontWeight() function in OHOS::Ace::V2::TextTimerComposedElement
106 render ? render->GetTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetFontWeight()
H A Dbutton_composed_element.cpp30 { "fontWeight", [](const ButtonComposedElement& inspector) { return inspector.GetFontWeight(); } },
96 std::string ButtonComposedElement::GetFontWeight() const in GetFontWeight() function in OHOS::Ace::V2::ButtonComposedElement
106 auto fontWeight = render ? render->GetTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetFontWeight()
H A Dtexttimer_composed_element.h42 std::string GetFontWeight() const;
H A Dbutton_composed_element.h39 std::string GetFontWeight() const;
H A Dutils.cpp24 auto weight = textStyle.GetFontWeight(); in GetTextStyleInJson()
H A Dindexer_composed_element.cpp163 auto fontWeight = render ? render->GetActiveTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetSelectedFont()
182 auto fontWeight = render ? render->GetBubbleText()->GetTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetPopupFont()
201 auto fontWeight = render ? render->GetNormalTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetFont()
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dspan_test_ng.cpp142 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::LIGHTER); in HWTEST_F()
144 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::REGULAR); in HWTEST_F()
146 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::NORMAL); in HWTEST_F()
148 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::MEDIUM); in HWTEST_F()
150 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::BOLD); in HWTEST_F()
152 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::BOLDER); in HWTEST_F()
154 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::W100); in HWTEST_F()
644 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::BOLD); in HWTEST_F()
950 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::LIGHTER); in HWTEST_F()
952 EXPECT_EQ(spanNode->GetFontWeight() in HWTEST_F()
[all...]
/foundation/arkui/ui_lite/interfaces/kits/font/
H A Dui_font.h69 uint8_t GetFontWeight(uint16_t fontId) in GetFontWeight() function in OHOS::UIFont
71 return instance_->GetFontWeight(fontId); in GetFontWeight()
204 switch (instance_->GetFontWeight(fontId)) { in GetColorType()
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenu_patternMore_test_ng.cpp195 ASSERT_TRUE(textProperty->GetFontWeight().has_value()); in CheckTestResult()
196 EXPECT_EQ(textProperty->GetFontWeight().value(), FontWeight::BOLD); in CheckTestResult()
208 ASSERT_TRUE(labelProperty->GetFontWeight().has_value()); in CheckTestResult()
209 EXPECT_EQ(labelProperty->GetFontWeight().value(), FontWeight::BOLD); in CheckTestResult()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/
H A Dtext_clock_model_ng.cpp114 if (!textClockLayoutProperty->GetFontWeight().has_value()) { in InitFontDefault()
115 SetFontWeight(textStyle.GetFontWeight()); in InitFontDefault()
232 if (!textClockLayoutProperty->GetFontWeight().has_value()) { in InitFontDefault()
233 SetFontWeight(frameNode, textStyle.GetFontWeight()); in InitFontDefault()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_layout_element.cpp186 property->GetFontWeight().value_or(FontWeight::NORMAL), 0.0); in ChooseExactFontSize()
241 textProp->GetFontWeight().value_or(FontWeight::NORMAL), width_); in GetCurrentTextSize()
266 textProp->GetFontWeight().value_or(FontWeight::NORMAL), tempWidth); in TryShrinkTextWidth()
309 textProp->GetFontWeight().value_or(FontWeight::NORMAL), 0.0); in MeasureMinTextSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_model_ng.cpp372 DataPickerRowLayoutProperty, DisappearWeight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight());
394 DataPickerRowLayoutProperty, DisappearWeight, value.fontWeight.value_or(disappearStyle.GetFontWeight()));
415 DataPickerRowLayoutProperty, Weight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight());
437 DataPickerRowLayoutProperty, Weight, value.fontWeight.value_or(normalStyle.GetFontWeight()));
458 DataPickerRowLayoutProperty, SelectedWeight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight());
480 DataPickerRowLayoutProperty, SelectedWeight, value.fontWeight.value_or(selectedStyle.GetFontWeight()));
496 DataPickerRowLayoutProperty, SelectedWeight, selectedStyle.GetFontWeight(), frameNode);
509 DataPickerRowLayoutProperty, DisappearWeight, disappearStyle.GetFontWeight(), frameNode);
519 ACE_UPDATE_NODE_LAYOUT_PROPERTY(DataPickerRowLayoutProperty, Weight, normalStyle.GetFontWeight(), frameNode);
716 value.fontWeight.value_or(selectedStyle.GetFontWeight()), frameNod
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_model_ng.cpp297 TimePickerLayoutProperty, DisappearWeight, value.fontWeight.value_or(disappearStyle.GetFontWeight()));
316 TimePickerLayoutProperty, Weight, value.fontWeight.value_or(normalStyle.GetFontWeight()));
337 TimePickerLayoutProperty, SelectedWeight, value.fontWeight.value_or(selectedStyle.GetFontWeight()));
500 value.fontWeight.value_or(disappearStyle.GetFontWeight()), frameNode);
523 TimePickerLayoutProperty, Weight, value.fontWeight.value_or(normalStyle.GetFontWeight()), frameNode);
548 value.fontWeight.value_or(selectedStyle.GetFontWeight()), frameNode);
562 ACE_UPDATE_NODE_LAYOUT_PROPERTY(TimePickerLayoutProperty, SelectedWeight, selectedStyle.GetFontWeight(), frameNode);
575 TimePickerLayoutProperty, DisappearWeight, disappearStyle.GetFontWeight(), frameNode);
585 ACE_UPDATE_NODE_LAYOUT_PROPERTY(TimePickerLayoutProperty, Weight, normalStyle.GetFontWeight(), frameNode);
647 TimePickerLayoutProperty, DisappearWeight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight());
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/
H A Dindexer_layout_property.cpp66 auto defaultFontWeight = indexerTheme->GetPopupTextStyle().GetFontWeight(); in ToJsonValue()
83 fontJsonObject->Put("fontWeight", V2::ConvertWrapFontWeightToStirng(textStyle.GetFontWeight()).c_str()); in ToJsonObjectValue()
/foundation/arkui/ace_engine/frameworks/core/components/option/
H A Doption_component.h69 SetFontWeight(theme->GetFontWeight()); in SetTheme()
164 FontWeight GetFontWeight() const in GetFontWeight() function in OHOS::Ace::OptionComponent
166 return theme_->GetFontWeight(); in GetFontWeight()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_datepicker_ffi.cpp162 textStyle.fontWeight = selectedStyle.GetFontWeight(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes()
168 textStyle.fontWeight = disappearStyle.GetFontWeight(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes()
174 textStyle.fontWeight = normalStyle.GetFontWeight(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes()
/foundation/arkui/ace_engine/test/unittest/core/pattern/button/
H A Dbutton_content_modifier_test_ng.cpp150 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::BOLD); in FontWeightTest()
154 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::BOLDER); in FontWeightTest()
158 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::LIGHTER); in FontWeightTest()
162 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::MEDIUM); in FontWeightTest()
166 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::NORMAL); in FontWeightTest()
170 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::REGULAR); in FontWeightTest()
174 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W100); in FontWeightTest()
178 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W200); in FontWeightTest()
182 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W300); in FontWeightTest()
186 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ac in FontWeightTest()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_model_ng.cpp119 ACE_UPDATE_LAYOUT_PROPERTY(TextPickerLayoutProperty, SelectedWeight, selectedStyle.GetFontWeight()); in SetDefaultAttributes()
127 ACE_UPDATE_LAYOUT_PROPERTY(TextPickerLayoutProperty, DisappearWeight, disappearStyle.GetFontWeight()); in SetDefaultAttributes()
135 ACE_UPDATE_LAYOUT_PROPERTY(TextPickerLayoutProperty, Weight, normalStyle.GetFontWeight()); in SetDefaultAttributes()
305 TextPickerLayoutProperty, DisappearWeight, value.fontWeight.value_or(disappearStyle.GetFontWeight()));
326 TextPickerLayoutProperty, Weight, value.fontWeight.value_or(normalStyle.GetFontWeight()));
347 TextPickerLayoutProperty, SelectedWeight, value.fontWeight.value_or(selectedStyle.GetFontWeight()));
409 TextPickerLayoutProperty, DisappearWeight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight());
431 TextPickerLayoutProperty, Weight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight());
453 TextPickerLayoutProperty, SelectedWeight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight());
810 TextPickerLayoutProperty, Weight, value.fontWeight.value_or(normalStyle.GetFontWeight()), frameNod
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dindicator_pattern.cpp129 swiperDigitalParameters_->fontWeight = swiperIndicatorTheme->GetDigitalIndicatorTextStyle().GetFontWeight(); in GetSwiperDigitalParameters()
131 swiperIndicatorTheme->GetDigitalIndicatorTextStyle().GetFontWeight(); in GetSwiperDigitalParameters()
169 swiperIndicatorTheme->GetDigitalIndicatorTextStyle().GetFontWeight())); in SaveDigitIndicatorProperty()
171 swiperIndicatorTheme->GetDigitalIndicatorTextStyle().GetFontWeight())); in SaveDigitIndicatorProperty()
/foundation/arkui/ace_engine/frameworks/core/components/text/
H A Dtext_component.cpp79 updateType |= static_cast<uint32_t>(declarationStyle.GetFontWeight() == textStyle.GetFontWeight() ? in Compare()
H A Dtext_component_v2.cpp58 spanStyle.SetFontWeight(textStyle.GetFontWeight()); in CheckAndSetChildStyle()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_layout_property.h148 if (GetFontWeight().has_value()) { in InspectorGetTextFont()
149 font.SetFontWeight(GetFontWeight().value()); in InspectorGetTextFont()

Completed in 15 milliseconds

12345678