/foundation/arkui/ace_engine/frameworks/core/components/qrcode/ |
H A D | rosen_render_qrcode.cpp | 43 RenderContext& context, const Offset& topLeft, int32_t size, const qrcodegen::QrCode& qrCode) in DrawQRCode() 55 SkRect clipRect = { topLeft.GetX(), topLeft.GetY(), topLeft.GetX() + size, topLeft.GetY() + size }; in DrawQRCode() 61 canvas->drawImage(skBitmap.asImage(), topLeft.GetX(), topLeft.GetY(), SkSamplingOptions()); in DrawQRCode() 68 topLeft.GetX() + (size - smallSquareWidth) / 2.0, in DrawQRCode() 69 topLeft.GetY() + (size - smallSquareWidth) / 2.0, SkSamplingOptions()); in DrawQRCode() 73 RSRect clipRect = { topLeft in DrawQRCode() 42 DrawQRCode( RenderContext& context, const Offset& topLeft, int32_t size, const qrcodegen::QrCode& qrCode) DrawQRCode() argument [all...] |
H A D | rosen_render_qrcode.h | 50 void DrawQRCode(RenderContext& context, const Offset& topLeft, int32_t size, const qrcodegen::QrCode& qrCode);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_container_span.cpp | 54 CalcDimension topLeft; in ParseTextBackgroundStyle() local 58 ParseAllBorderRadiuses(object, topLeft, topRight, bottomLeft, bottomRight); in ParseTextBackgroundStyle() 59 textBackgroundStyle.backgroundRadius = { topLeft, topRight, bottomRight, bottomLeft }; in ParseTextBackgroundStyle()
|
H A D | js_menu.cpp | 152 CalcDimension topLeft; in HandleDifferentRadius() local 153 if (ParseJsDimensionVp(object->GetProperty("topLeft"), topLeft)) { in HandleDifferentRadius() 154 radiusTopLeft = topLeft; in HandleDifferentRadius()
|
H A D | js_utils.cpp | 208 CalcDimension topLeft; in HandleDifferentRadius() local 209 if (JSViewAbstract::ParseJsDimensionVp(object->GetProperty("topLeft"), topLeft)) { in HandleDifferentRadius() 210 radiusTopLeft = topLeft; in HandleDifferentRadius()
|
H A D | js_search.h | 49 static bool ParseAllBorderRadiuses(JSRef<JSObject>& object, CalcDimension& topLeft,
|
H A D | js_image.cpp | 400 CalcDimension topLeft; in ParseBorderRadius() local 404 if (ParseAllBorderRadiuses(object, topLeft, topRight, bottomLeft, bottomRight)) { in ParseBorderRadius() 406 GetLocalizedBorderRadius(topLeft, topRight, bottomLeft, bottomRight)); in ParseBorderRadius() 408 GetLocalizedBorderRadius(topLeft, topRight, bottomLeft, bottomRight)); in ParseBorderRadius() 411 ImageModel::GetInstance()->SetBorderRadius(topLeft, topRight, bottomLeft, bottomRight); in ParseBorderRadius() 412 ViewAbstractModel::GetInstance()->SetBorderRadius(topLeft, topRight, bottomLeft, bottomRight); in ParseBorderRadius()
|
H A D | js_search.cpp | 817 bool JSSearch::ParseAllBorderRadiuses(JSRef<JSObject>& object, CalcDimension& topLeft, in ParseAllBorderRadiuses() argument 830 topLeft = topStart.has_value() ? topStart.value() : topLeft; in ParseAllBorderRadiuses() 836 JSViewAbstract::ParseJsDimensionVp(object->GetProperty("topLeft"), topLeft); in ParseAllBorderRadiuses() 858 CalcDimension topLeft = defaultBorderRadius.radiusTopLeft.value(); in ParseBorderRadius() local 862 if (ParseAllBorderRadiuses(object, topLeft, topRight, bottomLeft, bottomRight)) { in ParseBorderRadius() 864 JSViewAbstract::GetLocalizedBorderRadius(topLeft, topRight, bottomLeft, bottomRight)); in ParseBorderRadius() 867 ViewAbstractModel::GetInstance()->SetBorderRadius(topLeft, topRight, bottomLeft, bottomRight); in ParseBorderRadius()
|
H A D | js_textfield.h | 72 static bool ParseAllBorderRadiuses(JSRef<JSObject>& object, CalcDimension& topLeft,
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_menu_bridge.cpp | 208 CalcDimension topLeft; in ParseRadius() local 213 if (!ArkTSUtils::ParseJsDimensionVpNG(vm, topLeftArgs, topLeft, true)) { in ParseRadius() 217 if (LessNotEqual(topLeft.Value(), 0.0)) { in ParseRadius() 221 topRight = topLeft; in ParseRadius() 222 bottomLeft = topLeft; in ParseRadius() 223 bottomRight = topLeft; in ParseRadius() 225 if (!ArkTSUtils::ParseJsDimensionVpNG(vm, topLeftArgs, topLeft, true)) { in ParseRadius() 226 topLeft = CalcDimension(0.0, DimensionUnit::VP); in ParseRadius() 241 radiusUnits.push_back(static_cast<int32_t>(topLeft.Unit())); in ParseRadius() 245 radiusValues.push_back(topLeft in ParseRadius() [all...] |
H A D | arkts_native_image_span_bridge.cpp | 383 CalcDimension topLeft; in SetBorderRadius() local 388 ArkTSUtils::ParseAllBorder(vm, topLeftArgs, topLeft); in SetBorderRadius() 397 values[NUM_0] = topLeft.Value(); in SetBorderRadius() 398 units[NUM_0] = static_cast<int>(topLeft.Unit()); in SetBorderRadius()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | rosen_render_text_overlay.cpp | 416 Offset topLeft = (DOT1_POSITION + dot1StartOffset_) * dipScale; in PaintMore() local 429 path.moveTo(SkDoubleToScalar(topLeft.GetX()), SkDoubleToScalar(topLeft.GetY())); in PaintMore() 430 path.lineTo(SkDoubleToScalar(topLeft.GetX()), SkDoubleToScalar(topLeft.GetY())); in PaintMore() 451 Offset topLeft = (DOT1_POSITION + dot1StartOffset_) * dipScale; in PaintMore() local 463 path.MoveTo(static_cast<float>(topLeft.GetX()), static_cast<float>(topLeft.GetY())); in PaintMore() 464 path.LineTo(static_cast<float>(topLeft.GetX()), static_cast<float>(topLeft in PaintMore() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_attraction_effect_filter.cpp | 119 Drawing::Point topLeft = controlPointOfVertex[0]; in CalculateCubicsCtrlPointOffset() local 125 pathList.push_back(topLeft); // 0:top left in CalculateCubicsCtrlPointOffset() 126 pathList.push_back(LerpPoint(topLeft, topRight, 0.67f, 0.33f)); // 1:top one third in CalculateCubicsCtrlPointOffset() 127 pathList.push_back(LerpPoint(topLeft, topRight, 0.33f, 0.67f)); // 2:top two thirds in CalculateCubicsCtrlPointOffset() 135 pathList.push_back(LerpPoint(topLeft, bottomLeft, 0.33f, 0.67f)); // 10:left two thirds in CalculateCubicsCtrlPointOffset() 136 pathList.push_back(LerpPoint(topLeft, bottomLeft, 0.67f, 0.33f)); // 11:left one third in CalculateCubicsCtrlPointOffset() 296 Drawing::Point topLeft = isBelowTarget_ ? in CalculateUpperCtrlPointOfVertex() local 304 std::vector<Drawing::Point> upperControlPoint = { topLeft, topRight, bottomLeft, bottomRight }; in CalculateUpperCtrlPointOfVertex() 314 Drawing::Point topLeft = isBelowTarget_ ? in CalculateLowerCtrlPointOfVertex() local 326 std::vector<Drawing::Point> lowerControlPoint = { topLeft, topRigh in CalculateLowerCtrlPointOfVertex() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_image_span_ffi.cpp | 61 CalcDimension topLeft = CalcDimension(topLeftValue); in ParseTextBackgroundStyle() local 72 textBackgroundStyle.backgroundRadius = { topLeft, topRight, bottomRight, bottomLeft }; in ParseTextBackgroundStyle()
|
H A D | cj_button_ffi.cpp | 86 CalcDimension topLeft(value.topLeft, static_cast<DimensionUnit>(value.topLeftUnit)); in FfiOHOSAceFrameworkButtonSetAllBorderRadius() 90 ButtonModel::GetInstance()->SetBorderRadius(topLeft, topRight, bottomLeft, bottomRight); in FfiOHOSAceFrameworkButtonSetAllBorderRadius()
|
/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/ |
H A D | svg_dom.h | 35 Radius topLeft; member 42 return topLeft.IsValid() || topRight.IsValid() || bottomLeft.IsValid() || bottomRight.IsValid(); in IsValid()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | menu_modifier.cpp | 162 auto topLeft = in SetRadius() local 170 if (topLeft.IsNegative() || topRight.IsNegative() || bottomLeft.IsNegative() || bottomRight.IsNegative()) { in SetRadius() 173 MenuModelNG::SetBorderRadius(frameNode, topLeft, topRight, bottomLeft, bottomRight); in SetRadius()
|
H A D | custom_dialog_model.cpp | 136 radius.radiusTopLeft = Dimension(controllerHandler->cornerRadiusRect->topLeft, DimensionUnit::VP); in ParseDialogCornerRadiusRect() 261 ArkUI_Int32 SetDialogCornerRadius(ArkUIDialogHandle controllerHandler, ArkUI_Float32 topLeft, in SetDialogCornerRadius() argument 265 controllerHandler->cornerRadiusRect = new ArkUICornerRadius({ .topLeft = topLeft, .topRight = topRight, in SetDialogCornerRadius()
|
H A D | custom_dialog_model.h | 54 ArkUI_Int32 SetDialogCornerRadius(ArkUIDialogHandle handle, ArkUI_Float32 topLeft, ArkUI_Float32 topRight,
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | rect_t.h | 479 RadiusF(const EdgeF& radius) : topLeft(radius), topRight(radius), bottomLeft(radius), bottomRight(radius) {} in RadiusF() 480 RadiusF(const EdgeF& topLeft, const EdgeF& topRight, const EdgeF& bottomLeft, const EdgeF& bottomRight) in RadiusF() 481 : topLeft(topLeft), topRight(topRight), bottomLeft(bottomLeft), bottomRight(bottomRight) in RadiusF() 502 EdgeF topLeft; member
|
/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | dialog_model.cpp | 121 int32_t SetCornerRadius(ArkUI_NativeDialogHandle handle, float topLeft, float topRight, in SetCornerRadius() argument 129 topLeft, topRight, bottomLeft, bottomRight); in SetCornerRadius()
|
H A D | dialog_model.h | 52 int32_t SetCornerRadius(ArkUI_NativeDialogHandle handle, float topLeft, float topRight,
|
/foundation/arkui/ace_engine/interfaces/native/ |
H A D | native_dialog.h | 157 * @param topLeft Indicates the radius of the upper left corner of the custom dialog box background. 163 int32_t (*setCornerRadius)(ArkUI_NativeDialogHandle handle, float topLeft, float topRight,
|
/foundation/arkui/ace_engine/frameworks/core/components/bubble/ |
H A D | render_bubble.cpp | 268 Offset topLeft; in UpdateTouchRegion() local 274 topLeft = childOffset_; in UpdateTouchRegion() 283 topLeft = childOffset_ + Offset(0.0, -NormalizeToPx(targetSpace_)); in UpdateTouchRegion() 286 topLeft += Offset(0.0, -NormalizeToPx(ARROW_HEIGHT)); in UpdateTouchRegion() 293 topLeft = childOffset_; in UpdateTouchRegion() 302 topLeft = childOffset_ + Offset(-NormalizeToPx(targetSpace_), 0.0); in UpdateTouchRegion() 305 topLeft += Offset(-NormalizeToPx(ARROW_HEIGHT), 0.0); in UpdateTouchRegion() 312 touchRegion_ = TouchRegion(topLeft, topLeft + bottomRight); in UpdateTouchRegion()
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | scene_session_dirty_manager.cpp | 804 auto topLeft = transform * Vector3f(0, 0, 1.0);
in CalRectInScreen() local 807 auto left = std::min(topLeft[0], bottomRight[0]);
in CalRectInScreen() 808 auto top = std::min(topLeft[1], bottomRight[1]);
in CalRectInScreen() 809 auto topLeftX = static_cast<int32_t>(topLeft[0]);
in CalRectInScreen() 810 auto topLeftY = static_cast<int32_t>(topLeft[1]);
in CalRectInScreen()
|