Home
last modified time | relevance | path

Searched refs:opacity (Results 1 - 25 of 249) sorted by relevance

12345678910

/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Dtab_bar_size_animation.h34 constexpr ItemAnimationProp(Dimension fontSize, double opacity) : fontSize(fontSize), opacity(opacity) {} in ItemAnimationProp()
37 return { fontSize + prop.fontSize, opacity + prop.opacity }; in operator +()
41 return { fontSize - prop.fontSize, opacity - prop.opacity }; in operator -()
45 return { fontSize * value, opacity * value }; in operator *()
49 double opacity = 0; member
/foundation/arkui/ui_lite/frameworks/engines/gfx/
H A Dsoft_engine.cpp32 OpacityType opacity, in DrawArc()
35 DrawArc::GetInstance()->Draw(dst, arcInfo, mask, style, opacity, cap); in DrawArc()
44 OpacityType opacity) in DrawLine()
46 DrawLine::Draw(dst, start, end, mask, width, color, opacity); in DrawLine()
68 OpacityType opacity) in DrawCubicBezier()
70 DrawCurve::DrawCubicBezier(dst, start, control1, control2, end, mask, width, color, opacity); in DrawCubicBezier()
77 OpacityType opacity) in DrawRect()
79 DrawRect::Draw(dst, rect, dirtyRect, style, opacity); in DrawRect()
86 OpacityType opacity, in DrawTransform()
90 DrawUtils::GetInstance()->DrawTransform(dst, mask, position, color, opacity, transMa in DrawTransform()
28 DrawArc(BufferInfo& dst, ArcInfo& arcInfo, const Rect& mask, const Style& style, OpacityType opacity, uint8_t cap) DrawArc() argument
38 DrawLine(BufferInfo& dst, const Point& start, const Point& end, const Rect& mask, int16_t width, ColorType color, OpacityType opacity) DrawLine() argument
60 DrawCubicBezier(BufferInfo& dst, const Point& start, const Point& control1, const Point& control2, const Point& end, const Rect& mask, int16_t width, ColorType color, OpacityType opacity) DrawCubicBezier() argument
73 DrawRect(BufferInfo& dst, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opacity) DrawRect() argument
82 DrawTransform(BufferInfo& dst, const Rect& mask, const Point& position, ColorType color, OpacityType opacity, const TransformMap& transMap, const TransformDataInfo& dataInfo) DrawTransform() argument
112 Fill(BufferInfo& dst, const Rect& fillArea, const ColorType color, const OpacityType opacity) Fill() argument
[all...]
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_line.cpp65 OpacityType opacity) in Draw()
67 if ((width == 0) || (opacity == OPA_TRANSPARENT)) { in Draw()
87 DrawHorizontalLine(gfxDstBuffer, start, end, mask, width, color, opacity); in Draw()
89 DrawVerticalLine(gfxDstBuffer, start, end, mask, width, color, opacity); in Draw()
91 DrawWuLine(gfxDstBuffer, start, end, mask, width, color, opacity); in Draw()
101 OpacityType opacity) in DrawVerticalLine()
117 DrawUtils::GetInstance()->DrawColorArea(gfxDstBuffer, rect, mask, color, opacity); in DrawVerticalLine()
125 OpacityType opacity) in DrawHorizontalLine()
141 DrawUtils::GetInstance()->DrawColorArea(gfxDstBuffer, rect, mask, color, opacity); in DrawHorizontalLine()
145 const Rect& mask, int16_t width, const ColorType& color, OpacityType opacity) in DrawWuLine()
59 Draw(BufferInfo& gfxDstBuffer, const Point& start, const Point& end, const Rect& mask, int16_t width, const ColorType& color, OpacityType opacity) Draw() argument
95 DrawVerticalLine(BufferInfo& gfxDstBuffer, const Point& start, const Point& end, const Rect& mask, int16_t width, const ColorType& color, OpacityType opacity) DrawVerticalLine() argument
120 DrawHorizontalLine(BufferInfo& gfxDstBuffer, const Point& start, const Point& end, const Rect& mask, int16_t width, const ColorType& color, OpacityType opacity) DrawHorizontalLine() argument
144 DrawWuLine(BufferInfo& gfxDstBuffer, const Point& start, const Point& end, const Rect& mask, int16_t width, const ColorType& color, OpacityType opacity) DrawWuLine() argument
440 DrawThinWuLine(BufferInfo& gfxDstBuffer, const Point& start, const Point& end, const Rect& mask, int16_t width, const ColorType& color, OpacityType opacity) DrawThinWuLine() argument
[all...]
H A Ddraw_line.h27 int16_t width, const ColorType& color, OpacityType opacity);
31 const Rect& mask, int16_t width, const ColorType& color, OpacityType opacity);
34 const Rect& mask, int16_t width, const ColorType& color, OpacityType opacity);
37 const Rect& mask, int16_t width, const ColorType& color, OpacityType opacity);
40 int16_t width, const ColorType& color, OpacityType opacity);
H A Ddraw_curve.cpp23 int16_t width, const ColorType& color, OpacityType opacity) in DrawCubicBezier()
25 if ((width == 0) || (opacity == OPA_TRANSPARENT)) { in DrawCubicBezier()
37 BaseGfxEngine::GetInstance()->DrawLine(gfxDstBuffer, prePoint, point, mask, width, color, opacity); in DrawCubicBezier()
21 DrawCubicBezier(BufferInfo& gfxDstBuffer, const Point& start, const Point& control1, const Point& control2, const Point& end, const Rect& mask, int16_t width, const ColorType& color, OpacityType opacity) DrawCubicBezier() argument
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_svg_painter.h42 double opacity = 1.0; member
59 uint8_t opacity = UINT8_MAX; member
75 SkPaint& skPaint, const FillState& fillState, uint8_t opacity = UINT8_MAX, bool antiAlias = true);
77 uint8_t opacity = UINT8_MAX, bool antiAlias = true);
81 SkPaint& skPaint, const StrokeState& strokeState, uint8_t opacity = UINT8_MAX, bool antiAlias = true);
83 uint8_t opacity = UINT8_MAX, bool antiAlias = true);
92 RSBrush& brush, const FillState& fillState, uint8_t opacity = UINT8_MAX, bool antiAlias = true);
94 const FillState& fillState, uint8_t opacity = UINT8_MAX, bool antiAlias = true);
98 uint8_t opacity = UINT8_MAX, bool antiAlias = true);
100 const StrokeState& strokeState, uint8_t opacity
[all...]
H A Drosen_svg_painter.cpp80 void RosenSvgPainter::SetFillStyle(SkPaint& skPaint, const FillState& fillState, uint8_t opacity, bool antiAlias) in SetFillStyle() argument
82 double curOpacity = fillState.GetOpacity().GetValue() * opacity * (1.0f / UINT8_MAX); in SetFillStyle()
93 const FillState& fillState, uint8_t opacity, bool antiAlias) in SetFillStyle()
95 double curOpacity = fillState.GetOpacity().GetValue() * opacity * (1.0f / UINT8_MAX); in SetFillStyle()
107 SkCanvas* skCanvas, const SkPath& skPath, const FillState& fillState, uint8_t opacity, bool antiAlias) in SetFillStyle()
113 SetFillStyle(paint, fillState, opacity, antiAlias); in SetFillStyle()
118 const FillState& fillState, uint8_t opacity, bool antiAlias) in SetFillStyle()
124 SetFillStyle(brush, fillState, opacity, antiAlias); in SetFillStyle()
132 void RosenSvgPainter::SetGradientStyle(SkPaint& skPaint, const FillState& fillState, double opacity) in SetGradientStyle() argument
147 gradientColor.GetColor().BlendOpacity(gradientColor.GetOpacity()).BlendOpacity(opacity) in SetGradientStyle()
92 SetFillStyle(RSBrush& brush, const FillState& fillState, uint8_t opacity, bool antiAlias) SetFillStyle() argument
106 SetFillStyle( SkCanvas* skCanvas, const SkPath& skPath, const FillState& fillState, uint8_t opacity, bool antiAlias) SetFillStyle() argument
117 SetFillStyle(RSCanvas* canvas, const RSPath& path, const FillState& fillState, uint8_t opacity, bool antiAlias) SetFillStyle() argument
170 SetGradientStyle(RSBrush& brush, const FillState& fillState, double opacity) SetGradientStyle() argument
256 SetStrokeStyle(SkPaint& skPaint, const StrokeState& strokeState, uint8_t opacity, bool antiAlias) SetStrokeStyle() argument
281 SetStrokeStyle(RSPen& pen, const StrokeState& strokeState, uint8_t opacity, bool antiAlias) SetStrokeStyle() argument
308 SetStrokeStyle( SkCanvas* skCanvas, const SkPath& skPath, const StrokeState& strokeState, uint8_t opacity, bool antiAlias) SetStrokeStyle() argument
321 SetStrokeStyle(RSCanvas* canvas, const RSPath& path, const StrokeState& strokeState, uint8_t opacity, bool antiAlias) SetStrokeStyle() argument
[all...]
/foundation/arkui/ace_engine/test/unittest/core/manager/
H A Ddrag_drop_func_wrapper_test_ng.cpp134 * @tc.steps: step1. construct a lambda function, set drag preview opacity is 0.3f in HWTEST_F()
153 * @tc.expected: step3. opacity in DragPreviewOption is equal to 0.3f. in HWTEST_F()
156 EXPECT_EQ(option.options.opacity, PARA_OPACITY_VALUE_1); in HWTEST_F()
168 * @tc.steps: step1. construct a lambda function, don't set drag preview opacity in HWTEST_F()
179 * @tc.expected: step3. opacity in DragPreviewOption is equal to 0.95f. in HWTEST_F()
182 EXPECT_EQ(option.options.opacity, DEFAULT_OPACITY); in HWTEST_F()
194 * @tc.steps: step1. construct a lambda function, set drag preview opacity is 0.0f in HWTEST_F()
213 * @tc.expected: step3. opacity in DragPreviewOption is equal to 0.95f. in HWTEST_F()
216 EXPECT_EQ(option.options.opacity, DEFAULT_OPACITY); in HWTEST_F()
228 * @tc.steps: step1. construct a lambda function, set drag preview opacity i in HWTEST_F()
[all...]
/foundation/arkui/ui_lite/frameworks/engines/gfx/hi3516/
H A Dhi3516_engine.cpp32 const OpacityType opacity) in Fill()
35 if ((opacity != OPA_OPAQUE) && (fillArea.GetSize() >= HARDWARE_ACC_SIZE_LIMIT)) { in Fill()
42 if (GfxEngines::GetInstance()->GfxFillArea(data, fillArea, color, opacity)) { in Fill()
47 SoftEngine::Fill(dst, fillArea, color, opacity); in Fill()
29 Fill(BufferInfo& dst, const Rect& fillArea, const ColorType color, const OpacityType opacity) Fill() argument
/foundation/arkui/ace_engine/frameworks/core/components/declaration/svg/
H A Dsvg_base_declaration.h29 double opacity = 1.0; member
45 fillState.SetOpacity(parent.opacity); in InheritFromUse()
46 opacity = parent.opacity; in InheritFromUse()
48 opacity = 1.0; // default opacity is 1.0 in InheritFromUse()
60 opacity = parent.opacity; in Inherit()
62 opacity = 1.0; // default opacity i in Inherit()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/display/
H A Ddisplay_component.h65 void SetOpacity(double opacity, const AnimationOption& animationOption = AnimationOption()) in SetOpacity() argument
67 opacity_ = AnimatableDouble(opacity, animationOption); in SetOpacity()
90 void SetTransition(TransitionType type, double opacity) in SetTransition() argument
94 disappearingOpacity_ = opacity; in SetTransition()
97 appearingOpacity_ = opacity; in SetTransition()
101 disappearingOpacity_ = opacity; in SetTransition()
102 appearingOpacity_ = opacity; in SetTransition()
H A Drender_display.h61 void UpdateOpacity(uint8_t opacity) override
65 callback(opacity); variable
69 if (opacity_ != opacity) {
70 opacity_ = opacity;
128 void CreateAppearingAnimation(uint8_t opacity, int32_t limit);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_qrcode.cpp92 double opacity = 1.0; in SetContentOpacity() local
93 if (!ParseJsDouble(info[0], opacity)) { in SetContentOpacity()
94 opacity = 1.0; in SetContentOpacity()
96 if (LessNotEqual(opacity, 0.0) || GreatNotEqual(opacity, 1.0)) { in SetContentOpacity()
97 opacity = 1.0; in SetContentOpacity()
99 QRCodeModel::GetInstance()->SetContentOpacity(opacity); in SetContentOpacity()
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscroll_fade_effect.cpp35 fadeController_->SetCallback([weakFade = AceType::WeakClaim(this)](double opacity, double scale) { in ResetFadeEffect()
38 fade->SetOpacityAndScale(opacity, scale); in ResetFadeEffect()
113 fadeController_->SetCallback([weakFade = AceType::WeakClaim(this)](double opacity, double scale) { in HandleOverScroll()
116 fade->SetOpacityAndScale(opacity, scale); in HandleOverScroll()
133 void ScrollFadeEffect::SetOpacityAndScale(double opacity, double scale) in SetOpacityAndScale() argument
136 fadePainter_->SetOpacity(opacity); in SetOpacityAndScale()
/foundation/arkui/ui_lite/interfaces/innerkits/engines/gfx/
H A Dsoft_engine.h28 OpacityType opacity,
37 OpacityType opacity) override;
55 OpacityType opacity) override;
61 OpacityType opacity) override;
67 OpacityType opacity,
80 void Fill(BufferInfo& dst, const Rect& fillArea, const ColorType color, const OpacityType opacity) override;
H A Dgfx_engine_manager.h56 OpacityType opacity; member
85 OpacityType opacity,
96 OpacityType opacity) = 0;
114 OpacityType opacity) = 0;
117 DrawRect(BufferInfo& dst, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opacity) = 0;
123 OpacityType opacity,
136 virtual void Fill(BufferInfo& dst, const Rect& fillArea, const ColorType color, const OpacityType opacity) = 0;
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
H A Doverlay_dialog_transition_test_ng.cpp236 double opacity = 1.0; in HWTEST_F() local
237 auto appearOpacityTransition = AceType::MakeRefPtr<NG::ChainedOpacityEffect>(opacity); in HWTEST_F()
274 double opacity = 1.0; in HWTEST_F() local
275 auto appearOpacityTransition = AceType::MakeRefPtr<NG::ChainedOpacityEffect>(opacity); in HWTEST_F()
319 double opacity = 1.0; in HWTEST_F() local
320 auto appearOpacityTransition = AceType::MakeRefPtr<NG::ChainedOpacityEffect>(opacity); in HWTEST_F()
370 double opacity = 1.0; in HWTEST_F() local
371 auto appearOpacityTransition = AceType::MakeRefPtr<NG::ChainedOpacityEffect>(opacity); in HWTEST_F()
426 double opacity = 1.0; in HWTEST_F() local
427 auto appearOpacityTransition = AceType::MakeRefPtr<NG::ChainedOpacityEffect>(opacity); in HWTEST_F()
482 double opacity = 1.0; HWTEST_F() local
538 double opacity = 1.0; HWTEST_F() local
594 double opacity = 1.0; HWTEST_F() local
652 double opacity = 1.0; HWTEST_F() local
714 double opacity = 1.0; HWTEST_F() local
773 double opacity = 1.0; HWTEST_F() local
838 double opacity = 1.0; HWTEST_F() local
889 double opacity = 1.0; HWTEST_F() local
958 double opacity = 1.0; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dqrcode_modifier.cpp55 void SetContentOpacity(ArkUINodeHandle node, ArkUI_Float32 opacity) in SetContentOpacity() argument
59 // The minimum value of opacity is 0 and the maximum value is 1. in SetContentOpacity()
60 if (LessNotEqual(opacity, 0.0) || GreatNotEqual(opacity, 1.0)) { in SetContentOpacity()
63 QRCodeModelNG::SetContentOpacity(frameNode, opacity); in SetContentOpacity()
H A Dvideo_modifier.cpp96 void SetVideoOpacity(ArkUINodeHandle node, ArkUI_Float32 opacity) in SetVideoOpacity() argument
100 if ((LessNotEqual(opacity, 0.0)) || opacity > 1) { in SetVideoOpacity()
101 opacity = 1.0f; in SetVideoOpacity()
103 ViewAbstract::SetOpacity(frameNode, opacity); in SetVideoOpacity()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/effect/
H A Dscroll_fade_effect.cpp33 fadeController_->SetCallback([weakFade = AceType::WeakClaim(this)](double opacity, double scale) { in ResetFadeEffect()
36 fade->SetOpacityAndScale(opacity, scale); in ResetFadeEffect()
138 fadeController_->SetCallback([weakFade = AceType::WeakClaim(this)](double opacity, double scale) { in HandleOverScroll()
141 fade->SetOpacityAndScale(opacity, scale); in HandleOverScroll()
157 void ScrollFadeEffect::SetOpacityAndScale(float opacity, float scale) in SetOpacityAndScale() argument
160 fadePainter_->SetOpacity(opacity); in SetOpacityAndScale()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtabs_controller.h27 using SetTabBarOpacityFunc = std::function<void(float opacity)>;
89 void SetTabBarOpacity(float opacity) in SetTabBarOpacity() argument
92 setTabBarOpacityImpl_(opacity); in SetTabBarOpacity()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_transitioneffect.h70 double opacity = number; in Opacity() local
71 if ((LessNotEqual(opacity, 0.0)) || opacity > 1.0) { in Opacity()
72 opacity = 1.0; in Opacity()
74 return AceType::MakeRefPtr<NG::ChainedOpacityEffect>(opacity); in Opacity()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/qrcode/
H A Dqrcode_model_ng.cpp62 void QRCodeModelNG::SetContentOpacity(const double opacity) in SetContentOpacity() argument
64 ACE_UPDATE_PAINT_PROPERTY(QRCodePaintProperty, Opacity, opacity); in SetContentOpacity()
109 void QRCodeModelNG::SetContentOpacity(FrameNode* frameNode, const double opacity) in SetContentOpacity() argument
111 ACE_UPDATE_NODE_PAINT_PROPERTY(QRCodePaintProperty, Opacity, opacity, frameNode); in SetContentOpacity()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_abstract_model_ng.cpp67 void ShapeAbstractModelNG::SetStrokeOpacity(double opacity) in SetStrokeOpacity() argument
69 ACE_UPDATE_PAINT_PROPERTY(ShapePaintProperty, StrokeOpacity, opacity); in SetStrokeOpacity()
72 void ShapeAbstractModelNG::SetFillOpacity(double opacity) in SetFillOpacity() argument
74 ACE_UPDATE_PAINT_PROPERTY(ShapePaintProperty, FillOpacity, std::clamp(opacity, 0.0, 1.0)); in SetFillOpacity()
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_attributes_parser.h103 double opacity = 1.0; member
119 fillState.SetOpacity(parent.opacity); in InheritFromUse()
120 opacity = parent.opacity; in InheritFromUse()
122 opacity = 1.0; // default opacity is 1.0 in InheritFromUse()
134 opacity = parent.opacity; in Inherit()
136 opacity = 1.0; // default opacity i in Inherit()
[all...]

Completed in 12 milliseconds

12345678910