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 #include "accessibility_caption.h"
17 #include "hilog_wrapper.h"
18 
19 namespace OHOS {
20 namespace AccessibilityConfig {
CheckProperty(const std::string & property)21 bool CaptionProperty::CheckProperty(const std::string &property)
22 {
23     bool result = true;
24     return result;
25 }
26 
GetBackgroundColor() const27 uint32_t CaptionProperty::GetBackgroundColor() const
28 {
29     return backgroundColor_;
30 }
31 
SetBackgroundColor(uint32_t color)32 void CaptionProperty::SetBackgroundColor(uint32_t color)
33 {
34     backgroundColor_ = color;
35 }
36 
GetFontScale() const37 int32_t CaptionProperty::GetFontScale() const
38 {
39     return fontScale_;
40 }
41 
SetFontScale(int32_t scale)42 void CaptionProperty::SetFontScale(int32_t scale)
43 {
44     fontScale_ = scale;
45 }
46 
GetFontColor() const47 uint32_t CaptionProperty::GetFontColor() const
48 {
49     return fontColor_;
50 }
51 
SetFontColor(uint32_t color)52 void CaptionProperty::SetFontColor(uint32_t color)
53 {
54     fontColor_ = color;
55 }
56 
GetFontEdgeType() const57 const std::string &CaptionProperty::GetFontEdgeType() const
58 {
59     return fontEdgeType_;
60 }
61 
SetFontEdgeType(const std::string & type)62 void CaptionProperty::SetFontEdgeType(const std::string &type)
63 {
64     fontEdgeType_ = type;
65 }
66 
GetWindowColor() const67 uint32_t CaptionProperty::GetWindowColor() const
68 {
69     return windowColor_;
70 }
71 
SetWindowColor(uint32_t color)72 void CaptionProperty::SetWindowColor(uint32_t color)
73 {
74     windowColor_ = color;
75 }
76 
SetFontFamily(const std::string & family)77 void CaptionProperty::SetFontFamily(const std::string &family)
78 {
79     fontFamily_ = family;
80 }
81 
GetFontFamily() const82 const std::string &CaptionProperty::GetFontFamily() const
83 {
84     return fontFamily_;
85 }
86 } // namespace Accessibility
87 } // namespace OHOS