Fixed the ItemView already scrolled to end logic
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / events / rectinteger.i
1 /*
2  * Copyright (c) 2016 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 %define DALI_RECTINTEGER_PROPERTY_PARAM(NameSpace,ClassName)
19   %typemap(cscode) NameSpace::ClassName %{
20
21   public int X {
22     set {
23       NDalicPINVOKE.RectInteger_x_set(swigCPtr, value);
24       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
25     }
26     get {
27       int ret = NDalicPINVOKE.RectInteger_x_get(swigCPtr);
28       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
29       return ret;
30     }
31   }
32
33   public int Y {
34     set {
35       NDalicPINVOKE.RectInteger_y_set(swigCPtr, value);
36       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
37     }
38     get {
39       int ret = NDalicPINVOKE.RectInteger_y_get(swigCPtr);
40       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
41       return ret;
42     }
43   }
44
45   public int W {
46     set {
47       NDalicPINVOKE.RectInteger_width_set(swigCPtr, value);
48       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
49     }
50     get {
51       int ret = NDalicPINVOKE.RectInteger_width_get(swigCPtr);
52       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53       return ret;
54     }
55   }
56
57   public int H {
58     set {
59       NDalicPINVOKE.RectInteger_height_set(swigCPtr, value);
60       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
61     }
62     get {
63       int ret = NDalicPINVOKE.RectInteger_height_get(swigCPtr);
64       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
65       return ret;
66     }
67   }
68
69 %}
70
71 %enddef
72
73 namespace Dali
74 {
75   DALI_RECTINTEGER_PROPERTY_PARAM( Dali, Rect<int>);
76 }