Home
last modified time | relevance | path

Searched refs:lineCap (Results 1 - 25 of 51) sorted by relevance

123

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/divider/
H A Ddivider_modifier.cpp42 LineCap lineCap = LineCap(lineCap_->Get()); in onDraw() local
44 lineCap = lineCap == LineCap::BUTT ? LineCap::SQUARE : lineCap; in onDraw()
47 strokeWidth_->Get(), dividerLength_->Get(), vertical_->Get(), color_->Get().ToColor(), lineCap); in onDraw()
H A Ddivider_modifier.h50 void SetLineCap(LineCap lineCap) in SetLineCap() argument
52 lineCap_->Set(static_cast<int>(lineCap)); in SetLineCap()
/foundation/arkui/ace_engine/frameworks/core/components/divider/
H A Ddivider_component.h71 void SetLineCap(LineCap lineCap) in SetLineCap() argument
73 lineCap_ = lineCap; in SetLineCap()
/foundation/arkui/ace_engine/test/mock/core/render/
H A Dmock_drawing_convertor.cpp34 RSPen::CapStyle ToRSCapStyle(const LineCap& lineCap) in ToRSCapStyle() argument
37 switch (lineCap) { in ToRSCapStyle()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Ddivider_painter.h30 std::optional<LineCap> lineCap) in DividerPainter()
32 dividerColor_(dividerColor), lineCap_(lineCap) in DividerPainter()
29 DividerPainter(float constrainStrokeWidth, float dividerLength, bool vertical, std::optional<Color> dividerColor, std::optional<LineCap> lineCap) DividerPainter() argument
H A Dshape_painter.cpp39 int lineCap = shapePaintProperty.GetStrokeLineCapValue(); in SetPen() local
40 if (static_cast<int>(RSPen::CapStyle::FLAT_CAP) == lineCap) { in SetPen()
42 } else if (static_cast<int>(shapePaintProperty.SQUARE_CAP) == lineCap) { in SetPen()
H A Ddrawing_prop_convertor.h28 RSPen::CapStyle ToRSCapStyle(const LineCap& lineCap);
H A Ddrawing_prop_convertor.cpp48 RSPen::CapStyle ToRSCapStyle(const LineCap& lineCap) in ToRSCapStyle() argument
51 switch (lineCap) { in ToRSCapStyle()
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/depiction/
H A Ddepict_stroke.h55 void SetLineCap(LineCap lineCap) in SetLineCap()
57 BaseType::GetGenerator().SetLineCap(lineCap); in SetLineCap()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_divider.cpp55 void JSDivider::SetLineCap(int lineCap) in SetLineCap() argument
59 if (static_cast<int>(LineCap::SQUARE) == lineCap) { in SetLineCap()
61 } else if (static_cast<int>(LineCap::ROUND) == lineCap) { in SetLineCap()
107 JSClass<JSDivider>::StaticMethod("lineCap", &JSDivider::SetLineCap, opt); in JSBind()
H A Djs_divider.h28 static void SetLineCap(int lineCap);
H A Djs_shape.h40 static void SetStrokeLineCap(int lineCap);
H A Djs_shape_abstract.h33 static void SetStrokeLineCap(int lineCap);
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Ddivider_modifier.cpp40 void SetDividerLineCap(ArkUINodeHandle node, int32_t lineCap) in SetDividerLineCap() argument
45 if (static_cast<int>(LineCap::SQUARE) == lineCap) { in SetDividerLineCap()
47 } else if (static_cast<int>(LineCap::ROUND) == lineCap) { in SetDividerLineCap()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dsk_painter.cpp89 int lineCap = shapePaintProperty.GetStrokeLineCapValue(); in SetPen() local
90 if (static_cast<int>(LineCapStyle::ROUND) == lineCap) { in SetPen()
92 } else if (static_cast<int>(LineCapStyle::SQUARE) == lineCap) { in SetPen()
162 int lineCap = shapePaintProperty.GetStrokeLineCapValue(); in SetPen() local
163 if (static_cast<int>(LineCapStyle::ROUND) == lineCap) { in SetPen()
165 } else if (static_cast<int>(LineCapStyle::SQUARE) == lineCap) { in SetPen()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/
H A Ddrawing_painter.cpp60 int lineCap = shapePaintProperty.GetStrokeLineCapValue(); in SetPen() local
61 if (static_cast<int>(LineCapStyle::ROUND) == lineCap) { in SetPen()
63 } else if (static_cast<int>(LineCapStyle::SQUARE) == lineCap) { in SetPen()
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Ddivider_composed_element.cpp29 { "lineCap", [](const DividerComposedElement& inspector) { return inspector.GetDividerLineCap(); } },
44 std::string("lineCap: ").append(GetDividerLineCap().c_str())); in Dump()
80 auto lineCap = renderDivider ? renderDivider->GetLineCap() : LineCap::BUTT; in GetDividerLineCap() local
81 return ConvertLineCapToString(lineCap); in GetDividerLineCap()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_paint_property.h103 std::array<std::string, 3> lineCap = { "LineCapStyle.Butt", "LineCapStyle.Round", "LineCapStyle.Square" }; variable
104 json->PutExtAttr("strokeLineCap", lineCap.at(propStrokeLineCap_.value_or(0) % 3).c_str(), filter);
/foundation/arkui/ace_engine/test/unittest/core/pattern/divider/old_cases/
H A Ddivider_test_ng.cpp40 std::optional<Ace::LineCap> lineCap = std::nullopt; member
69 testProperty.lineCap = LINE_CAP; in SetUpTestCase()
89 if (testProperty.lineCap.has_value()) { in CreateDividerNode()
90 DividerModelNG().LineCap(testProperty.lineCap.value()); in CreateDividerNode()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dpaint_state.h336 void SetLineCap(LineCapStyle lineCap) in SetLineCap() argument
338 lineCap_ = lineCap; in SetLineCap()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_divider_bridge.cpp59 int32_t lineCap = lineCapArg->Int32Value(vm); in SetLineCap() local
60 GetArkUINodeModifiers()->getDividerModifier()->setDividerLineCap(nativeNode, lineCap); in SetLineCap()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_shape_ffi.h47 CJ_EXPORT void FfiOHOSAceFrameworkShapeSetStrokeLineCap(int32_t lineCap);
H A Dcj_shape_ffi.cpp134 void FfiOHOSAceFrameworkShapeSetStrokeLineCap(int32_t lineCap) in FfiOHOSAceFrameworkShapeSetStrokeLineCap() argument
136 ShapeModel::GetInstance()->SetStrokeLineCap(static_cast<int32_t>(LINE_CAP_STYLE_LIST[lineCap])); in FfiOHOSAceFrameworkShapeSetStrokeLineCap()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/
H A Dcanvas_renderer.h54 void SetLineCap(const LineCapStyle lineCap);
/foundation/graphic/graphic_utils_lite/frameworks/diagram/common/
H A Dpaint.cpp136 void Paint::SetLineCap(LineCap lineCap) in SetLineCap() argument
138 lineCap_ = lineCap; in SetLineCap()

Completed in 9 milliseconds

123