Home
last modified time | relevance | path

Searched refs:top_ (Results 1 – 16 of 16) sorted by relevance

/test/testfwk/arkxtest/uitest/core/
Dui_model.h107 : left_(left), right_(right), top_(top), bottom_(bottom) in Rect()
109 DCHECK(right_ >= left_ && bottom_ >= top_); in Rect()
115 top_ = 0; in Rect()
120 int32_t top_; member
130 return (top_ + bottom_) / TWO; in GetCenterY()
140 return bottom_ - top_; in GetHeight()
146 …ss << "Rect {left:" << left_ << ",right:" << right_ << ",top:" << top_ << ",bottom:" << bottom_ <<… in Describe()
184 …return ra.left_ == rb.left_ && ra.right_ == rb.right_ && ra.top_ == rb.top_ && ra.bottom_ == rb.bo… in CheckEqual()
192 if (ra.top_ >= rb.bottom_ || ra.bottom_ <= rb.top_) { in CheckIntersectant()
201 || point.py_ <= rect.top_ || point.py_ >= rect.bottom_) { in IsInnerPoint()
[all …]
Drect_algorithm.cpp27 if (ra.top_ >= rb.bottom_ || ra.bottom_ <= rb.top_) { in ComputeIntersection()
31 array<int32_t, INDEX_FOUR> py = {ra.top_, ra.bottom_, rb.top_, rb.bottom_}; in ComputeIntersection()
78 if (overlay.top_ >= rect.top_ && overlay.top_ <= rect.bottom_) { in CollectGridLineCoords()
80 if (overlay.top_ == g_YCoords[idx]) { in CollectGridLineCoords()
86 g_YCoords[g_YCount++] = overlay.top_; in CollectGridLineCoords()
91 if (overlay.bottom_ >= rect.top_ && overlay.bottom_ <= rect.bottom_) { in CollectGridLineCoords()
Dwindow_operator.cpp104 Point from(rect.GetCenterX(), rect.top_ + step1); in CallBar()
105 Point to(rect.GetCenterX(), rect.top_ + step2); in CallBar()
118 Point focus(rect.GetCenterX(), rect.top_ + step); in Focus()
133 Point from(rect.left_ + step, rect.top_ + step); in MoveTo()
158 from = Point(window_.bounds_.GetCenterX(), window_.bounds_.top_); in Resize()
163 to = Point(window_.bounds_.GetCenterX(), window_.bounds_.top_ + highth); in Resize()
166 from = Point(window_.bounds_.left_, window_.bounds_.top_); in Resize()
171 to = Point(window_.bounds_.right_ - width, window_.bounds_.top_ + highth); in Resize()
174 from = Point(window_.bounds_.right_, window_.bounds_.top_); in Resize()
179 to = Point(window_.bounds_.left_ + width, window_.bounds_.top_ + highth); in Resize()
Dui_model.cpp52 … boundStream << "[" << bounds_.left_ << "," << bounds_.top_ << "][" << bounds_.right_ << "," in GetAttrVec()
75 … boundStream << "[" << bounds_.left_ << "," << bounds_.top_ << "][" << bounds_.right_ << "," in GetAttr()
117 … boundStream << "[" << bounds_.left_ << "," << bounds_.top_ << "][" << bounds_.right_ << "," in WrapperWidgetToJson()
Dui_driver.cpp129 mergeBounds.top_ = std::min(mergeBounds.top_, winCache.window_.bounds_.top_); in DumpWindowsInfo()
153 ss << "[" << mergeBounds.left_ << "," << mergeBounds.top_ << "]" in DumpUiHierarchy()
549 mergeRect.top_ = std::min(winCache.window_.bounds_.top_, mergeRect.top_); in GetMergeWindowBounds()
Dwidget_operator.cpp35 … return std::abs(allWidgets.at(index)->GetBounds().top_ - anchorLeafWidget->GetBounds().top_) < in IsScrolledToBorder()
260 Point topPoint(bounds.GetCenterX(), bounds.top_); in TurnPage()
Dselect_strategy.cpp140 (oriBounds.left_ >= 0 && oriBounds.top_ >= 0)) { in RefreshWidgetBounds()
Dfrontend_api_handler.cpp1156 data["top"] = bounds.top_; in GenericComponentAttrGetter()
1262 data["top"] = snapshot->bounds_.top_; in RegisterUiWindowAttrGetters()
/test/testfwk/arkxtest/uitest/test/
Dui_model_test.cpp29 ASSERT_EQ(300, rect.top_); in TEST()
66 ASSERT_EQ(3, bounds.top_); in TEST()
Drect_algorithm_test.cpp48 ASSERT_EQ(300, intersection.top_); in TEST()
55 ASSERT_EQ(350, intersection.top_); in TEST()
62 ASSERT_EQ(320, intersection.top_); in TEST()
Dmock_element_node_iterator.h107 eleRoot.rectInScreen.top_ = std::stoi(rectStrVec[2]); in WrapperJsonToElement()
253 …boundStream << "[" << nodeOriginRect.left_ << "," << nodeOriginRect.top_ << "][" << nodeOriginRect… in WrapperNodeAttrToVec()
Dselect_strategy_test.cpp53 ASSERT_EQ(rect.top_, 30); in TEST()
78 ASSERT_EQ(rect.top_, 0); in TEST()
103 ASSERT_EQ(rect.top_, 40); in TEST()
/test/testfwk/arkxtest/uitest/record/
Dfind_widget.cpp32 if (!(x <= rect.right_ && x >= rect.left_ && y <= rect.bottom_ && y >= rect.top_)) { in FindWidget()
Dui_record.cpp363 << windowBounds.top_ << "," << windowBounds.right_ << "," in RecordInitEnv()
371 outFile << windowBounds.top_ << ','; in RecordInitEnv()
/test/testfwk/arkxtest/uitest/server/
Dsystem_ui_controller.cpp248 (topY < windowBounds.top_) ? windowBounds.top_ : topY, in GetVisibleRect()
567 Media::Rect region = {.left = rect.left_, .top = rect.top_, in TakeScreenCap()
568 .width = rect.right_ - rect.left_, .height = rect.bottom_ - rect.top_}; in TakeScreenCap()
569 … Media::Size size = {.width = rect.right_ - rect.left_, .height = rect.bottom_ - rect.top_}; in TakeScreenCap()
Delement_node_iterator_impl.cpp266 …boundStream << "[" << visibleRect.left_ << "," << visibleRect.top_ << "][" << visibleRect.right_ <… in WrapperNodeAttrToVec()