2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 %define IMAGEVIEW_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
21 /* Properties earlier added by Ruby Script */
23 public string ResourceUrl
28 GetProperty( ImageView.Property.RESOURCE_URL).Get( out temp );
33 SetProperty( ImageView.Property.RESOURCE_URL, new Dali.Property.Value( value ) );
36 public Dali.Property.Map ImageMap
40 Dali.Property.Map temp = new Dali.Property.Map();
41 GetProperty( ImageView.Property.IMAGE).Get( temp );
46 SetProperty( ImageView.Property.IMAGE, new Dali.Property.Value( value ) );
49 public bool PreMultipliedAlpha
54 GetProperty( ImageView.Property.PRE_MULTIPLIED_ALPHA).Get( ref temp );
59 SetProperty( ImageView.Property.PRE_MULTIPLIED_ALPHA, new Dali.Property.Value( value ) );
62 public Vector4 PixelArea
66 Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
67 GetProperty( ImageView.Property.PIXEL_AREA).Get( temp );
72 SetProperty( ImageView.Property.PIXEL_AREA, new Dali.Property.Value( value ) );
82 IMAGEVIEW_PROPERTIES_HELPER(Dali::Toolkit, ImageView);