1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_BRUSH_H
17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_BRUSH_H
18 
19 #include <memory>
20 
21 #include "testing_color.h"
22 #include "testing_filter.h"
23 #include "testing_shader_effect.h"
24 #include "testing_enums.h"
25 
26 namespace OHOS::Ace::Testing {
27 class TestingBrush {
28 public:
29     TestingBrush() = default;
30     ~TestingBrush() = default;
TestingBrush(int rgba)31     explicit TestingBrush(int rgba) noexcept {};
TestingBrush(TestingColor color)32     explicit TestingBrush(TestingColor color) {}
33 
SetAntiAlias(bool alias)34     virtual void SetAntiAlias(bool alias) {}
SetWidth(float width)35     virtual void SetWidth(float width) {}
SetColor(const TestingColor & color)36     virtual void SetColor(const TestingColor& color) {}
SetColor(int color)37     virtual void SetColor(int color) {}
SetShaderEffect(std::shared_ptr<TestingShaderEffect> effect)38     virtual void SetShaderEffect(std::shared_ptr<TestingShaderEffect> effect) {}
SetFilter(const TestingFilter filter)39     virtual void SetFilter(const TestingFilter filter) {}
SetBlendMode(BlendMode mode)40     virtual void SetBlendMode(BlendMode mode) {}
SetAlpha(uint32_t alpha)41     virtual void SetAlpha(uint32_t alpha) {}
SetAlphaF(float a)42     virtual void SetAlphaF(float a) {}
SetARGB(int r,int g,int b,int a)43     virtual void SetARGB(int r, int g, int b, int a) {}
Reset()44     virtual void Reset() {}
GetFilter()45     const TestingFilter& GetFilter() const
46     {
47         return filer_;
48     }
49 
50     TestingFilter filer_;
51 };
52 } // namespace OHOS::Ace::Testing
53 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_BRUSH_H
54