Home
last modified time | relevance | path

Searched refs:topLeft (Results 1 - 25 of 50) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/qrcode/
H A Drosen_render_qrcode.cpp43 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 Drosen_render_qrcode.h50 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 Djs_container_span.cpp54 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 Djs_menu.cpp152 CalcDimension topLeft; in HandleDifferentRadius() local
153 if (ParseJsDimensionVp(object->GetProperty("topLeft"), topLeft)) { in HandleDifferentRadius()
154 radiusTopLeft = topLeft; in HandleDifferentRadius()
H A Djs_utils.cpp208 CalcDimension topLeft; in HandleDifferentRadius() local
209 if (JSViewAbstract::ParseJsDimensionVp(object->GetProperty("topLeft"), topLeft)) { in HandleDifferentRadius()
210 radiusTopLeft = topLeft; in HandleDifferentRadius()
H A Djs_search.h49 static bool ParseAllBorderRadiuses(JSRef<JSObject>& object, CalcDimension& topLeft,
H A Djs_image.cpp400 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 Djs_search.cpp817 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 Djs_textfield.h72 static bool ParseAllBorderRadiuses(JSRef<JSObject>& object, CalcDimension& topLeft,
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_menu_bridge.cpp208 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 Darkts_native_image_span_bridge.cpp383 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 Drosen_render_text_overlay.cpp416 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 Drs_attraction_effect_filter.cpp119 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 Dcj_image_span_ffi.cpp61 CalcDimension topLeft = CalcDimension(topLeftValue); in ParseTextBackgroundStyle() local
72 textBackgroundStyle.backgroundRadius = { topLeft, topRight, bottomRight, bottomLeft }; in ParseTextBackgroundStyle()
H A Dcj_button_ffi.cpp86 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 Dsvg_dom.h35 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 Dmenu_modifier.cpp162 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 Dcustom_dialog_model.cpp136 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 Dcustom_dialog_model.h54 ArkUI_Int32 SetDialogCornerRadius(ArkUIDialogHandle handle, ArkUI_Float32 topLeft, ArkUI_Float32 topRight,
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Drect_t.h479 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 Ddialog_model.cpp121 int32_t SetCornerRadius(ArkUI_NativeDialogHandle handle, float topLeft, float topRight, in SetCornerRadius() argument
129 topLeft, topRight, bottomLeft, bottomRight); in SetCornerRadius()
H A Ddialog_model.h52 int32_t SetCornerRadius(ArkUI_NativeDialogHandle handle, float topLeft, float topRight,
/foundation/arkui/ace_engine/interfaces/native/
H A Dnative_dialog.h157 * @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 Drender_bubble.cpp268 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 Dscene_session_dirty_manager.cpp804 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()

Completed in 20 milliseconds

12