Home
last modified time | relevance | path

Searched refs:AnimatableDimension (Results 1 - 25 of 43) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dedge.h48 : left_(AnimatableDimension(left, option)), top_(AnimatableDimension(top, option)), in Edge()
49 right_(AnimatableDimension(right, option)), bottom_(AnimatableDimension(bottom, option)) {} in Edge()
52 : left_(AnimatableDimension(left, option)), top_(AnimatableDimension(top, option)), in Edge()
53 right_(AnimatableDimension(right, option)), bottom_(AnimatableDimension(bottom, option)) {} in Edge()
73 const AnimatableDimension& Left() const in Left()
78 virtual void SetLeft(const AnimatableDimension
[all...]
H A Dradius.h30 explicit Radius(const AnimatableDimension& value) : Radius(value, value) {} in Radius()
33 Radius(const AnimatableDimension& x, const AnimatableDimension& y) : x_(x), y_(y) {} in Radius()
58 const AnimatableDimension& GetX() const in GetX()
63 const AnimatableDimension& GetY() const in GetY()
70 x_ = AnimatableDimension(x, option); in SetX()
75 y_ = AnimatableDimension(y, option); in SetY()
78 void SetX(const AnimatableDimension& x) in SetX()
83 void SetY(const AnimatableDimension& y) in SetY()
114 AnimatableDimension x
[all...]
H A Ddecoration.h335 std::optional<AnimatableDimension> radialHorizontalSize;
337 std::optional<AnimatableDimension> radialVerticalSize;
339 std::optional<AnimatableDimension> radialCenterX;
340 std::optional<AnimatableDimension> radialCenterY;
352 std::optional<AnimatableDimension> angle;
369 std::optional<AnimatableDimension> centerX;
371 std::optional<AnimatableDimension> centerY;
373 std::optional<AnimatableDimension> startAngle;
375 std::optional<AnimatableDimension> endAngle;
377 std::optional<AnimatableDimension> rotatio
[all...]
H A Dborder_edge.h47 const AnimatableDimension& GetWidth() const in GetWidth()
69 width_ = AnimatableDimension(width, option); in SetWidth()
72 void SetWidth(const AnimatableDimension& width) in SetWidth()
121 AnimatableDimension width_;
H A Dsvg_paint_state.h221 const AnimatableDimension& GetLineWidth() const in GetLineWidth()
228 lineWidth_ = AnimatableDimension(lineWidth, option); in SetLineWidth()
269 strokeDashOffset_ = AnimatableDimension(offset, option); in SetStrokeDashOffset()
279 const AnimatableDimension& GetStrokeDashOffset() const in GetStrokeDashOffset()
388 AnimatableDimension lineWidth_ = AnimatableDimension(1.0);
392 AnimatableDimension strokeDashOffset_;
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/
H A Dmeasurable.h28 virtual const AnimatableDimension& GetWidth() const in GetWidth()
35 width_ = AnimatableDimension(dimension, option); in SetWidth()
40 width_ = AnimatableDimension(dimension, option); in SetWidth()
45 width_ = AnimatableDimension(width, unit); in SetWidth()
50 width_ = AnimatableDimension(width, unit); in SetWidth()
53 virtual void SetWidth(const AnimatableDimension& dimension) in SetWidth()
58 virtual const AnimatableDimension& GetHeight() const in GetHeight()
65 height_ = AnimatableDimension(dimension, option); in SetHeight()
70 height_ = AnimatableDimension(dimension, option); in SetHeight()
75 height_ = AnimatableDimension(heigh in SetHeight()
[all...]
H A Drender_component.h82 positionParam_.left.first = AnimatableDimension(left); in SetLeft()
86 virtual void SetLeft(const AnimatableDimension& left) in SetLeft()
99 positionParam_.right.first = AnimatableDimension(right); in SetRight()
103 virtual void SetRight(const AnimatableDimension& right) in SetRight()
116 positionParam_.top.first = AnimatableDimension(top); in SetTop()
120 virtual void SetTop(const AnimatableDimension& top) in SetTop()
132 virtual void SetBottom(const AnimatableDimension& bottom) in SetBottom()
134 positionParam_.bottom.first = AnimatableDimension(bottom); in SetBottom()
/foundation/arkui/ace_engine/frameworks/core/components/shape/
H A Dshape_container_component.h27 ShapeViewBox(const AnimatableDimension& x, const AnimatableDimension& y, in ShapeViewBox()
28 const AnimatableDimension& width, const AnimatableDimension& height) in ShapeViewBox()
40 const AnimatableDimension& Left() const in Left()
45 const AnimatableDimension& Top() const in Top()
50 const AnimatableDimension& Width() const in Width()
55 const AnimatableDimension& Height() const in Height()
60 void SetLeft(const AnimatableDimension& left) in SetLeft()
67 x_ = AnimatableDimension(lef in SetLeft()
[all...]
H A Drender_shape.h130 void NormalToPxOfShape(AnimatableDimension sizeFromComponent, AnimatableDimension& sizeOfCurrent);
134 AnimatableDimension width_ = AnimatableDimension(-1.0, DimensionUnit::PX); // exclude margin
135 AnimatableDimension height_ = AnimatableDimension(-1.0, DimensionUnit::PX); // exclude margin
H A Drender_shape.cpp62 void RenderShape::NormalToPxOfShape(AnimatableDimension sizeFromComponent, AnimatableDimension& sizeOfCurrent) in NormalToPxOfShape()
88 width_ = AnimatableDimension(toSize.Width()); in NotifySizeTransition()
89 height_ = AnimatableDimension(toSize.Height()); in NotifySizeTransition()
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Danimatable_dimension.h30 * AnimatableDimension is a Dimension with AnimationOption and Animator.
32 class ACE_FORCE_EXPORT AnimatableDimension : public CalcDimension { class
34 AnimatableDimension() = default;
35 ~AnimatableDimension() = default;
37 explicit AnimatableDimension( in AnimatableDimension() function in OHOS::Ace::AnimatableDimension
42 explicit AnimatableDimension( in AnimatableDimension() function in OHOS::Ace::AnimatableDimension
48 explicit AnimatableDimension(const Dimension& dimension, const AnimationOption& option = AnimationOption()) in AnimatableDimension() function in OHOS::Ace::AnimatableDimension
52 explicit AnimatableDimension(const CalcDimension& dimension, const AnimationOption& option = AnimationOption()) in AnimatableDimension() function in OHOS::Ace::AnimatableDimension
98 AnimatableDimension& operator=(const Dimension& newDimension);
100 AnimatableDimension
[all...]
H A Danimatable_dimension.cpp20 AnimatableDimension& AnimatableDimension::operator=(const Dimension& newDimension) in operator =()
28 AnimatableDimension& AnimatableDimension::operator=(const CalcDimension& newDimension) in operator =()
36 AnimatableDimension& AnimatableDimension::operator=(const AnimatableDimension& newDimension) in operator =()
67 void AnimatableDimension::AnimateTo(double endValue) in AnimateTo()
86 animation->AddListener(std::bind(&AnimatableDimension::OnAnimationCallback, this, std::placeholders::_1)); in AnimateTo()
111 void AnimatableDimension
[all...]
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Danimatable_properties.h50 void SetPadding(const AnimatableDimension& value, const DimensionHelper& helper);
51 AnimatableDimension GetPadding(const DimensionHelper& helper);
52 void SetMargin(const AnimatableDimension& value, const DimensionHelper& helper);
53 AnimatableDimension GetMargin(const DimensionHelper& helper) const;
62 void SetBlurRadius(const AnimatableDimension& radius);
63 AnimatableDimension GetBlurRadius() const;
64 void SetBackdropRadius(const AnimatableDimension& radius);
65 AnimatableDimension GetBackdropRadius() const;
H A Dproperty_animatable_helper.h117 using Getter = const AnimatableDimension& (Edge::*)() const;
118 using Setter = void (Edge::*)(const AnimatableDimension&);
123 const AnimatableDimension& Get(const Edge& edge) const in Get()
128 bool Set(const AnimatableDimension& value, Edge* edge) const in Set()
133 AnimatableDimension old = Get(*edge); in Set()
H A Danimatable_properties.cpp123 animatableProperties->SetMargin(AnimatableDimension(margin->GetValue()), setter); in UpdatePropAnimation()
151 animatableProperties->SetPadding(AnimatableDimension(padding->GetValue()), setter); in UpdatePropAnimation()
203 AnimatableDimension(radius->GetValue(), DimensionUnit::PX)); in UpdatePropAnimation()
221 AnimatableDimension(radius->GetValue(), DimensionUnit::PX)); in UpdatePropAnimation()
572 void AnimatableProperties::SetPadding(const AnimatableDimension& value, const DimensionHelper& helper) in SetPadding()
581 AnimatableDimension AnimatableProperties::GetPadding(const DimensionHelper& helper) in GetPadding()
590 void AnimatableProperties::SetMargin(const AnimatableDimension& value, const DimensionHelper& helper) in SetMargin()
599 AnimatableDimension AnimatableProperties::GetMargin(const DimensionHelper& helper) const in GetMargin()
680 void AnimatableProperties::SetBlurRadius(const AnimatableDimension& radius) in SetBlurRadius()
689 AnimatableDimension AnimatablePropertie
[all...]
/foundation/arkui/ace_engine/test/unittest/base/
H A Danimatable_dimension_test.cpp38 * @tc.desc: Test the function operator= of the class AnimatableDimension.
46 AnimatableDimension animatableDimensionObj1; in HWTEST_F()
61 AnimatableDimension animatableDimensionObj2; in HWTEST_F()
66 * @tc.steps4: Call the function operator= with given AnimatableDimension object. in HWTEST_F()
69 AnimatableDimension animatableDimensionObj3; in HWTEST_F()
74 * @tc.steps5: Call the function operator= with given AnimatableDimension object. in HWTEST_F()
90 * @tc.desc: Test the function AnimateTo of the class AnimatableDimension.
99 AnimatableDimension animatableDimensionObj1; in HWTEST_F()
130 * @tc.desc: Test the function ResetController of the class AnimatableDimension.
138 AnimatableDimension animatableDimensionObj in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dposition_param.h35 std::pair<AnimatableDimension, bool> left = { AnimatableDimension(0.0, DimensionUnit::PX), false };
36 std::pair<AnimatableDimension, bool> right = { AnimatableDimension(0.0, DimensionUnit::PX), false };
37 std::pair<AnimatableDimension, bool> top = { AnimatableDimension(0.0, DimensionUnit::PX), false };
38 std::pair<AnimatableDimension, bool> bottom = { AnimatableDimension(0.0, DimensionUnit::PX), false };
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dbutton_model_impl.cpp255 buttonComponent->GetStateAttributes()->AddAttribute<AnimatableDimension>( in SetWidth()
256 ButtonStateAttribute::WIDTH, AnimatableDimension(width, option), stack->GetVisualState()); in SetWidth()
258 buttonComponent->GetStateAttributes()->AddAttribute<AnimatableDimension>(ButtonStateAttribute::WIDTH, in SetWidth()
259 AnimatableDimension(buttonComponent->GetWidth(), option), VisualState::NORMAL); in SetWidth()
275 buttonComponent->GetStateAttributes()->AddAttribute<AnimatableDimension>( in SetHeight()
276 ButtonStateAttribute::HEIGHT, AnimatableDimension(height, option), stack->GetVisualState()); in SetHeight()
278 buttonComponent->GetStateAttributes()->AddAttribute<AnimatableDimension>(ButtonStateAttribute::HEIGHT, in SetHeight()
279 AnimatableDimension(buttonComponent->GetHeight(), option), VisualState::NORMAL); in SetHeight()
312 buttonComponent->GetStateAttributes()->AddAttribute<AnimatableDimension>( in SetBorderRadius()
313 ButtonStateAttribute::RADIUS, AnimatableDimension(radiu in SetBorderRadius()
[all...]
H A Drect_model_impl.cpp58 Radius newRadius = Radius(AnimatableDimension(radiusX, option), AnimatableDimension(radiusY, option)); in SetRadiusValue()
H A Dview_abstract_model_impl.cpp58 AnimatableDimension ToAnimatableDimension(const Dimension& dimension) in ToAnimatableDimension()
60 AnimatableDimension result(dimension); in ToAnimatableDimension()
183 box->GetStateAttributes()->AddAttribute<AnimatableDimension>( in SetWidth()
184 BoxStateAttribute::WIDTH, AnimatableDimension(width, option), stack->GetVisualState()); in SetWidth()
186 box->GetStateAttributes()->AddAttribute<AnimatableDimension>( in SetWidth()
187 BoxStateAttribute::WIDTH, AnimatableDimension(box->GetWidth(), option), VisualState::NORMAL); in SetWidth()
209 box->GetStateAttributes()->AddAttribute<AnimatableDimension>( in SetHeight()
210 BoxStateAttribute::HEIGHT, AnimatableDimension(height, option), stack->GetVisualState()); in SetHeight()
212 box->GetStateAttributes()->AddAttribute<AnimatableDimension>( in SetHeight()
213 BoxStateAttribute::HEIGHT, AnimatableDimension(bo in SetHeight()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/box/
H A Drender_box_base.h93 AnimatableDimension GetMargin(const DimensionHelper& helper) const in GetMargin()
98 void SetMargin(const AnimatableDimension& value, const DimensionHelper& helper) // add for animation in SetMargin()
105 AnimatableDimension GetPadding(const DimensionHelper& helper) const in GetPadding()
110 void SetPadding(const AnimatableDimension& value, const DimensionHelper& helper) // add for animation in SetPadding()
320 AnimatableDimension width_ { AnimatableDimension(-1.0, DimensionUnit::PX) }; // exclude margin
321 AnimatableDimension height_ { AnimatableDimension(-1.0, DimensionUnit::PX) }; // exclude margin
322 AnimatableDimension aspectRatio_ = AnimatableDimension();
[all...]
H A Dbox_base_component.h69 const AnimatableDimension& GetWidthDimension() const in GetWidthDimension()
74 const AnimatableDimension& GetHeightDimension() const in GetHeightDimension()
161 aspectRatio_ = AnimatableDimension(aspectRatio); in SetAspectRatio()
166 aspectRatio_ = AnimatableDimension(aspectRatio, DimensionUnit::PX, option); in SetAspectRatio()
169 AnimatableDimension GetAspectRatio() const in GetAspectRatio()
383 AnimatableDimension aspectRatio_ = AnimatableDimension();
H A Dbox_component_helper.h100 border.SetBorderRadius(Radius(AnimatableDimension(radius, option))); in SetBorderRadius()
112 border.SetTopLeftRadius(Radius(AnimatableDimension(radiusTopLeft, option))); in SetBorderRadius()
113 border.SetTopRightRadius(Radius(AnimatableDimension(radiusTopRight, option))); in SetBorderRadius()
114 border.SetBottomLeftRadius(Radius(AnimatableDimension(radiusBottomLeft, option))); in SetBorderRadius()
115 border.SetBottomRightRadius(Radius(AnimatableDimension(radiusBottomRight, option))); in SetBorderRadius()
H A Drender_box.h180 virtual void SetBlurRadius(const AnimatableDimension& radius);
181 AnimatableDimension GetBlurRadius() const;
182 virtual void SetBackdropRadius(const AnimatableDimension& radius);
183 AnimatableDimension GetBackdropRadius() const;
/foundation/arkui/ace_engine/frameworks/core/components/button/
H A Drender_button.h230 AnimatableDimension width_;
231 AnimatableDimension height_;

Completed in 15 milliseconds

12