Home
last modified time | relevance | path

Searched refs:Pen (Results 1 - 25 of 90) sorted by relevance

1234

/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/
H A Dpen.cpp23 Pen::Pen() noexcept
26 join_(Pen::JoinStyle::MITER_JOIN),
27 cap_(Pen::CapStyle::FLAT_CAP),
32 Pen::Pen(const Color& c) noexcept : Pen() in Pen() function
37 Pen::Pen(int rgba) noexcept : Pen() in Pen() function
[all...]
H A Dpaint.cpp113 void Paint::AttachPen(const Pen& pen) in AttachPen()
184 void Paint::SetCapStyle(Pen::CapStyle cs) in SetCapStyle()
189 void Paint::SetJoinStyle(Pen::JoinStyle js) in SetJoinStyle()
248 join_ = Pen::JoinStyle::DEFAULT_JOIN; in Reset()
249 cap_ = Pen::CapStyle::DEFAULT_CAP; in Reset()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
H A Dpen_test.cpp48 auto pen = std::make_unique<Pen>(); in HWTEST_F()
61 Pen oldPen; in HWTEST_F()
62 Pen pen{oldPen}; in HWTEST_F()
78 auto pen = std::make_unique<Pen>(color); in HWTEST_F()
92 auto pen = std::make_unique<Pen>(color); in HWTEST_F()
105 auto pen = std::make_unique<Pen>(255); in HWTEST_F()
118 auto pen = std::make_unique<Pen>(100); in HWTEST_F()
131 auto pen = std::make_unique<Pen>(); in HWTEST_F()
148 auto pen = std::make_unique<Pen>(); in HWTEST_F()
165 auto pen = std::make_unique<Pen>(); in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_pen.cpp42 static Pen* CastToPen(OH_Drawing_Pen* cPen) in CastToPen()
44 return reinterpret_cast<Pen*>(cPen); in CastToPen()
47 static const Pen& CastToPen(const OH_Drawing_Pen& cPen) in CastToPen()
49 return reinterpret_cast<const Pen&>(cPen); in CastToPen()
72 static OH_Drawing_PenLineCapStyle CapCastToCCap(Pen::CapStyle cap) in CapCastToCCap()
76 case Pen::CapStyle::FLAT_CAP: in CapCastToCCap()
79 case Pen::CapStyle::SQUARE_CAP: in CapCastToCCap()
82 case Pen::CapStyle::ROUND_CAP: in CapCastToCCap()
91 static Pen::CapStyle CCapCastToCap(OH_Drawing_PenLineCapStyle cCap) in CCapCastToCap()
93 Pen in CCapCastToCap()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/pen_fuzzer/
H A Dpen_fuzzer.cpp26 void PenFuzzTestInner01(Pen& pen) in PenFuzzTestInner01()
44 void PenFuzzTestInner02(Pen& pen) in PenFuzzTestInner02()
60 Pen::CapStyle capStyle = GetObject<Pen::CapStyle>(); in PenFuzzTestInner02()
64 Pen::JoinStyle joinStyle = GetObject<Pen::JoinStyle>(); in PenFuzzTestInner02()
69 void PenFuzzTestInner03(Pen& pen) in PenFuzzTestInner03()
98 void PenFuzzTestInner04(Pen& pen) in PenFuzzTestInner04()
105 Pen PenOne = Pen(pe in PenFuzzTestInner04()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/
H A Dpen.h29 class DRAWING_API Pen { class
45 Pen() noexcept;
46 Pen(const Pen& p) noexcept = default;
47 Pen(const Color& c) noexcept;
48 Pen(int rgba) noexcept;
49 ~Pen() {}; in ~Pen()
299 * Pen with the result of Pen().
322 friend DRAWING_API bool operator==(const Pen
[all...]
H A Dpaint.h37 void AttachPen(const Pen& pen);
70 void SetCapStyle(Pen::CapStyle cs);
71 Pen::CapStyle GetCapStyle() const { return cap_; } in GetCapStyle()
73 void SetJoinStyle(Pen::JoinStyle js);
74 Pen::JoinStyle GetJoinStyle() const { return join_; } in GetJoinStyle()
119 Pen::JoinStyle join_ = Pen::JoinStyle::DEFAULT_JOIN;
120 Pen::CapStyle cap_ = Pen::CapStyle::DEFAULT_CAP;
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_border.h98 void SetBorderEffect(Drawing::Pen& pen, int idx, float spaceBetweenDot, float borderLength) const;
100 bool ApplyPathStyle(Drawing::Pen& pen) const;
101 bool ApplyFourLine(Drawing::Pen& pen) const;
102 bool ApplyLineStyle(Drawing::Pen& pen, int borderIdx, float length) const;
104 void PaintFourLine(Drawing::Canvas& canvas, Drawing::Pen& pen, RectF rect) const;
105 void DrawBorders(Drawing::Canvas& canvas, Drawing::Pen& pen, RSBorderGeo& borderGeo) const;
108 void DrawBorderImpl(Drawing::Canvas& canvas, Drawing::Pen& pen, RSBorderGeo& borderGeo, int idx) const;
109 void DrawBorderImpl(Drawing::Canvas& canvas, Drawing::Pen& pen, RSBorderGeo& borderGeo, int idx1, int idx2) const;
111 Drawing::Canvas& canvas, Drawing::Pen& pen, RSBorderGeo& borderGeo, int idx1, int idx2, int idx3) const;
121 void DrawLeftBorder(Drawing::Canvas& canvas, Drawing::Pen
[all...]
H A Drs_mask.h46 const Drawing::Path& maskPath, const Drawing::Pen& maskPen, const Drawing::Brush& maskBrush);
61 void SetMaskPen(const Drawing::Pen& pen);
62 Drawing::Pen GetMaskPen() const;
98 Drawing::Pen maskPen_;
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/pen_napi/
H A Djs_pen.cpp33 const std::string CLASS_NAME = "Pen";
69 ROSEN_LOGE("JsPen::Init Failed to define Pen class"); in Init()
105 Pen* pen = otherPen->GetPen(); in Constructor()
136 pen_ = new Pen(); in JsPen()
139 JsPen::JsPen(const Pen& pen) in JsPen()
141 pen_ = new Pen(pen); in JsPen()
156 Pen* pen = jsPen->GetPen(); in SetColor()
210 Pen* pen = jsPen->GetPen(); in SetStrokeWidth()
233 Pen* pen = jsPen->GetPen(); in SetAntiAlias()
255 Pen* pe in SetAlpha()
[all...]
H A Djs_pen.h29 explicit JsPen(const Pen& pen);
63 Pen* GetPen();
68 Pen* pen_;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/recording/
H A Drecording_handle.h98 Pen::CapStyle capStyle = Pen::CapStyle::FLAT_CAP;
99 Pen::JoinStyle joinStyle = Pen::JoinStyle::MITER_JOIN;
126 Pen::CapStyle capStyle = Pen::CapStyle::FLAT_CAP;
127 Pen::JoinStyle joinStyle = Pen::JoinStyle::MITER_JOIN;
H A Dmask_cmd_list.h38 MaskPlayer(std::shared_ptr<Path>& path, Brush& brush, Pen& pen, const CmdList& cmdList);
49 Pen& pen_;
79 bool Playback(std::shared_ptr<Path>& path, Pen& pen, Brush& brush) const;
117 void Playback(Pen& pen, const CmdList& cmdList) const;
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_paint_test.cpp108 Pen pen; in HWTEST_F()
123 Pen pen; in HWTEST_F()
125 pen.SetCapStyle(Pen::CapStyle::SQUARE_CAP); in HWTEST_F()
126 pen.SetJoinStyle(Pen::JoinStyle::ROUND_JOIN); in HWTEST_F()
140 Pen pen; in HWTEST_F()
146 pen.SetCapStyle(Pen::CapStyle::ROUND_CAP); in HWTEST_F()
147 pen.SetJoinStyle(Pen::JoinStyle::BEVEL_JOIN); in HWTEST_F()
184 paint.SetCapStyle(Pen::CapStyle::ROUND_CAP); in HWTEST_F()
185 paint.SetJoinStyle(Pen::JoinStyle::BEVEL_JOIN); in HWTEST_F()
192 paint2.SetCapStyle(Pen in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/
H A Dpen_test.cpp33 Pen pen; in TestPenColor()
65 Pen pen; in TestPenAlpha()
91 Pen pen; in TestPenWidth()
111 Pen pen; in TestPenMiterLimit()
148 Pen pen; in TestPenCapStyle()
157 pen.SetCapStyle(Pen::CapStyle::FLAT_CAP); in TestPenCapStyle()
164 pen.SetCapStyle(Pen::CapStyle::SQUARE_CAP); in TestPenCapStyle()
171 pen.SetCapStyle(Pen::CapStyle::ROUND_CAP); in TestPenCapStyle()
180 Pen pen; in TestPenJoinStyle()
186 pen.SetJoinStyle(Pen in TestPenJoinStyle()
[all...]
H A Dpath_test.cpp57 Pen pen; in TestDrawStar()
122 Pen pen; in TestMoveTo()
154 Pen pen; in TestLineTo()
172 Pen pen; in TestArcTo()
196 Pen pen; in TestCubicTo()
221 Pen pen; in TestQuadTo()
238 Pen pen; in TestAddRect()
241 pen.SetCapStyle(Pen::CapStyle::SQUARE_CAP); in TestAddRect()
267 Pen pen; in TestAddOval()
296 Pen pe in TestAddArc()
[all...]
H A Dpath_effect_test.cpp25 Pen pen; in TestDrawDashPathEffect()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing/test_case/
H A Ddraw_path_test.cpp21 Drawing::Pen pen; in OnTestFunctionCpu()
40 Drawing::Pen pen; in OnTestPerformance()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_paint.h44 static void PenToSkPaint(const Pen& pen, SkPaint& paint);
47 static bool GetFillPath(const Pen& pen, const Path& src, Path& dst, const Rect* rect, const Matrix& matrix);
H A Dskia_paint.cpp69 void SkiaPaint::PenToSkPaint(const Pen& pen, SkPaint& paint) in PenToSkPaint()
158 if (paint.GetCapStyle() != Pen::CapStyle::DEFAULT_CAP) { in ApplyStrokeParam()
161 if (paint.GetJoinStyle() != Pen::JoinStyle::DEFAULT_JOIN) { in ApplyStrokeParam()
196 bool SkiaPaint::GetFillPath(const Pen& pen, const Path& src, Path& dst, const Rect* rect, const Matrix& matrix) in GetFillPath()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Dmask_cmd_list.cpp25 Pen defaultPen;
72 bool MaskCmdList::Playback(std::shared_ptr<Path>& path, Pen& pen, Brush& brush) const in Playback()
88 MaskPlayer::MaskPlayer(std::shared_ptr<Path>& path, Brush& brush, Pen& pen, const CmdList& cmdList) in MaskPlayer()
176 void MaskPenOpItem::Playback(Pen& pen, const CmdList& cmdList) const in Playback()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Ddrawing_forward.h26 class Pen;
49 using RSPen = Rosen::Drawing::Pen;
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/paint_fuzzer/
H A Dpaint_fuzzer.cpp51 Pen pen; in PaintFuzzTest001()
100 paint.SetCapStyle(static_cast<Pen::CapStyle>(style)); in PaintFuzzTest002()
102 paint.SetJoinStyle(static_cast<Pen::JoinStyle>(style)); in PaintFuzzTest002()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_property_drawable_bounds_geometry.h62 explicit RSBorderDrawable(Drawing::Brush&& brush, Drawing::Pen&& pen) in RSBorderDrawable()
70 Drawing::Pen pen_;
75 explicit RSBorderDRRectDrawable(Drawing::Brush&& brush, Drawing::Pen&& pen,
89 explicit RSBorderFourLineDrawable(Drawing::Brush&& brush, Drawing::Pen&& pen,
102 explicit RSBorderPathDrawable(Drawing::Brush&& brush, Drawing::Pen&& pen,
115 explicit RSBorderFourLineRoundCornerDrawable(Drawing::Brush&& brush, Drawing::Pen&& pen,
131 explicit RSOutlineDrawable(Drawing::Brush&& brush, Drawing::Pen&& pen) in RSOutlineDrawable()
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/export/rosen_text/
H A Dtext_style.h101 std::optional<Drawing::Pen> foregroundPen;
103 std::optional<Drawing::Pen> backgroundPen;
104 // if Pen and SkPaint are setting, use pen first

Completed in 11 milliseconds

1234