[NUI] Interops for accessibility (#2277)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / ViewAccessibilityProperties.cs
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 using System;
19 using System.ComponentModel;
20 using System.Runtime.InteropServices;
21 using Tizen.NUI;
22
23 namespace Tizen.NUI.BaseComponents
24 {
25     public partial class View
26     {
27         [EditorBrowsable(EditorBrowsableState.Never)]
28         public string AccessibilityName
29         {
30             get
31             {
32                 return (string)GetValue(AccessibilityNameProperty);
33             }
34             set
35             {
36                 SetValue(AccessibilityNameProperty, value);
37                 NotifyPropertyChanged();
38             }
39         }
40
41         [EditorBrowsable(EditorBrowsableState.Never)]
42         public string AccessibilityDescription
43         {
44             get
45             {
46                 return (string)GetValue(AccessibilityDescriptionProperty);
47             }
48             set
49             {
50                 SetValue(AccessibilityDescriptionProperty, value);
51                 NotifyPropertyChanged();
52             }
53         }
54
55         [EditorBrowsable(EditorBrowsableState.Never)]
56         public string AccessibilityTranslationDomain
57         {
58             get
59             {
60                 return (string)GetValue(AccessibilityTranslationDomainProperty);
61             }
62             set
63             {
64                 SetValue(AccessibilityTranslationDomainProperty, value);
65                 NotifyPropertyChanged();
66             }
67         }
68
69         [EditorBrowsable(EditorBrowsableState.Never)]
70         public Role AccessibilityRole
71         {
72             get
73             {
74                 return (Role)GetValue(AccessibilityRoleProperty);
75             }
76             set
77             {
78                 SetValue(AccessibilityRoleProperty, value);
79                 NotifyPropertyChanged();
80             }
81         }
82
83         [EditorBrowsable(EditorBrowsableState.Never)]
84         public bool AccessibilityHighlightable
85         {
86             get
87             {
88                 return (bool)GetValue(AccessibilityHighlightableProperty);
89             }
90             set
91             {
92                 SetValue(AccessibilityHighlightableProperty, value);
93                 NotifyPropertyChanged();
94             }
95         }
96
97         [EditorBrowsable(EditorBrowsableState.Never)]
98         public bool AccessibilityAnimated
99         {
100             get
101             {
102                 return (bool)GetValue(AccessibilityAnimatedProperty);
103             }
104             set
105             {
106                 SetValue(AccessibilityAnimatedProperty, value);
107                 NotifyPropertyChanged();
108             }
109         }
110     }
111 }