Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / NUIEventType.cs
1 /* Copyright(c) 2017 Samsung Electronics Co., Ltd.
2  *
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
17 using Tizen.Applications.CoreBackend;
18
19 namespace Tizen.NUI
20 {
21     /// <summary>
22     /// Class that represents the type of NUI event for backends. This class can be converted from string type.
23     /// </summary>
24     public class NUIEventType : EventType
25     {
26         /// <summary>
27         /// Initializes the EventType class.
28         /// </summary>
29         /// <param name="name">The name of event type.</param>
30         public NUIEventType(string name) : base(name)
31         {
32         }
33
34         /// <summary>
35         /// Pre-defined event type. "Reset"
36         /// </summary>
37         public static readonly NUIEventType Reset = "Reset";
38
39         /// <summary>
40         /// Converts a string to NUIEventType instance.
41         /// </summary>
42         public static implicit operator NUIEventType(string value)
43         {
44             return new NUIEventType(value);
45         }
46     }
47 }