Searched refs:textClockLayoutProperty (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/ |
H A D | text_clock_model_ng.cpp | 112 CHECK_NULL_VOID(textClockLayoutProperty); in InitFontDefault() 113 if (!textClockLayoutProperty->GetFontSize().has_value()) { in InitFontDefault() 116 if (!textClockLayoutProperty->GetFontWeight().has_value()) { in InitFontDefault() 119 if (!textClockLayoutProperty->GetTextColor().has_value()) { in InitFontDefault() 122 if (!textClockLayoutProperty->GetFontFamily().has_value()) { in InitFontDefault() 125 if (!textClockLayoutProperty->GetItalicFontStyle().has_value()) { in InitFontDefault() 230 CHECK_NULL_VOID(textClockLayoutProperty); in InitFontDefault() 231 if (!textClockLayoutProperty->GetFontSize().has_value()) { in InitFontDefault() 234 if (!textClockLayoutProperty->GetFontWeight().has_value()) { in InitFontDefault() 237 if (!textClockLayoutProperty->GetTextColor().has_value()) { in InitFontDefault() [all …]
|
H A D | text_clock_pattern.h | 120 auto textClockLayoutProperty = GetLayoutProperty<TextClockLayoutProperty>(); in GetPrefixHour() local 121 CHECK_NULL_RETURN(textClockLayoutProperty, prefixHour_); in GetPrefixHour() 122 return textClockLayoutProperty->GetPrefixHourValue(ZeroPrefixType::AUTO); in GetPrefixHour()
|
H A D | text_clock_pattern.cpp | 750 auto textClockLayoutProperty = GetLayoutProperty<TextClockLayoutProperty>(); in GetFormat() local 752 CHECK_NULL_RETURN(textClockLayoutProperty, FORM_FORMAT); in GetFormat() 753 std::string result = textClockLayoutProperty->GetFormat().value_or(FORM_FORMAT); in GetFormat() 759 CHECK_NULL_RETURN(textClockLayoutProperty, DEFAULT_FORMAT); in GetFormat() 760 return textClockLayoutProperty->GetFormat().value_or(DEFAULT_FORMAT); in GetFormat() 765 auto textClockLayoutProperty = GetLayoutProperty<TextClockLayoutProperty>(); in GetHoursWest() local 766 CHECK_NULL_RETURN(textClockLayoutProperty, NAN); in GetHoursWest() 767 if (textClockLayoutProperty->GetHoursWest().has_value()) { in GetHoursWest() 768 return textClockLayoutProperty->GetHoursWest().value(); in GetHoursWest()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_clock/ |
H A D | text_clock_test_ng.cpp | 134 RefPtr<TextClockLayoutProperty> textClockLayoutProperty = variable 136 ASSERT_NE(textClockLayoutProperty, nullptr); 153 textClockLayoutProperty->UpdateTextShadow(setShadows); 180 textClockLayoutProperty->ToJsonValue(json, filter); 305 ASSERT_NE(textClockLayoutProperty, nullptr); 313 textClockLayoutProperty->UpdateHoursWest(HOURS_WEST); 340 ASSERT_NE(textClockLayoutProperty, nullptr); 393 ASSERT_NE(textClockLayoutProperty, nullptr); 645 ASSERT_NE(textClockLayoutProperty, nullptr); 671 textClockLayoutProperty->UpdateFormat(CLOCK_FORMAT); [all …]
|