DALi C# Tizen GBS build:
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / WheelEvent.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.9
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10
11 namespace Dali {
12
13 public class WheelEvent : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal WheelEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
18     swigCMemOwn = cMemoryOwn;
19     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20   }
21
22   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WheelEvent obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~WheelEvent() {
27     Dispose();
28   }
29
30   public virtual void Dispose() {
31     lock(this) {
32       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33         if (swigCMemOwn) {
34           swigCMemOwn = false;
35           NDalicPINVOKE.delete_WheelEvent(swigCPtr);
36         }
37         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38       }
39       global::System.GC.SuppressFinalize(this);
40     }
41   }
42
43  public static WheelEvent GetWheelEventFromPtr(global::System.IntPtr cPtr) {
44     WheelEvent ret = new WheelEvent(cPtr, false);
45         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
46     return ret;
47   }
48
49   public WheelEvent() : this(NDalicPINVOKE.new_WheelEvent__SWIG_0(), true) {
50     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51   }
52
53   public WheelEvent(WheelEvent.Type type, int direction, uint modifiers, Vector2 point, int z, uint timeStamp) : this(NDalicPINVOKE.new_WheelEvent__SWIG_1((int)type, direction, modifiers, Vector2.getCPtr(point), z, timeStamp), true) {
54     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
55   }
56
57   public bool IsShiftModifier() {
58     bool ret = NDalicPINVOKE.WheelEvent_IsShiftModifier(swigCPtr);
59     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
60     return ret;
61   }
62
63   public bool IsCtrlModifier() {
64     bool ret = NDalicPINVOKE.WheelEvent_IsCtrlModifier(swigCPtr);
65     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
66     return ret;
67   }
68
69   public bool IsAltModifier() {
70     bool ret = NDalicPINVOKE.WheelEvent_IsAltModifier(swigCPtr);
71     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
72     return ret;
73   }
74
75   public WheelEvent.Type type {
76     set {
77       NDalicPINVOKE.WheelEvent_type_set(swigCPtr, (int)value);
78       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79     } 
80     get {
81       WheelEvent.Type ret = (WheelEvent.Type)NDalicPINVOKE.WheelEvent_type_get(swigCPtr);
82       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
83       return ret;
84     } 
85   }
86
87   public int direction {
88     set {
89       NDalicPINVOKE.WheelEvent_direction_set(swigCPtr, value);
90       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
91     } 
92     get {
93       int ret = NDalicPINVOKE.WheelEvent_direction_get(swigCPtr);
94       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
95       return ret;
96     } 
97   }
98
99   public uint modifiers {
100     set {
101       NDalicPINVOKE.WheelEvent_modifiers_set(swigCPtr, value);
102       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
103     } 
104     get {
105       uint ret = NDalicPINVOKE.WheelEvent_modifiers_get(swigCPtr);
106       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107       return ret;
108     } 
109   }
110
111   public Vector2 point {
112     set {
113       NDalicPINVOKE.WheelEvent_point_set(swigCPtr, Vector2.getCPtr(value));
114       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115     } 
116     get {
117       global::System.IntPtr cPtr = NDalicPINVOKE.WheelEvent_point_get(swigCPtr);
118       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
119       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120       return ret;
121     } 
122   }
123
124   public int z {
125     set {
126       NDalicPINVOKE.WheelEvent_z_set(swigCPtr, value);
127       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
128     } 
129     get {
130       int ret = NDalicPINVOKE.WheelEvent_z_get(swigCPtr);
131       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
132       return ret;
133     } 
134   }
135
136   public uint timeStamp {
137     set {
138       NDalicPINVOKE.WheelEvent_timeStamp_set(swigCPtr, value);
139       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140     } 
141     get {
142       uint ret = NDalicPINVOKE.WheelEvent_timeStamp_get(swigCPtr);
143       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
144       return ret;
145     } 
146   }
147
148   public enum Type {
149     MOUSE_WHEEL,
150     CUSTOM_WHEEL
151   }
152
153 }
154
155 }