Home
last modified time | relevance | path

Searched refs:tabsLayoutProperty (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtabs_pattern.cpp76 auto tabsLayoutProperty = tabsNode->GetLayoutProperty<TabsLayoutProperty>(); in SetOnChangeEvent() local
77 CHECK_NULL_VOID(tabsLayoutProperty); in SetOnChangeEvent()
78 tabsLayoutProperty->UpdateIndex(currentIndex); in SetOnChangeEvent()
440 CHECK_NULL_RETURN(tabsLayoutProperty, nullptr); in GetNextFocusNode()
441 auto isRTL_ = tabsLayoutProperty->GetNonAutoLayoutDirection() == TextDirection::RTL; in GetNextFocusNode()
475 auto tabsLayoutProperty = GetLayoutProperty<TabsLayoutProperty>(); in BeforeCreateLayoutWrapper() local
476 CHECK_NULL_VOID(tabsLayoutProperty); in BeforeCreateLayoutWrapper()
477 auto index = tabsLayoutProperty->GetIndex().value_or(0); in BeforeCreateLayoutWrapper()
492 auto willShowIndex = tabsLayoutProperty->GetIndex().value_or(0); in BeforeCreateLayoutWrapper()
510 UpdateSelectedState(tabBarNode, swiperNode, tabBarPattern, tabsLayoutProperty, index); in BeforeCreateLayoutWrapper()
[all …]
H A Dtabs_model_ng.cpp72 auto tabsLayoutProperty = tabsFrameNode->GetLayoutProperty<TabsLayoutProperty>(); in Create() local
73 tabsLayoutProperty->UpdateIndex(index < 0 ? 0 : index); in Create()
76 auto tabsLayoutProperty = tabsNode->GetLayoutProperty<TabsLayoutProperty>(); in Create() local
77 auto preIndex = tabsLayoutProperty->GetIndexValue(0); in Create()
356 auto tabsLayoutProperty = tabsFrameNode->GetLayoutProperty<TabsLayoutProperty>(); in SetIndex() local
357 tabsLayoutProperty->UpdateIndex(index); in SetIndex()
465 auto tabsLayoutProperty = tabsNode->GetLayoutProperty<TabsLayoutProperty>(); in SetDivider() local
466 CHECK_NULL_VOID(tabsLayoutProperty); in SetDivider()
539 auto tabsLayoutProperty = tabsNode->GetLayoutProperty<TabsLayoutProperty>(); in Pop() local
540 auto index = tabsLayoutProperty->GetIndexValue(0); in Pop()
[all …]
H A Dtab_content_pattern.h111 auto tabsLayoutProperty = grandParentNode->GetLayoutProperty<TabsLayoutProperty>(); in CheckTabAnimateMode() local
112 CHECK_NULL_VOID(tabsLayoutProperty); in CheckTabAnimateMode()
115 && !tabsLayoutProperty->GetHeightAutoValue(false) in CheckTabAnimateMode()
116 && !tabsLayoutProperty->GetWidthAutoValue(false)) { in CheckTabAnimateMode()
H A Dtabs_pattern.h153 …tr<TabBarPattern>& tabBarPattern, const RefPtr<TabsLayoutProperty>& tabsLayoutProperty, int index);
H A Dtab_bar_layout_algorithm.cpp67 … auto tabsLayoutProperty = AceType::DynamicCast<TabsLayoutProperty>(tabsNode->GetLayoutProperty()); in Measure() local
68 CHECK_NULL_VOID(tabsLayoutProperty); in Measure()
69 isRTL_ = tabsLayoutProperty->GetNonAutoLayoutDirection() == TextDirection::RTL; in Measure()
960 … auto tabsLayoutProperty = AceType::DynamicCast<TabsLayoutProperty>(tabsNode->GetLayoutProperty()); in Layout() local
961 CHECK_NULL_VOID(tabsLayoutProperty); in Layout()
962 isRTL_ = tabsLayoutProperty->GetNonAutoLayoutDirection() == TextDirection::RTL; in Layout()
H A Dtab_bar_pattern.cpp227 … auto tabsLayoutProperty = AceType::DynamicCast<TabsLayoutProperty>(tabsNode->GetLayoutProperty()); in UpdateTabBarHiddenRatio() local
228 CHECK_NULL_VOID(tabsLayoutProperty); in UpdateTabBarHiddenRatio()
233 auto barPosition = tabsLayoutProperty->GetTabBarPosition().value_or(BarPosition::START); in UpdateTabBarHiddenRatio()
1011 … auto tabsLayoutProperty = AceType::DynamicCast<TabsLayoutProperty>(tabsNode->GetLayoutProperty()); in OnModifyDone() local
1012 CHECK_NULL_VOID(tabsLayoutProperty); in OnModifyDone()
1013 isRTL_ = tabsLayoutProperty->GetNonAutoLayoutDirection() == TextDirection::RTL; in OnModifyDone()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtabs_test_ng.cpp291 auto tabsLayoutProperty = layoutProperty_; variable
293 tabsLayoutProperty->UpdateAxis(Axis::HORIZONTAL);
295 EXPECT_EQ(tabsLayoutProperty->GetAxis().value(), Axis::HORIZONTAL);
296 tabsLayoutProperty->UpdateAxis(Axis::VERTICAL);
298 EXPECT_EQ(tabsLayoutProperty->GetAxis().value(), Axis::VERTICAL);