/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_universal_painter.cpp | 59 auto corner = paintRRect.GetCorner(); in DrawRRectBackground() local 70 … std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground() 72 … std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground() 76 … std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomLeftRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground() 86 auto corner = paintRRect.GetCorner(); in DrawRRectBackground() local 92 … std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground() 94 … std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetY(), dipScale), 0.0)))); in DrawRRectBackground() 97 … std::max(RosenUniversalPainter::NormalizeToPx(corner.topRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground() 99 … std::max(RosenUniversalPainter::NormalizeToPx(corner.topRightRadius.GetY(), dipScale), 0.0)))); in DrawRRectBackground() 102 … std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/ |
H A D | drawing__rect_8h.md | 24 …that the coordinates of the upper left corner of the rectangle can be greater than those of the lo… 25 …sing the Y coordinate of the lower right corner of the rectangle minus the Y coordinate of the upp… 26 …sing the X coordinate of the lower right corner of the rectangle minus the X coordinate of the upp… 27 …wing.md#oh_drawing_rect) \*) | Obtains the X coordinate of the upper left corner of a rectangle. | 28 …wing.md#oh_drawing_rect) \*) | Obtains the Y coordinate of the upper left corner of a rectangle. | 29 …ing.md#oh_drawing_rect) \*) | Obtains the X coordinate of the lower right corner of a rectangle. | 30 …ing.md#oh_drawing_rect) \*) | Obtains the Y coordinate of the lower right corner of a rectangle. | 33 …awing_rect) \*rect, float left) | Sets the X coordinate of the upper left corner of a rectangle. | 34 …rawing_rect) \*rect, float top) | Sets the Y coordinate of the upper left corner of a rectangle. | 35 …ing_rect) \*rect, float right) | Sets the X coordinate of the lower right corner of a rectangle. | [all …]
|
H A D | js-apis-graphics-common2D.md | 30 … which can be defined by two coordinate points: upper left corner point and lower right corner poi… 36 | left | number | Yes | Yes | X coordinate of the upper left corner of the rectangle. The value… 37 | top | number | Yes | Yes | Y coordinate of the upper left corner of the rectangle. The value… 38 | right | number | Yes | Yes | X coordinate of the lower right corner of the rectangle. The valu… 39 | bottom | number | Yes | Yes | Y coordinate of the lower right corner of the rectangle. The valu…
|
H A D | drawing__round__rect_8h.md | 24 …g_CornerPos](_drawing.md#oh_drawing_cornerpos) | Defines an enum for the corner positions of a rou… 31 …IGHT, CORNER_POS_BOTTOM_RIGHT, CORNER_POS_BOTTOM_LEFT } | Enumerates the corner positions of a rou… 39 …g.md#oh_drawing_corner_radii)) | Sets the radii of the specified rounded corner in a rounded recta… 40 …#oh_drawing_cornerpos) pos) | Obtains the radii of the specified rounded corner in a rounded recta…
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.2.1/ |
H A D | changelogs-testfwk_arkxtest.md | 19 | leftX | 1 | X-coordinate of the upper left corner of the component bounds.| 20 | topY | 2 | Y-coordinate of the upper left corner of the component bounds.| 21 | rightX | 3 | X-coordinate of the lower right corner of the component bounds.| 22 | bottomY | 4 | Y-coordinate of the lower right corner of the component bounds.| 28 | left | 1 | X-coordinate of the upper left corner of the component bounds.| 29 | top | 2 | Y-coordinate of the upper left corner of the component bounds.| 30 | right | 3 | X-coordinate of the lower right corner of the component bounds.| 31 | bottom | 4 | Y-coordinate of the lower right corner of the component bounds.|
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/multimodal/ |
H A D | rosen_render_multimodal.cpp | 68 auto corner = NormalizeToPx(Dimension(CORNER_RADIUS, DimensionUnit::VP)); in Paint() local 92 SkVector radii[] = { { corner, corner }, { 0, 0 }, { corner, corner }, { 0, 0 } }; in Paint() 97 std::vector<RSPoint> radii = { { corner, corner }, { 0, 0 }, { corner, corner }, { 0, 0 } }; in Paint()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | render_picker_value.cpp | 124 Corner corner; in HandleAnimation() local 125 corner.topLeftRadius = border.TopLeftRadius(); in HandleAnimation() 126 corner.topRightRadius = border.TopRightRadius(); in HandleAnimation() 127 corner.bottomRightRadius = border.BottomRightRadius(); in HandleAnimation() 128 corner.bottomLeftRadius = border.BottomLeftRadius(); in HandleAnimation() 129 rrect.SetCorner(corner); in HandleAnimation()
|
/ohos5.0/docs/en/application-dev/reference/apis-camera-kit/ |
H A D | _camera___rect.md | 20 | int32_t [topLeftX](#topleftx) | X coordinate at the upper left corner. | 21 | int32_t [topLeftY](#toplefty) | Y coordinate at the upper left corner. | 46 X coordinate at the upper left corner. 56 Y coordinate at the upper left corner.
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/ |
H A D | _o_h___native_x_component___mouse_event.md | 24 ….md#x-33) | X coordinate of the clicked point relative to the upper left corner of the component. … 25 ….md#y-33) | Y coordinate of the clicked point relative to the upper left corner of the component. … 26 …screenx-33) | X coordinate of the clicked point relative to the upper left corner of the screen. | 27 …screeny-33) | Y coordinate of the clicked point relative to the upper left corner of the screen. |
|
H A D | _ark_u_i___event_module.md | 395 Returns the X-coordinate relative to the upper left corner of the current screen; returns **0.0f** … 418 Returns the X-coordinate relative to the upper left corner of the current screen; returns **0.0f** … 439 Returns the Y-coordinate relative to the upper left corner of the current screen; returns **0.0f** … 462 Returns the Y-coordinate relative to the upper left corner of the current screen; returns **0.0f** … 486 Returns the X-coordinate relative to the upper left corner of the current screen; returns **0.0f** … 510 Returns the Y-coordinate relative to the upper left corner of the current screen; returns **0.0f** … 794 Returns the X-coordinate relative to the upper left corner of the current component; returns **0.0f… 818 Returns the Y-coordinate relative to the upper left corner of the current component; returns **0.0f… 1090 Returns the X-coordinate relative to the upper left corner of the current component; returns **0.0f… 1113 Returns the X-coordinate relative to the upper left corner of the current component; returns **0.0f… [all …]
|
H A D | ui__input__event_8h.md | 52 …putevent) \*event) | Obtains the X-coordinate relative to the upper left corner of the current com… 53 …ns the X-coordinate of a specific touch point relative to the upper left corner of the current com… 54 …putevent) \*event) | Obtains the Y-coordinate relative to the upper left corner of the current com… 55 …ns the Y-coordinate of a specific touch point relative to the upper left corner of the current com… 56 …putevent) \*event) | Obtains the X-coordinate relative to the upper left corner of the current app… 57 …ns the X-coordinate of a specific touch point relative to the upper left corner of the current app… 58 …putevent) \*event) | Obtains the Y-coordinate relative to the upper left corner of the current app… 60 …putevent) \*event) | Obtains the X-coordinate relative to the upper left corner of the current scr… 61 …ns the X-coordinate of a specific touch point relative to the upper left corner of the current scr… 62 …putevent) \*event) | Obtains the Y-coordinate relative to the upper left corner of the current scr… [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-component-id.md | 246 …+ (rect.right - rect.left) / 2, // X coordinate relative to the upper left corner of the component. 247 …+ (rect.bottom - rect.top) / 2, // Y coordinate relative to the upper left corner of the component. 250 …(rect.right - rect.left) / 2, // X coordinate relative to the upper left corner of the application… 251 …(rect.right - rect.left) / 2, // Y coordinate relative to the upper left corner of the application… 252 …(rect.right - rect.left) / 2, // X coordinate relative to the upper left corner of the device scre… 253 …(rect.right - rect.left) / 2, // Y coordinate relative to the upper left corner of the device scre… 272 …+ (rect.right - rect.left) / 2, // X coordinate relative to the upper left corner of the component. 273 …+ (rect.bottom - rect.top) / 2, // Y coordinate relative to the upper left corner of the component. 276 …(rect.right - rect.left) / 2, // X coordinate relative to the upper left corner of the application… 278 …(rect.right - rect.left) / 2, // X coordinate relative to the upper left corner of the device scre… [all …]
|
H A D | ts-drawing-components-rect.md | 29 …corner. You can set separate radiuses for the four rounded corners.<br>This attribute works in a s… 39 Sets the width of the rounded corner. If not set, the height of the rounded corner is the same as i… 51 | value | number \| string | Yes | Width of the rounded corner.<br>Default value: **0**| 57 Height of the rounded corner. If not set, the width of the rounded corner is the same as its height… 69 | value | number \| string | Yes | Height of the rounded corner.<br>Default value: **0**| 75 Sets the radius of the rounded corner. An invalid value is handled as the default value. 87 | value | number \| string \| Array<string \| number> | Yes | Radius of the rounded corner.… 219 … The miter length indicates the distance from the outer tip to the inner corner of the miter. This… 326 …left rounded corner, 20 for the upper right rounded corner, 40 for the lower right rounded corner,… 359 // Set the radius of the rounded corner to 40.
|
H A D | ts-universal-accessibility-hover-event.md | 53 … | X coordinate of the finger's position relative to the upper left corner of the component b… 54 … | Y coordinate of the finger's position relative to the upper left corner of the component b… 55 … | X coordinate of the finger's position relative to the upper left corner of the application… 56 … | Y coordinate of the finger's position relative to the upper left corner of the application… 57 … | X coordinate of the finger's position relative to the upper left corner of the display.<br… 58 … | Y coordinate of the finger's position relative to the upper left corner of the display.<br…
|
H A D | ts-universal-mouse-key.md | 35 … | X coordinate of the mouse pointer relative to the upper left corner of the component b… 36 … | Y coordinate of the mouse pointer relative to the upper left corner of the component b… 41 … | X coordinate of the mouse pointer relative to the upper left corner of the application… 42 … | Y coordinate of the mouse pointer relative to the upper left corner of the application… 43 … | X coordinate of the mouse pointer relative to the upper left corner of the application… 44 … | Y coordinate of the mouse pointer relative to the upper left corner of the application… 45 … | X coordinate of the mouse pointer relative to the upper left corner of the application… 46 … | Y coordinate of the mouse pointer relative to the upper left corner of the application…
|
H A D | ts-universal-attributes-border-image.md | 34 …corner, upper right corner, lower left corner, and lower right corner of the border image.<br>Defa…
|
H A D | ts-universal-attributes-border.md | 187 | topLeft | [Length](ts-types.md#length) | No | Radius of the upper-left rounded corner.| 188 | topRight | [Length](ts-types.md#length) | No | Radius of the upper-right rounded corner.| 189 | bottomLeft | [Length](ts-types.md#length) | No | Radius of the lower-left rounded corner.| 190 | bottomRight | [Length](ts-types.md#length) | No | Radius of the lower-right rounded corner.| 204 …2+</sup> | No | Radius of the upper-left rounded corner.<br>Radius of the upper-right rounded co… 205 …+</sup> | No | Radius of the upper-right rounded corner.<br>Radius of the upper-left rounded cor… 206 …2+</sup> | No | Radius of the lower-left rounded corner.<br>Radius of the lower-right rounded co… 207 …+</sup> | No | Radius of the lower-right rounded corner.<br>Radius of the lower-left rounded cor…
|
H A D | ts-universal-events-touch.md | 70 … | X coordinate of the touch point relative to the upper left corner of the event respo… 71 … | Y coordinate of the touch point relative to the upper left corner of the event respo… 72 … | X coordinate of the touch point relative to the upper left corner of the application… 73 … | Y coordinate of the touch point relative to the upper left corner of the application… 74 … | X coordinate of the touch point relative to the upper left corner of the application… 75 … | Y coordinate of the touch point relative to the upper left corner of the application… 76 … | X coordinate of the touch point relative to the upper left corner of the application… 77 … | Y coordinate of the touch point relative to the upper left corner of the application…
|
H A D | ts-universal-attributes-pixelRound.md | 21 - Calculate the upper left corner coordinates of the current component: offset of the upper left co… 22 - Calculate the lower right corner coordinates of the current component: offset of the upper left c… 23 …late the size of the current component: lower right corner rounded value minus the upper left corn…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/select/ |
H A D | select_element.cpp | 343 Corner corner; in GetCorner() local 346 return corner; in GetCorner() 350 corner.topLeftRadius = border.TopLeftRadius(); in GetCorner() 351 corner.topRightRadius = border.TopRightRadius(); in GetCorner() 352 corner.bottomLeftRadius = border.BottomLeftRadius(); in GetCorner() 353 corner.bottomRightRadius = border.BottomRightRadius(); in GetCorner() 354 return corner; in GetCorner() 375 auto corner = GetCorner(); in OnFocus() local 376 rrect.SetCorner(corner); in OnFocus()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js-lite/ |
H A D | js-lite-components-canvas-canvasrenderingcontext2d.md | 40 | x | number | X-coordinate of the upper left corner of the rectangle.| 41 | y | number | Y-coordinate of the upper left corner of the rectangle.| 84 | x | number | X-coordinate of the upper left corner of the rectangle.| 85 | y | number | Y-coordinate of the upper left corner of the rectangle.| 108 | x | number | X-coordinate of the lower left corner of the text.| 109 | y | number | Y-coordinate of the lower left corner of the text.| 353 | x | number | X-coordinate of the upper left corner of the rectangle.| 354 | y | number | Y-coordinate of the upper left corner of the rectangle.|
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/ |
H A D | image_paint_method.cpp | 38 for (auto&& corner : radius) { in NormalizeRadius() 39 if (corner.GetX() > maxRadius) { in NormalizeRadius() 40 corner.SetX(maxRadius); in NormalizeRadius() 42 if (corner.GetY() > maxRadius) { in NormalizeRadius() 43 corner.SetY(maxRadius); in NormalizeRadius()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-svg-rect.md | 29 | x | <length>\|<percentage> | 0 | No| X-coordinate of the upper left corner of the rec… 30 | y | <length>\|<percentage> | 0 | No| Y-coordinate of the upper left corner of the rec… 31 | rx | <length>\|<percentage> | 0 | No| Radius of the rectangle rounded corner in the x… 32 | ry | <length>\|<percentage> | 0 | No| Radius of the rectangle rounded corner in the y…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-common-gradient.md | 40 …corner> <side-or-corner> = [left \| right] \|\| [top \| bottom] | to bottom (gradient fr…
|
/ohos5.0/docs/en/design/ux-design/ |
H A D | visual-icons.md | 70 3. Outer rounded corner: 4 vp; inner rounded corner: 2.5 vp 78 …ight. <br>4. The oblique line is 45 degrees from the upper left corner to the lower right corner. | 88 Add the inner rounded corner of 3.5 vp to the corner of the icon gap.
|