[NUI] Open Text InputFilter APIs
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / TextEvent.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
21 namespace Tizen.NUI.BaseComponents
22 {
23     /// <summary>
24     /// AnchorClickedEventArgs is a class to record anchor click event arguments which will be sent to user.
25     /// </summary>
26     /// <since_tizen> 9 </since_tizen>
27     public class AnchorClickedEventArgs : EventArgs
28     {
29         /// <summary>
30         /// Anchor href(hypertext reference).
31         /// </summary>
32         /// <since_tizen> 9 </since_tizen>
33         public string Href { get; set; }
34     }
35
36     /// <summary>
37     /// InputFilteredEventArgs is a class to record input filter event arguments which will be sent to user.
38     /// </summary>
39     /// <since_tizen> 9 </since_tizen>
40     public class InputFilteredEventArgs : EventArgs
41     {
42         /// <summary>
43         /// The type of InputFilter that filtered the input is stored. <br />
44         /// If the input is filtered by the Accepted Regex of the InputFilter, the Accept type is stored. <br />
45         /// If the input is filtered by the Rejected Regex of the InputFilter, the Reject type is stored. <br />
46         /// </summary>
47         public InputFilterType Type { get; set; }
48     }
49 }