Home
last modified time | relevance | path

Searched refs:posY (Results 1 – 25 of 63) sorted by relevance

123

/foundation/window/window_manager/wmserver/test/unittest/
Ddrag_controller_test.cpp188 int32_t posY = 0; variable
189 moveDragController_->ConvertPointerPosToDisplayGroupPos(0, posX, posY);
191 moveDragController_->ConvertPointerPosToDisplayGroupPos(1, posX, posY);
192 moveDragController_->ConvertPointerPosToDisplayGroupPos(0, posX, posY);
287 int32_t posY = 0; variable
290 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType);
293 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType);
296 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType);
299 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType);
302 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType);
[all …]
/foundation/arkui/ui_lite/frameworks/layout/
Dgrid_layout.cpp60 int16_t posY = i * layoutHeight; in LayoutHorizontal() local
74 …int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 … in LayoutHorizontal()
77 child->ResizeVisibleArea(posX, posY, layoutWidth, layoutHeight); in LayoutHorizontal()
92 int16_t posY; in LayoutVertical() local
99 posY = j * layoutHeight; in LayoutVertical()
108 …int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 … in LayoutVertical()
111 child->ResizeVisibleArea(posX, posY, layoutWidth, layoutHeight); in LayoutVertical()
Dflex_layout.cpp222 void FlexLayout::GetCrossAxisPosY(int16_t& posY, uint16_t& count, uint16_t* rowsMaxHeight, UIView* … in GetCrossAxisPosY() argument
237 posY = top + offset; in GetCrossAxisPosY()
242 posY = GetHeight() - child->GetRelativeRect().GetHeight() - bottom - offset; in GetCrossAxisPosY()
251posY = (GetHeight() - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top + offset; // … in GetCrossAxisPosY()
260 int16_t posY = 0; in LayoutHorizontal() local
295 GetCrossAxisPosY(posY, count, rowsMaxHeight, child); in LayoutHorizontal()
298 posY - child->GetStyle(STYLE_MARGIN_TOP)); in LayoutHorizontal()
300 child->SetPosition(posX - left, posY - child->GetStyle(STYLE_MARGIN_TOP)); in LayoutHorizontal()
448 int16_t posY = 0; in LayoutVertical() local
468 GetColumnStartPos(posY, interval, count, columnsHeight, columnsChildNum); in LayoutVertical()
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
Dutils.cpp169 void GetOffsetValue(std::vector<std::string> offsets, std::string& posX, std::string& posY) in GetOffsetValue() argument
174 posY = offsets.front(); in GetOffsetValue()
177 posY = DOM_BACKGROUND_IMAGE_POSITION_CENTER; in GetOffsetValue()
181 posY = offsets.back(); in GetOffsetValue()
182 …if (VERTICAL_SET.find(posX) != VERTICAL_SET.end() && HORIZON_SET.find(posY) != HORIZON_SET.end()) { in GetOffsetValue()
183 posY = offsets.front(); in GetOffsetValue()
190 …etOffsetValueObjectPosition(std::vector<std::string> offsets, std::string& posX, std::string& posY) in GetOffsetValueObjectPosition() argument
195 posY = offsets.front(); in GetOffsetValueObjectPosition()
198 posY = DOM_IMAGE_POSITION_CENTER; in GetOffsetValueObjectPosition()
202 posY = offsets.back(); in GetOffsetValueObjectPosition()
[all …]
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
Danalog_clock_component.cpp133 int16_t posY = imageView->GetY(); in SetImageHand() local
139 *imageView, {posX, posY}, {pivotX, pivotY}); in SetImageHand()
143 *imageView, {posX, posY}, {pivotX, pivotY}); in SetImageHand()
147 *imageView, {posX, posY}, {pivotX, pivotY}); in SetImageHand()
158 int16_t posY = childView->GetY(); in SetRectHand() local
168 clockView_->SetHandLine(UIAnalogClock::HandType::HOUR_HAND, {posX, posY}, in SetRectHand()
172 clockView_->SetHandLine(UIAnalogClock::HandType::MINUTE_HAND, {posX, posY}, in SetRectHand()
176 clockView_->SetHandLine(UIAnalogClock::HandType::SECOND_HAND, {posX, posY}, in SetRectHand()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
Dimage_source_gif_test.cpp132 uint32_t posY = 15; variable
133 pixelMap->GetARGB32Color(posX, posY, color);
138 …HiLog::Debug(LABEL_TEST, "point:[%u, %u] ARGB:[%u, %u, %u, %u]", posX, posY, alpha, red, green, bl…
180 uint32_t posY = 15; variable
181 pixelMap->GetARGB32Color(posX, posY, color);
186 …HiLog::Debug(LABEL_TEST, "point:[%u, %u] RGBA:[%u, %u, %u, %u]", posX, posY, red, green, blue, alp…
/foundation/arkui/ui_lite/test/unittest/components/
Dui_button_unit_test.cpp206 const int16_t posY = 100; variable
213 button_->SetPosition(posX, posY);
221 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth);
242 const int16_t posY = 100; variable
249 button_->SetPosition(posX, posY);
257 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth);
278 const int16_t posY = 100; variable
284 button_->SetPosition(posX, posY);
292 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth);
Dui_label_button_unit_test.cpp97 const int16_t posY = 20; variable
99 labelBtn_->SetLabelPosition(posX, posY);
101 EXPECT_EQ(labelBtn_->GetLabelPosition().y, posY);
Dui_arc_label_unit_test.cpp142 const int16_t posY = 20; variable
143 arcLabel_->SetArcTextCenter(posX, posY);
145 EXPECT_EQ(arcLabel_->GetArcTextCenter().y, posY);
/foundation/window/window_manager/utils/include/
Dfold_screen_info.h92 int32_t posY; in ReadCreaseRectVector() local
95 if (!(parcel.ReadInt32(posX) && parcel.ReadInt32(posY) && in ReadCreaseRectVector()
99 DMRect rect = {posX, posY, width, height}; in ReadCreaseRectVector()
/foundation/window/window_manager/wmserver/include/
Ddrag_controller.h88 void ConvertPointerPosToDisplayGroupPos(DisplayId displayId, int32_t& posX, int32_t& posY);
91 …void HandleDragEvent(DisplayId displayId, int32_t posX, int32_t posY, int32_t pointId, int32_t sou…
92 …void HandleMoveEvent(DisplayId displayId, int32_t posX, int32_t posY, int32_t pointId, int32_t sou…
96 void CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY);
/foundation/arkui/ace_engine/adapter/ohos/entrance/
Dace_view_ohos.h47 static void SurfacePositionChanged(AceViewOhos* view, int32_t posX, int32_t posY);
160 void NotifySurfacePositionChanged(int32_t posX, int32_t posY) in NotifySurfacePositionChanged() argument
162 if (posX_ == posX && posY_ == posY) { in NotifySurfacePositionChanged()
167 viewPositionChangeCallback_(posX, posY); in NotifySurfacePositionChanged()
170 posY_ = posY; in NotifySurfacePositionChanged()
/foundation/arkui/ace_engine/adapter/ohos/entrance/subwindow/
Dsubwindow_ohos.cpp602 int32_t& width, int32_t& height, int32_t& posX, int32_t& posY, float& density) const in GetToastDialogWindowProperty() argument
607 posY = 0; in GetToastDialogWindowProperty()
613 posY, width, height, density); in GetToastDialogWindowProperty()
616 bool SubwindowOhos::InitToastDialogWindow(int32_t width, int32_t height, int32_t posX, int32_t posY in InitToastDialogWindow() argument
624 windowOption->SetWindowRect({ posX, posY, width, height }); in InitToastDialogWindow()
737 int32_t posY = 0; in ShowToastForService() local
744 subwindowOhos->GetToastDialogWindowProperty(width, height, posX, posY, density); in ShowToastForService()
749 bool ret = subwindowOhos->InitToastDialogWindow(width, height, posX, posY, true); in ShowToastForService()
763 …Platform::DialogContainer::ShowToastDialogWindow(childContainerId, posX, posY, width, height, true… in ShowToastForService()
818 int32_t posY = 0; in ShowDialogForService() local
[all …]
/foundation/window/window_manager/utils/src/
Dcutout_info.cpp85 int32_t posY; in ReadBoundingRectsVector() local
88 if (!(parcel.ReadInt32(posX) && parcel.ReadInt32(posY) && in ReadBoundingRectsVector()
92 DMRect rect = {posX, posY, width, height}; in ReadBoundingRectsVector()
/foundation/window/window_manager/interfaces/innerkits/dm/
Dscreen.h34 Point(int32_t posX, int32_t posY) : posX_(posX), posY_(posY) {}; in Point()
/foundation/arkui/ace_engine/frameworks/core/components/rich_text/
Drender_rich_text.cpp55 void RenderRichText::ProcessMove(double posY) in ProcessMove() argument
57 auto diff = prevPos_ - posY; in ProcessMove()
63 prevPos_ = posY; in ProcessMove()
Drender_rich_text.h50 void ProcessMove(double posY);
/foundation/window/window_manager/wmserver/src/
Ddrag_controller.cpp250 …agController::ConvertPointerPosToDisplayGroupPos(DisplayId displayId, int32_t& posX, int32_t& posY) in ConvertPointerPosToDisplayGroupPos() argument
254 posY += displayRect.posY_; in ConvertPointerPosToDisplayGroupPos()
338 …gController::CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY) in CalculateNewWindowRect() argument
346 int32_t diffY = posY - startPointPosY; in CalculateNewWindowRect()
380 void MoveDragController::HandleDragEvent(DisplayId displayId, int32_t posX, int32_t posY, in HandleDragEvent() argument
389 CalculateNewWindowRect(newRect, displayId, posX, posY); in HandleDragEvent()
403 void MoveDragController::HandleMoveEvent(DisplayId displayId, int32_t posX, int32_t posY, in HandleMoveEvent() argument
418 int32_t targetY = moveDragProperty_->startPointRect_.posY_ + (posY - startPointPosY); in HandleMoveEvent()
/foundation/arkui/ui_lite/frameworks/draw/
Ddraw_label.cpp166 float posY; in DrawArcText() local
185 posX, posY, rotateAngle, angle, in DrawArcText()
190 …hRotate(gfxDstBuffer, mask, fontId, fontSize, letter, Point { MATH_ROUND(posX), MATH_ROUND(posY) }, in DrawArcText()
203 float& posY, in CalculateAngle() argument
227 TypedText::GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in CalculateAngle()
237 TypedText::GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in CalculateAngle()
Ddraw_label.h43 float& posY,
/foundation/arkui/ui_lite/frameworks/common/
Dtyped_text.cpp103 float posY = 0; in GetArcTextRect() local
123 GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in GetArcTextRect()
124 rect.SetPosition(MATH_ROUND(posX), MATH_ROUND(posY)); in GetArcTextRect()
126 rectLetter.SetPosition(MATH_ROUND(posX), MATH_ROUND(posY)); in GetArcTextRect()
146 GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in GetArcTextRect()
182 …xt::GetArcLetterPos(const Point& arcCenter, uint16_t radius, float angle, float& posX, float& posY) in GetArcLetterPos() argument
185 posY = arcCenter.y - (static_cast<float>(radius) * Sin(angle + QUARTER_IN_DEGREE)); in GetArcLetterPos()
/foundation/graphic/graphic_utils_lite/test/
Dgraphic_math_unit_test.cpp368 const uint16_t posY = 5; variable
370 Vector3<uint16_t>* vector1 = new Vector3<uint16_t>(posX, posY, posZ);
378 EXPECT_EQ(vector1->operator[](i++), posY);
393 const uint16_t posY = 5; variable
395 Vector3<uint16_t>* vector1 = new Vector3<uint16_t>(posX, posY, posZ);
400 Vector3<uint16_t>* vector2 = new Vector3<uint16_t>(posX, posY, posZ);
406 Vector3<uint16_t>* vector3 = new Vector3<uint16_t>(posX - 1, posY, posZ);
/foundation/window/window_manager/window_scene/session/host/src/
Dmove_drag_controller.cpp331 int32_t posY = originalRect.posY_; in CalcFixedAspectRatioTargetRect() local
344 return { posX + tranX, posY + tranY, width - tranX, height - tranY }; in CalcFixedAspectRatioTargetRect()
347 return { posX, posY + (mainMoveAxis_ == AxisType::X_AXIS ? (-tranY) : (tranY)), in CalcFixedAspectRatioTargetRect()
352 return { posX, posY, width + tranX, height + tranY }; in CalcFixedAspectRatioTargetRect()
355 return { posX + (mainMoveAxis_ == AxisType::X_AXIS ? (tranX) : (-tranX)), posY, in CalcFixedAspectRatioTargetRect()
360 return { posX + tranX, posY, width - tranX, height - tranY }; in CalcFixedAspectRatioTargetRect()
363 return { posX, posY + tranY, width - tranX, height - tranY }; in CalcFixedAspectRatioTargetRect()
366 return { posX, posY, width + tranX, height + tranY }; in CalcFixedAspectRatioTargetRect()
369 return { posX, posY, width + tranX, height + tranY }; in CalcFixedAspectRatioTargetRect()
/foundation/graphic/graphic_2d/rosen/modules/frame_analyzer/export/
Dframe_painter.h49 double posY = 0; member
/foundation/window/window_manager/test/systemtest/wms/
Dwindow_move_drag_test.cpp43 int32_t posY,
101 int32_t posY, in CreatePointerEvent() argument
108 pointerItem.SetDisplayY(posY); in CreatePointerEvent()

123