Home
last modified time | relevance | path

Searched refs:sheetStyle (Results 1 – 25 of 34) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_style.h138 return (height == sheetStyle.height && sheetMode == sheetStyle.sheetMode &&
146 …borderStyle == sheetStyle.borderStyle && shadow == sheetStyle.shadow && width == sheetStyle.width …
155 if (sheetStyle.height.has_value() && !sheetStyle.sheetMode.has_value()) { in PartialUpdate()
158 } else if (!sheetStyle.height.has_value() && sheetStyle.sheetMode.has_value()) { in PartialUpdate()
162 sheetMode = sheetStyle.sheetMode.has_value() ? sheetStyle.sheetMode : sheetMode; in PartialUpdate()
167 sheetType = sheetStyle.sheetType.has_value() ? sheetStyle.sheetType : sheetType; in PartialUpdate()
169 maskColor = sheetStyle.maskColor.has_value() ? sheetStyle.maskColor : maskColor; in PartialUpdate()
172 sheetTitle = sheetStyle.sheetTitle.has_value() ? sheetStyle.sheetTitle : sheetTitle; in PartialUpdate()
174 detents = !sheetStyle.detents.empty() ? sheetStyle.detents : detents; in PartialUpdate()
182 shadow = sheetStyle.shadow.has_value() ? sheetStyle.shadow : shadow; in PartialUpdate()
[all …]
H A Dsheet_view.cpp75 CreateCloseIconButtonNode(sheetNode, sheetStyle); in CreateSheetPage()
101 if (sheetStyle.sheetTitle.has_value() && sheetStyle.sheetSubtitle.has_value()) { in CreateOperationColumnNode()
123 isSingleDetents = sheetStyle.detents[0] == sheetStyle.detents[1]; in CreateDragBarNode()
125 isSingleDetents = sheetStyle.detents[0] == sheetStyle.detents[1] && in CreateDragBarNode()
126 sheetStyle.detents[1] == sheetStyle.detents[SHEET_DETENTS_TWO]; in CreateDragBarNode()
141 if (sheetStyle.isTitleBuilder.has_value()) { in CreateDragBarNode()
286 if (sheetStyle.sheetTitle.has_value()) { in BuildMainTitle()
326 if (sheetStyle.sheetSubtitle.has_value()) { in BuildSubTitle()
349 if (sheetStyle.sheetTitle.has_value()) { in SetTitleColumnMinSize()
371 …bool isTitleCustombuilder = sheetStyle.isTitleBuilder.has_value() && sheetStyle.isTitleBuilder.val… in BuildTitleColumn()
[all …]
H A Dsheet_view.h28 …ode> titleBuilder, std::function<void(const std::string&)>&& callback, NG::SheetStyle& sheetStyle);
33 RefPtr<FrameNode> titleBuilder, NG::SheetStyle& sheetStyle, RefPtr<FrameNode> sheetNode);
35 NG::SheetStyle& sheetStyle, const RefPtr<FrameNode>& sheetNode);
36 static void CreateCloseIconButtonNode(RefPtr<FrameNode> sheetNode, NG::SheetStyle& sheetStyle);
39 … static RefPtr<FrameNode> BuildMainTitle(RefPtr<FrameNode> sheetNode, NG::SheetStyle& sheetStyle);
40 static RefPtr<FrameNode> BuildSubTitle(RefPtr<FrameNode> sheetNode, NG::SheetStyle& sheetStyle);
41 static RefPtr<FrameNode> BuildTitle(RefPtr<FrameNode> sheetNode, NG::SheetStyle& sheetStyle);
42 …static RefPtr<FrameNode> BuildTitleColumn(RefPtr<FrameNode> sheetNode, NG::SheetStyle& sheetStyle);
43 …oid SetTitleColumnMinSize(RefPtr<LayoutProperty> layoutProperty, const NG::SheetStyle& sheetStyle);
H A Dsheet_presentation_pattern.cpp164 … if (sheetStyle.sheetType.has_value() && sheetStyle.sheetType.value() == SheetType::SHEET_BOTTOM && in InitPageHeight()
409 if (sheetStyle.borderWidth.has_value()) { in SetSheetBorderWidth()
702 if (sheetStyle.sheetMode.has_value()) { in InitialSingleGearHeight()
1256 if (sheetStyle.sheetTitle.has_value()) { in UpdateSheetTitle()
1300 …bool isFontScaledInSystemTitle = sheetStyle.isTitleBuilder.has_value() && !sheetStyle.isTitleBuild… in UpdateFontScaleStatus()
1393 if (sheetStyle.maskColor.has_value()) { in UpdateMaskBackgroundColor()
1485 IsCustomDetentsChanged(sheetStyle); in InitSheetDetents()
1581 … (sheetStyle.sheetType.has_value() && sheetStyle.sheetType.value() == SheetType::SHEET_BOTTOM)) { in GetSheetType()
1621sheetStyle.sheetType.has_value() && sheetStyle.sheetType.value() == SheetType::SHEET_POPUP) { in GetSheetTypeWithAuto()
2319 …std::string("height: ").append(sheetStyle.height.has_value() ? sheetStyle.height->ToString() : "No… in GetSheetTypeWithAuto()
[all …]
H A Dsheet_manager.cpp61 int32_t GetOverlayAndTargetNode(int32_t targetId, const SheetStyle& sheetStyle, int32_t sheetConten… in GetOverlayAndTargetNode() argument
64 bool showInPage = sheetStyle.showInPage.value_or(false); in GetOverlayAndTargetNode()
84 … rootNodeType = targetNode->GetRootNodeType(), showInPage = sheetStyle.showInPage.value_or(false), in GetOverlayAndTargetNode()
85 … instanceId = sheetStyle.instanceId.value_or(Container::CurrentId()), sheetContentNodeId]() { in GetOverlayAndTargetNode()
108 …::FrameNode>& sheetContentNode, std::function<void()>&& titleBuildFunc, NG::SheetStyle& sheetStyle, in OpenBindSheetByUIContext() argument
135 sheetStyle.showInPage = false; in OpenBindSheetByUIContext()
140 …GetOverlayAndTargetNode(targetId, sheetStyle, sheetContentNode->GetId(), overlayManager, targetNod… in OpenBindSheetByUIContext()
153sheetStyle, std::move(onAppear), std::move(onDisappear), std::move(shouldDismiss), std::move(onWil… in OpenBindSheetByUIContext()
161 NG::SheetStyle& sheetStyle, bool isPartialUpdate, int32_t currentInstanceId) in UpdateBindSheetByUIContext() argument
169 sheetContentNode, sheetStyle, targetIdMap_[sheetContentKey], isPartialUpdate); in UpdateBindSheetByUIContext()
H A Doverlay_manager.h423 … NG::SheetStyle& sheetStyle, std::function<void()>&& onAppear, std::function<void()>&& onDisappear,
467 NG::SheetStyle& sheetStyle, int32_t targetId, bool isPartialUpdate);
532 void ComputeSheetOffset(NG::SheetStyle& sheetStyle, RefPtr<FrameNode> sheetNode);
534 void ComputeSingleGearSheetOffset(NG::SheetStyle& sheetStyle, RefPtr<FrameNode> sheetNode);
536 void ComputeDetentsSheetOffset(NG::SheetStyle& sheetStyle, RefPtr<FrameNode> sheetNode);
667 const RefPtr<FrameNode>& targetNode, NG::SheetStyle& sheetStyle);
669 void UpdateSheetPage(const RefPtr<FrameNode>& sheetNode, NG::SheetStyle& sheetStyle,
680 const RefPtr<FrameNode>& sheetNode, const SheetStyle& sheetStyle, bool isPartialUpdate);
683 const RefPtr<RenderContext>& maskRenderContext, const SheetStyle& sheetStyle);
685 … const RefPtr<FrameNode>& sheetNode, const SheetStyle& sheetStyle, bool isPartialUpdate = false);
[all …]
H A Doverlay_manager.cpp4111 …auto instanceId = sheetStyle.instanceId.has_value() ? sheetStyle.instanceId.value() : Container::C… in BindSheet()
4145 if (sheetStyle.maskColor.has_value()) { in UpdateSheetMaskBackgroundColor()
4565 …auto instanceId = sheetStyle.instanceId.has_value() ? sheetStyle.instanceId.value() : Container::C… in OpenBindSheetByUIContext()
4610 if (sheetStyle.borderStyle.has_value()) { in UpdateSheetRender()
4613 if (sheetStyle.borderColor.has_value()) { in UpdateSheetRender()
4616 if (sheetStyle.shadow.has_value()) { in UpdateSheetRender()
4691 currentStyle = sheetStyle; in UpdateSheetStyle()
4897 sheetStyle.interactive.has_value() && !sheetStyle.interactive.value()) { in UpdateSheetMask()
5078 if (!sheetStyle.detents.empty()) { in ComputeSheetOffset()
5101 … if (sheetStyle.sheetType.has_value() && sheetStyle.sheetType.value() == SheetType::SHEET_BOTTOM && in CheckDeviceInLandscape()
[all …]
H A Dsheet_manager.h31 std::function<void()>&& titleBuildFunc, NG::SheetStyle& sheetStyle,
39 … const RefPtr<NG::FrameNode>& sheetContentNode, NG::SheetStyle& sheetStyle, bool isPartialUpdate,
H A Dsheet_presentation_pattern.h294 float InitialSingleGearHeight(NG::SheetStyle& sheetStyle);
606 bool IsCustomHeightOrDetentsChanged(const SheetStyle& sheetStyle) const;
684 void IsCustomDetentsChanged(SheetStyle sheetStyle);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
H A Doverlay_manager_test_update_ng.cpp227 SheetStyle sheetStyle; variable
288 SheetStyle sheetStyle; variable
349 SheetStyle sheetStyle; variable
410 SheetStyle sheetStyle; variable
471 SheetStyle sheetStyle; variable
532 SheetStyle sheetStyle; variable
593 SheetStyle sheetStyle; variable
654 SheetStyle sheetStyle; variable
715 SheetStyle sheetStyle; variable
776 SheetStyle sheetStyle; variable
[all …]
H A Dsheet_coverage_test_ng.cpp89 SheetStyle sheetStyle; in SetSheetType() local
719 SheetStyle sheetStyle; variable
839 SheetStyle sheetStyle; variable
891 SheetStyle sheetStyle; variable
936 SheetStyle sheetStyle; variable
979 SheetStyle sheetStyle; variable
1023 SheetStyle sheetStyle; variable
1059 SheetStyle sheetStyle; variable
1169 SheetStyle sheetStyle; variable
1195 SheetStyle sheetStyle; variable
[all …]
H A Doverlay_manager_test_ng.cpp271 SheetStyle sheetStyle; variable
336 SheetStyle sheetStyle; variable
453 SheetStyle sheetStyle; variable
570 SheetStyle sheetStyle; variable
660 SheetStyle sheetStyle; variable
763 SheetStyle sheetStyle; variable
827 SheetStyle sheetStyle; variable
879 SheetStyle sheetStyle; variable
981 SheetStyle sheetStyle; variable
1070 SheetStyle sheetStyle; variable
[all …]
H A Doverlay_manager_menu_test_ng.cpp88 static void CreateSheetStyle(SheetStyle& sheetStyle);
150 void OverlayManagerMenuTestNg::CreateSheetStyle(SheetStyle& sheetStyle) in CreateSheetStyle() argument
152 if (!sheetStyle.sheetMode.has_value()) { in CreateSheetStyle()
153 sheetStyle.sheetMode = SheetMode::MEDIUM; in CreateSheetStyle()
155 if (!sheetStyle.showDragBar.has_value()) { in CreateSheetStyle()
156 sheetStyle.showDragBar = true; in CreateSheetStyle()
H A Doverlay_dialog_transition_test_ng.cpp109 static void CreateSheetStyle(SheetStyle& sheetStyle);
164 void OverlayDialogTransitionTestNg::CreateSheetStyle(SheetStyle& sheetStyle) in CreateSheetStyle() argument
166 if (!sheetStyle.sheetMode.has_value()) { in CreateSheetStyle()
167 sheetStyle.sheetMode = SheetMode::MEDIUM; in CreateSheetStyle()
169 if (!sheetStyle.showDragBar.has_value()) { in CreateSheetStyle()
170 sheetStyle.showDragBar = true; in CreateSheetStyle()
H A Doverlay_manager_content_test_ng.cpp104 static void CreateSheetStyle(SheetStyle& sheetStyle);
160 void OverlayManagerContentTestNg::CreateSheetStyle(SheetStyle& sheetStyle) in CreateSheetStyle() argument
162 if (!sheetStyle.sheetMode.has_value()) { in CreateSheetStyle()
163 sheetStyle.sheetMode = SheetMode::MEDIUM; in CreateSheetStyle()
165 if (!sheetStyle.showDragBar.has_value()) { in CreateSheetStyle()
166 sheetStyle.showDragBar = true; in CreateSheetStyle()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/view_context/
H A Dview_context_test_ng.cpp65 NG::SheetStyle sheetStyle; variable
66 sheetStyle.isTitleBuilder = false;
71 …int32_t ret = viewContext.OpenBindSheet(node, funcVoid, sheetStyle, funcVoid, funcVoid, funcVoid, …
92 NG::SheetStyle sheetStyle; variable
93 sheetStyle.isTitleBuilder = false;
98 int32_t ret = viewContext.UpdateBindSheet(node, sheetStyle, true, 1);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/view_context/
H A Dview_context_model_ng.cpp52 …::FrameNode>& sheetContentNode, std::function<void()>&& titleBuildFunc, NG::SheetStyle& sheetStyle, in OpenBindSheet() argument
61sheetStyle, std::move(onAppear), std::move(onDisappear), std::move(shouldDismiss), std::move(onWil… in OpenBindSheet()
68 NG::SheetStyle& sheetStyle, bool isPartialUpdate, int32_t currentInstanceId) in UpdateBindSheet() argument
71 sheetContentNode, sheetStyle, isPartialUpdate, currentInstanceId); in UpdateBindSheet()
H A Dview_context_model_ng.h28 std::function<void()>&& titleBuildFunc, NG::SheetStyle& sheetStyle,
36 … const RefPtr<NG::FrameNode>& sheetContentNode, NG::SheetStyle& sheetStyle, bool isPartialUpdate,
H A Dview_context_model.h33 std::function<void()>&& titleBuildFunc, NG::SheetStyle& sheetStyle,
41 … const RefPtr<NG::FrameNode>& bindContentNode, NG::SheetStyle& sheetStyle, bool isPartialUpdate,
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dview_abstract_model_test_ng.cpp118 NG::SheetStyle sheetStyle; variable
119 sheetStyle.showInPage = true;
154 NG::SheetStyle sheetStyle; variable
155 sheetStyle.showInPage = true;
190 NG::SheetStyle sheetStyle; variable
191 sheetStyle.showInPage = true;
195 sheetStyle.showInPage = false;
199 sheetStyle.showInPage = false;
760 NG::SheetStyle sheetStyle; variable
761 sheetStyle.showInPage = true;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_context.cpp836 NG::SheetStyle sheetStyle; in JSOpenBindSheet() local
837 sheetStyle.sheetMode = NG::SheetMode::LARGE; in JSOpenBindSheet()
838 sheetStyle.showDragBar = true; in JSOpenBindSheet()
839 sheetStyle.showInPage = false; in JSOpenBindSheet()
856 JSViewAbstract::ParseSheetStyle(info[INDEX_ONE], sheetStyle); in JSOpenBindSheet()
872 sheetStyle.instanceId = Container::CurrentId(); in JSOpenBindSheet()
908 NG::SheetStyle sheetStyle; in JSUpdateBindSheet() local
914 sheetStyle.sheetMode = NG::SheetMode::LARGE; in JSUpdateBindSheet()
915 sheetStyle.showDragBar = true; in JSUpdateBindSheet()
916 sheetStyle.showInPage = false; in JSUpdateBindSheet()
[all …]
H A Djs_view_abstract.cpp7950 NG::SheetStyle sheetStyle; in JsBindSheet() local
7952 sheetStyle.showDragBar = true; in JsBindSheet()
7953 sheetStyle.showCloseIcon = true; in JsBindSheet()
7954 sheetStyle.showInPage = false; in JsBindSheet()
8011 sheetStyle.detents = detents; in ParseSheetStyle()
8038 sheetStyle.sheetType.reset(); in ParseSheetStyle()
8089 sheetStyle.borderColor = in ParseSheetStyle()
8123 sheetStyle.shadow = shadow; in ParseSheetStyle()
8142 sheetStyle.width = width; in ParseSheetStyle()
8183 sheetStyle.height.reset(); in ParseSheetStyle()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dview_context_model_impl.h27 std::function<void()>&& titleBuildFunc, NG::SheetStyle& sheetStyle, in OpenBindSheet() argument
35 …NG::SheetStyle& sheetStyle, bool isPartialUpdate, int32_t currentInstanceId) override { return 0; } in UpdateBindSheet() argument
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_view_abstract_ffi.cpp1490 sheetStyle.detents = detents; in ParseSheetStyle()
1505 sheetStyle.showDragBar = option.dragBarl.value; in ParseSheetStyle()
1507 sheetStyle.showDragBar = true; in ParseSheetStyle()
1531 sheetStyle.sheetMode = sheetDetent.sheetMode; in ParseSheetStyle()
1532 sheetStyle.height = sheetDetent.height; in ParseSheetStyle()
1538 sheetStyle.isTitleBuilder = true; in ParseSheetTitle()
1545 NG::SheetStyle sheetStyle; in FfiOHOSAceFrameworkViewAbstractbindSheetParam() local
1547 sheetStyle.sheetMode = NG::SheetMode::LARGE; in FfiOHOSAceFrameworkViewAbstractbindSheetParam()
1548 sheetStyle.showDragBar = true; in FfiOHOSAceFrameworkViewAbstractbindSheetParam()
1549 sheetStyle.showInPage = false; in FfiOHOSAceFrameworkViewAbstractbindSheetParam()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dview_abstract_model_ng.cpp470 RefPtr<PipelineContext> ViewAbstractModelNG::GetSheetContext(NG::SheetStyle& sheetStyle) in GetSheetContext() argument
473 if (sheetStyle.instanceId.has_value()) { in GetSheetContext()
474 …TAG_LOGD(AceLogTag::ACE_SHEET, "Sheet uiContext id is: %{public}d", sheetStyle.instanceId.value()); in GetSheetContext()
475 auto container = AceEngine::Get().GetContainer(sheetStyle.instanceId.value()); in GetSheetContext()
487 …::function<void()>&& buildFunc, std::function<void()>&& titleBuildFunc, NG::SheetStyle& sheetStyle, in BindSheet() argument
496 …auto instanceId = sheetStyle.instanceId.has_value() ? sheetStyle.instanceId.value() : Container::C… in BindSheet()
510 auto context = GetSheetContext(sheetStyle); in BindSheet()
513 if (sheetStyle.showInPage.value_or(false)) { in BindSheet()
521 showInPage = sheetStyle.showInPage.value_or(false), instanceId]() { in BindSheet()
537sheetStyle, std::move(onAppear), std::move(onDisappear), std::move(shouldDismiss), std::move(onWil… in BindSheet()

12