Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.AttachPanel / Tizen.Applications.AttachPanel / StateEventArgs.cs
1 using System;
2
3 namespace Tizen.Applications.AttachPanel
4 {
5     /// <summary>
6     /// Class for event arguments of the state event
7     /// </summary>
8     public class StateEventArgs : EventArgs
9     {
10         private readonly IntPtr _attachPanel;
11         private readonly EventType _eventType;
12         private readonly IntPtr _eventInfo;
13         private readonly IntPtr _userData;
14
15         internal StateEventArgs(IntPtr attachPanel, EventType eventType, IntPtr eventInfo, IntPtr userData)
16         {
17             _attachPanel = attachPanel;
18             _eventType = eventType;
19             _eventInfo = eventInfo;
20             _userData = userData;
21         }
22
23         /// <summary>
24         /// Property for attach panel object
25         /// </summary>
26         public IntPtr AttachPanel { get { return _attachPanel;  } }
27
28         /// <summary>
29         /// Property for event type.
30         /// </summary>
31         public EventType EventType { get { return _eventType;  } }
32
33         /// <summary>
34         /// Additional event information.
35         /// This can be NULL if there are no necessary information.
36         /// </summary>
37         public IntPtr EventInfo {  get { return _eventInfo;  } }
38
39         /// <summary>
40         /// Property for user data.
41         /// </summary>
42         public IntPtr UserData { get { return _userData; } }
43     }
44 }