2 * Copyright(c) 2019 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 using System.Collections.Generic;
19 using System.ComponentModel;
21 using System.Runtime.InteropServices;
22 using Tizen.NUI.Binding;
25 namespace Tizen.NUI.BaseComponents
28 /// The View layout Direction type.
30 /// <since_tizen> 4 </since_tizen>
31 public enum ViewLayoutDirectionType
36 /// <since_tizen> 4 </since_tizen>
41 /// <since_tizen> 4 </since_tizen>
46 /// [Draft] Available policies for layout parameters
48 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
49 [EditorBrowsable(EditorBrowsableState.Never)]
50 public static class LayoutParamPolicies
53 /// Constant which indicates child size should match parent size
55 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
56 [EditorBrowsable(EditorBrowsableState.Never)]
57 public const int MatchParent = -1;
59 /// Constant which indicates parent should take the smallest size possible to wrap it's children with their desired size
61 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
62 [EditorBrowsable(EditorBrowsableState.Never)]
63 public const int WrapContent = -2;
67 /// [Draft] Replaced by LayoutParamPolicies, will be removed once occurrences replaced.
69 internal enum ChildLayoutData
72 /// Constant which indicates child size should match parent size
74 MatchParent = LayoutParamPolicies.MatchParent,
76 /// Constant which indicates parent should take the smallest size possible to wrap it's children with their desired size
78 WrapContent = LayoutParamPolicies.WrapContent,
81 internal enum ResourceLoadingStatusType
90 /// View is the base class for all views.
92 /// <since_tizen> 3 </since_tizen>
93 public class View : Container, IResourcesProvider
95 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
96 [EditorBrowsable(EditorBrowsableState.Never)]
97 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
99 var view = (View)bindable;
100 if (newValue != null)
102 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue((string)newValue));
105 defaultValueCreator: (bindable) =>
107 var view = (View)bindable;
109 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STYLE_NAME).Get(out temp);
112 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
113 [EditorBrowsable(EditorBrowsableState.Never)]
114 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create("BackgroundColor", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
116 var view = (View)bindable;
117 if (newValue != null)
119 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((Color)newValue));
122 defaultValueCreator: (bindable) =>
124 var view = (View)bindable;
125 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
127 Tizen.NUI.PropertyMap background = view.Background;
129 background.Find(Visual.Property.Type)?.Get(out visualType);
130 if (visualType == (int)Visual.Type.Color)
132 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
135 return backgroundColor;
137 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
138 [EditorBrowsable(EditorBrowsableState.Never)]
139 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) =>
141 var view = (View)bindable;
142 if (newValue != null)
144 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((string)newValue));
147 defaultValueCreator: (bindable) =>
149 var view = (View)bindable;
150 string backgroundImage = "";
152 Tizen.NUI.PropertyMap background = view.Background;
154 background.Find(Visual.Property.Type)?.Get(out visualType);
155 if (visualType == (int)Visual.Type.Image)
157 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
160 return backgroundImage;
162 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
163 [EditorBrowsable(EditorBrowsableState.Never)]
164 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
166 var view = (View)bindable;
167 if (newValue != null)
169 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
172 defaultValueCreator: (bindable) =>
174 var view = (View)bindable;
175 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
176 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
179 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
180 [EditorBrowsable(EditorBrowsableState.Never)]
181 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
183 var view = (View)bindable;
184 if (newValue != null)
186 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
189 defaultValueCreator: (bindable) =>
191 var view = (View)bindable;
193 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
195 NUILog.Error("State get error!");
199 case 0: return States.Normal;
200 case 1: return States.Focused;
201 case 2: return States.Disabled;
202 default: return States.Normal;
205 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
206 [EditorBrowsable(EditorBrowsableState.Never)]
207 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
209 var view = (View)bindable;
210 string valueToString = "";
211 if (newValue != null)
213 switch ((States)newValue)
215 case States.Normal: { valueToString = "NORMAL"; break; }
216 case States.Focused: { valueToString = "FOCUSED"; break; }
217 case States.Disabled: { valueToString = "DISABLED"; break; }
218 default: { valueToString = "NORMAL"; break; }
220 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
223 defaultValueCreator: (bindable) =>
225 var view = (View)bindable;
227 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
229 NUILog.Error("subState get error!");
233 case "NORMAL": return States.Normal;
234 case "FOCUSED": return States.Focused;
235 case "DISABLED": return States.Disabled;
236 default: return States.Normal;
239 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
240 [EditorBrowsable(EditorBrowsableState.Never)]
241 public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
243 var view = (View)bindable;
244 if (newValue != null)
246 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
249 defaultValueCreator: (bindable) =>
251 var view = (View)bindable;
252 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
253 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
257 /// Only for XAML property binding. This will be changed as Inhouse API by ACR later.
258 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
260 var view = (View)bindable;
261 if (newValue != null)
263 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
266 defaultValueCreator: (bindable) =>
268 var view = (View)bindable;
270 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
274 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
275 [EditorBrowsable(EditorBrowsableState.Never)]
276 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
278 var view = (View)bindable;
279 if (newValue != null)
281 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
284 defaultValueCreator: (bindable) =>
286 var view = (View)bindable;
288 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
291 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
292 [EditorBrowsable(EditorBrowsableState.Never)]
293 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
295 var view = (View)bindable;
296 if (newValue != null)
298 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
301 defaultValueCreator: (bindable) =>
303 var view = (View)bindable;
304 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
305 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
308 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
309 [EditorBrowsable(EditorBrowsableState.Never)]
310 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
312 var view = (View)bindable;
313 if (newValue != null)
315 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
318 defaultValueCreator: (bindable) =>
320 var view = (View)bindable;
321 Vector2 temp = new Vector2(0.0f, 0.0f);
322 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
325 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
326 [EditorBrowsable(EditorBrowsableState.Never)]
327 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
329 var view = (View)bindable;
330 if (newValue != null)
332 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
335 defaultValueCreator: (bindable) =>
337 var view = (View)bindable;
339 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
342 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
343 [EditorBrowsable(EditorBrowsableState.Never)]
344 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
346 var view = (View)bindable;
347 if (newValue != null)
349 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
352 defaultValueCreator: (bindable) =>
354 var view = (View)bindable;
356 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
359 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
360 [EditorBrowsable(EditorBrowsableState.Never)]
361 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
363 var view = (View)bindable;
364 string valueToString = "";
366 if (newValue != null)
368 switch ((HorizontalAlignmentType)newValue)
370 case Tizen.NUI.HorizontalAlignmentType.Left: { valueToString = "left"; break; }
371 case Tizen.NUI.HorizontalAlignmentType.Center: { valueToString = "center"; break; }
372 case Tizen.NUI.HorizontalAlignmentType.Right: { valueToString = "right"; break; }
373 default: { valueToString = "left"; break; }
375 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
378 defaultValueCreator: (bindable) =>
380 var view = (View)bindable;
382 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
384 NUILog.Error("CellHorizontalAlignment get error!");
389 case "left": return Tizen.NUI.HorizontalAlignmentType.Left;
390 case "center": return Tizen.NUI.HorizontalAlignmentType.Center;
391 case "right": return Tizen.NUI.HorizontalAlignmentType.Right;
392 default: return Tizen.NUI.HorizontalAlignmentType.Left;
395 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
396 [EditorBrowsable(EditorBrowsableState.Never)]
397 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
399 var view = (View)bindable;
400 string valueToString = "";
402 if (newValue != null)
404 switch ((VerticalAlignmentType)newValue)
406 case Tizen.NUI.VerticalAlignmentType.Top: { valueToString = "top"; break; }
407 case Tizen.NUI.VerticalAlignmentType.Center: { valueToString = "center"; break; }
408 case Tizen.NUI.VerticalAlignmentType.Bottom: { valueToString = "bottom"; break; }
409 default: { valueToString = "top"; break; }
411 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
414 defaultValueCreator: (bindable) =>
416 var view = (View)bindable;
418 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
420 NUILog.Error("CellVerticalAlignment get error!");
425 case "top": return Tizen.NUI.VerticalAlignmentType.Top;
426 case "center": return Tizen.NUI.VerticalAlignmentType.Center;
427 case "bottom": return Tizen.NUI.VerticalAlignmentType.Bottom;
428 default: return Tizen.NUI.VerticalAlignmentType.Top;
433 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
434 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
436 [EditorBrowsable(EditorBrowsableState.Never)]
437 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
439 var view = (View)bindable;
440 if (newValue != null)
442 view.Weight = (float)newValue;
446 defaultValueCreator: (bindable) =>
448 var view = (View)bindable;
452 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
453 [EditorBrowsable(EditorBrowsableState.Never)]
454 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
456 var view = (View)bindable;
457 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
458 else { view.LeftFocusableViewId = -1; }
460 defaultValueCreator: (bindable) =>
462 var view = (View)bindable;
463 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
466 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
467 [EditorBrowsable(EditorBrowsableState.Never)]
468 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
470 var view = (View)bindable;
471 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
472 else { view.RightFocusableViewId = -1; }
474 defaultValueCreator: (bindable) =>
476 var view = (View)bindable;
477 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
480 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
481 [EditorBrowsable(EditorBrowsableState.Never)]
482 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
484 var view = (View)bindable;
485 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
486 else { view.UpFocusableViewId = -1; }
488 defaultValueCreator: (bindable) =>
490 var view = (View)bindable;
491 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
494 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
495 [EditorBrowsable(EditorBrowsableState.Never)]
496 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
498 var view = (View)bindable;
499 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
500 else { view.DownFocusableViewId = -1; }
502 defaultValueCreator: (bindable) =>
504 var view = (View)bindable;
505 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
508 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
509 [EditorBrowsable(EditorBrowsableState.Never)]
510 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
512 var view = (View)bindable;
513 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
515 defaultValueCreator: (bindable) =>
517 var view = (View)bindable;
518 return view.IsKeyboardFocusable();
520 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
521 [EditorBrowsable(EditorBrowsableState.Never)]
522 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
524 var view = (View)bindable;
525 if (newValue != null)
527 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
530 defaultValueCreator: (bindable) =>
532 var view = (View)bindable;
533 Size temp = new Size(0.0f, 0.0f, 0.0f);
534 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
535 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
538 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
539 [EditorBrowsable(EditorBrowsableState.Never)]
540 public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
542 var view = (View)bindable;
543 if (newValue != null)
545 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
548 defaultValueCreator: (bindable) =>
550 var view = (View)bindable;
552 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
555 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
556 [EditorBrowsable(EditorBrowsableState.Never)]
557 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
559 var view = (View)bindable;
560 if (newValue != null)
562 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
565 defaultValueCreator: (bindable) =>
567 var view = (View)bindable;
568 Position temp = new Position(0.0f, 0.0f, 0.0f);
569 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
570 return new Position2D(temp);
572 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
573 [EditorBrowsable(EditorBrowsableState.Never)]
574 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
576 var view = (View)bindable;
577 if (newValue != null)
579 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
582 defaultValueCreator: (bindable) =>
584 var view = (View)bindable;
586 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
589 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
590 [EditorBrowsable(EditorBrowsableState.Never)]
591 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
593 var view = (View)bindable;
595 if (newValue != null)
597 value = (int)newValue;
600 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
603 var siblings = view.GetParent()?.Children;
604 if (siblings != null)
606 int currentOrder = siblings.IndexOf(view);
607 if (value != currentOrder)
609 if (value == 0) { view.LowerToBottom(); }
610 else if (value < siblings.Count - 1)
612 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
613 else { view.LowerBelow(siblings[value]); }
615 else { view.RaiseToTop(); }
620 defaultValueCreator: (bindable) =>
622 var view = (View)bindable;
623 var parentChildren = view.GetParent()?.Children;
624 int currentOrder = 0;
625 if (parentChildren != null)
627 currentOrder = parentChildren.IndexOf(view);
629 if (currentOrder < 0) { return 0; }
630 else if (currentOrder < parentChildren.Count) { return currentOrder; }
635 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
636 [EditorBrowsable(EditorBrowsableState.Never)]
637 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
639 var view = (View)bindable;
640 if (newValue != null)
642 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
645 defaultValueCreator: (bindable) =>
647 var view = (View)bindable;
648 Position temp = new Position(0.0f, 0.0f, 0.0f);
649 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
653 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
654 [EditorBrowsable(EditorBrowsableState.Never)]
655 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
657 var view = (View)bindable;
658 if (newValue != null)
660 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
663 defaultValueCreator: (bindable) =>
665 var view = (View)bindable;
666 Position temp = new Position(0.0f, 0.0f, 0.0f);
667 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
670 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
671 [EditorBrowsable(EditorBrowsableState.Never)]
672 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
674 var view = (View)bindable;
675 if (newValue != null)
677 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
680 defaultValueCreator: (bindable) =>
682 var view = (View)bindable;
684 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
687 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
688 [EditorBrowsable(EditorBrowsableState.Never)]
689 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
691 var view = (View)bindable;
692 if (newValue != null)
694 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
697 defaultValueCreator: (bindable) =>
699 var view = (View)bindable;
701 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
704 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
705 [EditorBrowsable(EditorBrowsableState.Never)]
706 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
708 var view = (View)bindable;
709 if (newValue != null)
711 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
714 defaultValueCreator: (bindable) =>
716 var view = (View)bindable;
717 Position temp = new Position(0.0f, 0.0f, 0.0f);
718 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
721 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
722 [EditorBrowsable(EditorBrowsableState.Never)]
723 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
725 var view = (View)bindable;
726 if (newValue != null)
728 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_X, new Tizen.NUI.PropertyValue((float)newValue));
731 defaultValueCreator: (bindable) =>
733 var view = (View)bindable;
735 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
738 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
739 [EditorBrowsable(EditorBrowsableState.Never)]
740 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
742 var view = (View)bindable;
743 if (newValue != null)
745 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Y, new Tizen.NUI.PropertyValue((float)newValue));
748 defaultValueCreator: (bindable) =>
750 var view = (View)bindable;
752 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
755 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
756 [EditorBrowsable(EditorBrowsableState.Never)]
757 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
759 var view = (View)bindable;
760 if (newValue != null)
762 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
765 defaultValueCreator: (bindable) =>
767 var view = (View)bindable;
769 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
772 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
773 [EditorBrowsable(EditorBrowsableState.Never)]
774 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
776 var view = (View)bindable;
777 if (newValue != null)
779 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
782 defaultValueCreator: (bindable) =>
784 var view = (View)bindable;
785 Rotation temp = new Rotation();
786 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
789 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
790 [EditorBrowsable(EditorBrowsableState.Never)]
791 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
793 var view = (View)bindable;
794 if (newValue != null)
796 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
799 defaultValueCreator: (bindable) =>
801 var view = (View)bindable;
802 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
803 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
806 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
807 [EditorBrowsable(EditorBrowsableState.Never)]
808 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
810 var view = (View)bindable;
811 if (newValue != null)
813 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_X, new Tizen.NUI.PropertyValue((float)newValue));
816 defaultValueCreator: (bindable) =>
818 var view = (View)bindable;
820 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
823 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
824 [EditorBrowsable(EditorBrowsableState.Never)]
825 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
827 var view = (View)bindable;
828 if (newValue != null)
830 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Y, new Tizen.NUI.PropertyValue((float)newValue));
833 defaultValueCreator: (bindable) =>
835 var view = (View)bindable;
837 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
840 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
841 [EditorBrowsable(EditorBrowsableState.Never)]
842 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
844 var view = (View)bindable;
845 if (newValue != null)
847 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
850 defaultValueCreator: (bindable) =>
852 var view = (View)bindable;
854 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
857 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
858 [EditorBrowsable(EditorBrowsableState.Never)]
859 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
861 var view = (View)bindable;
862 if (newValue != null)
864 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
867 defaultValueCreator: (bindable) =>
869 var view = (View)bindable;
871 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
874 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
875 [EditorBrowsable(EditorBrowsableState.Never)]
876 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
878 var view = (View)bindable;
879 if (newValue != null)
881 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
884 defaultValueCreator: (bindable) =>
886 var view = (View)bindable;
888 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
891 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
892 [EditorBrowsable(EditorBrowsableState.Never)]
893 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
895 var view = (View)bindable;
896 if (newValue != null)
898 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
901 defaultValueCreator: (bindable) =>
903 var view = (View)bindable;
905 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
908 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
909 [EditorBrowsable(EditorBrowsableState.Never)]
910 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
912 var view = (View)bindable;
913 if (newValue != null)
915 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
918 defaultValueCreator: (bindable) =>
920 var view = (View)bindable;
922 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
925 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
926 [EditorBrowsable(EditorBrowsableState.Never)]
927 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
929 var view = (View)bindable;
930 if (newValue != null)
932 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
935 defaultValueCreator: (bindable) =>
937 var view = (View)bindable;
939 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
942 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
943 [EditorBrowsable(EditorBrowsableState.Never)]
944 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
946 var view = (View)bindable;
947 if (newValue != null)
949 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
952 defaultValueCreator: (bindable) =>
954 var view = (View)bindable;
956 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
958 NUILog.Error("DrawMode get error!");
962 case "NORMAL": return DrawModeType.Normal;
963 case "OVERLAY_2D": return DrawModeType.Overlay2D;
964 #pragma warning disable CS0618 // Disable deprecated warning as we do need to use the deprecated API here.
965 case "STENCIL": return DrawModeType.Stencil;
966 #pragma warning restore CS0618
967 default: return DrawModeType.Normal;
970 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
971 [EditorBrowsable(EditorBrowsableState.Never)]
972 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
974 var view = (View)bindable;
975 if (newValue != null)
977 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
980 defaultValueCreator: (bindable) =>
982 var view = (View)bindable;
983 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
984 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
987 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
988 [EditorBrowsable(EditorBrowsableState.Never)]
989 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
991 var view = (View)bindable;
992 if (newValue != null)
994 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
997 defaultValueCreator: (bindable) =>
999 var view = (View)bindable;
1001 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
1003 NUILog.Error("WidthResizePolicy get error!");
1007 case "FIXED": return ResizePolicyType.Fixed;
1008 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1009 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1010 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1011 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1012 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1013 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1014 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1015 default: return ResizePolicyType.Fixed;
1018 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1019 [EditorBrowsable(EditorBrowsableState.Never)]
1020 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1022 var view = (View)bindable;
1023 if (newValue != null)
1025 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1028 defaultValueCreator: (bindable) =>
1030 var view = (View)bindable;
1032 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1034 NUILog.Error("HeightResizePolicy get error!");
1038 case "FIXED": return ResizePolicyType.Fixed;
1039 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1040 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1041 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1042 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1043 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1044 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1045 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1046 default: return ResizePolicyType.Fixed;
1049 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1050 [EditorBrowsable(EditorBrowsableState.Never)]
1051 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
1053 var view = (View)bindable;
1054 string valueToString = "";
1055 if (newValue != null)
1057 switch ((SizeScalePolicyType)newValue)
1059 case SizeScalePolicyType.UseSizeSet: { valueToString = "USE_SIZE_SET"; break; }
1060 case SizeScalePolicyType.FitWithAspectRatio: { valueToString = "FIT_WITH_ASPECT_RATIO"; break; }
1061 case SizeScalePolicyType.FillWithAspectRatio: { valueToString = "FILL_WITH_ASPECT_RATIO"; break; }
1062 default: { valueToString = "USE_SIZE_SET"; break; }
1064 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1067 defaultValueCreator: (bindable) =>
1069 var view = (View)bindable;
1071 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1073 NUILog.Error("SizeScalePolicy get error!");
1077 case "USE_SIZE_SET": return SizeScalePolicyType.UseSizeSet;
1078 case "FIT_WITH_ASPECT_RATIO": return SizeScalePolicyType.FitWithAspectRatio;
1079 case "FILL_WITH_ASPECT_RATIO": return SizeScalePolicyType.FillWithAspectRatio;
1080 default: return SizeScalePolicyType.UseSizeSet;
1083 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1084 [EditorBrowsable(EditorBrowsableState.Never)]
1085 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1087 var view = (View)bindable;
1088 if (newValue != null)
1090 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue((bool)newValue));
1093 defaultValueCreator: (bindable) =>
1095 var view = (View)bindable;
1097 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
1100 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1101 [EditorBrowsable(EditorBrowsableState.Never)]
1102 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1104 var view = (View)bindable;
1105 if (newValue != null)
1107 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue((bool)newValue));
1110 defaultValueCreator: (bindable) =>
1112 var view = (View)bindable;
1114 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
1117 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1118 [EditorBrowsable(EditorBrowsableState.Never)]
1119 public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1121 var view = (View)bindable;
1122 if (newValue != null)
1124 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1127 defaultValueCreator: (bindable) =>
1129 var view = (View)bindable;
1130 Extents temp = new Extents(0, 0, 0, 0);
1131 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PADDING).Get(temp);
1134 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1135 [EditorBrowsable(EditorBrowsableState.Never)]
1136 public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1138 var view = (View)bindable;
1139 if (newValue != null)
1141 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue((Size)newValue));
1144 defaultValueCreator: (bindable) =>
1146 var view = (View)bindable;
1147 Size temp = new Size(0, 0, 0);
1148 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
1151 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1152 [EditorBrowsable(EditorBrowsableState.Never)]
1153 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1155 var view = (View)bindable;
1156 if (newValue != null)
1158 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1161 defaultValueCreator: (bindable) =>
1163 var view = (View)bindable;
1164 Size2D temp = new Size2D(0, 0);
1165 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1168 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1169 [EditorBrowsable(EditorBrowsableState.Never)]
1170 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1172 var view = (View)bindable;
1173 if (newValue != null)
1175 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1178 defaultValueCreator: (bindable) =>
1180 var view = (View)bindable;
1181 Size2D temp = new Size2D(0, 0);
1182 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1185 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1186 [EditorBrowsable(EditorBrowsableState.Never)]
1187 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1189 var view = (View)bindable;
1190 if (newValue != null)
1192 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1195 defaultValueCreator: (bindable) =>
1197 var view = (View)bindable;
1199 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1202 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1203 [EditorBrowsable(EditorBrowsableState.Never)]
1204 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1206 var view = (View)bindable;
1207 if (newValue != null)
1209 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1212 defaultValueCreator: (bindable) =>
1214 var view = (View)bindable;
1216 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1218 NUILog.Error("ClippingMode get error!");
1220 return (ClippingModeType)temp;
1222 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1223 [EditorBrowsable(EditorBrowsableState.Never)]
1224 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1226 var view = (View)bindable;
1227 if (newValue != null)
1229 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1232 defaultValueCreator: (bindable) =>
1234 var view = (View)bindable;
1236 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1239 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1240 [EditorBrowsable(EditorBrowsableState.Never)]
1241 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1243 var view = (View)bindable;
1244 if (newValue != null)
1246 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1249 defaultValueCreator: (bindable) =>
1251 var view = (View)bindable;
1253 if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1255 NUILog.Error("LAYOUT_DIRECTION get error!");
1257 return (ViewLayoutDirectionType)temp;
1259 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1260 [EditorBrowsable(EditorBrowsableState.Never)]
1261 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1263 var view = (View)bindable;
1264 if (newValue != null)
1266 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1269 defaultValueCreator: (bindable) =>
1271 var view = (View)bindable;
1272 Extents temp = new Extents(0, 0, 0, 0);
1273 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1276 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1277 [EditorBrowsable(EditorBrowsableState.Never)]
1278 public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create("XamlStyle", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);
1281 /// Flag to indicate if layout set explicitly via API call or View was automatically given a Layout.
1283 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1284 [EditorBrowsable(EditorBrowsableState.Never)]
1285 public bool layoutSet = false;
1288 /// Flag to allow Layouting to be disabled for Views.
1289 /// Once a View has a Layout set then any children added to Views from then on will receive
1290 /// automatic Layouts.
1292 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1293 [EditorBrowsable(EditorBrowsableState.Never)]
1294 public static bool layoutingDisabled{get; set;} = true;
1296 private MergedStyle mergedStyle = null;
1297 internal MergedStyle _mergedStyle
1301 if (null == mergedStyle)
1303 mergedStyle = new MergedStyle(GetType(), this);
1310 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1311 private LayoutItem _layout; // Exclusive layout assigned to this View.
1312 private int _widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
1313 private int _heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
1314 private float _weight = 0.0f; // Weighting of child View in a Layout
1315 private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
1316 private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
1317 private bool _backgroundImageSynchronosLoading = false;
1318 private EventHandler _offWindowEventHandler;
1319 private OffWindowEventCallbackType _offWindowEventCallback;
1320 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
1321 private WheelEventCallbackType _wheelEventCallback;
1322 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
1323 private KeyCallbackType _keyCallback;
1324 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
1325 private TouchDataCallbackType _touchDataCallback;
1326 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
1327 private HoverEventCallbackType _hoverEventCallback;
1328 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
1329 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
1330 private EventHandler _keyInputFocusGainedEventHandler;
1331 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
1332 private EventHandler _keyInputFocusLostEventHandler;
1333 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
1334 private EventHandler _onRelayoutEventHandler;
1335 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
1336 private EventHandler _onWindowEventHandler;
1337 private OnWindowEventCallbackType _onWindowEventCallback;
1338 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
1339 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
1340 // Resource Ready Signal
1341 private EventHandler _resourcesLoadedEventHandler;
1342 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1343 private EventHandler<BackgroundResourceLoadedEventArgs> _backgroundResourceLoadedEventHandler;
1344 private _backgroundResourceLoadedCallbackType _backgroundResourceLoadedCallback;
1346 private OnWindowEventCallbackType _onWindowSendEventCallback;
1348 private void SendViewAddedEventToWindow(IntPtr data)
1350 Window.Instance?.SendViewAdded(this);
1354 /// Creates a new instance of a view.
1356 /// <since_tizen> 3 </since_tizen>
1357 public View() : this(Interop.View.View_New(), true)
1359 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1361 internal View(View uiControl) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1363 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1366 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
1368 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1371 PositionUsesPivotPoint = false;
1374 _onWindowSendEventCallback = SendViewAddedEventToWindow;
1375 this.OnWindowSignal().Connect(_onWindowSendEventCallback);
1378 internal View(ViewImpl implementation) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1383 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1384 private delegate void OffWindowEventCallbackType(IntPtr control);
1385 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1386 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
1387 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1388 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
1389 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1390 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
1391 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1392 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
1393 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1394 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
1395 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1396 private delegate void ResourcesLoadedCallbackType(IntPtr control);
1397 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1398 private delegate void _backgroundResourceLoadedCallbackType(IntPtr view);
1399 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1400 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
1401 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1402 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
1403 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1404 private delegate void OnRelayoutEventCallbackType(IntPtr control);
1405 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1406 private delegate void OnWindowEventCallbackType(IntPtr control);
1407 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1408 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
1411 /// Event when a child is removed.
1413 /// <since_tizen> 5 </since_tizen>
1414 public new event EventHandler<ChildRemovedEventArgs> ChildRemoved;
1416 /// Event when a child is added.
1418 /// <since_tizen> 5 </since_tizen>
1419 public new event EventHandler<ChildAddedEventArgs> ChildAdded;
1422 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1423 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
1425 /// <since_tizen> 3 </since_tizen>
1426 public event EventHandler FocusGained
1430 if (_keyInputFocusGainedEventHandler == null)
1432 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
1433 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
1436 _keyInputFocusGainedEventHandler += value;
1441 _keyInputFocusGainedEventHandler -= value;
1443 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
1445 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
1451 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1452 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
1454 /// <since_tizen> 3 </since_tizen>
1455 public event EventHandler FocusLost
1459 if (_keyInputFocusLostEventHandler == null)
1461 _keyInputFocusLostCallback = OnKeyInputFocusLost;
1462 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
1465 _keyInputFocusLostEventHandler += value;
1470 _keyInputFocusLostEventHandler -= value;
1472 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
1474 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
1480 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1481 /// The KeyPressed signal is emitted when the key event is received.<br />
1483 /// <since_tizen> 3 </since_tizen>
1484 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
1488 if (_keyEventHandler == null)
1490 _keyCallback = OnKeyEvent;
1491 this.KeyEventSignal().Connect(_keyCallback);
1494 _keyEventHandler += value;
1499 _keyEventHandler -= value;
1501 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
1503 this.KeyEventSignal().Disconnect(_keyCallback);
1509 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
1510 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
1512 /// <since_tizen> 3 </since_tizen>
1513 public event EventHandler Relayout
1517 if (_onRelayoutEventHandler == null)
1519 _onRelayoutEventCallback = OnRelayout;
1520 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
1523 _onRelayoutEventHandler += value;
1528 _onRelayoutEventHandler -= value;
1530 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
1532 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
1539 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1540 /// The touched signal is emitted when the touch input is received.<br />
1542 /// <since_tizen> 3 </since_tizen>
1543 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
1547 if (_touchDataEventHandler == null)
1549 _touchDataCallback = OnTouch;
1550 this.TouchSignal().Connect(_touchDataCallback);
1553 _touchDataEventHandler += value;
1558 _touchDataEventHandler -= value;
1560 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
1562 this.TouchSignal().Disconnect(_touchDataCallback);
1569 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1570 /// The hovered signal is emitted when the hover input is received.<br />
1572 /// <since_tizen> 3 </since_tizen>
1573 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
1577 if (_hoverEventHandler == null)
1579 _hoverEventCallback = OnHoverEvent;
1580 this.HoveredSignal().Connect(_hoverEventCallback);
1583 _hoverEventHandler += value;
1588 _hoverEventHandler -= value;
1590 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
1592 this.HoveredSignal().Disconnect(_hoverEventCallback);
1599 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1600 /// The WheelMoved signal is emitted when the wheel event is received.<br />
1602 /// <since_tizen> 3 </since_tizen>
1603 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
1607 if (_wheelEventHandler == null)
1609 _wheelEventCallback = OnWheelEvent;
1610 this.WheelEventSignal().Connect(_wheelEventCallback);
1613 _wheelEventHandler += value;
1618 _wheelEventHandler -= value;
1620 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
1622 this.WheelEventSignal().Disconnect(_wheelEventCallback);
1629 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
1630 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
1632 /// <since_tizen> 3 </since_tizen>
1633 public event EventHandler AddedToWindow
1637 if (_onWindowEventHandler == null)
1639 _onWindowEventCallback = OnWindow;
1640 this.OnWindowSignal().Connect(_onWindowEventCallback);
1643 _onWindowEventHandler += value;
1648 _onWindowEventHandler -= value;
1650 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
1652 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
1658 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
1659 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
1661 /// <since_tizen> 3 </since_tizen>
1662 public event EventHandler RemovedFromWindow
1666 if (_offWindowEventHandler == null)
1668 _offWindowEventCallback = OffWindow;
1669 this.OffWindowSignal().Connect(_offWindowEventCallback);
1672 _offWindowEventHandler += value;
1677 _offWindowEventHandler -= value;
1679 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
1681 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
1687 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
1688 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
1690 /// <since_tizen> 3 </since_tizen>
1691 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
1695 if (_visibilityChangedEventHandler == null)
1697 _visibilityChangedEventCallback = OnVisibilityChanged;
1698 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
1701 _visibilityChangedEventHandler += value;
1706 _visibilityChangedEventHandler -= value;
1708 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
1710 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
1716 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
1717 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
1719 /// <since_tizen> 4 </since_tizen>
1720 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
1724 if (_layoutDirectionChangedEventHandler == null)
1726 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
1727 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
1730 _layoutDirectionChangedEventHandler += value;
1735 _layoutDirectionChangedEventHandler -= value;
1737 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
1739 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
1745 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1746 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1748 /// <since_tizen> 3 </since_tizen>
1749 public event EventHandler ResourcesLoaded
1753 if (_resourcesLoadedEventHandler == null)
1755 _ResourcesLoadedCallback = OnResourcesLoaded;
1756 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1759 _resourcesLoadedEventHandler += value;
1764 _resourcesLoadedEventHandler -= value;
1766 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1768 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1773 internal event EventHandler<BackgroundResourceLoadedEventArgs> BackgroundResourceLoaded
1777 if (_backgroundResourceLoadedEventHandler == null)
1779 _backgroundResourceLoadedCallback = OnBackgroundResourceLoaded;
1780 this.ResourcesLoadedSignal().Connect(_backgroundResourceLoadedCallback);
1783 _backgroundResourceLoadedEventHandler += value;
1787 _backgroundResourceLoadedEventHandler -= value;
1789 if (_backgroundResourceLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1791 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
1797 /// Enumeration for describing the states of the view.
1799 /// <since_tizen> 3 </since_tizen>
1803 /// The normal state.
1807 /// The focused state.
1811 /// The disabled state.
1817 /// Describes the direction to move the focus towards.
1819 /// <since_tizen> 3 </since_tizen>
1820 public enum FocusDirection
1823 /// Move keyboard focus towards the left direction.
1825 /// <since_tizen> 3 </since_tizen>
1828 /// Move keyboard focus towards the right direction.
1830 /// <since_tizen> 3 </since_tizen>
1833 /// Move keyboard focus towards the up direction.
1835 /// <since_tizen> 3 </since_tizen>
1838 /// Move keyboard focus towards the down direction.
1840 /// <since_tizen> 3 </since_tizen>
1843 /// Move keyboard focus towards the previous page direction.
1845 /// <since_tizen> 3 </since_tizen>
1848 /// Move keyboard focus towards the next page direction.
1850 /// <since_tizen> 3 </since_tizen>
1854 internal enum PropertyRange
1856 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1857 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1858 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1861 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1862 [EditorBrowsable(EditorBrowsableState.Never)]
1863 public bool IsResourcesCreated
1867 return Application.Current.IsResourcesCreated;
1871 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1872 [EditorBrowsable(EditorBrowsableState.Never)]
1873 public ResourceDictionary XamlResources
1877 return Application.Current.XamlResources;
1881 Application.Current.XamlResources = value;
1886 /// The StyleName, type string.
1888 /// <since_tizen> 3 </since_tizen>
1889 public string StyleName
1893 return (string)GetValue(StyleNameProperty);
1897 SetValue(StyleNameProperty, value);
1898 NotifyPropertyChanged();
1903 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1905 /// <since_tizen> 3 </since_tizen>
1906 public Color BackgroundColor
1910 return (Color)GetValue(BackgroundColorProperty);
1914 SetValue(BackgroundColorProperty, value);
1915 NotifyPropertyChanged();
1920 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1922 /// <since_tizen> 3 </since_tizen>
1923 public string BackgroundImage
1927 return (string)GetValue(BackgroundImageProperty);
1931 SetValue(BackgroundImageProperty, value);
1932 NotifyPropertyChanged();
1937 /// The background of view.
1939 /// <since_tizen> 3 </since_tizen>
1940 public Tizen.NUI.PropertyMap Background
1944 return (PropertyMap)GetValue(BackgroundProperty);
1948 SetValue(BackgroundProperty, value);
1949 NotifyPropertyChanged();
1955 /// The current state of the view.
1957 /// <since_tizen> 3 </since_tizen>
1962 return (States)GetValue(StateProperty);
1966 SetValue(StateProperty, value);
1967 NotifyPropertyChanged();
1972 /// The current sub state of the view.
1974 /// <since_tizen> 3 </since_tizen>
1975 public States SubState
1979 return (States)GetValue(SubStateProperty);
1983 SetValue(SubStateProperty, value);
1984 NotifyPropertyChanged();
1989 /// Displays a tooltip
1991 /// <since_tizen> 3 </since_tizen>
1992 public Tizen.NUI.PropertyMap Tooltip
1996 return (PropertyMap)GetValue(TooltipProperty);
2000 SetValue(TooltipProperty, value);
2001 NotifyPropertyChanged();
2006 /// Displays a tooltip as a text.
2008 /// <since_tizen> 3 </since_tizen>
2009 public string TooltipText
2013 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
2014 NotifyPropertyChanged();
2019 /// The Child property of FlexContainer.<br />
2020 /// The proportion of the free space in the container, the flex item will receive.<br />
2021 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
2023 /// <since_tizen> 3 </since_tizen>
2028 return (float)GetValue(FlexProperty);
2032 SetValue(FlexProperty, value);
2033 NotifyPropertyChanged();
2038 /// The Child property of FlexContainer.<br />
2039 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
2041 /// <since_tizen> 3 </since_tizen>
2042 public int AlignSelf
2046 return (int)GetValue(AlignSelfProperty);
2050 SetValue(AlignSelfProperty, value);
2051 NotifyPropertyChanged();
2056 /// The Child property of FlexContainer.<br />
2057 /// The space around the flex item.<br />
2059 /// <since_tizen> 3 </since_tizen>
2060 public Vector4 FlexMargin
2064 return (Vector4)GetValue(FlexMarginProperty);
2068 SetValue(FlexMarginProperty, value);
2069 NotifyPropertyChanged();
2074 /// The top-left cell this child occupies, if not set, the first available cell is used.
2076 /// <since_tizen> 3 </since_tizen>
2077 public Vector2 CellIndex
2081 return (Vector2)GetValue(CellIndexProperty);
2085 SetValue(CellIndexProperty, value);
2086 NotifyPropertyChanged();
2091 /// The number of rows this child occupies, if not set, the default value is 1.
2093 /// <since_tizen> 3 </since_tizen>
2094 public float RowSpan
2098 return (float)GetValue(RowSpanProperty);
2102 SetValue(RowSpanProperty, value);
2103 NotifyPropertyChanged();
2108 /// The number of columns this child occupies, if not set, the default value is 1.
2110 /// <since_tizen> 3 </since_tizen>
2111 public float ColumnSpan
2115 return (float)GetValue(ColumnSpanProperty);
2119 SetValue(ColumnSpanProperty, value);
2120 NotifyPropertyChanged();
2125 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
2127 /// <since_tizen> 3 </since_tizen>
2128 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
2132 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
2136 SetValue(CellHorizontalAlignmentProperty, value);
2137 NotifyPropertyChanged();
2142 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
2144 /// <since_tizen> 3 </since_tizen>
2145 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
2149 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
2153 SetValue(CellVerticalAlignmentProperty, value);
2154 NotifyPropertyChanged();
2159 /// The left focusable view.<br />
2160 /// This will return null if not set.<br />
2161 /// This will also return null if the specified left focusable view is not on a window.<br />
2163 /// <since_tizen> 3 </since_tizen>
2164 public View LeftFocusableView
2166 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2169 return (View)GetValue(LeftFocusableViewProperty);
2173 SetValue(LeftFocusableViewProperty, value);
2174 NotifyPropertyChanged();
2179 /// The right focusable view.<br />
2180 /// This will return null if not set.<br />
2181 /// This will also return null if the specified right focusable view is not on a window.<br />
2183 /// <since_tizen> 3 </since_tizen>
2184 public View RightFocusableView
2186 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2189 return (View)GetValue(RightFocusableViewProperty);
2193 SetValue(RightFocusableViewProperty, value);
2194 NotifyPropertyChanged();
2199 /// The up focusable view.<br />
2200 /// This will return null if not set.<br />
2201 /// This will also return null if the specified up focusable view is not on a window.<br />
2203 /// <since_tizen> 3 </since_tizen>
2204 public View UpFocusableView
2206 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2209 return (View)GetValue(UpFocusableViewProperty);
2213 SetValue(UpFocusableViewProperty, value);
2214 NotifyPropertyChanged();
2219 /// The down focusable view.<br />
2220 /// This will return null if not set.<br />
2221 /// This will also return null if the specified down focusable view is not on a window.<br />
2223 /// <since_tizen> 3 </since_tizen>
2224 public View DownFocusableView
2226 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2229 return (View)GetValue(DownFocusableViewProperty);
2233 SetValue(DownFocusableViewProperty, value);
2234 NotifyPropertyChanged();
2239 /// Whether the view should be focusable by keyboard navigation.
2241 /// <since_tizen> 3 </since_tizen>
2242 public bool Focusable
2246 SetValue(FocusableProperty, value);
2247 NotifyPropertyChanged();
2251 return (bool)GetValue(FocusableProperty);
2256 /// Retrieves the position of the view.<br />
2257 /// The coordinates are relative to the view's parent.<br />
2259 /// <since_tizen> 3 </since_tizen>
2260 public Position CurrentPosition
2264 return GetCurrentPosition();
2269 /// Sets the size of a view for the width and the height.<br />
2270 /// Geometry can be scaled to fit within this area.<br />
2271 /// This does not interfere with the view's scale factor.<br />
2272 /// The views default depth is the minimum of width and height.<br />
2275 /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
2276 /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
2277 /// Please note that this multi-cascade setting is especially possible for this NUI object (Size2D). <br />
2278 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2279 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2280 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2281 /// It may not match the current value in some cases, i.e. when the animation is progressing or the maximum or minimu size is set. <br />
2283 /// <since_tizen> 3 </since_tizen>
2284 public Size2D Size2D
2288 Size2D temp = (Size2D)GetValue(Size2DProperty);
2289 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
2293 SetValue(Size2DProperty, value);
2294 // Set Specification so when layouts measure this View it matches the value set here.
2295 // All Views are currently Layouts.
2296 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
2297 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
2298 NotifyPropertyChanged();
2303 /// Retrieves the size of the view.<br />
2304 /// The coordinates are relative to the view's parent.<br />
2306 /// <since_tizen> 3 </since_tizen>
2307 public Size2D CurrentSize
2311 return GetCurrentSize();
2316 /// Retrieves and sets the view's opacity.<br />
2318 /// <since_tizen> 3 </since_tizen>
2319 public float Opacity
2323 return (float)GetValue(OpacityProperty);
2327 SetValue(OpacityProperty, value);
2328 NotifyPropertyChanged();
2333 /// Sets the position of the view for X and Y.<br />
2334 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2335 /// If the position inheritance is disabled, sets the world position.<br />
2338 /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
2339 /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
2340 /// Please note that this multi-cascade setting is especially possible for this NUI object (Position2D). <br />
2341 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2342 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2343 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2345 /// <since_tizen> 3 </since_tizen>
2346 public Position2D Position2D
2350 Position2D temp = (Position2D)GetValue(Position2DProperty);
2351 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
2355 SetValue(Position2DProperty, value);
2356 NotifyPropertyChanged();
2361 /// Retrieves the screen postion of the view.<br />
2363 /// <since_tizen> 3 </since_tizen>
2364 public Vector2 ScreenPosition
2368 Vector2 temp = new Vector2(0.0f, 0.0f);
2369 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2375 /// Determines whether the pivot point should be used to determine the position of the view.
2376 /// This is true by default.
2378 /// <remarks>If false, then the top-left of the view is used for the position.
2379 /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
2381 /// <since_tizen> 3 </since_tizen>
2382 public bool PositionUsesPivotPoint
2386 return (bool)GetValue(PositionUsesPivotPointProperty);
2390 SetValue(PositionUsesPivotPointProperty, value);
2391 NotifyPropertyChanged();
2396 /// Please do not use! this will be deprecated.
2398 /// Please do not use! this will be deprecated!
2399 /// Instead please use PositionUsesPivotPoint.
2400 /// <since_tizen> 3 </since_tizen>
2401 [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " +
2403 "View view = new View(); " +
2404 "view.PivotPoint = PivotPoint.Center; " +
2405 "view.PositionUsesPivotPoint = true;")]
2406 [EditorBrowsable(EditorBrowsableState.Never)]
2407 public bool PositionUsesAnchorPoint
2412 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2417 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2418 NotifyPropertyChanged();
2423 /// Queries whether the view is connected to the stage.<br />
2424 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2426 /// <since_tizen> 3 </since_tizen>
2427 public bool IsOnWindow
2436 /// Gets the depth in the hierarchy for the view.
2438 /// <since_tizen> 3 </since_tizen>
2439 public int HierarchyDepth
2443 return GetHierarchyDepth();
2448 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2451 /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
2452 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2453 /// The values set by this property will likely change.
2455 /// <since_tizen> 3 </since_tizen>
2456 public int SiblingOrder
2460 return (int)GetValue(SiblingOrderProperty);
2464 SetValue(SiblingOrderProperty, value);
2465 NotifyPropertyChanged();
2470 /// Returns the natural size of the view.
2473 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2475 /// <since_tizen> 5 </since_tizen>
2476 public Vector3 NaturalSize
2480 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2481 if (NDalicPINVOKE.SWIGPendingException.Pending)
2482 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2488 /// Returns the natural size (Size2D) of the view.
2491 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2493 /// <since_tizen> 4 </since_tizen>
2494 public Size2D NaturalSize2D
2498 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2499 if (NDalicPINVOKE.SWIGPendingException.Pending)
2500 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2502 return new Size2D((int)temp.Width, (int)temp.Height);
2507 /// Gets or sets the origin of a view within its parent's area.<br />
2508 /// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the parent, and (1.0, 1.0, 0.5) is the bottom-right corner.<br />
2509 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
2510 /// A view's position is the distance between this origin and the view's anchor-point.<br />
2512 /// <pre>The view has been initialized.</pre>
2513 /// <since_tizen> 3 </since_tizen>
2514 public Position ParentOrigin
2518 return (Position)GetValue(ParentOriginProperty);
2522 SetValue(ParentOriginProperty, value);
2523 NotifyPropertyChanged();
2528 /// Gets or sets the anchor-point of a view.<br />
2529 /// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the view, and (1.0, 1.0, 0.5) is the bottom-right corner.<br />
2530 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
2531 /// A view position is the distance between its parent-origin and this anchor-point.<br />
2532 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
2533 /// <pre>The view has been initialized.</pre>
2535 /// <since_tizen> 3 </since_tizen>
2536 public Position PivotPoint
2540 return (Position)GetValue(PivotPointProperty);
2544 SetValue(PivotPointProperty, value);
2545 NotifyPropertyChanged();
2550 /// Gets or sets the size width of the view.
2552 /// <since_tizen> 3 </since_tizen>
2553 public float SizeWidth
2557 return (float)GetValue(SizeWidthProperty);
2561 SetValue(SizeWidthProperty, value);
2562 WidthSpecification = (int)Math.Ceiling(value);
2563 NotifyPropertyChanged();
2568 /// Gets or sets the size height of the view.
2570 /// <since_tizen> 3 </since_tizen>
2571 public float SizeHeight
2575 return (float)GetValue(SizeHeightProperty);
2579 SetValue(SizeHeightProperty, value);
2580 HeightSpecification = (int)Math.Ceiling(value);
2581 NotifyPropertyChanged();
2586 /// Gets or sets the position of the view.<br />
2587 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
2588 /// If the position inheritance is disabled, sets the world position.<br />
2590 /// <since_tizen> 3 </since_tizen>
2591 public Position Position
2595 return (Position)GetValue(PositionProperty);
2599 SetValue(PositionProperty, value);
2600 NotifyPropertyChanged();
2605 /// Gets or sets the position X of the view.
2607 /// <since_tizen> 3 </since_tizen>
2608 public float PositionX
2612 return (float)GetValue(PositionXProperty);
2616 SetValue(PositionXProperty, value);
2617 NotifyPropertyChanged();
2622 /// Gets or sets the position Y of the view.
2624 /// <since_tizen> 3 </since_tizen>
2625 public float PositionY
2629 return (float)GetValue(PositionYProperty);
2633 SetValue(PositionYProperty, value);
2634 NotifyPropertyChanged();
2639 /// Gets or sets the position Z of the view.
2641 /// <since_tizen> 3 </since_tizen>
2642 public float PositionZ
2646 return (float)GetValue(PositionZProperty);
2650 SetValue(PositionZProperty, value);
2651 NotifyPropertyChanged();
2656 /// Gets or sets the world position of the view.
2658 /// <since_tizen> 3 </since_tizen>
2659 public Vector3 WorldPosition
2663 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2664 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2670 /// Gets or sets the orientation of the view.<br />
2671 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
2673 /// <remarks>This is an asynchronous method.</remarks>
2674 /// <since_tizen> 3 </since_tizen>
2675 public Rotation Orientation
2679 return (Rotation)GetValue(OrientationProperty);
2683 SetValue(OrientationProperty, value);
2684 NotifyPropertyChanged();
2689 /// Gets or sets the world orientation of the view.<br />
2691 /// <since_tizen> 3 </since_tizen>
2692 public Rotation WorldOrientation
2696 Rotation temp = new Rotation();
2697 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2703 /// Gets or sets the scale factor applied to the view.<br />
2705 /// <since_tizen> 3 </since_tizen>
2706 public Vector3 Scale
2710 return (Vector3)GetValue(ScaleProperty);
2714 SetValue(ScaleProperty, value);
2715 NotifyPropertyChanged();
2720 /// Gets or sets the scale X factor applied to the view.
2722 /// <since_tizen> 3 </since_tizen>
2727 return (float)GetValue(ScaleXProperty);
2731 SetValue(ScaleXProperty, value);
2732 NotifyPropertyChanged();
2737 /// Gets or sets the scale Y factor applied to the view.
2739 /// <since_tizen> 3 </since_tizen>
2744 return (float)GetValue(ScaleYProperty);
2748 SetValue(ScaleYProperty, value);
2749 NotifyPropertyChanged();
2754 /// Gets or sets the scale Z factor applied to the view.
2756 /// <since_tizen> 3 </since_tizen>
2761 return (float)GetValue(ScaleZProperty);
2765 SetValue(ScaleZProperty, value);
2766 NotifyPropertyChanged();
2771 /// Gets the world scale of the view.
2773 /// <since_tizen> 3 </since_tizen>
2774 public Vector3 WorldScale
2778 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2779 GetProperty(View.Property.WORLD_SCALE).Get(temp);
2785 /// Retrieves the visibility flag of the view.
2788 /// If the view is not visible, then the view and its children will not be rendered.
2789 /// This is regardless of the individual visibility values of the children, i.e., the view will only be rendered if all of its parents have visibility set to true.
2791 /// <since_tizen> 3 </since_tizen>
2792 public bool Visibility
2797 GetProperty(View.Property.VISIBLE).Get(out temp);
2803 /// Gets the view's world color.
2805 /// <since_tizen> 3 </since_tizen>
2806 public Vector4 WorldColor
2810 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2811 GetProperty(View.Property.WORLD_COLOR).Get(temp);
2817 /// Gets or sets the view's name.
2819 /// <since_tizen> 3 </since_tizen>
2824 return (string)GetValue(NameProperty);
2828 SetValue(NameProperty, value);
2829 NotifyPropertyChanged();
2834 /// Get the number of children held by the view.
2836 /// <since_tizen> 3 </since_tizen>
2837 public new uint ChildCount
2841 return GetChildCount();
2846 /// Gets the view's ID.
2849 /// <since_tizen> 3 </since_tizen>
2859 /// Gets or sets the status of whether the view should emit touch or hover signals.
2861 /// <since_tizen> 3 </since_tizen>
2862 public bool Sensitive
2866 return (bool)GetValue(SensitiveProperty);
2870 SetValue(SensitiveProperty, value);
2871 NotifyPropertyChanged();
2876 /// Gets or sets the status of whether the view should receive a notification when touch or hover motion events leave the boundary of the view.
2878 /// <since_tizen> 3 </since_tizen>
2879 public bool LeaveRequired
2883 return (bool)GetValue(LeaveRequiredProperty);
2887 SetValue(LeaveRequiredProperty, value);
2888 NotifyPropertyChanged();
2893 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
2895 /// <since_tizen> 3 </since_tizen>
2896 public bool InheritOrientation
2900 return (bool)GetValue(InheritOrientationProperty);
2904 SetValue(InheritOrientationProperty, value);
2905 NotifyPropertyChanged();
2910 /// Gets or sets the status of whether a child view inherits it's parent's scale.
2912 /// <since_tizen> 3 </since_tizen>
2913 public bool InheritScale
2917 return (bool)GetValue(InheritScaleProperty);
2921 SetValue(InheritScaleProperty, value);
2922 NotifyPropertyChanged();
2927 /// Gets or sets the status of how the view and its children should be drawn.<br />
2928 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
2929 /// If an object is in a 3D layer, it will be depth-tested against other objects in the world, i.e., it may be obscured if other objects are in front.<br />
2930 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
2931 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
2932 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
2934 /// <since_tizen> 3 </since_tizen>
2935 public DrawModeType DrawMode
2939 return (DrawModeType)GetValue(DrawModeProperty);
2943 SetValue(DrawModeProperty, value);
2944 NotifyPropertyChanged();
2949 /// Gets or sets the relative to parent size factor of the view.<br />
2950 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
2951 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
2953 /// <since_tizen> 3 </since_tizen>
2954 public Vector3 SizeModeFactor
2958 return (Vector3)GetValue(SizeModeFactorProperty);
2962 SetValue(SizeModeFactorProperty, value);
2963 NotifyPropertyChanged();
2968 /// Gets or sets the width resize policy to be used.
2970 /// <since_tizen> 3 </since_tizen>
2971 public ResizePolicyType WidthResizePolicy
2975 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
2979 SetValue(WidthResizePolicyProperty, value);
2980 // Match ResizePolicy to new Layouting.
2981 // Parent relative policies can not be mapped at this point as parent size unknown.
2984 case ResizePolicyType.UseNaturalSize:
2986 WidthSpecification = LayoutParamPolicies.WrapContent;
2989 case ResizePolicyType.FillToParent:
2991 WidthSpecification = LayoutParamPolicies.MatchParent;
2994 case ResizePolicyType.FitToChildren:
2996 WidthSpecification = LayoutParamPolicies.WrapContent;
3002 NotifyPropertyChanged();
3007 /// Gets or sets the height resize policy to be used.
3009 /// <since_tizen> 3 </since_tizen>
3010 public ResizePolicyType HeightResizePolicy
3014 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
3018 SetValue(HeightResizePolicyProperty, value);
3019 // Match ResizePolicy to new Layouting.
3020 // Parent relative policies can not be mapped at this point as parent size unknown.
3023 case ResizePolicyType.UseNaturalSize:
3025 HeightSpecification = LayoutParamPolicies.WrapContent;
3028 case ResizePolicyType.FillToParent:
3030 HeightSpecification = LayoutParamPolicies.MatchParent;
3033 case ResizePolicyType.FitToChildren:
3035 HeightSpecification = LayoutParamPolicies.WrapContent;
3041 NotifyPropertyChanged();
3046 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3047 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3049 /// <since_tizen> 3 </since_tizen>
3050 public SizeScalePolicyType SizeScalePolicy
3054 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
3058 SetValue(SizeScalePolicyProperty, value);
3059 NotifyPropertyChanged();
3064 /// Gets or sets the status of whether the width size is dependent on the height size.
3066 /// <since_tizen> 3 </since_tizen>
3067 public bool WidthForHeight
3071 return (bool)GetValue(WidthForHeightProperty);
3075 SetValue(WidthForHeightProperty, value);
3076 NotifyPropertyChanged();
3081 /// Gets or sets the status of whether the height size is dependent on the width size.
3083 /// <since_tizen> 3 </since_tizen>
3084 public bool HeightForWidth
3088 return (bool)GetValue(HeightForWidthProperty);
3092 SetValue(HeightForWidthProperty, value);
3093 NotifyPropertyChanged();
3098 /// Gets or sets the padding for use in layout.
3100 /// <since_tizen> 5 </since_tizen>
3101 public Extents Padding
3105 // If View has a Layout then padding in stored in the base Layout class
3108 return Layout.Padding;
3112 return (Extents)GetValue(PaddingProperty);
3114 // Two return points to prevent creating a zeroed Extent native object before assignment
3118 Extents padding = value;
3121 // Layout set so store Padding in LayoutItem instead of in View.
3122 // If View stores the Padding value then Legacy Size Negotiation will overwrite
3123 // the position and sizes measure in the Layouting.
3124 Layout.Padding = value;
3125 // If Layout is a LayoutItem then it could be a View that handles it's own padding.
3126 // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.
3127 if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
3129 padding = new Extents(0,0,0,0); // Reset value stored in View.
3131 _layout?.RequestLayout();
3133 SetValue(PaddingProperty, padding);
3134 NotifyPropertyChanged();
3135 _layout?.RequestLayout();
3140 /// Gets or sets the minimum size the view can be assigned in size negotiation.
3142 /// <since_tizen> 3 </since_tizen>
3143 public Size2D MinimumSize
3147 return (Size2D)GetValue(MinimumSizeProperty);
3151 if (_layout != null)
3153 // Note: it only works if minimum size is >= than natural size.
3154 // To force the size it should be done through the width&height spec or Size2D.
3155 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
3156 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
3157 _layout.RequestLayout();
3159 SetValue(MinimumSizeProperty, value);
3160 NotifyPropertyChanged();
3165 /// Gets or sets the maximum size the view can be assigned in size negotiation.
3167 /// <since_tizen> 3 </since_tizen>
3168 public Size2D MaximumSize
3172 return (Size2D)GetValue(MaximumSizeProperty);
3176 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
3177 // MATCH_PARENT spec + parent container size can be used to limit
3178 if (_layout != null)
3180 // Note: it only works if minimum size is >= than natural size.
3181 // To force the size it should be done through the width&height spec or Size2D.
3182 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
3183 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
3184 _layout.RequestLayout();
3186 SetValue(MaximumSizeProperty, value);
3187 NotifyPropertyChanged();
3192 /// Gets or sets whether a child view inherits it's parent's position.<br />
3193 /// Default is to inherit.<br />
3194 /// Switching this off means that using position sets the view's world position, i.e., translates from the world origin (0,0,0) to the pivot point of the view.<br />
3196 /// <since_tizen> 3 </since_tizen>
3197 public bool InheritPosition
3201 return (bool)GetValue(InheritPositionProperty);
3205 SetValue(InheritPositionProperty, value);
3206 NotifyPropertyChanged();
3211 /// Gets or sets the clipping behavior (mode) of it's children.
3213 /// <since_tizen> 3 </since_tizen>
3214 public ClippingModeType ClippingMode
3218 return (ClippingModeType)GetValue(ClippingModeProperty);
3222 SetValue(ClippingModeProperty, value);
3223 NotifyPropertyChanged();
3228 /// Gets the number of renderers held by the view.
3230 /// <since_tizen> 3 </since_tizen>
3231 public uint RendererCount
3235 return GetRendererCount();
3240 /// [Obsolete("Please do not use! this will be deprecated")]
3242 /// <since_tizen> 3 </since_tizen>
3243 /// Please do not use! this will be deprecated!
3244 /// Instead please use PivotPoint.
3245 [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " +
3247 "View view = new View(); " +
3248 "view.PivotPoint = PivotPoint.Center; " +
3249 "view.PositionUsesPivotPoint = true;")]
3250 [EditorBrowsable(EditorBrowsableState.Never)]
3251 public Position AnchorPoint
3255 Position temp = new Position(0.0f, 0.0f, 0.0f);
3256 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3261 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3262 NotifyPropertyChanged();
3267 /// Sets the size of a view for the width, the height and the depth.<br />
3268 /// Geometry can be scaled to fit within this area.<br />
3269 /// This does not interfere with the view's scale factor.<br />
3270 /// The views default depth is the minimum of width and height.<br />
3273 /// Please note that multi-cascade setting is not possible for this NUI object. <br />
3274 /// It is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
3275 /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f); <br />
3276 /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f; <br />
3277 /// It may not match the current value in some cases, i.e. when the animation is progressing or the maximum or minimu size is set. <br />
3279 /// <since_tizen> 5 </since_tizen>
3284 return (Size)GetValue(SizeProperty);
3288 SetValue(SizeProperty, value);
3289 // Set Specification so when layouts measure this View it matches the value set here.
3290 // All Views are currently Layouts.
3291 WidthSpecification = (int)Math.Ceiling(value.Width);
3292 HeightSpecification = (int)Math.Ceiling(value.Height);
3293 NotifyPropertyChanged();
3298 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
3300 /// <since_tizen> 3 </since_tizen>
3301 [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " +
3303 "Container parent = view.GetParent(); " +
3304 "View view = parent as View;")]
3305 [EditorBrowsable(EditorBrowsableState.Never)]
3306 public new View Parent
3311 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
3312 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
3313 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
3315 if (basehandle is Layer layer)
3317 ret = new View(Layer.getCPtr(layer).Handle, false);
3318 NUILog.Error("This Parent property is deprecated, shoud do not be used");
3322 ret = basehandle as View;
3325 Interop.BaseHandle.delete_BaseHandle(CPtr);
3326 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
3328 if (NDalicPINVOKE.SWIGPendingException.Pending)
3329 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3335 /// Gets/Sets whether inherit parent's the layout Direction.
3337 /// <since_tizen> 4 </since_tizen>
3338 public bool InheritLayoutDirection
3342 return (bool)GetValue(InheritLayoutDirectionProperty);
3346 SetValue(InheritLayoutDirectionProperty, value);
3347 NotifyPropertyChanged();
3352 /// Gets/Sets the layout Direction.
3354 /// <since_tizen> 4 </since_tizen>
3355 public ViewLayoutDirectionType LayoutDirection
3359 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
3363 SetValue(LayoutDirectionProperty, value);
3364 NotifyPropertyChanged();
3365 _layout?.RequestLayout();
3370 /// Gets or sets the Margin for use in layout.
3373 /// Margin property is supported by Layout algorithms and containers.
3374 /// Please Set Layout if you want to use Margin property.
3376 /// <since_tizen> 4 </since_tizen>
3377 public Extents Margin
3381 // If View has a Layout then margin is stored in Layout.
3384 return Layout.Margin;
3388 // If Layout not set then return margin stored in View.
3389 return (Extents)GetValue(MarginProperty);
3391 // Two return points to prevent creating a zeroed Extent native object before assignment
3397 // Layout set so store Margin in LayoutItem instead of View.
3398 // If View stores the Margin too then the Legacy Size Negotiation will
3399 // overwrite the position and size values measured in the Layouting.
3400 Layout.Margin = value;
3401 SetValue(MarginProperty, new Extents(0,0,0,0));
3402 _layout?.RequestLayout();
3406 SetValue(MarginProperty, value);
3408 NotifyPropertyChanged();
3409 _layout?.RequestLayout();
3414 /// The required policy for this dimension, ChildLayoutData enum or exact value.
3416 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3418 /// Previously named LayoutWidthSpecification
3420 [EditorBrowsable(EditorBrowsableState.Never)]
3421 public int WidthSpecification
3425 return _widthPolicy;
3429 _widthPolicy = value;
3430 if (_widthPolicy >= 0)
3432 _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3433 Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3435 _layout?.RequestLayout();
3440 /// The required policy for this dimension, ChildLayoutData enum or exact value.
3442 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3444 /// Previously named LayoutHeightSpecification
3446 [EditorBrowsable(EditorBrowsableState.Never)]
3447 public int HeightSpecification
3451 return _heightPolicy;
3455 _heightPolicy = value;
3456 if (_heightPolicy >= 0)
3458 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3459 Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3461 _layout?.RequestLayout();
3467 /// [Obsolete("Please do not use! this will be deprecated")]
3469 /// Please do not use! this will be deprecated!
3470 /// Instead please use Padding.
3471 /// <since_tizen> 4 </since_tizen>
3472 [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
3473 [EditorBrowsable(EditorBrowsableState.Never)]
3474 public Extents PaddingEX
3478 Extents temp = new Extents(0, 0, 0, 0);
3479 GetProperty(View.Property.PADDING).Get(temp);
3484 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3485 NotifyPropertyChanged();
3486 _layout?.RequestLayout();
3490 /// <since_tizen> 6 </since_tizen>
3491 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
3492 [EditorBrowsable(EditorBrowsableState.Never)]
3493 public Style XamlStyle
3497 return (Style)GetValue(XamlStyleProperty);
3501 SetValue(XamlStyleProperty, value);
3506 /// The Color of View. This is an RGBA value.
3508 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3509 [EditorBrowsable(EditorBrowsableState.Never)]
3518 return GetCurrentColor();
3523 /// The color mode of View.
3524 /// This specifies whether the View uses its own color, or inherits its parent color.
3525 /// The default is ColorMode.UseOwnMultiplyParentColor.
3527 internal ColorMode ColorMode
3531 SetColorMode(value);
3535 return GetColorMode();
3540 /// Child property to specify desired width, use MatchParent/WrapContent)
3542 internal ChildLayoutData LayoutWidthSpecification
3546 return (ChildLayoutData)_widthPolicy;
3550 _widthPolicy = (int)value;
3555 /// Child property to specify desired height, use MatchParent/WrapContent)
3557 internal ChildLayoutData LayoutHeightSpecification
3561 return (ChildLayoutData)_heightPolicy;
3565 _heightPolicy = (int)value;
3569 internal float Weight
3578 _layout?.RequestLayout();
3583 /// Whether to load the BackgroundImage synchronously.
3584 /// If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
3585 /// Note: For Normal Quad images only.
3587 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3588 [EditorBrowsable(EditorBrowsableState.Never)]
3589 public bool BackgroundImageSynchronosLoading
3593 return _backgroundImageSynchronosLoading;
3597 if (value != _backgroundImageSynchronosLoading)
3600 PropertyMap bgMap = this.Background;
3602 bgMap.Find(Visual.Property.Type)?.Get(out visualType);
3603 if (visualType == (int)Visual.Type.Image)
3605 bgMap.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3607 if (bgUrl.Length != 0)
3609 _backgroundImageSynchronosLoading = value;
3610 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3611 this.Background = bgMap;
3617 internal float WorldPositionX
3622 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3627 internal float WorldPositionY
3632 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3637 internal float WorldPositionZ
3642 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3647 internal bool FocusState
3651 return IsKeyboardFocusable();
3655 SetKeyboardFocusable(value);
3660 /// Set the layout on this View. Replaces any existing Layout.
3664 internal LayoutItem Layout
3672 // Do nothing if layout provided is already set on this View.
3673 if (value == _layout)
3678 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3679 layoutingDisabled = false;
3682 // If new layout being set already has a owner then that owner receives a replacement default layout.
3683 // First check if the layout to be set already has a owner.
3684 if (value?.Owner != null)
3686 Log.Info("NUI", "Set layout already in use by another View: " + value.Owner.Name + "will get a LayoutGroup\n");
3687 // Previous owner of the layout gets a default layout as a replacement.
3688 value.Owner.Layout = new LayoutGroup();
3690 // Copy Margin and Padding to replacement LayoutGroup.
3691 value.Owner.Layout.Margin = value.Margin;
3692 value.Owner.Layout.Padding = value.Padding;
3695 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3696 // View if no replacement. Previously margin and padding values would have been moved from
3697 // the View to the layout.
3698 if (_layout != null ) // Existing layout
3702 // Existing layout being replaced so copy over margin and padding values.
3703 value.Margin = _layout.Margin;
3704 value.Padding = _layout.Padding;
3708 // Layout not being replaced so restore margin and padding to View.
3709 SetValue(MarginProperty, _layout.Margin);
3710 SetValue(PaddingProperty, _layout.Padding);
3711 NotifyPropertyChanged();
3716 // First Layout to be added to the View hence copy
3718 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3721 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3723 // If View already has a margin set then store it in Layout instead.
3724 value.Margin = Margin;
3725 SetValue(MarginProperty, new Extents(0,0,0,0));
3726 NotifyPropertyChanged();
3729 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3731 // If View already has a padding set then store it in Layout instead.
3732 value.Padding = Padding;
3733 SetValue(PaddingProperty, new Extents(0,0,0,0));
3734 NotifyPropertyChanged();
3739 // Remove existing layout from it's parent layout group.
3740 _layout?.Unparent();
3742 // Set layout to this view
3747 internal void SetLayout(LayoutItem layout)
3750 _layout?.AttachToOwner(this);
3751 _layout?.RequestLayout();
3755 /// Stores the calculated width value and its ModeType. Width component.
3757 internal MeasureSpecification MeasureSpecificationWidth
3761 _measureSpecificationWidth = value;
3762 _layout?.RequestLayout();
3766 return _measureSpecificationWidth;
3771 /// Stores the calculated width value and its ModeType. Height component.
3773 internal MeasureSpecification MeasureSpecificationHeight
3777 _measureSpecificationHeight = value;
3778 _layout?.RequestLayout();
3782 return _measureSpecificationHeight;
3786 internal float ParentOriginX
3791 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3796 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3797 NotifyPropertyChanged();
3801 internal float ParentOriginY
3806 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3811 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3812 NotifyPropertyChanged();
3816 internal float ParentOriginZ
3821 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3826 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3827 NotifyPropertyChanged();
3831 internal float PivotPointX
3836 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3841 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3845 internal float PivotPointY
3850 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3855 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3859 internal float PivotPointZ
3864 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3869 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3873 internal Matrix WorldMatrix
3877 Matrix temp = new Matrix();
3878 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3883 private int LeftFocusableViewId
3888 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
3893 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3897 private int RightFocusableViewId
3902 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
3907 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3911 private int UpFocusableViewId
3916 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
3921 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3925 private int DownFocusableViewId
3930 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
3935 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3940 /// Perform an action on a visual registered to this view. <br />
3941 /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
3943 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
3944 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
3945 /// <param name="attributes">Optional attributes for the action.</param>
3946 /// <since_tizen> 5 </since_tizen>
3947 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
3949 Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
3950 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3954 /// Creates an animation to animate the background color visual. If there is no
3955 /// background visual, creates one with transparent black as it's mixColor.
3957 /// <since_tizen> 3 </since_tizen>
3958 public Animation AnimateBackgroundColor(object destinationValue,
3961 AlphaFunction.BuiltinFunctions? alphaFunction = null,
3962 object initialValue = null)
3964 Tizen.NUI.PropertyMap background = Background;
3966 if (background.Empty())
3968 // If there is no background yet, ensure there is a transparent
3970 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
3971 background = Background;
3973 return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
3977 /// Creates an animation to animate the mixColor of the named visual.
3979 /// <since_tizen> 3 </since_tizen>
3980 public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
3982 Animation animation = null;
3984 PropertyMap _animator = new PropertyMap();
3985 if (alphaFunction != null)
3987 _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
3990 PropertyMap _timePeriod = new PropertyMap();
3991 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
3992 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
3993 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
3995 PropertyMap _transition = new PropertyMap();
3996 _transition.Add("animator", new PropertyValue(_animator));
3997 _transition.Add("target", new PropertyValue(targetVisual));
3998 _transition.Add("property", new PropertyValue("mixColor"));
4000 if (initialColor != null)
4002 PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
4003 _transition.Add("initialValue", initValue);
4006 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
4007 _transition.Add("targetValue", destValue);
4008 TransitionData _transitionData = new TransitionData(_transition);
4010 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
4011 if (NDalicPINVOKE.SWIGPendingException.Pending)
4012 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4017 // From Container Base class
4019 /// Adds a child view to this view.
4021 /// <seealso cref="Container.Add" />
4022 /// <since_tizen> 4 </since_tizen>
4023 public override void Add(View child)
4025 bool hasLayout = (_layout != null);
4026 Log.Info("NUI", "Add:" + child.Name + " to View:" + Name + " which has layout[" + hasLayout + "] + \n");
4030 Tizen.Log.Fatal("NUI", "Child is null");
4034 Container oldParent = child.GetParent();
4035 if (oldParent != this)
4037 // If child already has a parent then re-parent child
4038 if (oldParent != null)
4040 oldParent.Remove(child);
4042 child.InternalParent = this;
4044 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4046 if (NDalicPINVOKE.SWIGPendingException.Pending)
4047 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4048 Children.Add(child);
4050 if (ChildAdded != null)
4052 ChildAddedEventArgs e = new ChildAddedEventArgs
4056 ChildAdded(this, e);
4058 BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
4063 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4065 /// <seealso cref="Container.Remove" />
4066 /// <since_tizen> 4 </since_tizen>
4067 public override void Remove(View child)
4069 bool hasLayout = (_layout != null);
4070 Log.Info("NUI","Removing View:" + child.Name + "layout[" + hasLayout.ToString() +"]\n");
4072 Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
4073 if (NDalicPINVOKE.SWIGPendingException.Pending)
4074 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4076 Children.Remove(child);
4077 child.InternalParent = null;
4079 if (ChildRemoved != null)
4081 ChildRemovedEventArgs e = new ChildRemovedEventArgs
4085 ChildRemoved(this, e);
4090 /// Retrieves a child view by index.
4092 /// <seealso cref="Container.GetChildAt" />
4093 /// <since_tizen> 4 </since_tizen>
4094 public override View GetChildAt(uint index)
4096 if (index < Children.Count)
4098 return Children[Convert.ToInt32(index)];
4107 /// Retrieves the number of children held by the view.
4109 /// <seealso cref="Container.GetChildCount" />
4110 /// <since_tizen> 4 </since_tizen>
4111 public override uint GetChildCount()
4113 return Convert.ToUInt32(Children.Count);
4117 /// Gets the views parent.
4119 /// <seealso cref="Container.GetParent()" />
4120 /// <since_tizen> 4 </since_tizen>
4121 public override Container GetParent()
4123 return this.InternalParent as Container;
4127 /// Queries whether the view has a focus.
4129 /// <returns>True if this view has a focus.</returns>
4130 /// <since_tizen> 3 </since_tizen>
4131 public bool HasFocus()
4134 if (swigCPtr.Handle != global::System.IntPtr.Zero)
4136 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4137 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4141 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4147 /// Sets the name of the style to be applied to the view.
4149 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4150 /// <since_tizen> 3 </since_tizen>
4151 public void SetStyleName(string styleName)
4153 Interop.View.View_SetStyleName(swigCPtr, styleName);
4154 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4158 /// Retrieves the name of the style to be applied to the view (if any).
4160 /// <returns>A string matching a style, or an empty string.</returns>
4161 /// <since_tizen> 3 </since_tizen>
4162 public string GetStyleName()
4164 string ret = Interop.View.View_GetStyleName(swigCPtr);
4165 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4170 /// Clears the background.
4172 /// <since_tizen> 3 </since_tizen>
4173 public void ClearBackground()
4175 Interop.View.View_ClearBackground(swigCPtr);
4176 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4183 /// This is an asynchronous method.
4185 /// <since_tizen> 3 </since_tizen>
4195 /// This is an asynchronous method.
4196 /// If the view is hidden, then the view and its children will not be rendered.
4197 /// This is regardless of the individual visibility of the children, i.e., the view will only be rendered if all of its parents are shown.
4199 /// <since_tizen> 3 </since_tizen>
4206 /// Raises the view above all other views.
4209 /// Sibling order of views within the parent will be updated automatically.
4210 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4212 /// <since_tizen> 3 </since_tizen>
4213 public void RaiseToTop()
4215 var parentChildren = GetParent()?.Children;
4217 if (parentChildren != null)
4219 parentChildren.Remove(this);
4220 parentChildren.Add(this);
4222 Interop.NDalic.RaiseToTop(swigCPtr);
4223 if (NDalicPINVOKE.SWIGPendingException.Pending)
4224 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4230 /// Lowers the view to the bottom of all views.
4233 /// The sibling order of views within the parent will be updated automatically.
4234 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4236 /// <since_tizen> 3 </since_tizen>
4237 public void LowerToBottom()
4239 var parentChildren = GetParent()?.Children;
4241 if (parentChildren != null)
4243 parentChildren.Remove(this);
4244 parentChildren.Insert(0, this);
4246 Interop.NDalic.LowerToBottom(swigCPtr);
4247 if (NDalicPINVOKE.SWIGPendingException.Pending)
4248 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4253 /// Queries if all resources required by a view are loaded and ready.
4255 /// <remarks>Most resources are only loaded when the control is placed on the stage.
4257 /// <since_tizen> 3 </since_tizen>
4258 public bool IsResourceReady()
4260 bool ret = Interop.View.IsResourceReady(swigCPtr);
4261 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4266 /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4268 /// <pre>The view has been initialized. </pre>
4269 /// <returns>The parent layer of view </returns>
4270 /// <since_tizen> 5 </since_tizen>
4271 public Layer GetLayer()
4273 //to fix memory leak issue, match the handle count with native side.
4274 IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4275 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4276 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4277 Interop.BaseHandle.delete_BaseHandle(CPtr);
4278 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4280 if (NDalicPINVOKE.SWIGPendingException.Pending)
4281 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4286 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4288 /// <pre>The (child) view has been initialized. </pre>
4289 /// <since_tizen> 4 </since_tizen>
4290 public void Unparent()
4292 GetParent()?.Remove(this);
4296 /// Search through this view's hierarchy for a view with the given name.
4297 /// The view itself is also considered in the search.
4299 /// <pre>The view has been initialized.</pre>
4300 /// <param name="viewName">The name of the view to find.</param>
4301 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4302 /// <since_tizen> 3 </since_tizen>
4303 public View FindChildByName(string viewName)
4305 //to fix memory leak issue, match the handle count with native side.
4306 IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4307 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4308 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4309 Interop.BaseHandle.delete_BaseHandle(CPtr);
4310 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4312 if (NDalicPINVOKE.SWIGPendingException.Pending)
4313 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4318 /// Converts screen coordinates into the view's coordinate system using the default camera.
4320 /// <pre>The view has been initialized.</pre>
4321 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4322 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4323 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4324 /// <param name="screenX">The screen X-coordinate.</param>
4325 /// <param name="screenY">The screen Y-coordinate.</param>
4326 /// <returns>True if the conversion succeeded.</returns>
4327 /// <since_tizen> 3 </since_tizen>
4328 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4330 bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4331 if (NDalicPINVOKE.SWIGPendingException.Pending)
4332 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4337 /// Sets the relative to parent size factor of the view.<br />
4338 /// This factor is only used when ResizePolicy is set to either:
4339 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4340 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4342 /// <pre>The view has been initialized.</pre>
4343 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4344 /// <since_tizen> 3 </since_tizen>
4345 public void SetSizeModeFactor(Vector3 factor)
4347 Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4348 if (NDalicPINVOKE.SWIGPendingException.Pending)
4349 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4352 /// Calculates the height of the view given a width.<br />
4353 /// The natural size is used for default calculation.<br />
4354 /// Size 0 is treated as aspect ratio 1:1.<br />
4356 /// <param name="width">The width to use.</param>
4357 /// <returns>The height based on the width.</returns>
4358 /// <since_tizen> 3 </since_tizen>
4359 public float GetHeightForWidth(float width)
4361 float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4362 if (NDalicPINVOKE.SWIGPendingException.Pending)
4363 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4368 /// Calculates the width of the view given a height.<br />
4369 /// The natural size is used for default calculation.<br />
4370 /// Size 0 is treated as aspect ratio 1:1.<br />
4372 /// <param name="height">The height to use.</param>
4373 /// <returns>The width based on the height.</returns>
4374 /// <since_tizen> 3 </since_tizen>
4375 public float GetWidthForHeight(float height)
4377 float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4378 if (NDalicPINVOKE.SWIGPendingException.Pending)
4379 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4384 /// Return the amount of size allocated for relayout.
4386 /// <param name="dimension">The dimension to retrieve.</param>
4387 /// <returns>Return the size.</returns>
4388 /// <since_tizen> 3 </since_tizen>
4389 public float GetRelayoutSize(DimensionType dimension)
4391 float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4392 if (NDalicPINVOKE.SWIGPendingException.Pending)
4393 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4398 /// Set the padding for the view.
4400 /// <param name="padding">Padding for the view.</param>
4401 /// <since_tizen> 3 </since_tizen>
4402 public void SetPadding(PaddingType padding)
4404 Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4405 if (NDalicPINVOKE.SWIGPendingException.Pending)
4406 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4410 /// Return the value of padding for the view.
4412 /// <param name="paddingOut">the value of padding for the view</param>
4413 /// <since_tizen> 3 </since_tizen>
4414 public void GetPadding(PaddingType paddingOut)
4416 Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4417 if (NDalicPINVOKE.SWIGPendingException.Pending)
4418 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4421 /// <since_tizen> 3 </since_tizen>
4422 public uint AddRenderer(Renderer renderer)
4424 uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4425 if (NDalicPINVOKE.SWIGPendingException.Pending)
4426 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4430 /// <since_tizen> 3 </since_tizen>
4431 public Renderer GetRendererAt(uint index)
4433 //to fix memory leak issue, match the handle count with native side.
4434 IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4435 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4436 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4437 if (cPtr != null && ret == null)
4439 ret = new Renderer(cPtr, false);
4440 if (NDalicPINVOKE.SWIGPendingException.Pending)
4441 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4444 Interop.BaseHandle.delete_BaseHandle(CPtr);
4445 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4447 if (NDalicPINVOKE.SWIGPendingException.Pending)
4448 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4452 /// <since_tizen> 3 </since_tizen>
4453 public void RemoveRenderer(Renderer renderer)
4455 Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4456 if (NDalicPINVOKE.SWIGPendingException.Pending)
4457 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4460 /// <since_tizen> 3 </since_tizen>
4461 public void RemoveRenderer(uint index)
4463 Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4464 if (NDalicPINVOKE.SWIGPendingException.Pending)
4465 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4468 internal void Raise()
4470 var parentChildren = GetParent()?.Children;
4472 if (parentChildren != null)
4474 int currentIndex = parentChildren.IndexOf(this);
4476 // If the view is not already the last item in the list.
4477 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4479 View temp = parentChildren[currentIndex + 1];
4480 parentChildren[currentIndex + 1] = this;
4481 parentChildren[currentIndex] = temp;
4483 Interop.NDalic.Raise(swigCPtr);
4484 if (NDalicPINVOKE.SWIGPendingException.Pending)
4485 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4490 internal void Lower()
4492 var parentChildren = GetParent()?.Children;
4494 if (parentChildren != null)
4496 int currentIndex = parentChildren.IndexOf(this);
4498 // If the view is not already the first item in the list.
4499 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4501 View temp = parentChildren[currentIndex - 1];
4502 parentChildren[currentIndex - 1] = this;
4503 parentChildren[currentIndex] = temp;
4505 Interop.NDalic.Lower(swigCPtr);
4506 if (NDalicPINVOKE.SWIGPendingException.Pending)
4507 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4513 /// Raises the view to above the target view.
4515 /// <remarks>The sibling order of views within the parent will be updated automatically.
4516 /// Views on the level above the target view will still be shown above this view.
4517 /// Raising this view above views with the same sibling order as each other will raise this view above them.
4518 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4520 /// <param name="target">Will be raised above this view.</param>
4521 internal void RaiseAbove(View target)
4523 var parentChildren = GetParent()?.Children;
4525 if (parentChildren != null)
4527 int currentIndex = parentChildren.IndexOf(this);
4528 int targetIndex = parentChildren.IndexOf(target);
4530 if (currentIndex < 0 || targetIndex < 0 ||
4531 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4533 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4536 // If the currentIndex is less than the target index and the target has the same parent.
4537 if (currentIndex < targetIndex)
4539 parentChildren.Remove(this);
4540 parentChildren.Insert(targetIndex, this);
4542 Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4543 if (NDalicPINVOKE.SWIGPendingException.Pending)
4544 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4551 /// Lowers the view to below the target view.
4553 /// <remarks>The sibling order of views within the parent will be updated automatically.
4554 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4555 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4557 /// <param name="target">Will be lowered below this view.</param>
4558 internal void LowerBelow(View target)
4560 var parentChildren = GetParent()?.Children;
4562 if (parentChildren != null)
4564 int currentIndex = parentChildren.IndexOf(this);
4565 int targetIndex = parentChildren.IndexOf(target);
4566 if (currentIndex < 0 || targetIndex < 0 ||
4567 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4569 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4573 // If the currentIndex is not already the 0th index and the target has the same parent.
4574 if ((currentIndex != 0) && (targetIndex != -1) &&
4575 (currentIndex > targetIndex))
4577 parentChildren.Remove(this);
4578 parentChildren.Insert(targetIndex, this);
4580 Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4581 if (NDalicPINVOKE.SWIGPendingException.Pending)
4582 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4588 internal string GetName()
4590 string ret = Interop.Actor.Actor_GetName(swigCPtr);
4591 if (NDalicPINVOKE.SWIGPendingException.Pending)
4592 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4596 internal void SetName(string name)
4598 Interop.Actor.Actor_SetName(swigCPtr, name);
4599 if (NDalicPINVOKE.SWIGPendingException.Pending)
4600 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4603 internal uint GetId()
4605 uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4606 if (NDalicPINVOKE.SWIGPendingException.Pending)
4607 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4611 internal bool IsRoot()
4613 bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4614 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4618 internal bool OnWindow()
4620 bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4621 if (NDalicPINVOKE.SWIGPendingException.Pending)
4622 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4626 internal View FindChildById(uint id)
4628 //to fix memory leak issue, match the handle count with native side.
4629 IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4630 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4631 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4632 Interop.BaseHandle.delete_BaseHandle(CPtr);
4633 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4635 if (NDalicPINVOKE.SWIGPendingException.Pending)
4636 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4640 internal override View FindCurrentChildById(uint id)
4642 return FindChildById(id);
4645 internal void SetParentOrigin(Vector3 origin)
4647 Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4648 if (NDalicPINVOKE.SWIGPendingException.Pending)
4649 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4652 internal Vector3 GetCurrentParentOrigin()
4654 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4655 if (NDalicPINVOKE.SWIGPendingException.Pending)
4656 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4660 internal void SetAnchorPoint(Vector3 anchorPoint)
4662 Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4663 if (NDalicPINVOKE.SWIGPendingException.Pending)
4664 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4667 internal Vector3 GetCurrentAnchorPoint()
4669 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4670 if (NDalicPINVOKE.SWIGPendingException.Pending)
4671 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4675 internal void SetSize(float width, float height)
4677 Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4678 if (NDalicPINVOKE.SWIGPendingException.Pending)
4679 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4682 internal void SetSize(float width, float height, float depth)
4684 Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4685 if (NDalicPINVOKE.SWIGPendingException.Pending)
4686 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4689 internal void SetSize(Vector2 size)
4691 Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4692 if (NDalicPINVOKE.SWIGPendingException.Pending)
4693 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4696 internal void SetSize(Vector3 size)
4698 Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4699 if (NDalicPINVOKE.SWIGPendingException.Pending)
4700 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4703 internal Vector3 GetTargetSize()
4705 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4706 if (NDalicPINVOKE.SWIGPendingException.Pending)
4707 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4711 internal Size2D GetCurrentSize()
4713 Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4714 if (NDalicPINVOKE.SWIGPendingException.Pending)
4715 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4716 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4720 internal Vector3 GetNaturalSize()
4722 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4723 if (NDalicPINVOKE.SWIGPendingException.Pending)
4724 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4728 internal void SetPosition(float x, float y)
4730 Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4731 if (NDalicPINVOKE.SWIGPendingException.Pending)
4732 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4735 internal void SetPosition(float x, float y, float z)
4737 Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4738 if (NDalicPINVOKE.SWIGPendingException.Pending)
4739 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4742 internal void SetPosition(Vector3 position)
4744 Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4745 if (NDalicPINVOKE.SWIGPendingException.Pending)
4746 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4749 internal void SetX(float x)
4751 Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4752 if (NDalicPINVOKE.SWIGPendingException.Pending)
4753 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4756 internal void SetY(float y)
4758 Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4759 if (NDalicPINVOKE.SWIGPendingException.Pending)
4760 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4763 internal void SetZ(float z)
4765 Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4766 if (NDalicPINVOKE.SWIGPendingException.Pending)
4767 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4770 internal void TranslateBy(Vector3 distance)
4772 Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4773 if (NDalicPINVOKE.SWIGPendingException.Pending)
4774 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4777 internal Position GetCurrentPosition()
4779 Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4780 if (NDalicPINVOKE.SWIGPendingException.Pending)
4781 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4785 internal Vector3 GetCurrentWorldPosition()
4787 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4788 if (NDalicPINVOKE.SWIGPendingException.Pending)
4789 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4793 internal void SetInheritPosition(bool inherit)
4795 Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4796 if (NDalicPINVOKE.SWIGPendingException.Pending)
4797 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4800 internal bool IsPositionInherited()
4802 bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4803 if (NDalicPINVOKE.SWIGPendingException.Pending)
4804 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4808 internal void SetOrientation(Degree angle, Vector3 axis)
4810 Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4811 if (NDalicPINVOKE.SWIGPendingException.Pending)
4812 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4815 internal void SetOrientation(Radian angle, Vector3 axis)
4817 Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4818 if (NDalicPINVOKE.SWIGPendingException.Pending)
4819 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4822 internal void SetOrientation(Rotation orientation)
4824 Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4825 if (NDalicPINVOKE.SWIGPendingException.Pending)
4826 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4829 internal void RotateBy(Degree angle, Vector3 axis)
4831 Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4832 if (NDalicPINVOKE.SWIGPendingException.Pending)
4833 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4836 internal void RotateBy(Radian angle, Vector3 axis)
4838 Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4839 if (NDalicPINVOKE.SWIGPendingException.Pending)
4840 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4843 internal void RotateBy(Rotation relativeRotation)
4845 Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4846 if (NDalicPINVOKE.SWIGPendingException.Pending)
4847 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4850 internal Rotation GetCurrentOrientation()
4852 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4853 if (NDalicPINVOKE.SWIGPendingException.Pending)
4854 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4858 internal void SetInheritOrientation(bool inherit)
4860 Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4861 if (NDalicPINVOKE.SWIGPendingException.Pending)
4862 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4865 internal bool IsOrientationInherited()
4867 bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
4868 if (NDalicPINVOKE.SWIGPendingException.Pending)
4869 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4873 internal Rotation GetCurrentWorldOrientation()
4875 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
4876 if (NDalicPINVOKE.SWIGPendingException.Pending)
4877 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4881 internal void SetScale(float scale)
4883 Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
4884 if (NDalicPINVOKE.SWIGPendingException.Pending)
4885 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4888 internal void SetScale(float scaleX, float scaleY, float scaleZ)
4890 Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
4891 if (NDalicPINVOKE.SWIGPendingException.Pending)
4892 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4895 internal void SetScale(Vector3 scale)
4897 Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
4898 if (NDalicPINVOKE.SWIGPendingException.Pending)
4899 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4902 internal void ScaleBy(Vector3 relativeScale)
4904 Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
4905 if (NDalicPINVOKE.SWIGPendingException.Pending)
4906 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4909 internal Vector3 GetCurrentScale()
4911 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
4912 if (NDalicPINVOKE.SWIGPendingException.Pending)
4913 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4917 internal Vector3 GetCurrentWorldScale()
4919 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
4920 if (NDalicPINVOKE.SWIGPendingException.Pending)
4921 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4925 internal void SetInheritScale(bool inherit)
4927 Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
4928 if (NDalicPINVOKE.SWIGPendingException.Pending)
4929 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4932 internal bool IsScaleInherited()
4934 bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
4935 if (NDalicPINVOKE.SWIGPendingException.Pending)
4936 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4940 internal Matrix GetCurrentWorldMatrix()
4942 Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
4943 if (NDalicPINVOKE.SWIGPendingException.Pending)
4944 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4948 internal void SetVisible(bool visible)
4950 Interop.Actor.Actor_SetVisible(swigCPtr, visible);
4951 if (NDalicPINVOKE.SWIGPendingException.Pending)
4952 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4955 internal bool IsVisible()
4957 bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
4958 if (NDalicPINVOKE.SWIGPendingException.Pending)
4959 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4963 internal void SetOpacity(float opacity)
4965 Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
4966 if (NDalicPINVOKE.SWIGPendingException.Pending)
4967 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4970 internal float GetCurrentOpacity()
4972 float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
4973 if (NDalicPINVOKE.SWIGPendingException.Pending)
4974 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4978 internal void SetColor(Vector4 color)
4980 Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
4981 if (NDalicPINVOKE.SWIGPendingException.Pending)
4982 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4985 internal Vector4 GetCurrentColor()
4987 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
4988 if (NDalicPINVOKE.SWIGPendingException.Pending)
4989 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4993 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
4994 [EditorBrowsable(EditorBrowsableState.Never)]
4995 public void SetColorMode(ColorMode colorMode)
4997 Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
4998 if (NDalicPINVOKE.SWIGPendingException.Pending)
4999 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5002 internal ColorMode GetColorMode()
5004 ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
5005 if (NDalicPINVOKE.SWIGPendingException.Pending)
5006 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5010 internal Vector4 GetCurrentWorldColor()
5012 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
5013 if (NDalicPINVOKE.SWIGPendingException.Pending)
5014 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5018 internal void SetDrawMode(DrawModeType drawMode)
5020 Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
5021 if (NDalicPINVOKE.SWIGPendingException.Pending)
5022 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5025 internal DrawModeType GetDrawMode()
5027 DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
5028 if (NDalicPINVOKE.SWIGPendingException.Pending)
5029 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5033 internal void SetKeyboardFocusable(bool focusable)
5035 Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5036 if (NDalicPINVOKE.SWIGPendingException.Pending)
5037 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5040 internal bool IsKeyboardFocusable()
5042 bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5043 if (NDalicPINVOKE.SWIGPendingException.Pending)
5044 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5048 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5050 Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5051 if (NDalicPINVOKE.SWIGPendingException.Pending)
5052 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5055 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5057 ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5058 if (NDalicPINVOKE.SWIGPendingException.Pending)
5059 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5063 internal Vector3 GetSizeModeFactor()
5065 Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5066 if (NDalicPINVOKE.SWIGPendingException.Pending)
5067 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5071 internal void SetMinimumSize(Vector2 size)
5073 Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5074 if (NDalicPINVOKE.SWIGPendingException.Pending)
5075 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5078 internal Vector2 GetMinimumSize()
5080 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5081 if (NDalicPINVOKE.SWIGPendingException.Pending)
5082 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5086 internal void SetMaximumSize(Vector2 size)
5088 Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5089 if (NDalicPINVOKE.SWIGPendingException.Pending)
5090 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5093 internal Vector2 GetMaximumSize()
5095 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5096 if (NDalicPINVOKE.SWIGPendingException.Pending)
5097 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5101 internal int GetHierarchyDepth()
5103 int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5104 if (NDalicPINVOKE.SWIGPendingException.Pending)
5105 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5109 internal uint GetRendererCount()
5111 uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5112 if (NDalicPINVOKE.SWIGPendingException.Pending)
5113 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5117 internal TouchDataSignal TouchSignal()
5119 TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5120 if (NDalicPINVOKE.SWIGPendingException.Pending)
5121 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5125 internal HoverSignal HoveredSignal()
5127 HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5128 if (NDalicPINVOKE.SWIGPendingException.Pending)
5129 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5133 internal WheelSignal WheelEventSignal()
5135 WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5136 if (NDalicPINVOKE.SWIGPendingException.Pending)
5137 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5141 internal ViewSignal OnWindowSignal()
5143 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5144 if (NDalicPINVOKE.SWIGPendingException.Pending)
5145 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5149 internal ViewSignal OffWindowSignal()
5151 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5152 if (NDalicPINVOKE.SWIGPendingException.Pending)
5153 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5157 internal ViewSignal OnRelayoutSignal()
5159 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5160 if (NDalicPINVOKE.SWIGPendingException.Pending)
5161 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5165 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5167 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5168 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5172 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5174 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5175 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5179 internal ViewSignal ResourcesLoadedSignal()
5181 ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5182 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5186 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5188 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5191 internal bool IsTopLevelView()
5193 if (GetParent() is Layer)
5200 internal void SetKeyInputFocus()
5202 Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5203 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5206 internal void ClearKeyInputFocus()
5208 Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5209 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5212 internal PinchGestureDetector GetPinchGestureDetector()
5214 PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5215 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5219 internal PanGestureDetector GetPanGestureDetector()
5221 PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5226 internal TapGestureDetector GetTapGestureDetector()
5228 TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5229 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5233 internal LongPressGestureDetector GetLongPressGestureDetector()
5235 LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5236 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5240 internal void SetBackgroundColor(Vector4 color)
5242 Interop.ViewInternal.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
5243 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5246 internal Vector4 GetBackgroundColor()
5248 Vector4 ret = new Vector4(Interop.ViewInternal.View_GetBackgroundColor(swigCPtr), true);
5249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5253 internal void SetBackgroundImage(Image image)
5255 Interop.ViewInternal.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
5256 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5259 internal ControlKeySignal KeyEventSignal()
5261 ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5266 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5268 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5269 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5273 internal KeyInputFocusSignal KeyInputFocusLostSignal()
5275 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5280 internal IntPtr GetPtrfromView()
5282 return (IntPtr)swigCPtr;
5286 /// Removes the layout from this View.
5288 internal void ResetLayout()
5293 internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5295 return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5299 /// you can override it to clean-up your own resources.
5301 /// <param name="type">DisposeTypes</param>
5302 /// <since_tizen> 3 </since_tizen>
5303 protected override void Dispose(DisposeTypes type)
5310 //_mergedStyle = null;
5312 if (type == DisposeTypes.Explicit)
5315 //Release your own managed resources here.
5316 //You should release all of your own disposable objects here.
5319 //Release your own unmanaged resources here.
5320 //You should not access any managed member here except static instance.
5321 //because the execution order of Finalizes is non-deterministic.
5324 DisConnectFromSignals();
5327 if (swigCPtr.Handle != global::System.IntPtr.Zero)
5331 swigCMemOwn = false;
5332 Interop.View.delete_View(swigCPtr);
5334 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5337 foreach (View view in Children)
5339 view.InternalParent = null;
5346 private void OnSize2DChanged(int width, int height)
5348 Size2D = new Size2D(width, height);
5351 private void OnPosition2DChanged(int x, int y)
5353 Position2D = new Position2D(x, y);
5356 private void DisConnectFromSignals()
5358 // Save current CPtr.
5359 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5361 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5362 swigCPtr = GetBaseHandleCPtrHandleRef;
5364 if (_onRelayoutEventCallback != null)
5366 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5369 if (_offWindowEventCallback != null)
5371 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5374 if (_onWindowEventCallback != null)
5376 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5379 if (_wheelEventCallback != null)
5381 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5384 if (_hoverEventCallback != null)
5386 this.HoveredSignal().Disconnect(_hoverEventCallback);
5389 if (_touchDataCallback != null)
5391 this.TouchSignal().Disconnect(_touchDataCallback);
5394 if (_ResourcesLoadedCallback != null)
5396 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5399 if (_offWindowEventCallback != null)
5401 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5404 if (_onWindowEventCallback != null)
5406 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5409 if (_wheelEventCallback != null)
5411 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5414 if (_hoverEventCallback != null)
5416 this.HoveredSignal().Disconnect(_hoverEventCallback);
5419 if (_touchDataCallback != null)
5421 this.TouchSignal().Disconnect(_touchDataCallback);
5424 if (_onRelayoutEventCallback != null)
5426 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5429 if (_keyCallback != null)
5431 this.KeyEventSignal().Disconnect(_keyCallback);
5434 if (_keyInputFocusLostCallback != null)
5436 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5439 if (_keyInputFocusGainedCallback != null)
5441 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5444 if (_backgroundResourceLoadedCallback != null)
5446 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5449 if (_onWindowSendEventCallback != null)
5451 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5454 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5455 // Restore current CPtr.
5456 swigCPtr = currentCPtr;
5459 private void OnKeyInputFocusGained(IntPtr view)
5461 if (_keyInputFocusGainedEventHandler != null)
5463 _keyInputFocusGainedEventHandler(this, null);
5467 private void OnKeyInputFocusLost(IntPtr view)
5469 if (_keyInputFocusLostEventHandler != null)
5471 _keyInputFocusLostEventHandler(this, null);
5475 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5477 if (keyEvent == global::System.IntPtr.Zero)
5479 NUILog.Error("keyEvent should not be null!");
5483 KeyEventArgs e = new KeyEventArgs();
5485 bool result = false;
5487 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5489 if (_keyEventHandler != null)
5491 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5493 // Oring the result of each callback.
5494 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5496 result |= del(this, e);
5503 // Callback for View OnRelayout signal
5504 private void OnRelayout(IntPtr data)
5506 if (_onRelayoutEventHandler != null)
5508 _onRelayoutEventHandler(this, null);
5512 // Callback for View TouchSignal
5513 private bool OnTouch(IntPtr view, IntPtr touchData)
5515 if (touchData == global::System.IntPtr.Zero)
5517 NUILog.Error("touchData should not be null!");
5521 TouchEventArgs e = new TouchEventArgs();
5523 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5525 if (_touchDataEventHandler != null)
5527 return _touchDataEventHandler(this, e);
5532 // Callback for View Hover signal
5533 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5535 if (hoverEvent == global::System.IntPtr.Zero)
5537 NUILog.Error("hoverEvent should not be null!");
5541 HoverEventArgs e = new HoverEventArgs();
5543 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5545 if (_hoverEventHandler != null)
5547 return _hoverEventHandler(this, e);
5552 // Callback for View Wheel signal
5553 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5555 if (wheelEvent == global::System.IntPtr.Zero)
5557 NUILog.Error("wheelEvent should not be null!");
5561 WheelEventArgs e = new WheelEventArgs();
5563 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5565 if (_wheelEventHandler != null)
5567 return _wheelEventHandler(this, e);
5572 // Callback for View OnWindow signal
5573 private void OnWindow(IntPtr data)
5575 if (_onWindowEventHandler != null)
5577 _onWindowEventHandler(this, null);
5581 // Callback for View OffWindow signal
5582 private void OffWindow(IntPtr data)
5584 if (_offWindowEventHandler != null)
5586 _offWindowEventHandler(this, null);
5590 // Callback for View visibility change signal
5591 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5593 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5596 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5598 e.Visibility = visibility;
5601 if (_visibilityChangedEventHandler != null)
5603 _visibilityChangedEventHandler(this, e);
5607 // Callback for View layout direction change signal
5608 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5610 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5613 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5617 if (_layoutDirectionChangedEventHandler != null)
5619 _layoutDirectionChangedEventHandler(this, e);
5623 private void OnResourcesLoaded(IntPtr view)
5625 if (_resourcesLoadedEventHandler != null)
5627 _resourcesLoadedEventHandler(this, null);
5631 private View ConvertIdToView(uint id)
5633 View view = GetParent()?.FindCurrentChildById(id);
5635 //If we can't find the parent's children, find in the top layer.
5638 Container parent = GetParent();
5639 while ((parent is View) && (parent != null))
5641 parent = parent.GetParent();
5642 if (parent is Layer)
5644 view = parent.FindCurrentChildById(id);
5653 private void OnBackgroundResourceLoaded(IntPtr view)
5655 BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5656 e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5658 if (_backgroundResourceLoadedEventHandler != null)
5660 _backgroundResourceLoadedEventHandler(this, e);
5665 /// Event argument passed through the ChildAdded event.
5667 /// <since_tizen> 5 </since_tizen>
5668 public class ChildAddedEventArgs : EventArgs
5671 /// Added child view at moment.
5673 /// <since_tizen> 5 </since_tizen>
5674 public View Added { get; set; }
5678 /// Event argument passed through the ChildRemoved event.
5680 /// <since_tizen> 5 </since_tizen>
5681 public class ChildRemovedEventArgs : EventArgs
5684 /// Removed child view at moment.
5686 /// <since_tizen> 5 </since_tizen>
5687 public View Removed { get; set; }
5691 /// Event arguments that passed via the KeyEvent signal.
5693 /// <since_tizen> 3 </since_tizen>
5694 public class KeyEventArgs : EventArgs
5699 /// Key - is the key sent to the view.
5701 /// <since_tizen> 3 </since_tizen>
5716 /// Event arguments that passed via the touch signal.
5718 /// <since_tizen> 3 </since_tizen>
5719 public class TouchEventArgs : EventArgs
5721 private Touch _touch;
5724 /// Touch - contains the information of touch points.
5726 /// <since_tizen> 3 </since_tizen>
5741 /// Event arguments that passed via the hover signal.
5743 /// <since_tizen> 3 </since_tizen>
5744 public class HoverEventArgs : EventArgs
5746 private Hover _hover;
5749 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5751 /// <since_tizen> 3 </since_tizen>
5766 /// Event arguments that passed via the wheel signal.
5768 /// <since_tizen> 3 </since_tizen>
5769 public class WheelEventArgs : EventArgs
5771 private Wheel _wheel;
5774 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5776 /// <since_tizen> 3 </since_tizen>
5791 /// Event arguments of visibility changed.
5793 /// <since_tizen> 3 </since_tizen>
5794 public class VisibilityChangedEventArgs : EventArgs
5797 private bool _visibility;
5798 private VisibilityChangeType _type;
5801 /// The view, or child of view, whose visibility has changed.
5803 /// <since_tizen> 3 </since_tizen>
5817 /// Whether the view is now visible or not.
5819 /// <since_tizen> 3 </since_tizen>
5820 public bool Visibility
5828 _visibility = value;
5833 /// Whether the view's visible property has changed or a parent's.
5835 /// <since_tizen> 3 </since_tizen>
5836 public VisibilityChangeType Type
5850 /// Event arguments of layout direction changed.
5852 /// <since_tizen> 4 </since_tizen>
5853 public class LayoutDirectionChangedEventArgs : EventArgs
5856 private ViewLayoutDirectionType _type;
5859 /// The view, or child of view, whose layout direction has changed.
5861 /// <since_tizen> 4 </since_tizen>
5875 /// Whether the view's layout direction property has changed or a parent's.
5877 /// <since_tizen> 4 </since_tizen>
5878 public ViewLayoutDirectionType Type
5892 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
5894 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5895 [EditorBrowsable(EditorBrowsableState.Never)]
5896 public Transition GetTransition(string transitionName)
5898 Transition trans = null;
5899 transDictionary.TryGetValue(transitionName, out trans);
5903 private void LoadTransitions()
5905 foreach (string str in transitionNames)
5907 string resourceName = str + ".xaml";
5908 Transition trans = null;
5910 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
5912 string likelyResourcePath = resource + "animation/" + resourceName;
5914 if (File.Exists(likelyResourcePath))
5916 trans = Extensions.LoadObject<Transition>(likelyResourcePath);
5920 transDictionary.Add(trans.Name, trans);
5925 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5926 [EditorBrowsable(EditorBrowsableState.Never)]
5927 public string[] TransitionNames
5931 return transitionNames;
5935 transitionNames = value;
5939 private string[] transitionNames;
5941 internal class BackgroundResourceLoadedEventArgs : EventArgs
5943 private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
5944 public ResourceLoadingStatusType Status
5957 internal class Property
5959 internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
5960 internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
5961 internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
5962 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
5963 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
5964 internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
5965 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
5966 internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
5967 internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
5968 internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
5969 internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
5970 internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
5971 internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
5972 internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
5973 internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
5974 internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
5975 internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
5976 internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
5977 internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
5978 internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
5979 internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
5980 internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
5981 internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
5982 internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
5983 internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
5984 internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
5985 internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
5986 internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
5987 internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
5988 internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
5989 internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
5990 internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
5991 internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
5992 internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
5993 internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
5994 internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
5995 internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
5996 internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
5997 internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
5998 internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
5999 internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
6000 internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
6001 internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
6002 internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
6003 internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
6004 internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
6005 internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
6006 internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
6007 internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
6008 internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
6009 internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
6010 internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
6011 internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
6012 internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
6013 internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
6014 internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
6015 internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
6016 internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
6017 internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
6018 internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
6019 internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
6020 internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
6021 internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();