/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/ |
H A D | drag_bar_paint_method.cpp | 66 RSPen pen; in Paint() local 67 pen.SetAntiAlias(true); in Paint() 70 pen.SetAlpha(alpha_ * opacity); in Paint() 71 pen.SetColor(ToRSColor(dragBarTheme->GetDragBarColor())); in Paint() 72 pen.SetWidth(BAR_WIDTH.ConvertToPx() * scaleWidth_); in Paint() 73 pen.SetCapStyle(RSPen::CapStyle::ROUND_CAP); in Paint() 74 canvas.AttachPen(pen); in Paint()
|
/foundation/arkui/ace_engine/frameworks/core/components/arc/ |
H A D | rosen_render_arc.cpp | 81 RSPen pen; in Paint() local 82 pen.SetAntiAlias(true); in Paint() 83 pen.SetColor(color_.GetValue()); in Paint() 84 pen.SetWidth(width_); in Paint() 85 pen.SetCapStyle(RSPen::CapStyle::ROUND_CAP); in Paint() 91 pen.SetFilter(filter); in Paint() 93 canvas->AttachPen(pen); in Paint()
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/customcomponent/ |
H A D | customcomponent_ondraw_test.cpp | 50 OH_Drawing_Pen *pen = OH_Drawing_PenCreate(); in OnEventReceive() local 52 OH_Drawing_PenSetAntiAlias(pen, true); in OnEventReceive() 53 OH_Drawing_PenSetColor(pen, COLOR_BLUE); in OnEventReceive() 54 OH_Drawing_PenSetWidth(pen, SIZE_30); in OnEventReceive() 55 OH_Drawing_CanvasAttachPen(canvas, pen); in OnEventReceive() 57 OH_Drawing_PenDestroy(pen); in OnEventReceive() 58 pen = nullptr; in OnEventReceive()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_split/ |
H A D | linear_split_paint_method.cpp | 41 RSPen pen; in PaintContent() local 42 pen.SetColor(ToRSColor(Color(LINEAR_SPLIT_COLOR))); in PaintContent() 43 pen.SetAntiAlias(true); in PaintContent() 44 pen.SetWidth(static_cast<float>(DEFAULT_SPLIT_HEIGHT)); in PaintContent() 45 canvas.AttachPen(pen); in PaintContent()
|
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/ |
H A D | bitmap_test.cpp | 38 Pen pen; in TestDrawBitmap() local 39 pen.SetAntiAlias(true); in TestDrawBitmap() 40 pen.SetColor(Drawing::Color::COLOR_BLUE); in TestDrawBitmap() 41 pen.SetWidth(STROKE_WIDTH); // The thickness of the pen is 10 in TestDrawBitmap() 42 canvas.AttachPen(pen); in TestDrawBitmap()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | arcofzorro.cpp | 51 // 创建画笔pen对象 in OnTestFunction() 52 OH_Drawing_Pen *pen = OH_Drawing_PenCreate(); in OnTestFunction() local 53 OH_Drawing_PenSetWidth(pen, 35); // stroke width is 35 in OnTestFunction() 58 OH_Drawing_PenSetColor(pen, color); in OnTestFunction() 61 OH_Drawing_CanvasAttachPen(canvas, pen); in OnTestFunction() 93 OH_Drawing_PenDestroy(pen); in OnTestFunction()
|
H A D | clip_cubic.cpp | 41 OH_Drawing_Pen* pen = OH_Drawing_PenCreate(); in DoDraw() local 44 OH_Drawing_PenSetAntiAlias(pen, true); in DoDraw() 50 OH_Drawing_PenSetColor(pen, OH_Drawing_ColorSetArgb(0xFF, 0xFF, 0x00, 0x00)); in DoDraw() 51 OH_Drawing_PenSetAntiAlias(pen, true); in DoDraw() 52 OH_Drawing_CanvasAttachPen(canvas, pen); in DoDraw() 56 OH_Drawing_PenDestroy(pen); in DoDraw()
|
H A D | shadowutils.cpp | 180 OH_Drawing_Pen* pen = OH_Drawing_PenCreate(); in draw_rect_path() local 181 OH_Drawing_PenSetAntiAlias(pen, true); in draw_rect_path() 184 OH_Drawing_PenSetColor(pen, 0xFF00FFFF); // SK_ColorCYAN in draw_rect_path() 186 OH_Drawing_PenSetColor(pen, 0xFF00FF00); // SK_ColorGREEN in draw_rect_path() 188 OH_Drawing_PenSetWidth(pen, 0); in draw_rect_path() 189 OH_Drawing_CanvasAttachPen(canvas, pen); in draw_rect_path() 199 OH_Drawing_PenDestroy(pen); in draw_rect_path() 286 OH_Drawing_Pen* pen = OH_Drawing_PenCreate(); in draw_star() local 287 OH_Drawing_PenSetAntiAlias(pen, true); in draw_star() 289 OH_Drawing_PenSetColor(pen, in draw_star() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/radio/ |
H A D | radio_paint_method.cpp | 217 RSPen pen; in PaintRadio() local 221 pen.SetAntiAlias(true); in PaintRadio() 222 pen.SetWidth(borderWidth_); in PaintRadio() 275 pen.SetColor(ToRSColor(inactiveColor_->Get().BlendOpacity(alphaCalculate))); in PaintRadio() 278 pen.SetColor(ToRSColor(inactiveColor_->Get())); in PaintRadio() 284 canvas.AttachPen(pen); in PaintRadio() 293 RSPen pen; in PaintUnselectedIndicator() local 295 pen.SetAntiAlias(true); in PaintUnselectedIndicator() 296 pen.SetWidth(borderWidth_); in PaintUnselectedIndicator() 305 pen in PaintUnselectedIndicator() 326 RSPen pen; PaintIndicator() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/button/ |
H A D | rosen_render_button.cpp | 243 RSPen pen; in DrawShape() local 246 pen.SetColor(needFocusColor_ ? focusColorValue : borderColorValue); in DrawShape() 247 pen.SetWidth(NormalizeToPx(borderEdge_.GetWidth())); in DrawShape() 248 pen.SetAntiAlias(true); in DrawShape() 261 canvas->AttachPen(pen); in DrawShape() 356 RSPen pen; in DrawCircleProgress() local 357 pen.SetAntiAlias(true); in DrawCircleProgress() 358 pen.SetColor(progressColor_.GetValue()); in DrawCircleProgress() 359 pen.SetWidth(NormalizeToPx(CIRCLE_PROGRESS_THICKNESS)); in DrawCircleProgress() 360 pen in DrawCircleProgress() 510 RSPen pen; PaintFocus() local 537 RSPen pen; PaintPopupFocus() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/checkable/ |
H A D | rosen_render_switch.cpp | 57 trackPaint.pen.SetAntiAlias(true); in Paint() 162 trackPaint.pen.SetAntiAlias(true); in PaintTrack() 163 trackPaint.pen.SetColor(trackColor); in PaintTrack() 164 canvas->AttachPen(trackPaint.pen); in PaintTrack() 196 RSPen pen; in PaintCenterPoint() local 199 pen.SetAntiAlias(true); in PaintCenterPoint() 210 SetStrokeWidth(shadowBorderWidth, pen); in PaintCenterPoint() 211 pen.SetColor(shadowColor_); in PaintCenterPoint() 217 canvas->AttachPen(pen); in PaintCenterPoint() 284 trackPaint.pen in DrawTrackOffAndOn() 428 RSPen pen; PaintFocusBorder() local [all...] |
H A D | rosen_render_checkbox.h | 34 void DrawCheck(RSCanvas* canvas, const Offset& origin, const RSPen& pen, 41 RSCanvas* canvas, const Offset& origin, uint32_t paintColor, RSPen& pen) const; 45 void DrawAnimationOffToOn(RSCanvas* canvas, const Offset& origin, const RSPen& pen, 47 void DrawAnimationOnToOff(RSCanvas* canvas, const Offset& origin, const RSPen& pen,
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/drawing_fuzzer/ |
H A D | drawing_fuzzer.cpp | 107 OH_Drawing_Pen* pen = OH_Drawing_PenCreate(); in NativeDrawingCanvasPenTest() local 108 OH_Drawing_CanvasAttachPen(canvas, pen); in NativeDrawingCanvasPenTest() 111 OH_Drawing_PenDestroy(pen); in NativeDrawingCanvasPenTest() 425 OH_Drawing_Pen* pen = OH_Drawing_PenCreate(); in NativeDrawingPenTest() local 426 OH_Drawing_PenSetAntiAlias(pen, true); in NativeDrawingPenTest() 427 OH_Drawing_PenIsAntiAlias(pen); in NativeDrawingPenTest() 428 OH_Drawing_PenSetColor(pen, OH_Drawing_ColorSetArgb(alpha, red, gree, blue)); in NativeDrawingPenTest() 429 OH_Drawing_PenGetColor(pen); in NativeDrawingPenTest() 430 OH_Drawing_PenSetWidth(pen, width); in NativeDrawingPenTest() 431 OH_Drawing_PenGetWidth(pen); in NativeDrawingPenTest() 454 OH_Drawing_Pen* pen = OH_Drawing_PenCreate(); NativeDrawingShadowLayerTest() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | rosen_render_picker_base.cpp | 98 RSPen pen; in Paint() local 99 pen.SetColor(theme->GetDividerColor().GetValue()); in Paint() 125 canvas->AttachPen(pen); in Paint() 161 RSPen pen; in PaintGradient() local 187 pen.SetShaderEffect( in PaintGradient() 189 canvas->AttachPen(pen); in PaintGradient() 229 RSPen pen; in PaintFocusOptionBorder() local 230 pen.SetColor(FOCUS_BORDER_COLOR); in PaintFocusOptionBorder() 231 pen.SetWidth(focusBorderThickness); in PaintFocusOptionBorder() 232 pen in PaintFocusOptionBorder() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_wrapper_paint_method.cpp | 54 RSPen pen; in PaintOuterBorder() local 55 SetBorderPenStyle(pen, sheetTheme->GetSheetOuterBorderWidth(), sheetTheme->GetSheetOuterBorderColor()); in PaintOuterBorder() 57 canvas.AttachPen(pen); in PaintOuterBorder() 143 RSPen pen; in PaintInnerBorder() local 144 SetBorderPenStyle(pen, sheetTheme->GetSheetInnerBorderWidth(), sheetTheme->GetSheetInnerBorderColor()); in PaintInnerBorder() 146 canvas.AttachPen(pen); in PaintInnerBorder() 153 void SheetWrapperPaintMethod::SetBorderPenStyle(RSPen& pen, const Dimension& borderWidth, const Color& borderColor) in SetBorderPenStyle() argument 157 pen.SetFilter(filter); in SetBorderPenStyle() 158 pen.SetAntiAlias(true); in SetBorderPenStyle() 159 pen in SetBorderPenStyle() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/watch_slider/ |
H A D | rosen_render_watch_slider.cpp | 68 RSPen pen; in Paint() local 69 pen.SetColor(backgroundColor_.GetValue()); in Paint() 70 canvas->AttachPen(pen); in Paint() 74 pen.SetColor(selectColor_.GetValue()); in Paint() 86 canvas->AttachPen(pen); in Paint() 105 pen.SetColor(Color::BLACK.GetValue()); in Paint() 107 canvas->AttachPen(pen); in Paint()
|
/foundation/arkui/ace_engine/frameworks/core/components/drag_bar/ |
H A D | rosen_render_drag_bar.cpp | 88 RSPen pen; in Paint() local 89 pen.SetAntiAlias(true); in Paint() 96 pen.SetAlpha(alpha_ * opacity_); in Paint() 101 pen.SetColor(barColor_.GetValue()); in Paint() 102 pen.SetWidth(barWidth_ * scaleY_ * scaleWidth_); in Paint() 103 pen.SetCapStyle(RSPen::CapStyle::ROUND_CAP); in Paint() 117 canvas->AttachPen(pen); in Paint()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkbox/ |
H A D | checkbox_paint_method.cpp | 97 RSPen pen; in PaintCheckBox() local 99 pen.SetWidth(borderWidth_); in PaintCheckBox() 100 pen.SetAntiAlias(true); in PaintCheckBox() 102 RSPen shadowPen = RSPen(pen); in PaintCheckBox() 110 pen.SetColor(ToRSColor(animatableBorderColor_->Get())); in PaintCheckBox() 112 pen.SetColor( in PaintCheckBox() 116 DrawBorder(canvas, paintOffset, pen, contentSize); in PaintCheckBox() 118 pen.SetColor(ToRSColor(animatableCheckColor_->Get())); in PaintCheckBox() 121 DrawCheck(canvas, paintOffset, pen, shadowPen, contentSize); in PaintCheckBox() 169 void CheckBoxModifier::DrawBorder(RSCanvas& canvas, const OffsetF& origin, RSPen& pen, cons argument 224 DrawCheck( RSCanvas& canvas, const OffsetF& origin, RSPen& pen, RSPen& shadowPen, const SizeF& paintSize) const DrawCheck() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | typeface_test.cpp | 52 OH_Drawing_Pen* pen = OH_Drawing_PenCreate(); in OnTestPerformance() local 62 OH_Drawing_CanvasAttachPen(canvas, pen); in OnTestPerformance() 67 OH_Drawing_PenDestroy(pen); in OnTestPerformance() 81 OH_Drawing_Pen* pen = OH_Drawing_PenCreate(); in OnTestPerformance() local 89 OH_Drawing_CanvasAttachPen(canvas, pen); in OnTestPerformance() 94 OH_Drawing_PenDestroy(pen); in OnTestPerformance()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/recording/ |
H A D | recording_canvas_test.cpp | 66 Pen pen(Color::COLOR_GREEN); in HWTEST_F() 67 recordingCanvas1->AttachPen(pen); in HWTEST_F() 68 recordingCanvas2->AttachPen(pen); in HWTEST_F() 107 Pen pen(Color::COLOR_GREEN); in HWTEST_F() 108 recordingCanvas1->AttachPen(pen); in HWTEST_F() 109 recordingCanvas2->AttachPen(pen); in HWTEST_F() 149 Pen pen(Color::COLOR_GREEN); in HWTEST_F() 150 recordingCanvas1->AttachPen(pen); in HWTEST_F() 151 recordingCanvas2->AttachPen(pen); in HWTEST_F() 190 Pen pen(Colo in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/chart/ |
H A D | rosen_render_chart.cpp | 138 RSPen pen; in PaintStylePoints() local 140 pen.SetAntiAlias(true); in PaintStylePoints() 146 PaintPoint(canvas, ConvertDataToPosition(paintRegion, point), pen, brush, point); in PaintStylePoints() 151 PaintPoint(canvas, ConvertDataToPosition(paintRegion, headPoint), pen, brush, headPoint); in PaintStylePoints() 155 PaintPoint(canvas, ConvertDataToPosition(paintRegion, topPoint), pen, brush, topPoint); in PaintStylePoints() 159 PaintPoint(canvas, ConvertDataToPosition(paintRegion, bottomPoint), pen, brush, bottomPoint); in PaintStylePoints() 234 void RosenRenderChart::SetEdgeStyle(const PointInfo& point, RSPen& pen) const in SetEdgeStyle() 236 pen.SetWidth(NormalizeToPx(point.GetPointStrokeWidth())); in SetEdgeStyle() 237 pen.SetColor(point.GetStrokeColor().GetValue()); in SetEdgeStyle() 293 RSCanvas* canvas, const Offset& offset, RSPen pen, RSBrus in PaintPoint() 292 PaintPoint( RSCanvas* canvas, const Offset& offset, RSPen pen, RSBrush brush, const PointInfo& point) PaintPoint() argument 601 RSPen pen; PaintLineEdge() local 655 RSPen pen; PaintLineGradient() local 823 RSPen pen; PaintHorizontalAxis() local 877 RSPen pen; PaintVerticalAxis() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/split_container/ |
H A D | rosen_render_column_split.cpp | 74 RSPen pen; in PaintDivider() local 80 pen.SetColor(COLUMN_SPLIT_COLOR); in PaintDivider() 81 pen.SetWidth(DEFAULT_SPLIT_HEIGHT); in PaintDivider() 82 canvas->AttachPen(pen); in PaintDivider()
|
H A D | rosen_render_row_split.cpp | 74 RSPen pen; in PaintDivider() local 80 pen.SetColor(ROW_SPLIT_COLOR); in PaintDivider() 81 pen.SetWidth(DEFAULT_SPLIT_HEIGHT); in PaintDivider() 82 canvas->AttachPen(pen); in PaintDivider()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | rosen_render_text_overlay.cpp | 154 RSPen pen; in PaintHandle() local 155 pen.SetAntiAlias(true); in PaintHandle() 156 pen.SetColor(handleColor_.GetValue()); in PaintHandle() 157 pen.SetWidth(NormalizeToPx(HANDLE_LINE_WIDTH)); in PaintHandle() 158 pen.SetCapStyle(RSPen::CapStyle::ROUND_CAP); in PaintHandle() 168 canvas->AttachPen(pen); in PaintHandle() 311 void RosenRenderTextOverlay::PaintClipLine(RSCanvas* canvas, RSPen pen) in PaintClipLine() argument 322 pen.SetWidth(NormalizeToPx(Dimension(clipWidth_, DimensionUnit::VP))); in PaintClipLine() 323 pen.SetColor(clipColor_.GetValue()); in PaintClipLine() 327 canvas->AttachPen(pen); in PaintClipLine() 456 RSPen pen; PaintMore() local [all...] |
/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeCanvasTest.cpp | 243 OH_Drawing_Pen *pen = OH_Drawing_PenCreate(); in HWTEST_F() local 244 EXPECT_NE(pen, nullptr); in HWTEST_F() 245 OH_Drawing_CanvasAttachPen(canvas, pen); in HWTEST_F() 251 OH_Drawing_PenDestroy(pen); in HWTEST_F() 269 OH_Drawing_Pen *pen = OH_Drawing_PenCreate(); in HWTEST_F() local 270 EXPECT_NE(pen, nullptr); in HWTEST_F() 273 OH_Drawing_CanvasAttachPen(nullptr, pen); in HWTEST_F() 286 OH_Drawing_PenDestroy(pen); in HWTEST_F() 304 OH_Drawing_Pen *pen = OH_Drawing_PenCreate(); in HWTEST_F() local 305 EXPECT_NE(pen, nullpt in HWTEST_F() 341 OH_Drawing_Pen *pen = OH_Drawing_PenCreate(); HWTEST_F() local 394 OH_Drawing_Pen *pen = OH_Drawing_PenCreate(); HWTEST_F() local [all...] |