Home
last modified time | relevance | path

Searched refs:allocatedWidth (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_layout_algorithm.cpp168 auto allocatedWidth = contentMainSize_ / childCount_; in MeasureFixedMode() local
169 ApplyLayoutMode(layoutWrapper, allocatedWidth); in MeasureFixedMode()
184 childLayoutConstraint.selfIdealSize.SetWidth(allocatedWidth); in MeasureFixedMode()
188 visibleItemPosition_[index] = { allocatedWidth * index, allocatedWidth * (index + 1) }; in MeasureFixedMode()
191 ApplySymmetricExtensible(layoutWrapper, allocatedWidth); in MeasureFixedMode()
777 visibleItemLength_[index] = allocatedWidth; in ApplySymmetricExtensible()
792 if (GreatNotEqual(visibleItemLength_[index], allocatedWidth)) { in ApplySymmetricExtensible()
826 const std::vector<float>& rightBuffers, float allocatedWidth) in CalculateItemWidthsForSymmetricExtensible() argument
842 visibleItemLength_[index] = allocatedWidth; in CalculateItemWidthsForSymmetricExtensible()
846 visibleItemLength_[index] = allocatedWidth + spaceRequests[index] * TWO; in CalculateItemWidthsForSymmetricExtensible()
[all …]
H A Dtab_bar_layout_algorithm.h112 void ApplySymmetricExtensible(LayoutWrapper* layoutWrapper, float allocatedWidth);
113 void ApplyLayoutMode(LayoutWrapper* layoutWrapper, float allocatedWidth);
117 const std::vector<float>& rightBuffer, float allocatedWidth);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtab_bar_layout_test_ng.cpp407 float allocatedWidth = 0.0f; variable
417 tabbarLayoutAlgorithm->ApplyLayoutMode(&layoutWrapper, allocatedWidth);
422 tabbarLayoutAlgorithm->ApplyLayoutMode(&layoutWrapper, allocatedWidth);
423 allocatedWidth = 200000.0f;
424 tabbarLayoutAlgorithm->ApplyLayoutMode(&layoutWrapper, allocatedWidth);
608 float allocatedWidth = 0.0f; variable
648 allocatedWidth = 100000.0f;
654 EXPECT_EQ(tabBarLayoutAlgorithm->visibleItemLength_[0], allocatedWidth);
712 float allocatedWidth = 0.0f; variable
837 float allocatedWidth = 0.0f; variable
[all …]