Searched refs:bounds (Results 1 - 6 of 6) sorted by relevance
/test/testfwk/arkxtest/uitest/test/ |
H A D | ui_model_test.cpp | 63 auto bounds = newWidget.GetBounds(); in TEST() local 64 ASSERT_EQ(1, bounds.left_); in TEST() 65 ASSERT_EQ(2, bounds.right_); in TEST() 66 ASSERT_EQ(3, bounds.top_); in TEST() 67 ASSERT_EQ(4, bounds.bottom_); in TEST()
|
/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeFontTest.cpp | 1825 OH_Drawing_Rect *bounds = OH_Drawing_RectCreate(0, 0, 100, 100); in HWTEST_F() local 1837 OH_Drawing_FontMeasureText(font, text, byteLength, encodes[i], bounds, &textWidth); in HWTEST_F() 1840 OH_Drawing_FontMeasureText(font, text, byteLength, TEXT_ENCODING_UTF8, bounds, &textWidth); in HWTEST_F() 1844 OH_Drawing_RectDestroy(bounds); in HWTEST_F() 1860 OH_Drawing_Rect *bounds = OH_Drawing_RectCreate(0, 0, 100, 100); in HWTEST_F() local 1866 OH_Drawing_FontMeasureText(nullptr, text, byteLength, TEXT_ENCODING_UTF8, bounds, &textWidth); in HWTEST_F() 1870 OH_Drawing_FontMeasureText(font, nullptr, byteLength, TEXT_ENCODING_UTF8, bounds, &textWidth); in HWTEST_F() 1874 OH_Drawing_FontMeasureText(font, text, 0, TEXT_ENCODING_UTF8, bounds, &textWidth); in HWTEST_F() 1878 OH_Drawing_FontMeasureText(font, text, byteLength, TEXT_ENCODING_UTF8, bounds, nullptr); in HWTEST_F() 1883 OH_Drawing_RectDestroy(bounds); in HWTEST_F() 1903 OH_Drawing_Rect *bounds = OH_Drawing_RectCreate(0, 0, 100, 100); HWTEST_F() local [all...] |
/test/testfwk/arkxtest/uitest/core/ |
H A D | widget_operator.cpp | 253 auto bounds = widget_.GetBounds(); in TurnPage() local 254 Point topPoint(bounds.GetCenterX(), bounds.top_); in TurnPage() 255 Point bottomPoint(bounds.GetCenterX(), bounds.bottom_); in TurnPage() 262 if (screenSize.py_ - bounds.bottom_ <= gestureZone) { in TurnPage()
|
H A D | frontend_api_handler.cpp | 1159 const auto bounds = snapshot->GetBounds(); in GenericComponentAttrGetter() local 1161 data["x"] = bounds.GetCenterX(); in GenericComponentAttrGetter() 1162 data["y"] = bounds.GetCenterY(); in GenericComponentAttrGetter() 1167 const auto bounds = snapshot->GetBounds(); in GenericComponentAttrGetter() local 1169 data["left"] = bounds.left_; in GenericComponentAttrGetter() 1170 data["top"] = bounds.top_; in GenericComponentAttrGetter() 1171 data["right"] = bounds.right_; in GenericComponentAttrGetter() 1172 data["bottom"] = bounds.bottom_; in GenericComponentAttrGetter() 1201 const auto bounds = snapshot->GetBounds(); in RegisterExtensionHandler() 1203 rect["left"] = bounds in RegisterExtensionHandler() [all...] |
H A D | ui_model.cpp | 23 void Widget::SetBounds(const Rect &bounds) in SetBounds() argument 25 bounds_ = bounds; in SetBounds()
|
H A D | ui_model.h | 79 "bounds", // BOUNDS 256 void SetBounds(const Rect &bounds);
|
Completed in 9 milliseconds