Home
last modified time | relevance | path

Searched refs:view (Results 1 – 25 of 628) sorted by relevance

12345678910>>...26

/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_draw_rect/
H A Dui_test_draw_rect.cpp124 return view; in CreateUIView()
148 group->Add(view); in UIKitDrawRectTestRectNoBorder001()
174 group->Add(view); in UIKitDrawRectTestRectNoBorder002()
201 group->Add(view); in UIKitDrawRectTestRectNoBorder003()
228 group->Add(view); in UIKitDrawRectTestRectNoBorder004()
255 group->Add(view); in UIKitDrawRectTestRectNoBorder005()
282 group->Add(view); in UIKitDrawRectTestRectNoBorder006()
309 group->Add(view); in UIKitDrawRectTestRectNoBorder007()
336 group->Add(view); in UIKitDrawRectTestRectNoBorder008()
363 group->Add(view); in UIKitDrawRectTestRectNoBorder009()
[all …]
/ohos5.0/foundation/arkui/ui_lite/frameworks/dfx/
H A Dui_dump_dom_tree.cpp179 switch (view->GetViewType()) { in AddSpecialField()
213 AddListField(view, usr); in AddSpecialField()
258 if (view == nullptr) { in OutputDomNode()
269 AddCommonField(view, dumpUsr); in OutputDomNode()
270 AddSpecialField(view, dumpUsr); in OutputDomNode()
322 AddCommonField(view, dumpUsr); in OutputDomTree()
323 AddSpecialField(view, dumpUsr); in OutputDomTree()
325 if (view->IsViewGroup()) { in OutputDomTree()
350 if ((view->GetViewId() != nullptr) && !strcmp(view->GetViewId(), id)) { in DumpJsonById()
353 OutputDomNode(view); in DumpJsonById()
[all …]
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_view_group.cpp44 if ((view == this) || (view == nullptr)) { in Add()
54 childrenHead_ = view; in Add()
61 view->SetParent(this); in Add()
63 childrenTail_ = view; in Add()
68 UpdateRenderView(view); in Add()
195 while (view != nullptr) { in GetTargetView()
205 view = view->GetNextRenderSibling(); in GetTargetView()
250 view = view->GetNextRenderSibling(); in GetTargetView()
261 view = view->GetNextSibling(); in GetAllChildRelativeRect()
271 view = view->GetNextSibling(); in GetAllChildRelativeRect()
[all …]
H A Dui_list.cpp184 while (view != nullptr) { in ~UIList()
187 delete view; in ~UIList()
188 view = tmp; in ~UIList()
563 if (view == nullptr) { in PushBack()
567 SetHead(view); in PushBack()
583 if (view == nullptr) { in PushFront()
587 SetHead(view); in PushFront()
602 if (view == nullptr) { in PopItem()
618 if (view != nullptr) { in SetHead()
628 if (view == nullptr) { in MoveChildByOffset()
[all …]
/ohos5.0/base/update/updater/services/ui/control/
H A Devent_listener.cpp31 auto *page = view.GetParent(); in operator ()()
36 if (view.GetViewId() == nullptr) { in operator ()()
40 std::string id = view.GetViewId(); in operator ()()
51 if (!view.IsVisible()) { in operator ()()
59 [cb = cb_, &view] () { in operator ()()
60 CallbackWithGuard(cb, view); in operator ()()
67 CallbackWithGuard(cb_, view); in operator ()()
79 cb.func(view); in CallbackWithGuard()
123 view.SetPosition(view.GetX() + event.GetDeltaX(), view.GetY() + event.GetDeltaY()); in OnDrag()
124 if (view.GetParent() != nullptr) { in OnDrag()
[all …]
H A Devent_listener.h41 void operator()(OHOS::UIView &view, bool isAsync) const;
43 static void CallbackWithGuard(Callback cb, OHOS::UIView &view);
53 bool OnRelease(OHOS::UIView &view, const OHOS::ReleaseEvent &event) override;
65 bool OnClick(OHOS::UIView &view, const OHOS::ClickEvent &event) override;
66 bool OnPress(OHOS::UIView &view, const OHOS::PressEvent &event) override;
68 bool OnCancel(OHOS::UIView &view, const OHOS::CancelEvent &event) override;
82 bool OnDrag(OHOS::UIView &view, const OHOS::DragEvent &event) override;
83 bool OnDragEnd(OHOS::UIView &view, const OHOS::DragEvent &event) override;
94 bool OnKeyAct(OHOS::UIView &view, const OHOS::KeyEvent &event) override;
96 bool ProcessPowerKey(OHOS::UIView &view, const OHOS::KeyEvent &event);
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_swipe_view_unit_test.cpp101 if (view == nullptr) {
105 swipeView_->Add(view);
109 delete view;
130 if (view == nullptr) {
141 delete view;
158 if (view == nullptr) {
162 swipeView_->Add(view);
167 delete view;
194 if (view == nullptr) {
200 delete view;
[all …]
H A Dui_circle_progress_unit_test.cpp174 UIView* view = new UIView(); variable
176 int16_t x1 = x + view->GetStyleConst().paddingLeft_ + view->GetStyleConst().borderWidth_;
177 int16_t y1 = y + view->GetStyleConst().paddingTop_ + view->GetStyleConst().borderWidth_;
181 delete view;
182 view = nullptr;
197 UIView* view = new UIView(); variable
199 int16_t x1 = x + view->GetStyleConst().paddingLeft_ + view->GetStyleConst().borderWidth_;
200 int16_t y1 = y + view->GetStyleConst().paddingTop_ + view->GetStyleConst().borderWidth_;
204 delete view;
205 view = nullptr;
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_layout/
H A Dui_test_advanced_layout.cpp201 if (&view == resetgBtn_) { in OnClickButton()
211 } else if (&view == horgBtn_) { in OnClickButton()
213 } else if (&view == horgRBtn_) { in OnClickButton()
215 } else if (&view == vergBtn_) { in OnClickButton()
217 } else if (&view == vergRBtn_) { in OnClickButton()
247 if (&view == resetfBtn_) { in OnClick()
256 } else if (&view == horfBtn_) { in OnClick()
258 } else if (&view == horfRBtn_) { in OnClick()
260 } else if (&view == verfBtn_) { in OnClick()
264 } else if (&view == wrapBtn_) { in OnClick()
[all …]
H A Dui_test_basic_layout.cpp177 if (&view == aLeftToSiblingBtn_) { in OnClickButton()
181 } else if (&view == aTopToSiblingBtn_) { in OnClickButton()
189 } else if (&view == lLeftToSiblingBtn_) { in OnClickButton()
193 } else if (&view == lTopToSiblingBtn_) { in OnClickButton()
197 } else if (&view == lInvalidLayoutBtn_) { in OnClickButton()
206 if (&view == resetBtn_) { in OnClick()
216 } else if (&view == marginBtn_) { in OnClick()
221 } else if (&view == padBtn_) { in OnClick()
229 } else if (&view == lLeftOfParentBtn_) { in OnClick()
233 } else if (&view == lTopOfParentBtn_) { in OnClick()
[all …]
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/dfx/
H A Dui_dump_dom_tree.h124 void AddCommonField(UIView* view, cJSON* usr) const;
126 void AddLabelField(const UIView* view, cJSON* usr) const;
128 void AddCheckboxField(const UIView* view, cJSON* usr) const;
130 void AddProgressField(const UIView* view, cJSON* usr) const;
132 void AddListField(const UIView* view, cJSON* usr) const;
133 void AddClockField(const UIView* view, cJSON* usr) const;
134 void AddPickerField(const UIView* view, cJSON* usr) const;
135 void AddSwipeViewField(const UIView* view, cJSON* usr) const;
137 void AddSpecialField(const UIView* view, cJSON* usr) const;
138 void OutputDomNode(UIView* view);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_native_view_ffi.cpp75 if (view == nullptr) { in FfiOHOSAceFrameworkNativeViewCtor()
78 return view->GetID(); in FfiOHOSAceFrameworkNativeViewCtor()
84 if (!view) { in FfiOHOSAceFrameworkNativeViewDestroy()
88 view->Destroy(); in FfiOHOSAceFrameworkNativeViewDestroy()
144 if (!view) { in FfiOHOSAceFrameworkNativeViewSyncInstanceId()
148 view->SyncInstanceId(); in FfiOHOSAceFrameworkNativeViewSyncInstanceId()
154 if (!view) { in FfiOHOSAceFrameworkNativeViewRestoreInstanceId()
158 view->RestoreInstanceId(); in FfiOHOSAceFrameworkNativeViewRestoreInstanceId()
164 if (!view) { in FfiOHOSAceFrameworkNativeViewFinishUpdateFunc()
174 if (!view) { in FfiOHOSAceFrameworkViewDeletedElmtIdsHaveBeenPurged()
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dcomponent.cpp143 if (view != nullptr) { in Render()
174 if (view == nullptr) { in SetViewExtraMsg()
190 if (view == nullptr) { in ReleaseViewExtraMsg()
706 if (view == nullptr) { in Invalidate()
709 view->Invalidate(); in Invalidate()
1135 view.SetTouchable(true); in SetClickEventListener()
1148 view.SetTouchable(true); in SetTouchCancelEventListener()
1475 SetLeftMargin(view); in SetMargin()
1476 SetTopMargin(view); in SetMargin()
1477 SetRightMargin(view); in SetMargin()
[all …]
H A Dcomponent.h336 bool RegisterCommonEventListener(UIView& view,
355 bool ApplyCommonStyle(UIView& view, const AppStyleItem *style);
450 void SetPadding(UIView &view, const AppStyleItem& styleItem) const;
452 void SetTopPadding(UIView &view, const AppStyleItem& styleItem) const;
459 void SetOpacity(UIView &view, const AppStyleItem &styleItem) const;
460 void SetLeftMargin(UIView &view) const;
461 void SetTopMargin(UIView &view) const;
462 void SetRightMargin(UIView &view) const;
463 void SetBottomMargin(UIView &view) const;
464 void SetMargin(UIView &view) const;
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_view_group/
H A Dui_test_view_group.cpp195 if (&view == addBtn_) { in OnClick()
197 } else if (&view == removeBtn_) { in OnClick()
207 } else if (&view == addSelfBtn_) { in OnClick()
223 UIView* view = new UIView(); in AddView() local
227 view->SetViewId("id_view1"); in AddView()
230 vg->Add(view); in AddView()
258 UIView* view = new UIView(); in AddMultiParent() local
261 vg->Add(view); in AddMultiParent()
263 container_->Add(view); in AddMultiParent()
268 UIView* view = new UIView(); in InsertMultiParent() local
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_ui_list/
H A Dui_test_ui_list.cpp377 if (&view == setBlankBtn_) { in OnClick()
379 } else if (&view == setBlankOffBtn_) { in OnClick()
385 } else if (&view == setRefreshBtn_) { in OnClick()
388 } else if (&view == setLoopBtn_) { in OnClick()
390 } else if (&view == setLoopOffBtn_) { in OnClick()
403 } else if (&view == setSelectBtn_) { in OnClick()
479 if (view != nullptr) { in OnItemSelected()
481 view->Invalidate(); in OnItemSelected()
509 if (view == nullptr) { in SetLastPos()
512 lastX_ = view->GetX(); in SetLastPos()
[all …]
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dabstract_adapter.h91 virtual void DeleteView(UIView*& view) in DeleteView() argument
93 delete view; in DeleteView() local
94 view = nullptr; in DeleteView()
99 UIView* view = GetView(nullptr, index); in GetItemWidthWithMargin() local
100 if (view == nullptr) { in GetItemWidthWithMargin()
103 int16_t width = view->GetWidthWithMargin(); in GetItemWidthWithMargin()
104 DeleteView(view); in GetItemWidthWithMargin()
110 UIView* view = GetView(nullptr, index); in GetItemHeightWithMargin() local
111 if (view == nullptr) { in GetItemHeightWithMargin()
114 int16_t height = view->GetHeightWithMargin(); in GetItemHeightWithMargin()
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_label/
H A Dui_test_label.cpp218 if (&view == labelFontSizeBtn1_) { in OnClick()
230 } else if (&view == labelColorBtn1_) { in OnClick()
233 } else if (&view == labelColorBtn2_) { in OnClick()
236 } else if (&view == labelColorBtn3_) { in OnClick()
238 } else if (&view == labelBeyondBtn1_) { in OnClick()
243 } else if (&view == labelBeyondBtn2_) { in OnClick()
251 ExpandClick(view, event); in OnClick()
258 if (&view == labelLineBtn1_) { in ExpandClick()
262 } else if (&view == labelLineBtn2_) { in ExpandClick()
276 } else if (&view == labelSizeBtn1_) { in ExpandClick()
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_chart/
H A Dui_test_chart_polyline.cpp65 if (view == nullptr) { in InnerDeleteChildren()
68 while (view != nullptr) { in InnerDeleteChildren()
69 UIView* tempView = view; in InnerDeleteChildren()
70 view = view->GetNextSibling(); in InnerDeleteChildren()
220 if (view == nullptr) { in Callback()
231 view->Invalidate(); in Callback()
329 if (&view == addDataSerialBtn_) { in OnClick()
378 } else if (&view == smoothBtn_) { in ClickExpand()
410 if (view == nullptr) { in SetLastPos()
413 lastX_ = view->GetX(); in SetLastPos()
[all …]
H A Dui_test_chart_pillar.cpp54 if (view == nullptr) { in InnerDeleteChildren()
57 while (view != nullptr) { in InnerDeleteChildren()
58 UIView* tempView = view; in InnerDeleteChildren()
59 view = view->GetNextSibling(); in InnerDeleteChildren()
160 if (&view == addDataSerialBtn_) { in OnClick()
178 } else if (&view == reverseBtn_) { in OnClick()
181 } else if (&view == setAxisColorBtn_) { in OnClick()
187 } else if (&view == setAxisVisibleBtn_) { in OnClick()
220 if (view == nullptr) { in SetLastPos()
223 lastX_ = view->GetX(); in SetLastPos()
[all …]
/ohos5.0/base/update/updater/test/unittest/updater_ui_test/
H A DBUILD.gn38 "view/ui_component_unittest.cpp",
39 "view/ui_graphic_engine_unittest.cpp",
40 "view/ui_layout_unittest.cpp",
41 "view/ui_page_manager_unittest.cpp",
42 "view/ui_view_api_unittest.cpp",
43 "view/ui_view_proxy_unittest.cpp",
61 "${updater_path}/services/ui/view/page/base_page.cpp",
62 "${updater_path}/services/ui/view/page/page.cpp",
64 "${updater_path}/services/ui/view/page/sub_page.cpp",
65 "${updater_path}/services/ui/view/view_api.cpp",
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_texture_mapper/
H A Dui_test_texture_mapper.cpp205 if (&view == resetBtn_) { in OnClick()
228 } else if (&view == delayTimeBtn_) { in OnClick()
231 } else if (&view == easingBtn_) { in OnClick()
234 } else if (&view == startAngleBtn_) { in OnClick()
238 ExpandClick(view, event); in OnClick()
245 if (&view == incScaleEndBtn_) { in ExpandClick()
254 } else if (&view == incPivotBtn_) { in ExpandClick()
258 } else if (&view == decPivotBtn_) { in ExpandClick()
262 } else if (&view == startBtn_) { in ExpandClick()
266 } else if (&view == cancelBtn_) { in ExpandClick()
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dswiper_tdd_test.cpp104 UIView* view = component->GetComponentRootView(); in ComponentSwiperAttributeSetTest001() local
120 view = component->GetComponentRootView(); in ComponentSwiperAttributeSetTest001()
138 view = component->GetComponentRootView(); in ComponentSwiperAttributeSetTest001()
163 UIView* view = component->GetComponentRootView(); in ComponentSwiperAttributeSetTest002() local
185 view = component->GetComponentRootView(); in ComponentSwiperAttributeSetTest002()
215 UIView* view = component->GetComponentRootView(); in ComponentSwiperAttributeSetTest003() local
250 UIView* view = component->GetComponentRootView(); in ComponentSwiperAttributeSetTest004() local
272 view = component->GetComponentRootView(); in ComponentSwiperAttributeSetTest004()
326 view = component->GetComponentRootView(); in ComponentSwiperAttributeSetTest005()
375 view = component->GetComponentRootView(); in ComponentSwiperAttributeSetTest013()
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_slider/
H A Dui_test_slider.cpp427 if (&view == resetBtn_) { in OnClick()
455 } else if (&view == stepBtn_) { in OnClick()
459 ExpandClick1(view, event); in OnClick()
467 if (&view == widthBtn_) { in ExpandClick1()
470 } else if (&view == heightBtn_) { in ExpandClick1()
485 } else if (&view == dirL2RBtn_) { in ExpandClick1()
493 } else if (&view == dirR2LBtn_) { in ExpandClick1()
501 } else if (&view == dirT2BBtn_) { in ExpandClick1()
518 ExpandClick2(view, event); in ExpandClick1()
525 if (&view == imageBtn_) { in ExpandClick2()
[all …]
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_view_ohos.cpp68 CHECK_NULL_VOID(view); in SurfaceCreated()
73 CHECK_NULL_VOID(view); in ChangeViewSize()
74 view->ChangeSize(width, height); in ChangeViewSize()
80 CHECK_NULL_VOID(view); in SurfaceChanged()
84 auto instanceId = view->GetInstanceId(); in SurfaceChanged()
95 CHECK_NULL_VOID(view); in SurfacePositionChanged()
101 CHECK_NULL_VOID(view); in SetViewportMetrics()
107 CHECK_NULL_VOID(view); in TransformHintChanged()
119 if (!view) { in DispatchTouchEvent()
236 CHECK_NULL_RETURN(view, false); in DispatchKeyEvent()
[all …]

12345678910>>...26