Switch Sync- and AsynchImageLoaders to use new (object less) image loading adaptor API
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / imageView.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 IMAGEVIEW_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
20
21 /* Properties earlier added by Ruby Script */
22
23   public string ResourceUrl
24   {
25     get
26     {
27       string temp;
28       GetProperty( ImageView.Property.RESOURCE_URL).Get( out temp );
29       return temp;
30     }
31     set
32     {
33       SetProperty( ImageView.Property.RESOURCE_URL, new Dali.Property.Value( value ) );
34     }
35   }
36   public Dali.Property.Map ImageMap
37   {
38     get
39     {
40       Dali.Property.Map temp = new Dali.Property.Map();
41       GetProperty( ImageView.Property.IMAGE).Get(  temp );
42       return temp;
43     }
44     set
45     {
46       SetProperty( ImageView.Property.IMAGE, new Dali.Property.Value( value ) );
47     }
48   }
49   public bool PreMultipliedAlpha
50   {
51     get
52     {
53       bool temp = false;
54       GetProperty( ImageView.Property.PRE_MULTIPLIED_ALPHA).Get( ref temp );
55       return temp;
56     }
57     set
58     {
59       SetProperty( ImageView.Property.PRE_MULTIPLIED_ALPHA, new Dali.Property.Value( value ) );
60     }
61   }
62   public Vector4 PixelArea
63   {
64     get
65     {
66       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
67       GetProperty( ImageView.Property.PIXEL_AREA).Get(  temp );
68       return temp;
69     }
70     set
71     {
72       SetProperty( ImageView.Property.PIXEL_AREA, new Dali.Property.Value( value ) );
73     }
74   }
75 /* Properties ends */
76
77 %}
78 %enddef
79
80 namespace Dali
81 {
82   IMAGEVIEW_PROPERTIES_HELPER(Dali::Toolkit, ImageView);
83 }
84