Home
last modified time | relevance | path

Searched refs:FONT_STYLES (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_timepicker_modifier.cpp39 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 Dnode_date_picker_modifier.cpp44 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 Dmenu_item_modifier.cpp32 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 Dnode_textpicker_modifier.cpp42 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 Dalphabet_indexer_modifier.cpp29 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 Dmenu_modifier.cpp33 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 Dbutton_modifier.cpp56 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 Dtext_clock_modifier.cpp26 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 Dtext_modifier.cpp42 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 Dcj_span_ffi.cpp27 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 Dcj_texttimer_ffi.cpp56 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 Dcj_textfield_ffi.cpp33 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 Dcj_text_ffi.cpp34 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 Dcj_button_ffi.cpp29 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 Dcj_text_clock_ffi.cpp34 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 Dcj_alphabet_indexer_ffi.cpp30 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 Dtime_picker_test_update.cpp1453 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 Djs_piece.cpp28 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 Djs_texttimer.cpp59 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 Djs_span.cpp74 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 Djs_text_clock.cpp65 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 Djs_indexer.cpp57 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 Djs_button.cpp62 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 Djs_tab_content.cpp38 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 Dindexer_model.h26 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; variable

12