Home
last modified time | relevance | path

Searched refs:RectF (Results 1 - 25 of 516) sorted by relevance

12345678910>>...21

/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Drect.h27 class RectF;
29 typedef RectF Rect;
273 class DRAWING_API RectF { class
275 inline RectF() noexcept;
276 inline RectF(const RectF& r) noexcept;
277 inline RectF(const RectI& r) noexcept;
278 inline RectF(const scalar l, const scalar t, const scalar r, const scalar b) noexcept;
280 ~RectF() {} in ~RectF()
305 * @brief If RectF intersect
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dbase_text_select_overlay.h51 static RectF GetVisibleRect(const RefPtr<FrameNode>& node, const RectF& visibleRect);
78 std::optional<RectF> GetAncestorNodeViewPort() override;
156 virtual RectF GetVisibleContentRect(bool isGlobal = false);
157 virtual bool CheckHandleVisible(const RectF& paintRect) = 0;
178 void GetGlobalRectWithTransform(RectF& rect);
179 std::vector<OffsetF> GetGlobalRectVertexWithTransform(const RectF& rect, float extendValue = 0.0f);
184 void GetLocalRectWithTransform(RectF& localRect);
187 RectF GetPaintRectWithTransform();
189 RectF GetVisibleContentRectWithTransfor
[all...]
H A Dtext_overlay_modifier.h42 void SetSelectedRects(const std::vector<RectF>& selectedRects);
44 void SetContentRect(const RectF& contentRect) in SetContentRect()
49 void SetSelectedForegroundColorAndRects(const std::vector<RectF>& selectedUrlRects,
60 std::vector<RectF> GetSelectedRects() const;
62 std::optional<RectF> contentRect_;
66 bool IsSelectedRectsChanged(const std::vector<RectF>& selectedRects);
73 std::vector<RectF> selectedRects_;
75 std::vector<RectF> selectedUrlRects_;
H A Dtext_select_overlay.h37 bool CheckHandleVisible(const RectF& paintRect) override;
38 bool CheckAndAdjustHandle(RectF& paintRect);
39 bool CheckAndAdjustHandleWithContent(const RectF& contentRect, RectF& paintRect);
41 RectF GetFirstHandleLocalPaintRect() override;
42 RectF GetSecondHandleLocalPaintRect() override;
50 RectF GetSelectArea() override;
51 void GetSelectAreaFromHandle(RectF& rect);
56 void OnHandleMove(const RectF& rect, bool isFirst) override;
57 void OnHandleMoveDone(const RectF
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/
H A Drect_test.cpp49 std::unique_ptr<RectF> rectF = std::make_unique<RectF>(); in HWTEST_F()
65 RectF rectf1; in HWTEST_F()
67 RectF rectf2(rectf1); in HWTEST_F()
80 RectF rectf1; in HWTEST_F()
82 RectF rectf2(rectf1); in HWTEST_F()
95 std::unique_ptr<RectF> rectF = std::make_unique<RectF>(1.0f, 2.0f, 3.0f, 4.0f); in HWTEST_F()
111 std::unique_ptr<RectF> rectF = std::make_unique<RectF>(4. in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_layout_property.cpp25 RectF TabBarLayoutProperty::GetIndicatorRect(int32_t index) in GetIndicatorRect()
28 CHECK_NULL_RETURN(node, RectF()); in GetIndicatorRect()
30 CHECK_NULL_RETURN(pipelineContext, RectF()); in GetIndicatorRect()
32 CHECK_NULL_RETURN(tabTheme, RectF()); in GetIndicatorRect()
34 CHECK_NULL_RETURN(childColumn && !childColumn->GetChildren().empty(), RectF()); in GetIndicatorRect()
36 CHECK_NULL_RETURN(grandChildren, RectF()); in GetIndicatorRect()
38 RectF indicator = geometryNode->GetFrameRect(); in GetIndicatorRect()
43 CHECK_NULL_RETURN(node, RectF()); in GetIndicatorRect()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/
H A Drs_rect_test.cpp97 RectF rect; in HWTEST_F()
113 RectF rect; in HWTEST_F()
126 RectF rect; in HWTEST_F()
138 RectF rect; in HWTEST_F()
151 RectF rect; in HWTEST_F()
163 RectF rect; in HWTEST_F()
175 RectF rect; in HWTEST_F()
191 RectF rect; in HWTEST_F()
212 RectF rect; in HWTEST_F()
226 RectF rect in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/
H A Dscrollable_test_utils.h25 using ClipRect = std::variant<RectF, RefPtr<ShapeRect>>;
28 if (std::holds_alternative<RectF>(lhs) && std::holds_alternative<RectF>(rhs)) { in CmpClipRect()
29 return std::get<RectF>(lhs) == std::get<RectF>(rhs); in CmpClipRect()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_content_overlay/
H A Dselect_content_overlay_pattern.h40 void UpdateViewPort(const std::optional<RectF>& viewPort);
41 void UpdateSelectArea(const RectF& selectArea) override;
51 void UpdateHandleHotRegion(RectF& hotRegion, const OffsetF& offset);
52 DimensionRect ConvertToHotRect(const RectF& rect);
53 bool IsHandleInSameLine(const RectF& first, const RectF& second);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/
H A Dwindow_node.h37 std::vector<RectF> GetResponseRegionList(const RectF& rect, int32_t sourceType) override;
40 RectF ConvertHotRect(const RectF& rect, int32_t sourceType);
41 std::vector<RectF> ConvertHotRects(const std::vector<Rosen::Rect>& hotAreas);
H A Dwindow_node.cpp111 std::vector<RectF> WindowNode::GetResponseRegionList(const RectF& rect, int32_t sourceType) in GetResponseRegionList()
120 std::vector<RectF> responseRegionList; in GetResponseRegionList()
125 std::vector<RectF> WindowNode::ConvertHotRects(const std::vector<Rosen::Rect>& hotAreas) in ConvertHotRects()
127 std::vector<RectF> responseRegionList; in ConvertHotRects()
133 RectF rectHot(hotX, hotY, hotWidth, hotHeight); in ConvertHotRects()
139 RectF WindowNode::ConvertHotRect(const RectF& rect, int32_t sourceType) in ConvertHotRect()
156 RectF rectHot(hotX, hotY, hotWidth, hotHeight); in ConvertHotRect()
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dgeometry_node.h82 RectF GetMarginFrameRect(bool withSafeArea = false) const in GetMarginFrameRect()
94 return RectF(offset, size); in GetMarginFrameRect()
106 RectF GetFrameRect(bool withSafeArea = false) const in GetFrameRect()
195 RectF GetPaddingRect(bool withSafeArea = false) const in GetPaddingRect()
228 RectF GetContentRect() const in GetContentRect()
230 return content_ ? content_->rect_ : RectF(); in GetContentRect()
336 RectF GetPixelGridRoundRect() const in GetPixelGridRoundRect()
338 return RectF(pixelGridRoundOffset_, pixelGridRoundSize_); in GetPixelGridRoundRect()
383 std::optional<RectF> ConvertExpandCacheToAdjustRect() const;
390 RectF GetParentAdjus
[all...]
H A Dframe_node.h74 RectF visibleRect = RectF();
75 RectF innerVisibleRect = RectF();
77 RectF frameRect = RectF();
78 RectF innerBoundaryRect = RectF();
453 RectF GetTransformRectRelativeToWindow() const;
461 RectF GetPaintRectToWindowWithTransfor
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dselect_overlay_property.h84 RectF paintRect;
85 RectF localPaintRect;
87 std::function<RectF(const SelectHandlePaintInfo&)> paintInfoConverter;
99 const RectF GetPaintRect() const in GetPaintRect()
105 return RectF(OffsetF(offsetX, offsetY), SizeF(paintInfo.width, std::abs(height))); in GetPaintRect()
238 RectF paintFrameRect;
264 std::function<bool(const RectF&, const RectF&)> checkHandleReverse;
270 RectF showArea;
271 RectF selectAre
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_drag/
H A Dtext_drag_pattern.h54 TextDragData(RectF textRect, float frameWidth, float frameHeight, float lineHeight, float lastLineHeight) in TextDragData()
59 RectF textRect_;
117 const RectF& GetTextRect() const in GetTextRect()
186 const std::list<RefPtr<FrameNode>>& imageChildren, const std::vector<RectF>& rectsForPlaceholders) in InitSpanImageLayout()
202 const std::vector<RectF>& GetRectsForPlaceholders() in GetRectsForPlaceholders()
215 static RectF GetHandler(const bool isLeftHandler, const std::vector<RectF> boxes, const RectF contentRect,
217 static void AdjustHandlers(const RectF contentRect, RectF
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dmouse_select_modifier.h45 void SetSelectRect(const RectF& rect) in SetSelectRect()
48 rectProperty_ = std::make_shared<Rosen::RSProperty<RectF>>(rect); in SetSelectRect()
55 void SetPaintTask(const std::function<void(const RectF&, RSCanvas&)>& paintTask) in SetPaintTask() argument
61 std::shared_ptr<Rosen::RSProperty<RectF>> rectProperty_;
62 std::function<void(const RectF&, RSCanvas&)> paintTask_;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_paint_method.h57 void PaintDividerLines(RSCanvas& canvas, const RectF& contentRect, const DividerInfo &info,
66 bool NeedPaintDividerLines(const RectF &contentRect, const ItemDivider &divider, double dividerHeight,
68 void PaintDefaultDividerLines(RSCanvas& canvas, const RectF &contentRect, double dividerHeight);
69 void PaintCustomDividerLines(RSCanvas& canvas, const RectF &contentRect, const RectF &frameRect,
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Dimage_painter.h33 void DrawImageWithRepeat(RSCanvas& canvas, const RectF& rect) const;
36 ImageFit imageFit, const SizeF& rawPicSize, const SizeF& dstSize, RectF& srcRect, RectF& dstRect);
49 ImageFit imageFit, const SizeF& rawPicSize, const SizeF& dstSize, RectF& srcRect, RectF& dstRect);
/foundation/arkui/ace_engine/interfaces/inner_api/ace/
H A Darkui_rect.h22 class RectF { class
24 RectF() = default;
25 ~RectF() = default;
27 RectF(float x, float y, float width, float height) in RectF() function in OHOS::Ace::RectF
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/rect_fuzzer/
H A Drect_fuzzer.cpp92 RectF rectf; in RectFuzzTest002()
94 RectF rectf1 = RectF(l, t, r, b); in RectFuzzTest002()
95 RectF rectf2 = RectF(rectf1); in RectFuzzTest002()
96 RectF rectf3 = RectF(recti); in RectFuzzTest002()
131 RectF rectf = RectF(l, t, r, b); in RectFuzzTest003()
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
H A Dgrid_layout_test_ng.cpp56 RectF childRect = GetChildRect(frameNode_, index); in HWTEST_F()
59 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F()
260 RectF childRect = GetChildRect(frameNode_, index); in HWTEST_F()
263 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F()
292 RectF childRect = GetChildRect(frameNode_, index); in HWTEST_F()
295 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F()
325 RectF childRec in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/test/mock/core/render/
H A Dmock_render_context.h42 MOCK_METHOD1(SetContentClip, void(const std::variant<RectF, RefPtr<ShapeRect>>&));
59 void UpdatePaintRect(const RectF& rect) override
73 RectF GetPaintRectWithTransform() override
78 void SetPaintRectWithTransform(const RectF rect) in SetPaintRectWithTransform()
83 RectF GetPaintRectWithoutTransform() override
132 RectF rect_;
133 RectF paintRect_;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_select_overlay.h38 bool CheckHandleVisible(const RectF& paintRect) override;
47 RectF GetFirstHandleLocalPaintRect() override;
48 RectF GetSecondHandleLocalPaintRect() override;
59 RectF GetSelectArea() override;
64 void OnHandleMove(const RectF& rect, bool isFirst) override;
65 void OnHandleMoveDone(const RectF& rect, bool isFirst) override;
101 std::optional<SelectHandleInfo> GetHandleInfo(const RectF& handlePaintRect);
H A Dtext_select_controller.h78 RectF GetFirstHandleRect() const in GetFirstHandleRect()
88 RectF GetSecondHandleRect() const in GetSecondHandleRect()
109 RectF GetCaretRect() const in GetCaretRect()
149 void UpdateContentRect(const RectF& rect) in UpdateContentRect()
206 void MoveHandleToContentRect(RectF& handleRect, float boundaryAdjustment = 0.0f) const;
207 void AdjustHandleAtEdge(RectF& handleRect) const;
208 void AdjustHandleOffset(RectF& handleRect) const;
211 std::vector<RectF> GetSelectedRects() const;
212 RectF CalculateEmptyValueCaretRect(float width = 0.0f);
243 RectF contentRect
[all...]
/foundation/arkui/ace_engine/test/unittest/core/event/
H A Devent_hub_test_ng.cpp47 const RectF OLD_RECT = RectF(OLD_X_VALUE, OLD_Y_VALUE, OLD_WIDTH, OLD_HEIGHT);
54 const RectF NEW_RECT = RectF(NEW_X_VALUE, NEW_Y_VALUE, NEW_WIDTH, NEW_HEIGHT);
57 const RectF RECT_DELTA = RectF(1.0f, 1.0f, 1.0f, 1.0f);
188 RectF tempOldRect; in HWTEST_F()
190 RectF tempNewRect; in HWTEST_F()
193 const RectF& oldRect, const OffsetF& oldOrigin, const RectF in HWTEST_F()
[all...]

Completed in 12 milliseconds

12345678910>>...21