Home
last modified time | relevance | path

Searched refs:FONT_STYLES (Results 1 - 25 of 36) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_timepicker_modifier.cpp30 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 Dnode_date_picker_modifier.cpp33 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 Dmenu_item_modifier.cpp27 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 Dalphabet_indexer_modifier.cpp26 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 Dnode_textpicker_modifier.cpp32 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 Dmenu_modifier.cpp30 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 Dbutton_modifier.cpp48 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 Dtext_clock_modifier.cpp23 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 Dcj_span_ffi.cpp25 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 Dcj_texttimer_ffi.cpp54 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 Dcj_text_ffi.cpp28 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 Dcj_textfield_ffi.cpp27 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 Dcj_text_clock_ffi.cpp30 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 Dcj_button_ffi.cpp26 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 Dcj_alphabet_indexer_ffi.cpp25 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_piece.cpp25 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 Djs_text_clock.cpp65 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 Djs_texttimer.cpp59 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 Djs_span.cpp74 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 Djs_indexer.cpp57 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 Djs_tab_content.cpp38 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 Djs_button.cpp121 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 Dtime_picker_test_update.cpp1450 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 Dindexer_model.h26 const std::vector<FontStyle> FONT_STYLES = { FontStyle::NORMAL, FontStyle::ITALIC }; member
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_span_bridge.cpp39 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()

Completed in 26 milliseconds

12