b71e7a676529c4fc7cd2e216e154a0f5fe3812f9
[platform/core/uifw/dali-adaptor.git] / dali / internal / canvas-renderer / common / shape-impl.cpp
1 /*
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/internal/canvas-renderer/common/shape-impl.h>
20
21 namespace Dali
22 {
23 namespace Internal
24 {
25 namespace Adaptor
26 {
27 Shape::Shape() = default;
28
29 Shape::~Shape() = default;
30
31 bool Shape::AddRect(Rect<float> rect, Vector2 roundedCorner)
32 {
33   return false;
34 }
35
36 bool Shape::AddCircle(Vector2 center, Vector2 radius)
37 {
38   return false;
39 }
40
41 bool Shape::AddArc(Vector2 center, float radius, float startAngle, float sweep, bool pie)
42 {
43   return false;
44 }
45
46 bool Shape::AddMoveTo(Vector2 point)
47 {
48   return false;
49 }
50
51 bool Shape::AddLineTo(Vector2 line)
52 {
53   return false;
54 }
55
56 bool Shape::AddCubicTo(Vector2 controlPoint1, Vector2 controlPoint2, Vector2 endPoint)
57 {
58   return false;
59 }
60
61 bool Shape::Close()
62 {
63   return false;
64 }
65
66 bool Shape::ResetPath()
67 {
68   return false;
69 }
70
71 bool Shape::SetFillColor(Vector4 color)
72 {
73   return false;
74 }
75
76 Vector4 Shape::GetFillColor() const
77 {
78   return Vector4(0, 0, 0, 0);
79 }
80
81 bool Shape::SetFillRule(Dali::CanvasRenderer::Shape::FillRule rule)
82 {
83   return false;
84 }
85
86 Dali::CanvasRenderer::Shape::FillRule Shape::GetFillRule() const
87 {
88   return Dali::CanvasRenderer::Shape::FillRule::WINDING;
89 }
90
91 bool Shape::SetStrokeWidth(float width)
92 {
93   return false;
94 }
95
96 float Shape::GetStrokeWidth() const
97 {
98   return false;
99 }
100
101 bool Shape::SetStrokeColor(Vector4 color)
102 {
103   return false;
104 }
105
106 Vector4 Shape::GetStrokeColor() const
107 {
108   return Vector4(0, 0, 0, 0);
109 }
110
111 bool Shape::SetStrokeDash(const Dali::Vector<float> dashPattern)
112 {
113   return false;
114 }
115
116 Dali::Vector<float> Shape::GetStrokeDash() const
117 {
118   return Vector<float>();
119 }
120
121 bool Shape::SetStrokeCap(Dali::CanvasRenderer::Shape::StrokeCap cap)
122 {
123   return false;
124 }
125
126 Dali::CanvasRenderer::Shape::StrokeCap Shape::GetStrokeCap() const
127 {
128   return Dali::CanvasRenderer::Shape::StrokeCap::SQUARE;
129 }
130
131 bool Shape::SetStrokeJoin(Dali::CanvasRenderer::Shape::StrokeJoin join)
132 {
133   return false;
134 }
135
136 Dali::CanvasRenderer::Shape::StrokeJoin Shape::GetStrokeJoin() const
137 {
138   return Dali::CanvasRenderer::Shape::StrokeJoin::BEVEL;
139 }
140
141 } // namespace Adaptor
142
143 } // namespace Internal
144
145 } // namespace Dali