Home
last modified time | relevance | path

Searched refs:posX (Results 1 - 25 of 112) sorted by relevance

12345

/foundation/window/window_manager/wmserver/test/unittest/
H A Ddrag_controller_test.cpp192 int32_t posX = 0; in HWTEST_F() local
194 moveDragController_->ConvertPointerPosToDisplayGroupPos(0, posX, posY); in HWTEST_F()
196 moveDragController_->ConvertPointerPosToDisplayGroupPos(1, posX, posY); in HWTEST_F()
197 moveDragController_->ConvertPointerPosToDisplayGroupPos(0, posX, posY); in HWTEST_F()
341 int32_t posX = 0; in HWTEST_F() local
345 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType); in HWTEST_F()
348 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType); in HWTEST_F()
351 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType); in HWTEST_F()
354 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType); in HWTEST_F()
357 moveDragController_->HandleDragEvent(0, posX, pos in HWTEST_F()
376 int32_t posX = 0; HWTEST_F() local
416 int32_t posX = 0; HWTEST_F() local
[all...]
/foundation/arkui/ui_lite/frameworks/layout/
H A Dgrid_layout.cpp58 int16_t posX; in LayoutHorizontal() local
65 posX = j * layoutWidth; in LayoutHorizontal()
72 int16_t actPosX = posX + (layoutWidth - child->GetRelativeRect().GetWidth() - left - right) / 2 + left; in LayoutHorizontal()
77 child->ResizeVisibleArea(posX, posY, layoutWidth, layoutHeight); in LayoutHorizontal()
94 int16_t posX = i * layoutWidth; in LayoutVertical() local
106 int16_t actPosX = posX + (layoutWidth - child->GetRelativeRect().GetWidth() - left - right) / 2 + left; in LayoutVertical()
111 child->ResizeVisibleArea(posX, posY, layoutWidth, layoutHeight); in LayoutVertical()
H A Dflex_layout.cpp259 int16_t posX = 0; in LayoutHorizontal() local
280 GetRowStartPos(posX, interval, count, rowsWidth, rowsChildNum); in LayoutHorizontal()
282 GetNoWrapStartPos(GetWidth(), posX, interval); in LayoutHorizontal() local
289 posX += left; in LayoutHorizontal()
290 if (((posX + child->GetRelativeRect().GetWidth() + right) > GetWidth()) && (wrap_ == WRAP)) { in LayoutHorizontal()
291 GetRowStartPos(posX, interval, ++count, rowsWidth, rowsChildNum); in LayoutHorizontal()
292 posX += left; in LayoutHorizontal()
297 child->SetPosition(GetWidth() - posX - child->GetRelativeRect().GetWidth() - right, in LayoutHorizontal()
300 child->SetPosition(posX - left, posY - child->GetStyle(STYLE_MARGIN_TOP)); in LayoutHorizontal()
302 posX in LayoutHorizontal()
410 GetCrossAxisPosX(int16_t& posX, uint16_t& count, uint16_t* columnsMaxWidth, UIView* child) GetCrossAxisPosX() argument
447 int16_t posX = 0; LayoutVertical() local
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Danalog_clock_component.cpp132 int16_t posX = imageView->GetX(); 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()
157 int16_t posX = childView->GetX(); 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/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dutils.cpp159 void GetOffsetValue(std::vector<std::string> offsets, std::string& posX, std::string& posY) in GetOffsetValue() argument
162 posX = offsets.front(); in GetOffsetValue()
163 if (VERTICAL_SET.find(posX) != VERTICAL_SET.end()) { in GetOffsetValue()
165 posX = DOM_BACKGROUND_IMAGE_POSITION_CENTER; in GetOffsetValue()
170 posX = offsets.front(); in GetOffsetValue()
172 if (VERTICAL_SET.find(posX) != VERTICAL_SET.end() && HORIZON_SET.find(posY) != HORIZON_SET.end()) { in GetOffsetValue()
174 posX = offsets.back(); in GetOffsetValue()
180 void GetOffsetValueObjectPosition(std::vector<std::string> offsets, std::string& posX, std::string& posY) in GetOffsetValueObjectPosition() argument
183 posX = offsets.front(); in GetOffsetValueObjectPosition()
184 if (OBJECT_VERTICAL_SET.find(posX) ! in GetOffsetValueObjectPosition()
201 BgImgPositionIsValid(const std::string& posX, const std::string& posY) BgImgPositionIsValid() argument
219 ObjectImgPositionIsValid(const std::string& posX, const std::string& posY) ObjectImgPositionIsValid() argument
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_source_gif_test.cpp131 uint32_t posX = 15; in HWTEST_F() local
133 pixelMap->GetARGB32Color(posX, posY, color); in HWTEST_F()
138 IMAGE_LOGD("point:[%u, %u] ARGB:[%u, %u, %u, %u]", posX, posY, alpha, red, green, blue); in HWTEST_F()
179 uint32_t posX = 15; in HWTEST_F() local
181 pixelMap->GetARGB32Color(posX, posY, color); in HWTEST_F()
186 IMAGE_LOGD("point:[%u, %u] RGBA:[%u, %u, %u, %u]", posX, posY, red, green, blue, alpha); in HWTEST_F()
/foundation/window/window_manager/extension/window_extension/src/zidl/
H A Dwindow_extension_stub.cpp35 int32_t posX = 0; in OnRemoteRequest() local
39 if (!data.ReadInt32(posX) || !data.ReadInt32(posY) || in OnRemoteRequest()
44 SetBounds({ posX, posY, width, height }); in OnRemoteRequest()
/foundation/window/window_manager/wmserver/include/
H A Ddrag_controller.h92 void ConvertPointerPosToDisplayGroupPos(DisplayId displayId, int32_t& posX, int32_t& posY);
95 void HandleDragEvent(DisplayId displayId, int32_t posX, int32_t posY, int32_t pointId, int32_t sourceType);
96 void HandleMoveEvent(DisplayId displayId, int32_t posX, int32_t posY, int32_t pointId, int32_t sourceType);
100 void CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY);
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_button_unit_test.cpp205 const int16_t posX = 50; in HWTEST_F() local
213 button_->SetPosition(posX, posY); in HWTEST_F()
220 EXPECT_EQ(button_->GetContentRect().GetX(), posX + paddingdLeft + borderWidth); in HWTEST_F()
241 const int16_t posX = 50; in HWTEST_F() local
249 button_->SetPosition(posX, posY); in HWTEST_F()
256 EXPECT_EQ(button_->GetContentRect().GetX(), posX + paddingdLeft + borderWidth); in HWTEST_F()
277 const int16_t posX = 50; in HWTEST_F() local
284 button_->SetPosition(posX, posY); in HWTEST_F()
291 EXPECT_EQ(button_->GetContentRect().GetX(), posX + paddingdLeft + borderWidth); in HWTEST_F()
H A Dui_label_button_unit_test.cpp96 const int16_t posX = 10; in HWTEST_F() local
99 labelBtn_->SetLabelPosition(posX, posY); in HWTEST_F()
100 EXPECT_EQ(labelBtn_->GetLabelPosition().x, posX); in HWTEST_F()
H A Dui_arc_label_unit_test.cpp141 const int16_t posX = 10; in HWTEST_F() local
143 arcLabel_->SetArcTextCenter(posX, posY); in HWTEST_F()
144 EXPECT_EQ(arcLabel_->GetArcTextCenter().x, posX); in HWTEST_F()
/foundation/window/window_manager/utils/include/
H A Dfold_screen_info.h91 int32_t posX; 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/wm/src/zidl/
H A Dwindow_stub.cpp43 int32_t posX = 0; in OnRemoteRequest() local
47 if (!data.ReadInt32(posX) || !data.ReadInt32(posY) || !data.ReadUint32(width) || !data.ReadUint32(height)) { in OnRemoteRequest()
51 Rect rect { posX, posY, width, height }; in OnRemoteRequest()
182 int32_t posX = 0; in OnRemoteRequest() local
186 if (!data.ReadInt32(posX) || !data.ReadInt32(posY) || in OnRemoteRequest()
191 struct Rect rect { posX, posY, width, height }; in OnRemoteRequest() member
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_label.cpp180 float posX; in DrawArcText() local
195 posX, posY, rotateAngle, angle, in DrawArcText()
201 letterInfo.InitData(fontId, fontSize, letter, { MATH_ROUND(posX), MATH_ROUND(posY) }, in DrawArcText()
206 DrawLetterWithRotate(gfxDstBuffer, mask, letterInfo, posX, posY); in DrawArcText()
217 float& posX, in CalculateAngle()
242 TypedText::GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in CalculateAngle()
252 TypedText::GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in CalculateAngle()
262 float posX, in DrawLetterWithRotate()
288 transMap.Translate(Vector2<float>(posX + node.left, posY + offset - node.top)); in DrawLetterWithRotate()
289 transMap.Rotate(letterInfo.rotateAngle, Vector2<float>(posX, pos in DrawLetterWithRotate()
210 CalculateAngle(uint16_t letterWidth, uint16_t letterHeight, int16_t letterSpace, const ArcTextInfo arcTextInfo, bool xorFlag, uint32_t index, TextOrientation orientation, float& posX, float& posY, float& rotateAngle, float& angle, const Point& arcCenter, bool compatibilityMode) CalculateAngle() argument
259 DrawLetterWithRotate(BufferInfo& gfxDstBuffer, const Rect& mask, const ArcLetterInfo& letterInfo, float posX, float posY) DrawLetterWithRotate() argument
[all...]
H A Ddraw_label.h42 float& posX,
52 float posX,
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/
H A Dtext_blob_test.cpp42 float posX[9] = { 0, 14.9 * 2, 25.84 * 2, 30.62 * 2, 35.4 * 2, 47.22 * 2, 52.62 * 2, 67.42 * 2, in OnTestPerformance() local
61 buffer->pos[idx * 2] = posX[idx]; // 2 用于位置计算 in OnTestPerformance()
149 float posX[9] = { 0, 14.9 * 2, 25.84 * 2, 30.62 * 2, 35.4 * 2, 47.22 * 2, 52.62 * 2, 67.42 * 2, in OnTestPerformance() local
160 buffer->pos[idx * 2] = posX[idx]; // 2 设置字形位置 in OnTestPerformance()
/foundation/window/window_manager/utils/src/
H A Dcutout_info.cpp84 int32_t posX; in ReadBoundingRectsVector() local
88 if (!(parcel.ReadInt32(posX) && parcel.ReadInt32(posY) && in ReadBoundingRectsVector()
92 DMRect rect = {posX, posY, width, height}; in ReadBoundingRectsVector()
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_view_ohos.h52 static void SurfacePositionChanged(const RefPtr<AceViewOhos>& view, int32_t posX, int32_t posY);
185 void NotifySurfacePositionChanged(int32_t posX, int32_t posY) in NotifySurfacePositionChanged() argument
187 if (posX_ == posX && posY_ == posY) { in NotifySurfacePositionChanged()
191 viewPositionChangeCallback_(posX, posY); in NotifySurfacePositionChanged()
193 posX_ = posX; in NotifySurfacePositionChanged()
/foundation/window/window_manager/wm/src/
H A Dpicture_in_picture_controller.cpp473 float posX = 0; in UpdateContentSize() local
477 mainWindowXComponentController_->GetGlobalPosition(posX, posY); in UpdateContentSize()
479 bool isSizeChange = IsContentSizeChanged(newWidth, newHeight, posX, posY); in UpdateContentSize()
481 Rect r = {static_cast<int32_t>(posX), static_cast<int32_t>(posY), in UpdateContentSize()
509 bool PictureInPictureController::IsContentSizeChanged(float width, float height, float posX, float posY) in IsContentSizeChanged() argument
513 windowRect_.posX_ != static_cast<int32_t>(posX) || windowRect_.posY_ != static_cast<int32_t>(posY); in IsContentSizeChanged()
618 float posX = 0; in UpdateWinRectByComponent() local
622 mainWindowXComponentController_->GetGlobalPosition(posX, posY); in UpdateWinRectByComponent()
633 windowRect_.posX_ = static_cast<int32_t>(posX); in UpdateWinRectByComponent()
635 TLOGD(WmsLogTag::WMS_PIP, "position width: %{public}u, height: %{public}u, posX in UpdateWinRectByComponent()
651 float posX = 0; UpdatePiPSourceRect() local
[all...]
/foundation/window/window_manager/wmserver/src/
H A Ddrag_controller.cpp262 void MoveDragController::ConvertPointerPosToDisplayGroupPos(DisplayId displayId, int32_t& posX, int32_t& posY) in ConvertPointerPosToDisplayGroupPos() argument
265 posX += displayRect.posX_; in ConvertPointerPosToDisplayGroupPos()
354 void MoveDragController::CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY) in CalculateNewWindowRect() argument
361 int32_t diffX = posX - startPointPosX; in CalculateNewWindowRect()
396 void MoveDragController::HandleDragEvent(DisplayId displayId, int32_t posX, int32_t posY, in HandleDragEvent() argument
405 CalculateNewWindowRect(newRect, displayId, posX, posY); in HandleDragEvent()
419 void MoveDragController::HandleMoveEvent(DisplayId displayId, int32_t posX, int32_t posY, in HandleMoveEvent() argument
433 int32_t targetX = moveDragProperty_->startPointRect_.posX_ + (posX - startPointPosX); in HandleMoveEvent()
/foundation/window/window_manager/window_scene/session/host/src/
H A Dsub_session.cpp107 WSError SubSession::ProcessPointDownSession(int32_t posX, int32_t posY) in ProcessPointDownSession() argument
118 Session::ProcessClickModalSpecificWindowOutside(posX, posY); in ProcessPointDownSession()
125 return SceneSession::ProcessPointDownSession(posX, posY); in ProcessPointDownSession()
/foundation/graphic/graphic_2d/rosen/modules/frame_analyzer/export/
H A Dframe_painter.h39 double posX = 0; member
/foundation/arkui/ui_lite/frameworks/common/
H A Dtyped_text.cpp97 float posX = 0; in GetArcTextRect() local
117 GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in GetArcTextRect()
118 rect.SetPosition(MATH_ROUND(posX), MATH_ROUND(posY)); in GetArcTextRect()
120 rectLetter.SetPosition(MATH_ROUND(posX), MATH_ROUND(posY)); in GetArcTextRect()
140 GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in GetArcTextRect()
170 void TypedText::GetArcLetterPos(const Point& arcCenter, uint16_t radius, float angle, float& posX, float& posY) in GetArcLetterPos() argument
172 posX = arcCenter.x + (static_cast<float>(radius) * Sin(angle)); in GetArcLetterPos()
/foundation/graphic/graphic_utils_lite/test/
H A Dgraphic_math_unit_test.cpp367 const uint16_t posX = 3; in HWTEST_F() local
370 Vector3<uint16_t>* vector1 = new Vector3<uint16_t>(posX, posY, posZ); in HWTEST_F()
377 EXPECT_EQ(vector1->operator[](i++), posX); in HWTEST_F()
392 const uint16_t posX = 3; in HWTEST_F() local
395 Vector3<uint16_t>* vector1 = new Vector3<uint16_t>(posX, posY, posZ); in HWTEST_F()
400 Vector3<uint16_t>* vector2 = new Vector3<uint16_t>(posX, posY, posZ); in HWTEST_F()
406 Vector3<uint16_t>* vector3 = new Vector3<uint16_t>(posX - 1, posY, posZ); in HWTEST_F()
/foundation/window/window_manager/window_scene/session/host/include/
H A Dsub_session.h29 WSError ProcessPointDownSession(int32_t posX, int32_t posY) override;

Completed in 14 milliseconds

12345