/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_timepicker_modifier.cpp | 30 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::FontStyle::ITALIC }; member 85 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTimepickerTextStyle() 86 textStyle.fontStyle = FONT_STYLES[style]; in SetTimepickerTextStyle() 88 textStyle.fontStyle = FONT_STYLES[0]; in SetTimepickerTextStyle() 128 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTimepickerSelectedTextStyle() 129 textStyle.fontStyle = FONT_STYLES[style]; in SetTimepickerSelectedTextStyle() 131 textStyle.fontStyle = FONT_STYLES[0]; in SetTimepickerSelectedTextStyle() 172 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTimepickerDisappearTextStyle() 173 textStyle.fontStyle = FONT_STYLES[style]; in SetTimepickerDisappearTextStyle() 175 textStyle.fontStyle = FONT_STYLES[ in SetTimepickerDisappearTextStyle() [all...] |
H A D | node_date_picker_modifier.cpp | 33 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::FontStyle::ITALIC }; member 82 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetSelectedTextStyle() 83 textStyle.fontStyle = FONT_STYLES[style]; in SetSelectedTextStyle() 85 textStyle.fontStyle = FONT_STYLES[0]; in SetSelectedTextStyle() 159 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetDatePickerTextStyle() 160 textStyle.fontStyle = FONT_STYLES[style]; in SetDatePickerTextStyle() 162 textStyle.fontStyle = FONT_STYLES[0]; in SetDatePickerTextStyle() 236 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetDisappearTextStyle() 237 textStyle.fontStyle = FONT_STYLES[style]; in SetDisappearTextStyle() 239 textStyle.fontStyle = FONT_STYLES[ in SetDisappearTextStyle() [all...] |
H A D | menu_item_modifier.cpp | 27 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::FontStyle::ITALIC }; member 95 if (styleVal >= 0 && styleVal < static_cast<int32_t>(FONT_STYLES.size())) { in SetLabelFont() 96 MenuItemModelNG::SetLabelFontStyle(frameNode, FONT_STYLES[styleVal]); in SetLabelFont() 144 if (styleVal >= 0 && styleVal < static_cast<int32_t>(FONT_STYLES.size())) { in SetContentFont() 145 MenuItemModelNG::SetFontStyle(frameNode, FONT_STYLES[styleVal]); in SetContentFont()
|
H A D | alphabet_indexer_modifier.cpp | 26 const std::vector<Ace::FontStyle> FONT_STYLES = { Ace::FontStyle::NORMAL, Ace::FontStyle::ITALIC }; member 73 std::optional<Ace::FontStyle> fontStyle = FONT_STYLES[0]; in SetSelectedFont() 74 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetSelectedFont() 75 fontStyle = FONT_STYLES[style]; in SetSelectedFont() 107 std::optional<Ace::FontStyle> fontStyle = FONT_STYLES[0]; in SetPopupFont() 108 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetPopupFont() 109 fontStyle = FONT_STYLES[style]; in SetPopupFont() 141 std::optional<Ace::FontStyle> fontStyle = FONT_STYLES[0]; in SetAlphabetIndexerFont() 142 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetAlphabetIndexerFont() 143 fontStyle = FONT_STYLES[styl in SetAlphabetIndexerFont() [all...] |
H A D | node_textpicker_modifier.cpp | 32 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::FontStyle::ITALIC }; member 135 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTextPickerTextStyle() 136 textStyle.fontStyle = FONT_STYLES[style]; in SetTextPickerTextStyle() 138 textStyle.fontStyle = FONT_STYLES[0]; in SetTextPickerTextStyle() 178 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTextPickerSelectedTextStyle() 179 textStyle.fontStyle = FONT_STYLES[style]; in SetTextPickerSelectedTextStyle() 181 textStyle.fontStyle = FONT_STYLES[0]; in SetTextPickerSelectedTextStyle() 222 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetTextPickerDisappearTextStyle() 223 textStyle.fontStyle = FONT_STYLES[style]; in SetTextPickerDisappearTextStyle() 225 textStyle.fontStyle = FONT_STYLES[ in SetTextPickerDisappearTextStyle() [all...] |
H A D | menu_modifier.cpp | 30 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::FontStyle::ITALIC }; member 126 if (styleVal >= 0 && styleVal < static_cast<int32_t>(FONT_STYLES.size())) { in SetMenuFont() 127 MenuModelNG::SetFontStyle(frameNode, FONT_STYLES[styleVal]); in SetMenuFont()
|
H A D | button_modifier.cpp | 48 const std::vector<Ace::FontStyle> FONT_STYLES = { Ace::FontStyle::NORMAL, Ace::FontStyle::ITALIC }; member 224 if (fontStyle < 0 || fontStyle >= static_cast<int32_t>(FONT_STYLES.size())) { in SetButtonFontStyle() 227 ButtonModelNG::SetFontStyle(frameNode, FONT_STYLES[fontStyle]); in SetButtonFontStyle() 365 result < static_cast<int32_t>(FONT_STYLES.size())) { in SetButtonValueParameters() 366 buttonParameters.fontStyle = FONT_STYLES[result]; in SetButtonValueParameters()
|
H A D | text_clock_modifier.cpp | 23 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::FontStyle::ITALIC }; member 79 TextClockModelNG::SetFontStyle(frameNode, FONT_STYLES[fontStyle]); in SetFontStyle()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_span_ffi.cpp | 25 const std::vector<FontStyle> FONT_STYLES = { member 113 if (!Utils::CheckParamsValid(fontStyle, FONT_STYLES.size())) { in FfiOHOSAceFrameworkSpanSetFontStyle() 117 SpanModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[fontStyle]); in FfiOHOSAceFrameworkSpanSetFontStyle()
|
H A D | cj_texttimer_ffi.cpp | 54 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 112 if (!Utils::CheckParamsValid(fontStyle, FONT_STYLES.size())) { in FfiOHOSAceFrameworkTextTimerSetFontStyle() 116 TextTimerModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[fontStyle]); in FfiOHOSAceFrameworkTextTimerSetFontStyle()
|
H A D | cj_text_ffi.cpp | 28 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 87 if (!Utils::CheckParamsValid(fontStyle, FONT_STYLES.size())) { in FfiOHOSAceFrameworkTextSetFontStyle() 91 TextModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[fontStyle]); in FfiOHOSAceFrameworkTextSetFontStyle()
|
H A D | cj_textfield_ffi.cpp | 27 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 158 if (!Utils::CheckParamsValid(style, FONT_STYLES.size())) { in FfiOHOSAceFrameworkTextFieldSetPlaceholderFont() 171 font.fontStyle = FONT_STYLES[style]; in FfiOHOSAceFrameworkTextFieldSetPlaceholderFont() 239 if (!Utils::CheckParamsValid(value, FONT_STYLES.size())) { in FfiOHOSAceFrameworkTextFieldSetFontStyle() 244 TextFieldModel::GetInstance()->SetFontStyle(FONT_STYLES[value]); in FfiOHOSAceFrameworkTextFieldSetFontStyle()
|
H A D | cj_text_clock_ffi.cpp | 30 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 173 if (!Utils::CheckParamsValid(fontStyle, FONT_STYLES.size())) { in FfiOHOSAceFrameworkTextClockFontStyle() 177 TextClockModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[fontStyle]); in FfiOHOSAceFrameworkTextClockFontStyle()
|
H A D | cj_button_ffi.cpp | 26 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 127 if (!Utils::CheckParamsValid(fontStyle, FONT_STYLES.size())) { in FfiOHOSAceFrameworkButtonSetFontStyle() 131 ButtonModel::GetInstance()->SetFontStyle(FONT_STYLES[fontStyle]); in FfiOHOSAceFrameworkButtonSetFontStyle()
|
H A D | cj_alphabet_indexer_ffi.cpp | 25 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_piece.cpp | 25 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 173 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in SetFontStyle() 175 textStyle.SetFontStyle(FONT_STYLES[value]); in SetFontStyle()
|
H A D | js_text_clock.cpp | 65 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 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_texttimer.cpp | 59 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 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 }; member 130 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in SetFontStyle() 131 auto style = FONT_STYLES[value]; in SetFontStyle()
|
H A D | js_indexer.cpp | 57 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 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_tab_content.cpp | 38 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 272 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in GetFontContent() 273 labelStyle.fontStyle = FONT_STYLES[value]; in GetFontContent()
|
H A D | js_button.cpp | 121 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member 272 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in GetFontContent() 273 buttonParameters.fontStyle = FONT_STYLES[value]; in GetFontContent()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/time_picker/ |
H A D | time_picker_test_update.cpp | 1450 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, in HWTEST_F() local 1460 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in HWTEST_F() 1461 textStyle.fontStyle = FONT_STYLES[style]; in HWTEST_F() 1463 textStyle.fontStyle = FONT_STYLES[0]; in HWTEST_F() 1486 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, in HWTEST_F() local 1496 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in HWTEST_F() 1497 textStyle.fontStyle = FONT_STYLES[style]; in HWTEST_F() 1499 textStyle.fontStyle = FONT_STYLES[0]; in HWTEST_F() 1522 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, in HWTEST_F() local 1532 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES in HWTEST_F() 1558 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, HWTEST_F() local 1594 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, HWTEST_F() local [all...] |
/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 }; member
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_span_bridge.cpp | 39 const std::vector<OHOS::Ace::FontStyle> FONT_STYLES = { OHOS::Ace::FontStyle::NORMAL, OHOS::Ace::FontStyle::ITALIC }; member 220 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in SetFontStyle() 463 if (style >= 0 && style < static_cast<int32_t>(FONT_STYLES.size())) { in SetFont()
|