/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_timepicker_modifier.cpp | 39 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::Fo… variable 94 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTimepickerTextStyle() 95 textStyle.fontStyle = FONT_STYLES[style]; in SetTimepickerTextStyle() 97 textStyle.fontStyle = FONT_STYLES[0]; in SetTimepickerTextStyle() 137 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTimepickerSelectedTextStyle() 138 textStyle.fontStyle = FONT_STYLES[style]; in SetTimepickerSelectedTextStyle() 140 textStyle.fontStyle = FONT_STYLES[0]; in SetTimepickerSelectedTextStyle() 181 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTimepickerDisappearTextStyle() 182 textStyle.fontStyle = FONT_STYLES[style]; in SetTimepickerDisappearTextStyle() 184 textStyle.fontStyle = FONT_STYLES[0]; in SetTimepickerDisappearTextStyle()
|
H A D | node_date_picker_modifier.cpp | 44 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::Fo… variable 90 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetSelectedTextStyle() 91 textStyle.fontStyle = FONT_STYLES[style]; in SetSelectedTextStyle() 93 textStyle.fontStyle = FONT_STYLES[0]; in SetSelectedTextStyle() 165 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetDatePickerTextStyle() 166 textStyle.fontStyle = FONT_STYLES[style]; in SetDatePickerTextStyle() 168 textStyle.fontStyle = FONT_STYLES[0]; in SetDatePickerTextStyle() 240 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetDisappearTextStyle() 241 textStyle.fontStyle = FONT_STYLES[style]; in SetDisappearTextStyle() 243 textStyle.fontStyle = FONT_STYLES[0]; in SetDisappearTextStyle()
|
H A D | menu_item_modifier.cpp | 32 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::Fo… variable 100 if (styleVal >= 0 && styleVal < static_cast<int32_t>(FONT_STYLES.size())) { in SetLabelFont() 101 MenuItemModelNG::SetLabelFontStyle(frameNode, FONT_STYLES[styleVal]); in SetLabelFont() 149 if (styleVal >= 0 && styleVal < static_cast<int32_t>(FONT_STYLES.size())) { in SetContentFont() 150 MenuItemModelNG::SetFontStyle(frameNode, FONT_STYLES[styleVal]); in SetContentFont()
|
H A D | node_textpicker_modifier.cpp | 42 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::Fo… variable 145 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTextPickerTextStyle() 146 textStyle.fontStyle = FONT_STYLES[style]; in SetTextPickerTextStyle() 148 textStyle.fontStyle = FONT_STYLES[0]; in SetTextPickerTextStyle() 188 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTextPickerSelectedTextStyle() 189 textStyle.fontStyle = FONT_STYLES[style]; in SetTextPickerSelectedTextStyle() 191 textStyle.fontStyle = FONT_STYLES[0]; in SetTextPickerSelectedTextStyle() 232 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTextPickerDisappearTextStyle() 233 textStyle.fontStyle = FONT_STYLES[style]; in SetTextPickerDisappearTextStyle() 235 textStyle.fontStyle = FONT_STYLES[0]; in SetTextPickerDisappearTextStyle()
|
H A D | alphabet_indexer_modifier.cpp | 29 const std::vector<Ace::FontStyle> FONT_STYLES = { Ace::FontStyle::NORMAL, Ace::FontStyle::ITALIC }; variable 76 std::optional<Ace::FontStyle> fontStyle = FONT_STYLES[0]; in SetSelectedFont() 77 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetSelectedFont() 78 fontStyle = FONT_STYLES[style]; in SetSelectedFont() 110 std::optional<Ace::FontStyle> fontStyle = FONT_STYLES[0]; in SetPopupFont() 111 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetPopupFont() 112 fontStyle = FONT_STYLES[style]; in SetPopupFont() 144 std::optional<Ace::FontStyle> fontStyle = FONT_STYLES[0]; in SetAlphabetIndexerFont() 145 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetAlphabetIndexerFont() 146 fontStyle = FONT_STYLES[style]; in SetAlphabetIndexerFont()
|
H A D | menu_modifier.cpp | 33 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::Fo… variable 129 if (styleVal >= 0 && styleVal < static_cast<int32_t>(FONT_STYLES.size())) { in SetMenuFont() 130 MenuModelNG::SetFontStyle(frameNode, FONT_STYLES[styleVal]); in SetMenuFont()
|
H A D | button_modifier.cpp | 56 const std::vector<Ace::FontStyle> FONT_STYLES = { Ace::FontStyle::NORMAL, Ace::FontStyle::ITALIC }; variable 226 if (fontStyle < 0 || fontStyle >= static_cast<int32_t>(FONT_STYLES.size())) { in SetButtonFontStyle() 229 ButtonModelNG::SetFontStyle(frameNode, FONT_STYLES[fontStyle]); in SetButtonFontStyle() 367 result < static_cast<int32_t>(FONT_STYLES.size())) { in SetButtonValueParameters() 368 buttonParameters.fontStyle = FONT_STYLES[result]; in SetButtonValueParameters()
|
H A D | text_clock_modifier.cpp | 26 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::Fo… variable 82 TextClockModelNG::SetFontStyle(frameNode, FONT_STYLES[fontStyle]); in SetFontStyle()
|
H A D | text_modifier.cpp | 42 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::Fo… variable 74 if (fontStyle < 0 || fontStyle >= FONT_STYLES.size()) { in SetFontStyle() 77 TextModelNG::SetItalicFontStyle(frameNode, FONT_STYLES[fontStyle]); in SetFontStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_span_ffi.cpp | 27 const std::vector<FontStyle> FONT_STYLES = { variable 115 if (!Utils::CheckParamsValid(fontStyle, FONT_STYLES.size())) { in FfiOHOSAceFrameworkSpanSetFontStyle() 119 SpanModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[fontStyle]); in FfiOHOSAceFrameworkSpanSetFontStyle()
|
H A D | cj_texttimer_ffi.cpp | 56 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 114 if (!Utils::CheckParamsValid(fontStyle, FONT_STYLES.size())) { in FfiOHOSAceFrameworkTextTimerSetFontStyle() 118 TextTimerModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[fontStyle]); in FfiOHOSAceFrameworkTextTimerSetFontStyle()
|
H A D | cj_textfield_ffi.cpp | 33 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 164 if (!Utils::CheckParamsValid(style, FONT_STYLES.size())) { in FfiOHOSAceFrameworkTextFieldSetPlaceholderFont() 177 font.fontStyle = FONT_STYLES[style]; in FfiOHOSAceFrameworkTextFieldSetPlaceholderFont() 245 if (!Utils::CheckParamsValid(value, FONT_STYLES.size())) { in FfiOHOSAceFrameworkTextFieldSetFontStyle() 250 TextFieldModel::GetInstance()->SetFontStyle(FONT_STYLES[value]); in FfiOHOSAceFrameworkTextFieldSetFontStyle()
|
H A D | cj_text_ffi.cpp | 34 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 93 if (!Utils::CheckParamsValid(fontStyle, FONT_STYLES.size())) { in FfiOHOSAceFrameworkTextSetFontStyle() 97 TextModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[fontStyle]); in FfiOHOSAceFrameworkTextSetFontStyle()
|
H A D | cj_button_ffi.cpp | 29 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 130 if (!Utils::CheckParamsValid(fontStyle, FONT_STYLES.size())) { in FfiOHOSAceFrameworkButtonSetFontStyle() 134 ButtonModel::GetInstance()->SetFontStyle(FONT_STYLES[fontStyle]); in FfiOHOSAceFrameworkButtonSetFontStyle()
|
H A D | cj_text_clock_ffi.cpp | 34 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 175 if (!Utils::CheckParamsValid(fontStyle, FONT_STYLES.size())) { in FfiOHOSAceFrameworkTextClockFontStyle() 179 TextClockModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[fontStyle]); in FfiOHOSAceFrameworkTextClockFontStyle()
|
H A D | cj_alphabet_indexer_ffi.cpp | 30 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/time_picker/ |
H A D | time_picker_test_update.cpp | 1453 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { 1454 textStyle.fontStyle = FONT_STYLES[style]; 1456 textStyle.fontStyle = FONT_STYLES[0]; 1490 textStyle.fontStyle = FONT_STYLES[style]; 1492 textStyle.fontStyle = FONT_STYLES[0]; 1526 textStyle.fontStyle = FONT_STYLES[style]; 1528 textStyle.fontStyle = FONT_STYLES[0]; 1562 textStyle.fontStyle = FONT_STYLES[style]; 1564 textStyle.fontStyle = FONT_STYLES[0]; 1598 textStyle.fontStyle = FONT_STYLES[style]; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_piece.cpp | 28 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 176 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in SetFontStyle() 178 textStyle.SetFontStyle(FONT_STYLES[value]); in SetFontStyle()
|
H A D | js_texttimer.cpp | 59 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 251 if (value < 0 || value >= static_cast<int32_t>(FONT_STYLES.size())) { in SetFontStyle() 254 TextTimerModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[value]); in SetFontStyle()
|
H A D | js_span.cpp | 74 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 126 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in SetFontStyle() 127 auto style = FONT_STYLES[value]; in SetFontStyle()
|
H A D | js_text_clock.cpp | 65 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 222 if (value < 0 || value >= static_cast<int32_t>(FONT_STYLES.size())) { in SetFontStyle() 225 TextClockModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[value]); in SetFontStyle()
|
H A D | js_indexer.cpp | 57 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 308 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in GetFontContent() 309 fontStyle = FONT_STYLES[value]; in GetFontContent()
|
H A D | js_button.cpp | 62 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 241 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in GetFontContent() 242 buttonParameters.fontStyle = FONT_STYLES[value]; in GetFontContent()
|
H A D | js_tab_content.cpp | 38 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable 272 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in GetFontContent() 273 labelStyle.fontStyle = FONT_STYLES[value]; in GetFontContent()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/ |
H A D | indexer_model.h | 26 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable
|