1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
\r
2 // PROPRIETARY/CONFIDENTIAL
\r
3 // This software is the confidential and proprietary
\r
4 // information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall
\r
5 // not disclose such Confidential Information and shall use it only in
\r
6 // accordance with the terms of the license agreement you entered into with
\r
7 // SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the
\r
8 // suitability of the software, either express or implied, including but not
\r
9 // limited to the implied warranties of merchantability, fitness for a
\r
10 // particular purpose, or non-infringement. SAMSUNG shall not be liable for any
\r
11 // damages suffered by licensee as a result of using, modifying or distributing
\r
12 // this software or its derivatives.
\r
14 // Copyright (c) 2017 Samsung Electronics Co., Ltd.
\r
16 // Licensed under the Apache License, Version 2.0 (the "License");
\r
17 // you may not use this file except in compliance with the License.
\r
18 // You may obtain a copy of the License at
\r
20 // http://www.apache.org/licenses/LICENSE-2.0
\r
22 // Unless required by applicable law or agreed to in writing, software
\r
23 // distributed under the License is distributed on an "AS IS" BASIS,
\r
24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
25 // See the License for the specific language governing permissions and
\r
26 // limitations under the License.
\r
29 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
\r
30 // Some have been manually changed
\r
36 public class ImageVisualMap
\r
38 public ImageVisualMap()
\r
42 private string _url = "";
\r
43 private FittingModeType _fittingMode = FittingModeType.ShrinkToFit;
\r
44 private SamplingModeType _samplingMode = SamplingModeType.BOX;
\r
45 private float _depthIndex = 0.0f;
\r
46 /* the following properties should be done also.
\r
47 public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
\r
48 public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
\r
49 public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
\r
50 public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
\r
51 public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
\r
52 public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
\r
53 public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
\r
55 private PropertyMap _outputMap;
\r
70 public FittingModeType FittingMode
\r
74 return _fittingMode;
\r
78 _fittingMode = value;
\r
81 public SamplingModeType SamplingMode
\r
85 return _samplingMode;
\r
89 _samplingMode = value;
\r
92 public float DepthIndex
\r
100 _depthIndex = value;
\r
104 public PropertyMap OutputMap
\r
108 ComposingPropertyMap();
\r
113 private void ComposingPropertyMap()
\r
117 _outputMap = new PropertyMap(); ;
\r
118 _outputMap.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Image));
\r
119 _outputMap.Add(Tizen.NUI.Constants.ImageVisualProperty.URL, new PropertyValue(_url));
\r
120 _outputMap.Add(Tizen.NUI.Constants.ImageVisualProperty.FittingMode, new PropertyValue((int)_fittingMode));
\r
121 _outputMap.Add(Tizen.NUI.Constants.ImageVisualProperty.SamplingMode, new PropertyValue((int)_samplingMode));
\r
122 //more PropertyMap should be added
\r
127 public class TextVisualMap
\r
129 public TextVisualMap()
\r
133 private string _text = "";
\r
134 private Color _textColor = Color.Black;
\r
135 private float _pointSize = 0.0f;
\r
136 private float _depthIndex = 0.0f;
\r
137 /* the following properties should be done also.
\r
138 public static readonly int FontFamily = NDalic.TEXT_VISUAL_FONT_FAMILY;
\r
139 public static readonly int FontStyle = NDalic.TEXT_VISUAL_FONT_STYLE;
\r
140 public static readonly int MultiLine = NDalic.TEXT_VISUAL_MULTI_LINE;
\r
141 public static readonly int HorizontalAlignment = NDalic.TEXT_VISUAL_HORIZONTAL_ALIGNMENT;
\r
142 public static readonly int VerticalAlignment = NDalic.TEXT_VISUAL_VERTICAL_ALIGNMENT;
\r
143 public static readonly int EnableMarkup = NDalic.TEXT_VISUAL_ENABLE_MARKUP;
\r
145 private PropertyMap _outputMap;
\r
159 public Color TextColor
\r
167 _textColor = value;
\r
170 public float PointSize
\r
178 _pointSize = value;
\r
181 public float DepthIndex
\r
185 return _depthIndex;
\r
189 _depthIndex = value;
\r
193 public PropertyMap OutputMap
\r
197 ComposingPropertyMap();
\r
202 private void ComposingPropertyMap()
\r
204 if (_text != "" && _pointSize != 0)
\r
206 Tizen.Log.Debug("NUI", "p1 !!!!!");
\r
207 _outputMap = new PropertyMap(); ;
\r
208 _outputMap.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Text));
\r
209 _outputMap.Add(Tizen.NUI.Constants.TextVisualProperty.Text, new PropertyValue(_text));
\r
210 _outputMap.Add(Tizen.NUI.Constants.TextVisualProperty.TextColor, new PropertyValue(_textColor));
\r
211 _outputMap.Add(Tizen.NUI.Constants.TextVisualProperty.PointSize, new PropertyValue(_pointSize));
\r
212 //more PropertyMap should be added
\r