Home
last modified time | relevance | path

Searched refs:showOptionCount (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_column_pattern.cpp461 auto showOptionCount = GetShowCount(); in FlushCurrentOptions() local
468 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in FlushCurrentOptions()
476 auto actualOptionCount = showOptionCount < child.size() ? showOptionCount : child.size(); in FlushCurrentOptions()
578 if (showOptionCount != CHILDREN_SIZE) { in ChangeAmPmTextStyle()
585 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeAmPmTextStyle()
590 if ((index == 0) || (index == showOptionCount - 1)) { in ChangeAmPmTextStyle()
601 void TimePickerColumnPattern::ChangeTextStyle(uint32_t index, uint32_t showOptionCount, in ChangeTextStyle() argument
605 if (showOptionCount == CHILDREN_SIZE) { in ChangeTextStyle()
612 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeTextStyle()
1161 void TimePickerColumnPattern::SetDividerHeight(uint32_t showOptionCount) in SetDividerHeight() argument
[all …]
H A Dtimepicker_column_pattern.h313 void SetDividerHeight(uint32_t showOptionCount);
314 …void ChangeTextStyle(uint32_t index, uint32_t showOptionCount, const RefPtr<TextLayoutProperty>& t…
316 void ChangeAmPmTextStyle(uint32_t index, uint32_t showOptionCount,
H A Dtimepicker_column_layout_algorithm.h38 void ChangeAmPmTextStyle(uint32_t index, uint32_t showOptionCount, const SizeF& size,
H A Dtimepicker_column_layout_algorithm.cpp127 void TimePickerColumnLayoutAlgorithm::ChangeAmPmTextStyle(uint32_t index, uint32_t showOptionCount,… in ChangeAmPmTextStyle() argument
137 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeAmPmTextStyle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_theme.cpp43 …auto showOptionCount = static_cast<int32_t>(pattern->GetAttr<double>("picker_show_option_count", 0… in Parse() local
44 …theme->showOptionCount_ = showOptionCount < 0 ? theme->showOptionCount_ : static_cast<uint32_t>(sh… in Parse()
H A Drender_picker_column.cpp494 uint32_t showOptionCount = options_.size(); in FlushCurrentOptions() local
495 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in FlushCurrentOptions()
496 for (uint32_t index = 0; index < showOptionCount; index++) { in FlushCurrentOptions()
521 uint32_t showOptionCount = options_.size(); in NotLoopOptions() local
522 return totalOptionCount <= showOptionCount / 2 + 1; // the critical value of loop condition. in NotLoopOptions()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_column_pattern.cpp394 auto showOptionCount = datePickerPattern->GetShowCount(); in FlushCurrentOptions() local
399 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in FlushCurrentOptions()
403 if (child.size() != showOptionCount) { in FlushCurrentOptions()
407 SetDividerHeight(showOptionCount); in FlushCurrentOptions()
411 for (uint32_t index = 0; index < showOptionCount; index++) { in FlushCurrentOptions()
420 …UpdatePickerTextProperties(index, showOptionCount, textLayoutProperty, dataPickerRowLayoutProperty… in FlushCurrentOptions()
444 void DatePickerColumnPattern::UpdatePickerTextProperties(uint32_t index, uint32_t showOptionCount, in UpdatePickerTextProperties() argument
452 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in UpdatePickerTextProperties()
539 void DatePickerColumnPattern::SetDividerHeight(uint32_t showOptionCount) in SetDividerHeight() argument
555 auto showOptionCount = GetShowCount(); in NotLoopOptions() local
[all …]
H A Ddatepicker_column_layout_algorithm.h37 void ChangeTextStyle(uint32_t index, uint32_t showOptionCount, const SizeF& size,
H A Ddatepicker_column_pattern.h279 void SetDividerHeight(uint32_t showOptionCount);
310 void UpdatePickerTextProperties(uint32_t index, uint32_t showOptionCount,
H A Ddatepicker_column_layout_algorithm.cpp149 void DatePickerColumnLayoutAlgorithm::ChangeTextStyle(uint32_t index, uint32_t showOptionCount, con… in ChangeTextStyle() argument
159 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeTextStyle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_layout_algorithm.h38 void ChangeTextStyle(uint32_t index, uint32_t showOptionCount, const SizeF& size,
H A Dtextpicker_layout_algorithm.cpp213 void TextPickerLayoutAlgorithm::ChangeTextStyle(uint32_t index, uint32_t showOptionCount, const Siz… in ChangeTextStyle() argument
222 uint32_t selectedIndex = showOptionCount / 2; // the center option is selected. in ChangeTextStyle()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_picker/
H A Dtext_picker_Extend_test_ng.cpp1600 uint32_t showOptionCount = 2; variable
1602 …textPickerLayoutAlgorithm.ChangeTextStyle(index, showOptionCount, size, subLayoutWrapper, &layoutW…
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/time_picker/
H A Dtime_picker_test_ng.cpp1248 auto showOptionCount = minuteColumnPattern->GetShowCount(); variable
1250 EXPECT_NE(showOptionCount, child.size());