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 [ContentProperty("Children")]
94 public class View : Container, IResourcesProvider
96 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
97 [EditorBrowsable(EditorBrowsableState.Never)]
98 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
100 var view = (View)bindable;
101 if (newValue != null)
103 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue((string)newValue));
106 defaultValueCreator: (bindable) =>
108 var view = (View)bindable;
110 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STYLE_NAME).Get(out temp);
113 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
114 [EditorBrowsable(EditorBrowsableState.Never)]
115 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create("BackgroundColor", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
117 var view = (View)bindable;
118 if (newValue != null)
120 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((Color)newValue));
123 defaultValueCreator: (bindable) =>
125 var view = (View)bindable;
126 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
128 Tizen.NUI.PropertyMap background = view.Background;
130 background.Find(Visual.Property.Type)?.Get(out visualType);
131 if (visualType == (int)Visual.Type.Color)
133 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
136 return backgroundColor;
138 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
139 [EditorBrowsable(EditorBrowsableState.Never)]
140 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) =>
142 var view = (View)bindable;
143 if (newValue != null)
145 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((string)newValue));
148 defaultValueCreator: (bindable) =>
150 var view = (View)bindable;
151 string backgroundImage = "";
153 Tizen.NUI.PropertyMap background = view.Background;
155 background.Find(Visual.Property.Type)?.Get(out visualType);
156 if (visualType == (int)Visual.Type.Image)
158 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
161 return backgroundImage;
163 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
164 [EditorBrowsable(EditorBrowsableState.Never)]
165 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
167 var view = (View)bindable;
168 if (newValue != null)
170 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
173 defaultValueCreator: (bindable) =>
175 var view = (View)bindable;
176 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
177 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
180 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
181 [EditorBrowsable(EditorBrowsableState.Never)]
182 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
184 var view = (View)bindable;
185 if (newValue != null)
187 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
190 defaultValueCreator: (bindable) =>
192 var view = (View)bindable;
194 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
196 NUILog.Error("State get error!");
200 case 0: return States.Normal;
201 case 1: return States.Focused;
202 case 2: return States.Disabled;
203 default: return States.Normal;
206 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
207 [EditorBrowsable(EditorBrowsableState.Never)]
208 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
210 var view = (View)bindable;
211 string valueToString = "";
212 if (newValue != null)
214 switch ((States)newValue)
216 case States.Normal: { valueToString = "NORMAL"; break; }
217 case States.Focused: { valueToString = "FOCUSED"; break; }
218 case States.Disabled: { valueToString = "DISABLED"; break; }
219 default: { valueToString = "NORMAL"; break; }
221 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
224 defaultValueCreator: (bindable) =>
226 var view = (View)bindable;
228 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
230 NUILog.Error("subState get error!");
234 case "NORMAL": return States.Normal;
235 case "FOCUSED": return States.Focused;
236 case "DISABLED": return States.Disabled;
237 default: return States.Normal;
240 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
241 [EditorBrowsable(EditorBrowsableState.Never)]
242 public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
244 var view = (View)bindable;
245 if (newValue != null)
247 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
250 defaultValueCreator: (bindable) =>
252 var view = (View)bindable;
253 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
254 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
258 /// Only for XAML property binding. This will be changed as Inhouse API by ACR later.
259 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
261 var view = (View)bindable;
262 if (newValue != null)
264 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
267 defaultValueCreator: (bindable) =>
269 var view = (View)bindable;
271 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
275 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
276 [EditorBrowsable(EditorBrowsableState.Never)]
277 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
279 var view = (View)bindable;
280 if (newValue != null)
282 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
285 defaultValueCreator: (bindable) =>
287 var view = (View)bindable;
289 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
292 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
293 [EditorBrowsable(EditorBrowsableState.Never)]
294 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
296 var view = (View)bindable;
297 if (newValue != null)
299 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
302 defaultValueCreator: (bindable) =>
304 var view = (View)bindable;
305 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
306 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
309 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
310 [EditorBrowsable(EditorBrowsableState.Never)]
311 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
313 var view = (View)bindable;
314 if (newValue != null)
316 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
319 defaultValueCreator: (bindable) =>
321 var view = (View)bindable;
322 Vector2 temp = new Vector2(0.0f, 0.0f);
323 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
326 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
327 [EditorBrowsable(EditorBrowsableState.Never)]
328 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
330 var view = (View)bindable;
331 if (newValue != null)
333 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
336 defaultValueCreator: (bindable) =>
338 var view = (View)bindable;
340 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
343 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
344 [EditorBrowsable(EditorBrowsableState.Never)]
345 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
347 var view = (View)bindable;
348 if (newValue != null)
350 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
353 defaultValueCreator: (bindable) =>
355 var view = (View)bindable;
357 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
360 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
361 [EditorBrowsable(EditorBrowsableState.Never)]
362 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
364 var view = (View)bindable;
365 string valueToString = "";
367 if (newValue != null)
369 switch ((HorizontalAlignmentType)newValue)
371 case Tizen.NUI.HorizontalAlignmentType.Left: { valueToString = "left"; break; }
372 case Tizen.NUI.HorizontalAlignmentType.Center: { valueToString = "center"; break; }
373 case Tizen.NUI.HorizontalAlignmentType.Right: { valueToString = "right"; break; }
374 default: { valueToString = "left"; break; }
376 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
379 defaultValueCreator: (bindable) =>
381 var view = (View)bindable;
383 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
385 NUILog.Error("CellHorizontalAlignment get error!");
390 case "left": return Tizen.NUI.HorizontalAlignmentType.Left;
391 case "center": return Tizen.NUI.HorizontalAlignmentType.Center;
392 case "right": return Tizen.NUI.HorizontalAlignmentType.Right;
393 default: return Tizen.NUI.HorizontalAlignmentType.Left;
396 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
397 [EditorBrowsable(EditorBrowsableState.Never)]
398 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
400 var view = (View)bindable;
401 string valueToString = "";
403 if (newValue != null)
405 switch ((VerticalAlignmentType)newValue)
407 case Tizen.NUI.VerticalAlignmentType.Top: { valueToString = "top"; break; }
408 case Tizen.NUI.VerticalAlignmentType.Center: { valueToString = "center"; break; }
409 case Tizen.NUI.VerticalAlignmentType.Bottom: { valueToString = "bottom"; break; }
410 default: { valueToString = "top"; break; }
412 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
415 defaultValueCreator: (bindable) =>
417 var view = (View)bindable;
419 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
421 NUILog.Error("CellVerticalAlignment get error!");
426 case "top": return Tizen.NUI.VerticalAlignmentType.Top;
427 case "center": return Tizen.NUI.VerticalAlignmentType.Center;
428 case "bottom": return Tizen.NUI.VerticalAlignmentType.Bottom;
429 default: return Tizen.NUI.VerticalAlignmentType.Top;
434 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
435 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
437 [EditorBrowsable(EditorBrowsableState.Never)]
438 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
440 var view = (View)bindable;
441 if (newValue != null)
443 view.Weight = (float)newValue;
447 defaultValueCreator: (bindable) =>
449 var view = (View)bindable;
453 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
454 [EditorBrowsable(EditorBrowsableState.Never)]
455 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
457 var view = (View)bindable;
458 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
459 else { view.LeftFocusableViewId = -1; }
461 defaultValueCreator: (bindable) =>
463 var view = (View)bindable;
464 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
467 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
468 [EditorBrowsable(EditorBrowsableState.Never)]
469 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
471 var view = (View)bindable;
472 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
473 else { view.RightFocusableViewId = -1; }
475 defaultValueCreator: (bindable) =>
477 var view = (View)bindable;
478 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
481 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
482 [EditorBrowsable(EditorBrowsableState.Never)]
483 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
485 var view = (View)bindable;
486 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
487 else { view.UpFocusableViewId = -1; }
489 defaultValueCreator: (bindable) =>
491 var view = (View)bindable;
492 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
495 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
496 [EditorBrowsable(EditorBrowsableState.Never)]
497 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
499 var view = (View)bindable;
500 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
501 else { view.DownFocusableViewId = -1; }
503 defaultValueCreator: (bindable) =>
505 var view = (View)bindable;
506 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
509 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
510 [EditorBrowsable(EditorBrowsableState.Never)]
511 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
513 var view = (View)bindable;
514 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
516 defaultValueCreator: (bindable) =>
518 var view = (View)bindable;
519 return view.IsKeyboardFocusable();
521 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
522 [EditorBrowsable(EditorBrowsableState.Never)]
523 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
525 var view = (View)bindable;
526 if (newValue != null)
528 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
531 defaultValueCreator: (bindable) =>
533 var view = (View)bindable;
534 Size temp = new Size(0.0f, 0.0f, 0.0f);
535 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
536 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
539 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
540 [EditorBrowsable(EditorBrowsableState.Never)]
541 public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
543 var view = (View)bindable;
544 if (newValue != null)
546 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
549 defaultValueCreator: (bindable) =>
551 var view = (View)bindable;
553 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
556 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
557 [EditorBrowsable(EditorBrowsableState.Never)]
558 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
560 var view = (View)bindable;
561 if (newValue != null)
563 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
566 defaultValueCreator: (bindable) =>
568 var view = (View)bindable;
569 Position temp = new Position(0.0f, 0.0f, 0.0f);
570 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
571 return new Position2D(temp);
573 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
574 [EditorBrowsable(EditorBrowsableState.Never)]
575 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
577 var view = (View)bindable;
578 if (newValue != null)
580 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
583 defaultValueCreator: (bindable) =>
585 var view = (View)bindable;
587 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
590 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
591 [EditorBrowsable(EditorBrowsableState.Never)]
592 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
594 var view = (View)bindable;
596 if (newValue != null)
598 value = (int)newValue;
601 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
604 var siblings = view.GetParent()?.Children;
605 if (siblings != null)
607 int currentOrder = siblings.IndexOf(view);
608 if (value != currentOrder)
610 if (value == 0) { view.LowerToBottom(); }
611 else if (value < siblings.Count - 1)
613 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
614 else { view.LowerBelow(siblings[value]); }
616 else { view.RaiseToTop(); }
621 defaultValueCreator: (bindable) =>
623 var view = (View)bindable;
624 var parentChildren = view.GetParent()?.Children;
625 int currentOrder = 0;
626 if (parentChildren != null)
628 currentOrder = parentChildren.IndexOf(view);
630 if (currentOrder < 0) { return 0; }
631 else if (currentOrder < parentChildren.Count) { return currentOrder; }
636 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
637 [EditorBrowsable(EditorBrowsableState.Never)]
638 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
640 var view = (View)bindable;
641 if (newValue != null)
643 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
646 defaultValueCreator: (bindable) =>
648 var view = (View)bindable;
649 Position temp = new Position(0.0f, 0.0f, 0.0f);
650 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
654 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
655 [EditorBrowsable(EditorBrowsableState.Never)]
656 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
658 var view = (View)bindable;
659 if (newValue != null)
661 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
664 defaultValueCreator: (bindable) =>
666 var view = (View)bindable;
667 Position temp = new Position(0.0f, 0.0f, 0.0f);
668 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
671 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
672 [EditorBrowsable(EditorBrowsableState.Never)]
673 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
675 var view = (View)bindable;
676 if (newValue != null)
678 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
681 defaultValueCreator: (bindable) =>
683 var view = (View)bindable;
685 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
688 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
689 [EditorBrowsable(EditorBrowsableState.Never)]
690 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
692 var view = (View)bindable;
693 if (newValue != null)
695 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
698 defaultValueCreator: (bindable) =>
700 var view = (View)bindable;
702 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
705 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
706 [EditorBrowsable(EditorBrowsableState.Never)]
707 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
709 var view = (View)bindable;
710 if (newValue != null)
712 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
715 defaultValueCreator: (bindable) =>
717 var view = (View)bindable;
718 Position temp = new Position(0.0f, 0.0f, 0.0f);
719 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
722 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
723 [EditorBrowsable(EditorBrowsableState.Never)]
724 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
726 var view = (View)bindable;
727 if (newValue != null)
729 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_X, new Tizen.NUI.PropertyValue((float)newValue));
732 defaultValueCreator: (bindable) =>
734 var view = (View)bindable;
736 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
739 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
740 [EditorBrowsable(EditorBrowsableState.Never)]
741 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
743 var view = (View)bindable;
744 if (newValue != null)
746 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Y, new Tizen.NUI.PropertyValue((float)newValue));
749 defaultValueCreator: (bindable) =>
751 var view = (View)bindable;
753 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
756 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
757 [EditorBrowsable(EditorBrowsableState.Never)]
758 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
760 var view = (View)bindable;
761 if (newValue != null)
763 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
766 defaultValueCreator: (bindable) =>
768 var view = (View)bindable;
770 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
773 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
774 [EditorBrowsable(EditorBrowsableState.Never)]
775 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
777 var view = (View)bindable;
778 if (newValue != null)
780 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
783 defaultValueCreator: (bindable) =>
785 var view = (View)bindable;
786 Rotation temp = new Rotation();
787 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
790 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
791 [EditorBrowsable(EditorBrowsableState.Never)]
792 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
794 var view = (View)bindable;
795 if (newValue != null)
797 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
800 defaultValueCreator: (bindable) =>
802 var view = (View)bindable;
803 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
804 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
807 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
808 [EditorBrowsable(EditorBrowsableState.Never)]
809 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
811 var view = (View)bindable;
812 if (newValue != null)
814 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_X, new Tizen.NUI.PropertyValue((float)newValue));
817 defaultValueCreator: (bindable) =>
819 var view = (View)bindable;
821 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
824 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
825 [EditorBrowsable(EditorBrowsableState.Never)]
826 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
828 var view = (View)bindable;
829 if (newValue != null)
831 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Y, new Tizen.NUI.PropertyValue((float)newValue));
834 defaultValueCreator: (bindable) =>
836 var view = (View)bindable;
838 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
841 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
842 [EditorBrowsable(EditorBrowsableState.Never)]
843 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
845 var view = (View)bindable;
846 if (newValue != null)
848 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
851 defaultValueCreator: (bindable) =>
853 var view = (View)bindable;
855 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
858 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
859 [EditorBrowsable(EditorBrowsableState.Never)]
860 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
862 var view = (View)bindable;
863 if (newValue != null)
865 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
868 defaultValueCreator: (bindable) =>
870 var view = (View)bindable;
872 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
875 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
876 [EditorBrowsable(EditorBrowsableState.Never)]
877 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
879 var view = (View)bindable;
880 if (newValue != null)
882 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
885 defaultValueCreator: (bindable) =>
887 var view = (View)bindable;
889 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
892 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
893 [EditorBrowsable(EditorBrowsableState.Never)]
894 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
896 var view = (View)bindable;
897 if (newValue != null)
899 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
902 defaultValueCreator: (bindable) =>
904 var view = (View)bindable;
906 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
909 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
910 [EditorBrowsable(EditorBrowsableState.Never)]
911 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
913 var view = (View)bindable;
914 if (newValue != null)
916 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
919 defaultValueCreator: (bindable) =>
921 var view = (View)bindable;
923 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
926 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
927 [EditorBrowsable(EditorBrowsableState.Never)]
928 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
930 var view = (View)bindable;
931 if (newValue != null)
933 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
936 defaultValueCreator: (bindable) =>
938 var view = (View)bindable;
940 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
943 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
944 [EditorBrowsable(EditorBrowsableState.Never)]
945 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
947 var view = (View)bindable;
948 if (newValue != null)
950 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
953 defaultValueCreator: (bindable) =>
955 var view = (View)bindable;
957 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
959 NUILog.Error("DrawMode get error!");
963 case "NORMAL": return DrawModeType.Normal;
964 case "OVERLAY_2D": return DrawModeType.Overlay2D;
965 #pragma warning disable CS0618 // Disable deprecated warning as we do need to use the deprecated API here.
966 case "STENCIL": return DrawModeType.Stencil;
967 #pragma warning restore CS0618
968 default: return DrawModeType.Normal;
971 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
972 [EditorBrowsable(EditorBrowsableState.Never)]
973 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
975 var view = (View)bindable;
976 if (newValue != null)
978 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
981 defaultValueCreator: (bindable) =>
983 var view = (View)bindable;
984 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
985 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
988 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
989 [EditorBrowsable(EditorBrowsableState.Never)]
990 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
992 var view = (View)bindable;
993 if (newValue != null)
995 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
998 defaultValueCreator: (bindable) =>
1000 var view = (View)bindable;
1002 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
1004 NUILog.Error("WidthResizePolicy get error!");
1008 case "FIXED": return ResizePolicyType.Fixed;
1009 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1010 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1011 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1012 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1013 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1014 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1015 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1016 default: return ResizePolicyType.Fixed;
1019 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1020 [EditorBrowsable(EditorBrowsableState.Never)]
1021 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1023 var view = (View)bindable;
1024 if (newValue != null)
1026 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1029 defaultValueCreator: (bindable) =>
1031 var view = (View)bindable;
1033 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1035 NUILog.Error("HeightResizePolicy get error!");
1039 case "FIXED": return ResizePolicyType.Fixed;
1040 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1041 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1042 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1043 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1044 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1045 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1046 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1047 default: return ResizePolicyType.Fixed;
1050 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1051 [EditorBrowsable(EditorBrowsableState.Never)]
1052 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
1054 var view = (View)bindable;
1055 string valueToString = "";
1056 if (newValue != null)
1058 switch ((SizeScalePolicyType)newValue)
1060 case SizeScalePolicyType.UseSizeSet: { valueToString = "USE_SIZE_SET"; break; }
1061 case SizeScalePolicyType.FitWithAspectRatio: { valueToString = "FIT_WITH_ASPECT_RATIO"; break; }
1062 case SizeScalePolicyType.FillWithAspectRatio: { valueToString = "FILL_WITH_ASPECT_RATIO"; break; }
1063 default: { valueToString = "USE_SIZE_SET"; break; }
1065 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1068 defaultValueCreator: (bindable) =>
1070 var view = (View)bindable;
1072 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1074 NUILog.Error("SizeScalePolicy get error!");
1078 case "USE_SIZE_SET": return SizeScalePolicyType.UseSizeSet;
1079 case "FIT_WITH_ASPECT_RATIO": return SizeScalePolicyType.FitWithAspectRatio;
1080 case "FILL_WITH_ASPECT_RATIO": return SizeScalePolicyType.FillWithAspectRatio;
1081 default: return SizeScalePolicyType.UseSizeSet;
1084 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1085 [EditorBrowsable(EditorBrowsableState.Never)]
1086 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1088 var view = (View)bindable;
1089 if (newValue != null)
1091 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue((bool)newValue));
1094 defaultValueCreator: (bindable) =>
1096 var view = (View)bindable;
1098 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
1101 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1102 [EditorBrowsable(EditorBrowsableState.Never)]
1103 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1105 var view = (View)bindable;
1106 if (newValue != null)
1108 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue((bool)newValue));
1111 defaultValueCreator: (bindable) =>
1113 var view = (View)bindable;
1115 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
1118 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1119 [EditorBrowsable(EditorBrowsableState.Never)]
1120 public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1122 var view = (View)bindable;
1123 if (newValue != null)
1125 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1128 defaultValueCreator: (bindable) =>
1130 var view = (View)bindable;
1131 Extents temp = new Extents(0, 0, 0, 0);
1132 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PADDING).Get(temp);
1135 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1136 [EditorBrowsable(EditorBrowsableState.Never)]
1137 public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1139 var view = (View)bindable;
1140 if (newValue != null)
1142 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue((Size)newValue));
1145 defaultValueCreator: (bindable) =>
1147 var view = (View)bindable;
1148 Size temp = new Size(0, 0, 0);
1149 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
1152 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1153 [EditorBrowsable(EditorBrowsableState.Never)]
1154 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1156 var view = (View)bindable;
1157 if (newValue != null)
1159 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1162 defaultValueCreator: (bindable) =>
1164 var view = (View)bindable;
1165 Size2D temp = new Size2D(0, 0);
1166 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1169 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1170 [EditorBrowsable(EditorBrowsableState.Never)]
1171 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1173 var view = (View)bindable;
1174 if (newValue != null)
1176 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1179 defaultValueCreator: (bindable) =>
1181 var view = (View)bindable;
1182 Size2D temp = new Size2D(0, 0);
1183 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1186 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1187 [EditorBrowsable(EditorBrowsableState.Never)]
1188 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1190 var view = (View)bindable;
1191 if (newValue != null)
1193 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1196 defaultValueCreator: (bindable) =>
1198 var view = (View)bindable;
1200 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1203 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1204 [EditorBrowsable(EditorBrowsableState.Never)]
1205 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1207 var view = (View)bindable;
1208 if (newValue != null)
1210 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1213 defaultValueCreator: (bindable) =>
1215 var view = (View)bindable;
1217 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1219 NUILog.Error("ClippingMode get error!");
1221 return (ClippingModeType)temp;
1223 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1224 [EditorBrowsable(EditorBrowsableState.Never)]
1225 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1227 var view = (View)bindable;
1228 if (newValue != null)
1230 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1233 defaultValueCreator: (bindable) =>
1235 var view = (View)bindable;
1237 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1240 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1241 [EditorBrowsable(EditorBrowsableState.Never)]
1242 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1244 var view = (View)bindable;
1245 if (newValue != null)
1247 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1250 defaultValueCreator: (bindable) =>
1252 var view = (View)bindable;
1254 if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1256 NUILog.Error("LAYOUT_DIRECTION get error!");
1258 return (ViewLayoutDirectionType)temp;
1260 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1261 [EditorBrowsable(EditorBrowsableState.Never)]
1262 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1264 var view = (View)bindable;
1265 if (newValue != null)
1267 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1270 defaultValueCreator: (bindable) =>
1272 var view = (View)bindable;
1273 Extents temp = new Extents(0, 0, 0, 0);
1274 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1277 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1278 [EditorBrowsable(EditorBrowsableState.Never)]
1279 public static readonly BindableProperty StyleProperty = BindableProperty.Create("Style", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);
1282 /// Flag to indicate if layout set explicitly via API call or View was automatically given a Layout.
1284 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1285 [EditorBrowsable(EditorBrowsableState.Never)]
1286 public bool layoutSet = false;
1289 /// Flag to allow Layouting to be disabled for Views.
1290 /// Once a View has a Layout set then any children added to Views from then on will receive
1291 /// automatic Layouts.
1293 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1294 [EditorBrowsable(EditorBrowsableState.Never)]
1295 public static bool layoutingDisabled{get; set;} = true;
1297 internal readonly MergedStyle _mergedStyle;
1298 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1299 private LayoutItem _layout; // Exclusive layout assigned to this View.
1300 private int _widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
1301 private int _heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
1302 private float _weight = 0.0f; // Weighting of child View in a Layout
1303 private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
1304 private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
1305 private bool _backgroundImageSynchronosLoading = false;
1306 private EventHandler _offWindowEventHandler;
1307 private OffWindowEventCallbackType _offWindowEventCallback;
1308 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
1309 private WheelEventCallbackType _wheelEventCallback;
1310 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
1311 private KeyCallbackType _keyCallback;
1312 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
1313 private TouchDataCallbackType _touchDataCallback;
1314 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
1315 private HoverEventCallbackType _hoverEventCallback;
1316 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
1317 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
1318 private EventHandler _keyInputFocusGainedEventHandler;
1319 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
1320 private EventHandler _keyInputFocusLostEventHandler;
1321 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
1322 private EventHandler _onRelayoutEventHandler;
1323 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
1324 private EventHandler _onWindowEventHandler;
1325 private OnWindowEventCallbackType _onWindowEventCallback;
1326 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
1327 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
1328 // Resource Ready Signal
1329 private EventHandler _resourcesLoadedEventHandler;
1330 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1331 private EventHandler<BackgroundResourceLoadedEventArgs> _backgroundResourceLoadedEventHandler;
1332 private _backgroundResourceLoadedCallbackType _backgroundResourceLoadedCallback;
1334 private OnWindowEventCallbackType _onWindowSendEventCallback;
1336 private void SendViewAddedEventToWindow(IntPtr data)
1338 Window.Instance?.SendViewAdded(this);
1342 /// Creates a new instance of a view.
1344 /// <since_tizen> 3 </since_tizen>
1345 public View() : this(Interop.View.View_New(), true)
1347 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1349 internal View(View uiControl) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1351 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1354 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
1356 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1359 PositionUsesPivotPoint = false;
1361 _mergedStyle = new MergedStyle(GetType(), this);
1363 _onWindowSendEventCallback = SendViewAddedEventToWindow;
1364 this.OnWindowSignal().Connect(_onWindowSendEventCallback);
1367 internal View(ViewImpl implementation) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1369 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1372 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1373 private delegate void OffWindowEventCallbackType(IntPtr control);
1374 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1375 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
1376 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1377 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
1378 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1379 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
1380 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1381 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
1382 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1383 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
1384 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1385 private delegate void ResourcesLoadedCallbackType(IntPtr control);
1386 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1387 private delegate void _backgroundResourceLoadedCallbackType(IntPtr view);
1388 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1389 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
1390 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1391 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
1392 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1393 private delegate void OnRelayoutEventCallbackType(IntPtr control);
1394 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1395 private delegate void OnWindowEventCallbackType(IntPtr control);
1396 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1397 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
1400 /// Event when a child is removed.
1402 /// <since_tizen> 5 </since_tizen>
1403 public new event EventHandler<ChildRemovedEventArgs> ChildRemoved;
1405 /// Event when a child is added.
1407 /// <since_tizen> 5 </since_tizen>
1408 public new event EventHandler<ChildAddedEventArgs> ChildAdded;
1411 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1412 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
1414 /// <since_tizen> 3 </since_tizen>
1415 public event EventHandler FocusGained
1419 if (_keyInputFocusGainedEventHandler == null)
1421 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
1422 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
1425 _keyInputFocusGainedEventHandler += value;
1430 _keyInputFocusGainedEventHandler -= value;
1432 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
1434 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
1440 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1441 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
1443 /// <since_tizen> 3 </since_tizen>
1444 public event EventHandler FocusLost
1448 if (_keyInputFocusLostEventHandler == null)
1450 _keyInputFocusLostCallback = OnKeyInputFocusLost;
1451 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
1454 _keyInputFocusLostEventHandler += value;
1459 _keyInputFocusLostEventHandler -= value;
1461 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
1463 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
1469 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1470 /// The KeyPressed signal is emitted when the key event is received.<br />
1472 /// <since_tizen> 3 </since_tizen>
1473 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
1477 if (_keyEventHandler == null)
1479 _keyCallback = OnKeyEvent;
1480 this.KeyEventSignal().Connect(_keyCallback);
1483 _keyEventHandler += value;
1488 _keyEventHandler -= value;
1490 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
1492 this.KeyEventSignal().Disconnect(_keyCallback);
1498 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
1499 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
1501 /// <since_tizen> 3 </since_tizen>
1502 public event EventHandler Relayout
1506 if (_onRelayoutEventHandler == null)
1508 _onRelayoutEventCallback = OnRelayout;
1509 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
1512 _onRelayoutEventHandler += value;
1517 _onRelayoutEventHandler -= value;
1519 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
1521 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
1528 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1529 /// The touched signal is emitted when the touch input is received.<br />
1531 /// <since_tizen> 3 </since_tizen>
1532 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
1536 if (_touchDataEventHandler == null)
1538 _touchDataCallback = OnTouch;
1539 this.TouchSignal().Connect(_touchDataCallback);
1542 _touchDataEventHandler += value;
1547 _touchDataEventHandler -= value;
1549 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
1551 this.TouchSignal().Disconnect(_touchDataCallback);
1558 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1559 /// The hovered signal is emitted when the hover input is received.<br />
1561 /// <since_tizen> 3 </since_tizen>
1562 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
1566 if (_hoverEventHandler == null)
1568 _hoverEventCallback = OnHoverEvent;
1569 this.HoveredSignal().Connect(_hoverEventCallback);
1572 _hoverEventHandler += value;
1577 _hoverEventHandler -= value;
1579 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
1581 this.HoveredSignal().Disconnect(_hoverEventCallback);
1588 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1589 /// The WheelMoved signal is emitted when the wheel event is received.<br />
1591 /// <since_tizen> 3 </since_tizen>
1592 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
1596 if (_wheelEventHandler == null)
1598 _wheelEventCallback = OnWheelEvent;
1599 this.WheelEventSignal().Connect(_wheelEventCallback);
1602 _wheelEventHandler += value;
1607 _wheelEventHandler -= value;
1609 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
1611 this.WheelEventSignal().Disconnect(_wheelEventCallback);
1618 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
1619 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
1621 /// <since_tizen> 3 </since_tizen>
1622 public event EventHandler AddedToWindow
1626 if (_onWindowEventHandler == null)
1628 _onWindowEventCallback = OnWindow;
1629 this.OnWindowSignal().Connect(_onWindowEventCallback);
1632 _onWindowEventHandler += value;
1637 _onWindowEventHandler -= value;
1639 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
1641 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
1647 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
1648 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
1650 /// <since_tizen> 3 </since_tizen>
1651 public event EventHandler RemovedFromWindow
1655 if (_offWindowEventHandler == null)
1657 _offWindowEventCallback = OffWindow;
1658 this.OffWindowSignal().Connect(_offWindowEventCallback);
1661 _offWindowEventHandler += value;
1666 _offWindowEventHandler -= value;
1668 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
1670 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
1676 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
1677 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
1679 /// <since_tizen> 3 </since_tizen>
1680 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
1684 if (_visibilityChangedEventHandler == null)
1686 _visibilityChangedEventCallback = OnVisibilityChanged;
1687 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
1690 _visibilityChangedEventHandler += value;
1695 _visibilityChangedEventHandler -= value;
1697 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
1699 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
1705 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
1706 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
1708 /// <since_tizen> 4 </since_tizen>
1709 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
1713 if (_layoutDirectionChangedEventHandler == null)
1715 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
1716 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
1719 _layoutDirectionChangedEventHandler += value;
1724 _layoutDirectionChangedEventHandler -= value;
1726 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
1728 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
1734 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1735 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1737 /// <since_tizen> 3 </since_tizen>
1738 public event EventHandler ResourcesLoaded
1742 if (_resourcesLoadedEventHandler == null)
1744 _ResourcesLoadedCallback = OnResourcesLoaded;
1745 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1748 _resourcesLoadedEventHandler += value;
1753 _resourcesLoadedEventHandler -= value;
1755 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1757 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1762 internal event EventHandler<BackgroundResourceLoadedEventArgs> BackgroundResourceLoaded
1766 if (_backgroundResourceLoadedEventHandler == null)
1768 _backgroundResourceLoadedCallback = OnBackgroundResourceLoaded;
1769 this.ResourcesLoadedSignal().Connect(_backgroundResourceLoadedCallback);
1772 _backgroundResourceLoadedEventHandler += value;
1776 _backgroundResourceLoadedEventHandler -= value;
1778 if (_backgroundResourceLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1780 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
1786 /// Enumeration for describing the states of the view.
1788 /// <since_tizen> 3 </since_tizen>
1792 /// The normal state.
1796 /// The focused state.
1800 /// The disabled state.
1806 /// Describes the direction to move the focus towards.
1808 /// <since_tizen> 3 </since_tizen>
1809 public enum FocusDirection
1812 /// Move keyboard focus towards the left direction.
1814 /// <since_tizen> 3 </since_tizen>
1817 /// Move keyboard focus towards the right direction.
1819 /// <since_tizen> 3 </since_tizen>
1822 /// Move keyboard focus towards the up direction.
1824 /// <since_tizen> 3 </since_tizen>
1827 /// Move keyboard focus towards the down direction.
1829 /// <since_tizen> 3 </since_tizen>
1832 /// Move keyboard focus towards the previous page direction.
1834 /// <since_tizen> 3 </since_tizen>
1837 /// Move keyboard focus towards the next page direction.
1839 /// <since_tizen> 3 </since_tizen>
1843 internal enum PropertyRange
1845 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1846 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1847 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1850 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1851 [EditorBrowsable(EditorBrowsableState.Never)]
1852 public bool IsResourcesCreated
1856 return Application.Current.IsResourcesCreated;
1860 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1861 [EditorBrowsable(EditorBrowsableState.Never)]
1862 public ResourceDictionary XamlResources
1866 return Application.Current.XamlResources;
1870 Application.Current.XamlResources = value;
1875 /// The StyleName, type string.
1877 /// <since_tizen> 3 </since_tizen>
1878 public string StyleName
1882 return (string)GetValue(StyleNameProperty);
1886 SetValue(StyleNameProperty, value);
1887 NotifyPropertyChanged();
1892 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1894 /// <since_tizen> 3 </since_tizen>
1895 public Color BackgroundColor
1899 return (Color)GetValue(BackgroundColorProperty);
1903 SetValue(BackgroundColorProperty, value);
1904 NotifyPropertyChanged();
1909 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1911 /// <since_tizen> 3 </since_tizen>
1912 public string BackgroundImage
1916 return (string)GetValue(BackgroundImageProperty);
1920 SetValue(BackgroundImageProperty, value);
1921 NotifyPropertyChanged();
1926 /// The background of view.
1928 /// <since_tizen> 3 </since_tizen>
1929 public Tizen.NUI.PropertyMap Background
1933 return (PropertyMap)GetValue(BackgroundProperty);
1937 SetValue(BackgroundProperty, value);
1938 NotifyPropertyChanged();
1944 /// The current state of the view.
1946 /// <since_tizen> 3 </since_tizen>
1951 return (States)GetValue(StateProperty);
1955 SetValue(StateProperty, value);
1956 NotifyPropertyChanged();
1961 /// The current sub state of the view.
1963 /// <since_tizen> 3 </since_tizen>
1964 public States SubState
1968 return (States)GetValue(SubStateProperty);
1972 SetValue(SubStateProperty, value);
1973 NotifyPropertyChanged();
1978 /// Displays a tooltip
1980 /// <since_tizen> 3 </since_tizen>
1981 public Tizen.NUI.PropertyMap Tooltip
1985 return (PropertyMap)GetValue(TooltipProperty);
1989 SetValue(TooltipProperty, value);
1990 NotifyPropertyChanged();
1995 /// Displays a tooltip as a text.
1997 /// <since_tizen> 3 </since_tizen>
1998 public string TooltipText
2002 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
2003 NotifyPropertyChanged();
2008 /// The Child property of FlexContainer.<br />
2009 /// The proportion of the free space in the container, the flex item will receive.<br />
2010 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
2012 /// <since_tizen> 3 </since_tizen>
2017 return (float)GetValue(FlexProperty);
2021 SetValue(FlexProperty, value);
2022 NotifyPropertyChanged();
2027 /// The Child property of FlexContainer.<br />
2028 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
2030 /// <since_tizen> 3 </since_tizen>
2031 public int AlignSelf
2035 return (int)GetValue(AlignSelfProperty);
2039 SetValue(AlignSelfProperty, value);
2040 NotifyPropertyChanged();
2045 /// The Child property of FlexContainer.<br />
2046 /// The space around the flex item.<br />
2048 /// <since_tizen> 3 </since_tizen>
2049 public Vector4 FlexMargin
2053 return (Vector4)GetValue(FlexMarginProperty);
2057 SetValue(FlexMarginProperty, value);
2058 NotifyPropertyChanged();
2063 /// The top-left cell this child occupies, if not set, the first available cell is used.
2065 /// <since_tizen> 3 </since_tizen>
2066 public Vector2 CellIndex
2070 return (Vector2)GetValue(CellIndexProperty);
2074 SetValue(CellIndexProperty, value);
2075 NotifyPropertyChanged();
2080 /// The number of rows this child occupies, if not set, the default value is 1.
2082 /// <since_tizen> 3 </since_tizen>
2083 public float RowSpan
2087 return (float)GetValue(RowSpanProperty);
2091 SetValue(RowSpanProperty, value);
2092 NotifyPropertyChanged();
2097 /// The number of columns this child occupies, if not set, the default value is 1.
2099 /// <since_tizen> 3 </since_tizen>
2100 public float ColumnSpan
2104 return (float)GetValue(ColumnSpanProperty);
2108 SetValue(ColumnSpanProperty, value);
2109 NotifyPropertyChanged();
2114 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
2116 /// <since_tizen> 3 </since_tizen>
2117 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
2121 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
2125 SetValue(CellHorizontalAlignmentProperty, value);
2126 NotifyPropertyChanged();
2131 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
2133 /// <since_tizen> 3 </since_tizen>
2134 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
2138 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
2142 SetValue(CellVerticalAlignmentProperty, value);
2143 NotifyPropertyChanged();
2148 /// The left focusable view.<br />
2149 /// This will return null if not set.<br />
2150 /// This will also return null if the specified left focusable view is not on a window.<br />
2152 /// <since_tizen> 3 </since_tizen>
2153 public View LeftFocusableView
2155 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2158 return (View)GetValue(LeftFocusableViewProperty);
2162 SetValue(LeftFocusableViewProperty, value);
2163 NotifyPropertyChanged();
2168 /// The right focusable view.<br />
2169 /// This will return null if not set.<br />
2170 /// This will also return null if the specified right focusable view is not on a window.<br />
2172 /// <since_tizen> 3 </since_tizen>
2173 public View RightFocusableView
2175 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2178 return (View)GetValue(RightFocusableViewProperty);
2182 SetValue(RightFocusableViewProperty, value);
2183 NotifyPropertyChanged();
2188 /// The up focusable view.<br />
2189 /// This will return null if not set.<br />
2190 /// This will also return null if the specified up focusable view is not on a window.<br />
2192 /// <since_tizen> 3 </since_tizen>
2193 public View UpFocusableView
2195 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2198 return (View)GetValue(UpFocusableViewProperty);
2202 SetValue(UpFocusableViewProperty, value);
2203 NotifyPropertyChanged();
2208 /// The down focusable view.<br />
2209 /// This will return null if not set.<br />
2210 /// This will also return null if the specified down focusable view is not on a window.<br />
2212 /// <since_tizen> 3 </since_tizen>
2213 public View DownFocusableView
2215 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2218 return (View)GetValue(DownFocusableViewProperty);
2222 SetValue(DownFocusableViewProperty, value);
2223 NotifyPropertyChanged();
2228 /// Whether the view should be focusable by keyboard navigation.
2230 /// <since_tizen> 3 </since_tizen>
2231 public bool Focusable
2235 SetValue(FocusableProperty, value);
2236 NotifyPropertyChanged();
2240 return (bool)GetValue(FocusableProperty);
2245 /// Retrieves the position of the view.<br />
2246 /// The coordinates are relative to the view's parent.<br />
2248 /// <since_tizen> 3 </since_tizen>
2249 public Position CurrentPosition
2253 return GetCurrentPosition();
2258 /// Sets the size of a view for the width and the height.<br />
2259 /// Geometry can be scaled to fit within this area.<br />
2260 /// This does not interfere with the view's scale factor.<br />
2261 /// The views default depth is the minimum of width and height.<br />
2264 /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
2265 /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
2266 /// Please note that this multi-cascade setting is especially possible for this NUI object (Size2D). <br />
2267 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2268 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2269 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2270 /// 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 />
2272 /// <since_tizen> 3 </since_tizen>
2273 public Size2D Size2D
2277 Size2D temp = (Size2D)GetValue(Size2DProperty);
2278 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
2282 SetValue(Size2DProperty, value);
2283 // Set Specification so when layouts measure this View it matches the value set here.
2284 // All Views are currently Layouts.
2285 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
2286 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
2287 NotifyPropertyChanged();
2292 /// Retrieves the size of the view.<br />
2293 /// The coordinates are relative to the view's parent.<br />
2295 /// <since_tizen> 3 </since_tizen>
2296 public Size2D CurrentSize
2300 return GetCurrentSize();
2305 /// Retrieves and sets the view's opacity.<br />
2307 /// <since_tizen> 3 </since_tizen>
2308 public float Opacity
2312 return (float)GetValue(OpacityProperty);
2316 SetValue(OpacityProperty, value);
2317 NotifyPropertyChanged();
2322 /// Sets the position of the view for X and Y.<br />
2323 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2324 /// If the position inheritance is disabled, sets the world position.<br />
2327 /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
2328 /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
2329 /// Please note that this multi-cascade setting is especially possible for this NUI object (Position2D). <br />
2330 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2331 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2332 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2334 /// <since_tizen> 3 </since_tizen>
2335 public Position2D Position2D
2339 Position2D temp = (Position2D)GetValue(Position2DProperty);
2340 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
2344 SetValue(Position2DProperty, value);
2345 NotifyPropertyChanged();
2350 /// Retrieves the screen postion of the view.<br />
2352 /// <since_tizen> 3 </since_tizen>
2353 public Vector2 ScreenPosition
2357 Vector2 temp = new Vector2(0.0f, 0.0f);
2358 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2364 /// Determines whether the pivot point should be used to determine the position of the view.
2365 /// This is true by default.
2367 /// <remarks>If false, then the top-left of the view is used for the position.
2368 /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
2370 /// <since_tizen> 3 </since_tizen>
2371 public bool PositionUsesPivotPoint
2375 return (bool)GetValue(PositionUsesPivotPointProperty);
2379 SetValue(PositionUsesPivotPointProperty, value);
2380 NotifyPropertyChanged();
2385 /// Please do not use! this will be deprecated.
2387 /// Please do not use! this will be deprecated!
2388 /// Instead please use PositionUsesPivotPoint.
2389 /// <since_tizen> 3 </since_tizen>
2390 [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " +
2392 "View view = new View(); " +
2393 "view.PivotPoint = PivotPoint.Center; " +
2394 "view.PositionUsesPivotPoint = true;")]
2395 [EditorBrowsable(EditorBrowsableState.Never)]
2396 public bool PositionUsesAnchorPoint
2401 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2406 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2407 NotifyPropertyChanged();
2412 /// Queries whether the view is connected to the stage.<br />
2413 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2415 /// <since_tizen> 3 </since_tizen>
2416 public bool IsOnWindow
2425 /// Gets the depth in the hierarchy for the view.
2427 /// <since_tizen> 3 </since_tizen>
2428 public int HierarchyDepth
2432 return GetHierarchyDepth();
2437 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2440 /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
2441 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2442 /// The values set by this property will likely change.
2444 /// <since_tizen> 3 </since_tizen>
2445 public int SiblingOrder
2449 return (int)GetValue(SiblingOrderProperty);
2453 SetValue(SiblingOrderProperty, value);
2454 NotifyPropertyChanged();
2459 /// Returns the natural size of the view.
2462 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2464 /// <since_tizen> 5 </since_tizen>
2465 public Vector3 NaturalSize
2469 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2470 if (NDalicPINVOKE.SWIGPendingException.Pending)
2471 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2477 /// Returns the natural size (Size2D) of the view.
2480 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2482 /// <since_tizen> 4 </since_tizen>
2483 public Size2D NaturalSize2D
2487 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2488 if (NDalicPINVOKE.SWIGPendingException.Pending)
2489 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2491 return new Size2D((int)temp.Width, (int)temp.Height);
2496 /// Gets or sets the origin of a view within its parent's area.<br />
2497 /// 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 />
2498 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
2499 /// A view's position is the distance between this origin and the view's anchor-point.<br />
2501 /// <pre>The view has been initialized.</pre>
2502 /// <since_tizen> 3 </since_tizen>
2503 public Position ParentOrigin
2507 return (Position)GetValue(ParentOriginProperty);
2511 SetValue(ParentOriginProperty, value);
2512 NotifyPropertyChanged();
2517 /// Gets or sets the anchor-point of a view.<br />
2518 /// 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 />
2519 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
2520 /// A view position is the distance between its parent-origin and this anchor-point.<br />
2521 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
2522 /// <pre>The view has been initialized.</pre>
2524 /// <since_tizen> 3 </since_tizen>
2525 public Position PivotPoint
2529 return (Position)GetValue(PivotPointProperty);
2533 SetValue(PivotPointProperty, value);
2534 NotifyPropertyChanged();
2539 /// Gets or sets the size width of the view.
2541 /// <since_tizen> 3 </since_tizen>
2542 public float SizeWidth
2546 return (float)GetValue(SizeWidthProperty);
2550 SetValue(SizeWidthProperty, value);
2551 WidthSpecification = (int)Math.Ceiling(value);
2552 NotifyPropertyChanged();
2557 /// Gets or sets the size height of the view.
2559 /// <since_tizen> 3 </since_tizen>
2560 public float SizeHeight
2564 return (float)GetValue(SizeHeightProperty);
2568 SetValue(SizeHeightProperty, value);
2569 HeightSpecification = (int)Math.Ceiling(value);
2570 NotifyPropertyChanged();
2575 /// Gets or sets the position of the view.<br />
2576 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
2577 /// If the position inheritance is disabled, sets the world position.<br />
2579 /// <since_tizen> 3 </since_tizen>
2580 public Position Position
2584 return (Position)GetValue(PositionProperty);
2588 SetValue(PositionProperty, value);
2589 NotifyPropertyChanged();
2594 /// Gets or sets the position X of the view.
2596 /// <since_tizen> 3 </since_tizen>
2597 public float PositionX
2601 return (float)GetValue(PositionXProperty);
2605 SetValue(PositionXProperty, value);
2606 NotifyPropertyChanged();
2611 /// Gets or sets the position Y of the view.
2613 /// <since_tizen> 3 </since_tizen>
2614 public float PositionY
2618 return (float)GetValue(PositionYProperty);
2622 SetValue(PositionYProperty, value);
2623 NotifyPropertyChanged();
2628 /// Gets or sets the position Z of the view.
2630 /// <since_tizen> 3 </since_tizen>
2631 public float PositionZ
2635 return (float)GetValue(PositionZProperty);
2639 SetValue(PositionZProperty, value);
2640 NotifyPropertyChanged();
2645 /// Gets or sets the world position of the view.
2647 /// <since_tizen> 3 </since_tizen>
2648 public Vector3 WorldPosition
2652 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2653 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2659 /// Gets or sets the orientation of the view.<br />
2660 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
2662 /// <remarks>This is an asynchronous method.</remarks>
2663 /// <since_tizen> 3 </since_tizen>
2664 public Rotation Orientation
2668 return (Rotation)GetValue(OrientationProperty);
2672 SetValue(OrientationProperty, value);
2673 NotifyPropertyChanged();
2678 /// Gets or sets the world orientation of the view.<br />
2680 /// <since_tizen> 3 </since_tizen>
2681 public Rotation WorldOrientation
2685 Rotation temp = new Rotation();
2686 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2692 /// Gets or sets the scale factor applied to the view.<br />
2694 /// <since_tizen> 3 </since_tizen>
2695 public Vector3 Scale
2699 return (Vector3)GetValue(ScaleProperty);
2703 SetValue(ScaleProperty, value);
2704 NotifyPropertyChanged();
2709 /// Gets or sets the scale X factor applied to the view.
2711 /// <since_tizen> 3 </since_tizen>
2716 return (float)GetValue(ScaleXProperty);
2720 SetValue(ScaleXProperty, value);
2721 NotifyPropertyChanged();
2726 /// Gets or sets the scale Y factor applied to the view.
2728 /// <since_tizen> 3 </since_tizen>
2733 return (float)GetValue(ScaleYProperty);
2737 SetValue(ScaleYProperty, value);
2738 NotifyPropertyChanged();
2743 /// Gets or sets the scale Z factor applied to the view.
2745 /// <since_tizen> 3 </since_tizen>
2750 return (float)GetValue(ScaleZProperty);
2754 SetValue(ScaleZProperty, value);
2755 NotifyPropertyChanged();
2760 /// Gets the world scale of the view.
2762 /// <since_tizen> 3 </since_tizen>
2763 public Vector3 WorldScale
2767 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2768 GetProperty(View.Property.WORLD_SCALE).Get(temp);
2774 /// Retrieves the visibility flag of the view.
2777 /// If the view is not visible, then the view and its children will not be rendered.
2778 /// 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.
2780 /// <since_tizen> 3 </since_tizen>
2781 public bool Visibility
2786 GetProperty(View.Property.VISIBLE).Get(out temp);
2792 /// Gets the view's world color.
2794 /// <since_tizen> 3 </since_tizen>
2795 public Vector4 WorldColor
2799 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2800 GetProperty(View.Property.WORLD_COLOR).Get(temp);
2806 /// Gets or sets the view's name.
2808 /// <since_tizen> 3 </since_tizen>
2813 return (string)GetValue(NameProperty);
2817 SetValue(NameProperty, value);
2818 NotifyPropertyChanged();
2823 /// Get the number of children held by the view.
2825 /// <since_tizen> 3 </since_tizen>
2826 public new uint ChildCount
2830 return GetChildCount();
2835 /// Gets the view's ID.
2838 /// <since_tizen> 3 </since_tizen>
2848 /// Gets or sets the status of whether the view should emit touch or hover signals.
2850 /// <since_tizen> 3 </since_tizen>
2851 public bool Sensitive
2855 return (bool)GetValue(SensitiveProperty);
2859 SetValue(SensitiveProperty, value);
2860 NotifyPropertyChanged();
2865 /// 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.
2867 /// <since_tizen> 3 </since_tizen>
2868 public bool LeaveRequired
2872 return (bool)GetValue(LeaveRequiredProperty);
2876 SetValue(LeaveRequiredProperty, value);
2877 NotifyPropertyChanged();
2882 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
2884 /// <since_tizen> 3 </since_tizen>
2885 public bool InheritOrientation
2889 return (bool)GetValue(InheritOrientationProperty);
2893 SetValue(InheritOrientationProperty, value);
2894 NotifyPropertyChanged();
2899 /// Gets or sets the status of whether a child view inherits it's parent's scale.
2901 /// <since_tizen> 3 </since_tizen>
2902 public bool InheritScale
2906 return (bool)GetValue(InheritScaleProperty);
2910 SetValue(InheritScaleProperty, value);
2911 NotifyPropertyChanged();
2916 /// Gets or sets the status of how the view and its children should be drawn.<br />
2917 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
2918 /// 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 />
2919 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
2920 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
2921 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
2923 /// <since_tizen> 3 </since_tizen>
2924 public DrawModeType DrawMode
2928 return (DrawModeType)GetValue(DrawModeProperty);
2932 SetValue(DrawModeProperty, value);
2933 NotifyPropertyChanged();
2938 /// Gets or sets the relative to parent size factor of the view.<br />
2939 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
2940 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
2942 /// <since_tizen> 3 </since_tizen>
2943 public Vector3 SizeModeFactor
2947 return (Vector3)GetValue(SizeModeFactorProperty);
2951 SetValue(SizeModeFactorProperty, value);
2952 NotifyPropertyChanged();
2957 /// Gets or sets the width resize policy to be used.
2959 /// <since_tizen> 3 </since_tizen>
2960 public ResizePolicyType WidthResizePolicy
2964 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
2968 SetValue(WidthResizePolicyProperty, value);
2969 // Match ResizePolicy to new Layouting.
2970 // Parent relative policies can not be mapped at this point as parent size unknown.
2973 case ResizePolicyType.UseNaturalSize:
2975 WidthSpecification = LayoutParamPolicies.WrapContent;
2978 case ResizePolicyType.FillToParent:
2980 WidthSpecification = LayoutParamPolicies.MatchParent;
2983 case ResizePolicyType.FitToChildren:
2985 WidthSpecification = LayoutParamPolicies.WrapContent;
2991 NotifyPropertyChanged();
2996 /// Gets or sets the height resize policy to be used.
2998 /// <since_tizen> 3 </since_tizen>
2999 public ResizePolicyType HeightResizePolicy
3003 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
3007 SetValue(HeightResizePolicyProperty, value);
3008 // Match ResizePolicy to new Layouting.
3009 // Parent relative policies can not be mapped at this point as parent size unknown.
3012 case ResizePolicyType.UseNaturalSize:
3014 HeightSpecification = LayoutParamPolicies.WrapContent;
3017 case ResizePolicyType.FillToParent:
3019 HeightSpecification = LayoutParamPolicies.MatchParent;
3022 case ResizePolicyType.FitToChildren:
3024 HeightSpecification = LayoutParamPolicies.WrapContent;
3030 NotifyPropertyChanged();
3035 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3036 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3038 /// <since_tizen> 3 </since_tizen>
3039 public SizeScalePolicyType SizeScalePolicy
3043 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
3047 SetValue(SizeScalePolicyProperty, value);
3048 NotifyPropertyChanged();
3053 /// Gets or sets the status of whether the width size is dependent on the height size.
3055 /// <since_tizen> 3 </since_tizen>
3056 public bool WidthForHeight
3060 return (bool)GetValue(WidthForHeightProperty);
3064 SetValue(WidthForHeightProperty, value);
3065 NotifyPropertyChanged();
3070 /// Gets or sets the status of whether the height size is dependent on the width size.
3072 /// <since_tizen> 3 </since_tizen>
3073 public bool HeightForWidth
3077 return (bool)GetValue(HeightForWidthProperty);
3081 SetValue(HeightForWidthProperty, value);
3082 NotifyPropertyChanged();
3087 /// Gets or sets the padding for use in layout.
3089 /// <since_tizen> 5 </since_tizen>
3090 public Extents Padding
3094 // If View has a Layout then padding in stored in the base Layout class
3097 return Layout.Padding;
3101 return (Extents)GetValue(PaddingProperty);
3103 // Two return points to prevent creating a zeroed Extent native object before assignment
3107 Extents padding = value;
3110 // Layout set so store Padding in LayoutItem instead of in View.
3111 // If View stores the Padding value then Legacy Size Negotiation will overwrite
3112 // the position and sizes measure in the Layouting.
3113 Layout.Padding = value;
3114 // If Layout is a LayoutItem then it could be a View that handles it's own padding.
3115 // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.
3116 if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
3118 padding = new Extents(0,0,0,0); // Reset value stored in View.
3120 _layout?.RequestLayout();
3122 SetValue(PaddingProperty, padding);
3123 NotifyPropertyChanged();
3124 _layout?.RequestLayout();
3129 /// Gets or sets the minimum size the view can be assigned in size negotiation.
3131 /// <since_tizen> 3 </since_tizen>
3132 public Size2D MinimumSize
3136 return (Size2D)GetValue(MinimumSizeProperty);
3140 if (_layout != null)
3142 // Note: it only works if minimum size is >= than natural size.
3143 // To force the size it should be done through the width&height spec or Size2D.
3144 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
3145 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
3146 _layout.RequestLayout();
3148 SetValue(MinimumSizeProperty, value);
3149 NotifyPropertyChanged();
3154 /// Gets or sets the maximum size the view can be assigned in size negotiation.
3156 /// <since_tizen> 3 </since_tizen>
3157 public Size2D MaximumSize
3161 return (Size2D)GetValue(MaximumSizeProperty);
3165 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
3166 // MATCH_PARENT spec + parent container size can be used to limit
3167 if (_layout != null)
3169 // Note: it only works if minimum size is >= than natural size.
3170 // To force the size it should be done through the width&height spec or Size2D.
3171 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
3172 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
3173 _layout.RequestLayout();
3175 SetValue(MaximumSizeProperty, value);
3176 NotifyPropertyChanged();
3181 /// Gets or sets whether a child view inherits it's parent's position.<br />
3182 /// Default is to inherit.<br />
3183 /// 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 />
3185 /// <since_tizen> 3 </since_tizen>
3186 public bool InheritPosition
3190 return (bool)GetValue(InheritPositionProperty);
3194 SetValue(InheritPositionProperty, value);
3195 NotifyPropertyChanged();
3200 /// Gets or sets the clipping behavior (mode) of it's children.
3202 /// <since_tizen> 3 </since_tizen>
3203 public ClippingModeType ClippingMode
3207 return (ClippingModeType)GetValue(ClippingModeProperty);
3211 SetValue(ClippingModeProperty, value);
3212 NotifyPropertyChanged();
3217 /// Gets the number of renderers held by the view.
3219 /// <since_tizen> 3 </since_tizen>
3220 public uint RendererCount
3224 return GetRendererCount();
3229 /// [Obsolete("Please do not use! this will be deprecated")]
3231 /// <since_tizen> 3 </since_tizen>
3232 /// Please do not use! this will be deprecated!
3233 /// Instead please use PivotPoint.
3234 [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " +
3236 "View view = new View(); " +
3237 "view.PivotPoint = PivotPoint.Center; " +
3238 "view.PositionUsesPivotPoint = true;")]
3239 [EditorBrowsable(EditorBrowsableState.Never)]
3240 public Position AnchorPoint
3244 Position temp = new Position(0.0f, 0.0f, 0.0f);
3245 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3250 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3251 NotifyPropertyChanged();
3256 /// Sets the size of a view for the width, the height and the depth.<br />
3257 /// Geometry can be scaled to fit within this area.<br />
3258 /// This does not interfere with the view's scale factor.<br />
3259 /// The views default depth is the minimum of width and height.<br />
3262 /// Please note that multi-cascade setting is not possible for this NUI object. <br />
3263 /// It is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
3264 /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f); <br />
3265 /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f; <br />
3266 /// 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 />
3268 /// <since_tizen> 5 </since_tizen>
3273 return (Size)GetValue(SizeProperty);
3277 SetValue(SizeProperty, value);
3278 // Set Specification so when layouts measure this View it matches the value set here.
3279 // All Views are currently Layouts.
3280 WidthSpecification = (int)Math.Ceiling(value.Width);
3281 HeightSpecification = (int)Math.Ceiling(value.Height);
3282 NotifyPropertyChanged();
3287 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
3289 /// <since_tizen> 3 </since_tizen>
3290 [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " +
3292 "Container parent = view.GetParent(); " +
3293 "View view = parent as View;")]
3294 [EditorBrowsable(EditorBrowsableState.Never)]
3295 public new View Parent
3300 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
3301 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
3302 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
3304 if (basehandle is Layer layer)
3306 ret = new View(Layer.getCPtr(layer).Handle, false);
3307 NUILog.Error("This Parent property is deprecated, shoud do not be used");
3311 ret = basehandle as View;
3314 Interop.BaseHandle.delete_BaseHandle(CPtr);
3315 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
3317 if (NDalicPINVOKE.SWIGPendingException.Pending)
3318 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3324 /// Gets/Sets whether inherit parent's the layout Direction.
3326 /// <since_tizen> 4 </since_tizen>
3327 public bool InheritLayoutDirection
3331 return (bool)GetValue(InheritLayoutDirectionProperty);
3335 SetValue(InheritLayoutDirectionProperty, value);
3336 NotifyPropertyChanged();
3341 /// Gets/Sets the layout Direction.
3343 /// <since_tizen> 4 </since_tizen>
3344 public ViewLayoutDirectionType LayoutDirection
3348 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
3352 SetValue(LayoutDirectionProperty, value);
3353 NotifyPropertyChanged();
3354 _layout?.RequestLayout();
3359 /// Gets or sets the Margin for use in layout.
3362 /// Margin property is supported by Layout algorithms and containers.
3363 /// Please Set Layout if you want to use Margin property.
3365 /// <since_tizen> 4 </since_tizen>
3366 public Extents Margin
3370 // If View has a Layout then margin is stored in Layout.
3373 return Layout.Margin;
3377 // If Layout not set then return margin stored in View.
3378 return (Extents)GetValue(MarginProperty);
3380 // Two return points to prevent creating a zeroed Extent native object before assignment
3386 // Layout set so store Margin in LayoutItem instead of View.
3387 // If View stores the Margin too then the Legacy Size Negotiation will
3388 // overwrite the position and size values measured in the Layouting.
3389 Layout.Margin = value;
3390 SetValue(MarginProperty, new Extents(0,0,0,0));
3391 _layout?.RequestLayout();
3395 SetValue(MarginProperty, value);
3397 NotifyPropertyChanged();
3398 _layout?.RequestLayout();
3403 /// The required policy for this dimension, ChildLayoutData enum or exact value.
3405 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3406 [EditorBrowsable(EditorBrowsableState.Never)]
3407 public int WidthSpecification
3411 return _widthPolicy;
3415 _widthPolicy = value;
3416 if (_widthPolicy >= 0)
3418 _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3419 Size2D.Width = _widthPolicy;
3421 _layout?.RequestLayout();
3426 /// The required policy for this dimension, ChildLayoutData enum or exact value.
3428 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3429 [EditorBrowsable(EditorBrowsableState.Never)]
3430 public int HeightSpecification
3434 return _heightPolicy;
3438 _heightPolicy = value;
3439 if (_heightPolicy >= 0)
3441 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3442 Size2D.Height = _heightPolicy;
3444 _layout?.RequestLayout();
3450 /// [Obsolete("Please do not use! this will be deprecated")]
3452 /// Please do not use! this will be deprecated!
3453 /// Instead please use Padding.
3454 /// <since_tizen> 4 </since_tizen>
3455 [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
3456 [EditorBrowsable(EditorBrowsableState.Never)]
3457 public Extents PaddingEX
3461 Extents temp = new Extents(0, 0, 0, 0);
3462 GetProperty(View.Property.PADDING).Get(temp);
3467 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3468 NotifyPropertyChanged();
3469 _layout?.RequestLayout();
3473 internal Style Style
3477 return (Style)GetValue(StyleProperty);
3481 SetValue(StyleProperty, value);
3486 /// Child property to specify desired width
3488 internal int LayoutWidthSpecificationFixed
3492 return _widthPolicy;
3496 _widthPolicy = value;
3497 _measureSpecificationWidth = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
3498 Size2D.Width = value;
3499 _layout?.RequestLayout();
3504 /// Child property to specify desired height
3506 internal int LayoutHeightSpecificationFixed
3510 return _heightPolicy;
3514 _heightPolicy = value;
3515 _measureSpecificationHeight = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
3516 Size2D.Height = value;
3517 _layout?.RequestLayout();
3522 /// Child property to specify desired width, use MatchParent/WrapContent)
3524 internal ChildLayoutData LayoutWidthSpecification
3528 return (ChildLayoutData)_widthPolicy;
3532 _widthPolicy = (int)value;
3537 /// Child property to specify desired height, use MatchParent/WrapContent)
3539 internal ChildLayoutData LayoutHeightSpecification
3543 return (ChildLayoutData)_heightPolicy;
3547 _heightPolicy = (int)value;
3551 internal float Weight
3560 _layout.RequestLayout();
3564 internal bool BackgroundImageSynchronosLoading
3568 return _backgroundImageSynchronosLoading;
3572 if (value != _backgroundImageSynchronosLoading)
3575 PropertyMap bgMap = this.Background;
3577 bgMap.Find(Visual.Property.Type)?.Get(out visualType);
3578 if (visualType == (int)Visual.Type.Image)
3580 bgMap.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3582 if (bgUrl.Length != 0)
3584 _backgroundImageSynchronosLoading = value;
3585 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3586 this.Background = bgMap;
3592 internal float WorldPositionX
3597 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3602 internal float WorldPositionY
3607 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3612 internal float WorldPositionZ
3617 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3622 internal bool FocusState
3626 return IsKeyboardFocusable();
3630 SetKeyboardFocusable(value);
3635 /// Set the layout on this View. Replaces any existing Layout.
3639 internal LayoutItem Layout
3647 // Do nothing if layout provided is already set on this View.
3648 if (value == _layout)
3653 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3654 layoutingDisabled = false;
3657 // If new layout being set already has a owner then that owner receives a replacement default layout.
3658 // First check if the layout to be set already has a owner.
3659 if (value?.Owner != null)
3661 Log.Info("NUI", "Set layout already in use by another View: " + value.Owner.Name + "will get a LayoutGroup\n");
3662 // Previous owner of the layout gets a default layout as a replacement.
3663 value.Owner.Layout = new LayoutGroup();
3665 // Copy Margin and Padding to replacement LayoutGroup.
3666 value.Owner.Layout.Margin = value.Margin;
3667 value.Owner.Layout.Padding = value.Padding;
3670 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3671 // View if no replacement. Previously margin and padding values would have been moved from
3672 // the View to the layout.
3673 if (_layout != null ) // Existing layout
3677 // Existing layout being replaced so copy over margin and padding values.
3678 value.Margin = _layout.Margin;
3679 value.Padding = _layout.Padding;
3683 // Layout not being replaced so restore margin and padding to View.
3684 SetValue(MarginProperty, _layout.Margin);
3685 SetValue(PaddingProperty, _layout.Padding);
3686 NotifyPropertyChanged();
3691 // First Layout to be added to the View hence copy
3693 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3696 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3698 // If View already has a margin set then store it in Layout instead.
3699 value.Margin = Margin;
3700 SetValue(MarginProperty, new Extents(0,0,0,0));
3701 NotifyPropertyChanged();
3704 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3706 // If View already has a padding set then store it in Layout instead.
3707 value.Padding = Padding;
3708 SetValue(PaddingProperty, new Extents(0,0,0,0));
3709 NotifyPropertyChanged();
3714 // Remove existing layout from it's parent layout group.
3715 _layout?.Unparent();
3717 // Set layout to this view
3722 internal void SetLayout(LayoutItem layout)
3725 _layout?.AttachToOwner(this);
3726 _layout?.RequestLayout();
3730 /// Stores the calculated width value and its ModeType. Width component.
3732 internal MeasureSpecification MeasureSpecificationWidth
3736 _measureSpecificationWidth = value;
3737 _layout?.RequestLayout();
3741 return _measureSpecificationWidth;
3746 /// Stores the calculated width value and its ModeType. Height component.
3748 internal MeasureSpecification MeasureSpecificationHeight
3752 _measureSpecificationHeight = value;
3753 _layout?.RequestLayout();
3757 return _measureSpecificationHeight;
3761 internal float ParentOriginX
3766 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3771 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3772 NotifyPropertyChanged();
3776 internal float ParentOriginY
3781 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3786 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3787 NotifyPropertyChanged();
3791 internal float ParentOriginZ
3796 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3801 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3802 NotifyPropertyChanged();
3806 internal float PivotPointX
3811 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3816 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3820 internal float PivotPointY
3825 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3830 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3834 internal float PivotPointZ
3839 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3844 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3848 internal Matrix WorldMatrix
3852 Matrix temp = new Matrix();
3853 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3858 private int LeftFocusableViewId
3863 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
3868 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3872 private int RightFocusableViewId
3877 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
3882 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3886 private int UpFocusableViewId
3891 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
3896 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3900 private int DownFocusableViewId
3905 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
3910 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3915 /// Perform an action on a visual registered to this view. <br />
3916 /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
3918 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
3919 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
3920 /// <param name="attributes">Optional attributes for the action.</param>
3921 /// <since_tizen> 5 </since_tizen>
3922 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
3924 Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
3925 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3929 /// Creates an animation to animate the background color visual. If there is no
3930 /// background visual, creates one with transparent black as it's mixColor.
3932 /// <since_tizen> 3 </since_tizen>
3933 public Animation AnimateBackgroundColor(object destinationValue,
3936 AlphaFunction.BuiltinFunctions? alphaFunction = null,
3937 object initialValue = null)
3939 Tizen.NUI.PropertyMap background = Background;
3941 if (background.Empty())
3943 // If there is no background yet, ensure there is a transparent
3945 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
3946 background = Background;
3948 return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
3952 /// Creates an animation to animate the mixColor of the named visual.
3954 /// <since_tizen> 3 </since_tizen>
3955 public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
3957 Animation animation = null;
3959 PropertyMap _animator = new PropertyMap();
3960 if (alphaFunction != null)
3962 _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
3965 PropertyMap _timePeriod = new PropertyMap();
3966 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
3967 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
3968 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
3970 PropertyMap _transition = new PropertyMap();
3971 _transition.Add("animator", new PropertyValue(_animator));
3972 _transition.Add("target", new PropertyValue(targetVisual));
3973 _transition.Add("property", new PropertyValue("mixColor"));
3975 if (initialColor != null)
3977 PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
3978 _transition.Add("initialValue", initValue);
3981 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
3982 _transition.Add("targetValue", destValue);
3983 TransitionData _transitionData = new TransitionData(_transition);
3985 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
3986 if (NDalicPINVOKE.SWIGPendingException.Pending)
3987 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3992 // From Container Base class
3994 /// Adds a child view to this view.
3996 /// <seealso cref="Container.Add" />
3997 /// <since_tizen> 4 </since_tizen>
3998 public override void Add(View child)
4000 bool hasLayout = (_layout != null);
4001 Log.Info("NUI", "Add:" + child.Name + " to View:" + Name + "which has layout[" + hasLayout + "] + \n");
4005 Tizen.Log.Fatal("NUI", "Child is null");
4009 Container oldParent = child.GetParent();
4010 if (oldParent != this)
4012 // If child already has a parent then re-parent child
4013 if (oldParent != null)
4015 oldParent.Remove(child);
4017 child.InternalParent = this;
4019 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4021 if (NDalicPINVOKE.SWIGPendingException.Pending)
4022 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4023 Children.Add(child);
4025 if (ChildAdded != null)
4027 ChildAddedEventArgs e = new ChildAddedEventArgs
4031 ChildAdded(this, e);
4033 BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
4038 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4040 /// <seealso cref="Container.Remove" />
4041 /// <since_tizen> 4 </since_tizen>
4042 public override void Remove(View child)
4044 bool hasLayout = (_layout != null);
4045 Log.Info("NUI","Removing View:" + child.Name + "layout[" + hasLayout.ToString() +"]\n");
4047 Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
4048 if (NDalicPINVOKE.SWIGPendingException.Pending)
4049 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4051 Children.Remove(child);
4052 child.InternalParent = null;
4054 if (ChildRemoved != null)
4056 ChildRemovedEventArgs e = new ChildRemovedEventArgs
4060 ChildRemoved(this, e);
4065 /// Retrieves a child view by index.
4067 /// <seealso cref="Container.GetChildAt" />
4068 /// <since_tizen> 4 </since_tizen>
4069 public override View GetChildAt(uint index)
4071 if (index < Children.Count)
4073 return Children[Convert.ToInt32(index)];
4082 /// Retrieves the number of children held by the view.
4084 /// <seealso cref="Container.GetChildCount" />
4085 /// <since_tizen> 4 </since_tizen>
4086 public override uint GetChildCount()
4088 return Convert.ToUInt32(Children.Count);
4092 /// Gets the views parent.
4094 /// <seealso cref="Container.GetParent()" />
4095 /// <since_tizen> 4 </since_tizen>
4096 public override Container GetParent()
4098 return this.InternalParent as Container;
4102 /// Queries whether the view has a focus.
4104 /// <returns>True if this view has a focus.</returns>
4105 /// <since_tizen> 3 </since_tizen>
4106 public bool HasFocus()
4109 if (swigCPtr.Handle != global::System.IntPtr.Zero)
4111 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4112 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4116 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4122 /// Sets the name of the style to be applied to the view.
4124 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4125 /// <since_tizen> 3 </since_tizen>
4126 public void SetStyleName(string styleName)
4128 Interop.View.View_SetStyleName(swigCPtr, styleName);
4129 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4133 /// Retrieves the name of the style to be applied to the view (if any).
4135 /// <returns>A string matching a style, or an empty string.</returns>
4136 /// <since_tizen> 3 </since_tizen>
4137 public string GetStyleName()
4139 string ret = Interop.View.View_GetStyleName(swigCPtr);
4140 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4145 /// Clears the background.
4147 /// <since_tizen> 3 </since_tizen>
4148 public void ClearBackground()
4150 Interop.View.View_ClearBackground(swigCPtr);
4151 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4158 /// This is an asynchronous method.
4160 /// <since_tizen> 3 </since_tizen>
4170 /// This is an asynchronous method.
4171 /// If the view is hidden, then the view and its children will not be rendered.
4172 /// 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.
4174 /// <since_tizen> 3 </since_tizen>
4181 /// Raises the view above all other views.
4184 /// Sibling order of views within the parent will be updated automatically.
4185 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4187 /// <since_tizen> 3 </since_tizen>
4188 public void RaiseToTop()
4190 var parentChildren = GetParent()?.Children;
4192 if (parentChildren != null)
4194 parentChildren.Remove(this);
4195 parentChildren.Add(this);
4197 Interop.NDalic.RaiseToTop(swigCPtr);
4198 if (NDalicPINVOKE.SWIGPendingException.Pending)
4199 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4205 /// Lowers the view to the bottom of all views.
4208 /// The sibling order of views within the parent will be updated automatically.
4209 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4211 /// <since_tizen> 3 </since_tizen>
4212 public void LowerToBottom()
4214 var parentChildren = GetParent()?.Children;
4216 if (parentChildren != null)
4218 parentChildren.Remove(this);
4219 parentChildren.Insert(0, this);
4221 Interop.NDalic.LowerToBottom(swigCPtr);
4222 if (NDalicPINVOKE.SWIGPendingException.Pending)
4223 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4228 /// Queries if all resources required by a view are loaded and ready.
4230 /// <remarks>Most resources are only loaded when the control is placed on the stage.
4232 /// <since_tizen> 3 </since_tizen>
4233 public bool IsResourceReady()
4235 bool ret = Interop.View.IsResourceReady(swigCPtr);
4236 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4241 /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4243 /// <pre>The view has been initialized. </pre>
4244 /// <returns>The parent layer of view </returns>
4245 /// <since_tizen> 5 </since_tizen>
4246 public Layer GetLayer()
4248 //to fix memory leak issue, match the handle count with native side.
4249 IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4250 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4251 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4252 Interop.BaseHandle.delete_BaseHandle(CPtr);
4253 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4255 if (NDalicPINVOKE.SWIGPendingException.Pending)
4256 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4261 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4263 /// <pre>The (child) view has been initialized. </pre>
4264 /// <since_tizen> 4 </since_tizen>
4265 public void Unparent()
4267 GetParent()?.Remove(this);
4271 /// Search through this view's hierarchy for a view with the given name.
4272 /// The view itself is also considered in the search.
4274 /// <pre>The view has been initialized.</pre>
4275 /// <param name="viewName">The name of the view to find.</param>
4276 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4277 /// <since_tizen> 3 </since_tizen>
4278 public View FindChildByName(string viewName)
4280 //to fix memory leak issue, match the handle count with native side.
4281 IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4282 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4283 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4284 Interop.BaseHandle.delete_BaseHandle(CPtr);
4285 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4287 if (NDalicPINVOKE.SWIGPendingException.Pending)
4288 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4293 /// Converts screen coordinates into the view's coordinate system using the default camera.
4295 /// <pre>The view has been initialized.</pre>
4296 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4297 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4298 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4299 /// <param name="screenX">The screen X-coordinate.</param>
4300 /// <param name="screenY">The screen Y-coordinate.</param>
4301 /// <returns>True if the conversion succeeded.</returns>
4302 /// <since_tizen> 3 </since_tizen>
4303 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4305 bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4306 if (NDalicPINVOKE.SWIGPendingException.Pending)
4307 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4312 /// Sets the relative to parent size factor of the view.<br />
4313 /// This factor is only used when ResizePolicy is set to either:
4314 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4315 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4317 /// <pre>The view has been initialized.</pre>
4318 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4319 /// <since_tizen> 3 </since_tizen>
4320 public void SetSizeModeFactor(Vector3 factor)
4322 Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4323 if (NDalicPINVOKE.SWIGPendingException.Pending)
4324 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4327 /// Calculates the height of the view given a width.<br />
4328 /// The natural size is used for default calculation.<br />
4329 /// Size 0 is treated as aspect ratio 1:1.<br />
4331 /// <param name="width">The width to use.</param>
4332 /// <returns>The height based on the width.</returns>
4333 /// <since_tizen> 3 </since_tizen>
4334 public float GetHeightForWidth(float width)
4336 float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4337 if (NDalicPINVOKE.SWIGPendingException.Pending)
4338 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4343 /// Calculates the width of the view given a height.<br />
4344 /// The natural size is used for default calculation.<br />
4345 /// Size 0 is treated as aspect ratio 1:1.<br />
4347 /// <param name="height">The height to use.</param>
4348 /// <returns>The width based on the height.</returns>
4349 /// <since_tizen> 3 </since_tizen>
4350 public float GetWidthForHeight(float height)
4352 float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4353 if (NDalicPINVOKE.SWIGPendingException.Pending)
4354 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4359 /// Return the amount of size allocated for relayout.
4361 /// <param name="dimension">The dimension to retrieve.</param>
4362 /// <returns>Return the size.</returns>
4363 /// <since_tizen> 3 </since_tizen>
4364 public float GetRelayoutSize(DimensionType dimension)
4366 float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4367 if (NDalicPINVOKE.SWIGPendingException.Pending)
4368 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4373 /// Set the padding for the view.
4375 /// <param name="padding">Padding for the view.</param>
4376 /// <since_tizen> 3 </since_tizen>
4377 public void SetPadding(PaddingType padding)
4379 Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4380 if (NDalicPINVOKE.SWIGPendingException.Pending)
4381 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4385 /// Return the value of padding for the view.
4387 /// <param name="paddingOut">the value of padding for the view</param>
4388 /// <since_tizen> 3 </since_tizen>
4389 public void GetPadding(PaddingType paddingOut)
4391 Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4392 if (NDalicPINVOKE.SWIGPendingException.Pending)
4393 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4396 /// <since_tizen> 3 </since_tizen>
4397 public uint AddRenderer(Renderer renderer)
4399 uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4400 if (NDalicPINVOKE.SWIGPendingException.Pending)
4401 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4405 /// <since_tizen> 3 </since_tizen>
4406 public Renderer GetRendererAt(uint index)
4408 //to fix memory leak issue, match the handle count with native side.
4409 IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4410 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4411 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4412 if (cPtr != null && ret == null)
4414 ret = new Renderer(cPtr, false);
4415 if (NDalicPINVOKE.SWIGPendingException.Pending)
4416 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4419 Interop.BaseHandle.delete_BaseHandle(CPtr);
4420 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4422 if (NDalicPINVOKE.SWIGPendingException.Pending)
4423 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4427 /// <since_tizen> 3 </since_tizen>
4428 public void RemoveRenderer(Renderer renderer)
4430 Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4431 if (NDalicPINVOKE.SWIGPendingException.Pending)
4432 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4435 /// <since_tizen> 3 </since_tizen>
4436 public void RemoveRenderer(uint index)
4438 Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4439 if (NDalicPINVOKE.SWIGPendingException.Pending)
4440 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4443 internal void Raise()
4445 var parentChildren = GetParent()?.Children;
4447 if (parentChildren != null)
4449 int currentIndex = parentChildren.IndexOf(this);
4451 // If the view is not already the last item in the list.
4452 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4454 View temp = parentChildren[currentIndex + 1];
4455 parentChildren[currentIndex + 1] = this;
4456 parentChildren[currentIndex] = temp;
4458 Interop.NDalic.Raise(swigCPtr);
4459 if (NDalicPINVOKE.SWIGPendingException.Pending)
4460 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4465 internal void Lower()
4467 var parentChildren = GetParent()?.Children;
4469 if (parentChildren != null)
4471 int currentIndex = parentChildren.IndexOf(this);
4473 // If the view is not already the first item in the list.
4474 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4476 View temp = parentChildren[currentIndex - 1];
4477 parentChildren[currentIndex - 1] = this;
4478 parentChildren[currentIndex] = temp;
4480 Interop.NDalic.Lower(swigCPtr);
4481 if (NDalicPINVOKE.SWIGPendingException.Pending)
4482 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4488 /// Raises the view to above the target view.
4490 /// <remarks>The sibling order of views within the parent will be updated automatically.
4491 /// Views on the level above the target view will still be shown above this view.
4492 /// Raising this view above views with the same sibling order as each other will raise this view above them.
4493 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4495 /// <param name="target">Will be raised above this view.</param>
4496 internal void RaiseAbove(View target)
4498 var parentChildren = GetParent()?.Children;
4500 if (parentChildren != null)
4502 int currentIndex = parentChildren.IndexOf(this);
4503 int targetIndex = parentChildren.IndexOf(target);
4505 if (currentIndex < 0 || targetIndex < 0 ||
4506 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4508 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4511 // If the currentIndex is less than the target index and the target has the same parent.
4512 if (currentIndex < targetIndex)
4514 parentChildren.Remove(this);
4515 parentChildren.Insert(targetIndex, this);
4517 Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4518 if (NDalicPINVOKE.SWIGPendingException.Pending)
4519 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4526 /// Lowers the view to below the target view.
4528 /// <remarks>The sibling order of views within the parent will be updated automatically.
4529 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4530 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4532 /// <param name="target">Will be lowered below this view.</param>
4533 internal void LowerBelow(View target)
4535 var parentChildren = GetParent()?.Children;
4537 if (parentChildren != null)
4539 int currentIndex = parentChildren.IndexOf(this);
4540 int targetIndex = parentChildren.IndexOf(target);
4541 if (currentIndex < 0 || targetIndex < 0 ||
4542 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4544 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4548 // If the currentIndex is not already the 0th index and the target has the same parent.
4549 if ((currentIndex != 0) && (targetIndex != -1) &&
4550 (currentIndex > targetIndex))
4552 parentChildren.Remove(this);
4553 parentChildren.Insert(targetIndex, this);
4555 Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4556 if (NDalicPINVOKE.SWIGPendingException.Pending)
4557 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4563 internal string GetName()
4565 string ret = Interop.Actor.Actor_GetName(swigCPtr);
4566 if (NDalicPINVOKE.SWIGPendingException.Pending)
4567 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4571 internal void SetName(string name)
4573 Interop.Actor.Actor_SetName(swigCPtr, name);
4574 if (NDalicPINVOKE.SWIGPendingException.Pending)
4575 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4578 internal uint GetId()
4580 uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4581 if (NDalicPINVOKE.SWIGPendingException.Pending)
4582 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4586 internal bool IsRoot()
4588 bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4589 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4593 internal bool OnWindow()
4595 bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4596 if (NDalicPINVOKE.SWIGPendingException.Pending)
4597 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4601 internal View FindChildById(uint id)
4603 //to fix memory leak issue, match the handle count with native side.
4604 IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4605 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4606 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4607 Interop.BaseHandle.delete_BaseHandle(CPtr);
4608 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4610 if (NDalicPINVOKE.SWIGPendingException.Pending)
4611 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4615 internal override View FindCurrentChildById(uint id)
4617 return FindChildById(id);
4620 internal void SetParentOrigin(Vector3 origin)
4622 Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4623 if (NDalicPINVOKE.SWIGPendingException.Pending)
4624 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4627 internal Vector3 GetCurrentParentOrigin()
4629 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4630 if (NDalicPINVOKE.SWIGPendingException.Pending)
4631 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4635 internal void SetAnchorPoint(Vector3 anchorPoint)
4637 Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4638 if (NDalicPINVOKE.SWIGPendingException.Pending)
4639 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4642 internal Vector3 GetCurrentAnchorPoint()
4644 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4645 if (NDalicPINVOKE.SWIGPendingException.Pending)
4646 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4650 internal void SetSize(float width, float height)
4652 Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4653 if (NDalicPINVOKE.SWIGPendingException.Pending)
4654 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4657 internal void SetSize(float width, float height, float depth)
4659 Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4660 if (NDalicPINVOKE.SWIGPendingException.Pending)
4661 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4664 internal void SetSize(Vector2 size)
4666 Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4667 if (NDalicPINVOKE.SWIGPendingException.Pending)
4668 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4671 internal void SetSize(Vector3 size)
4673 Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4674 if (NDalicPINVOKE.SWIGPendingException.Pending)
4675 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4678 internal Vector3 GetTargetSize()
4680 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4681 if (NDalicPINVOKE.SWIGPendingException.Pending)
4682 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4686 internal Size2D GetCurrentSize()
4688 Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4689 if (NDalicPINVOKE.SWIGPendingException.Pending)
4690 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4691 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4695 internal Vector3 GetNaturalSize()
4697 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4698 if (NDalicPINVOKE.SWIGPendingException.Pending)
4699 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4703 internal void SetPosition(float x, float y)
4705 Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4706 if (NDalicPINVOKE.SWIGPendingException.Pending)
4707 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4710 internal void SetPosition(float x, float y, float z)
4712 Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4713 if (NDalicPINVOKE.SWIGPendingException.Pending)
4714 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4717 internal void SetPosition(Vector3 position)
4719 Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4720 if (NDalicPINVOKE.SWIGPendingException.Pending)
4721 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4724 internal void SetX(float x)
4726 Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4727 if (NDalicPINVOKE.SWIGPendingException.Pending)
4728 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4731 internal void SetY(float y)
4733 Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4734 if (NDalicPINVOKE.SWIGPendingException.Pending)
4735 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4738 internal void SetZ(float z)
4740 Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4741 if (NDalicPINVOKE.SWIGPendingException.Pending)
4742 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4745 internal void TranslateBy(Vector3 distance)
4747 Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4748 if (NDalicPINVOKE.SWIGPendingException.Pending)
4749 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4752 internal Position GetCurrentPosition()
4754 Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4755 if (NDalicPINVOKE.SWIGPendingException.Pending)
4756 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4760 internal Vector3 GetCurrentWorldPosition()
4762 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4763 if (NDalicPINVOKE.SWIGPendingException.Pending)
4764 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4768 internal void SetInheritPosition(bool inherit)
4770 Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4771 if (NDalicPINVOKE.SWIGPendingException.Pending)
4772 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4775 internal bool IsPositionInherited()
4777 bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4778 if (NDalicPINVOKE.SWIGPendingException.Pending)
4779 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4783 internal void SetOrientation(Degree angle, Vector3 axis)
4785 Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4786 if (NDalicPINVOKE.SWIGPendingException.Pending)
4787 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4790 internal void SetOrientation(Radian angle, Vector3 axis)
4792 Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4793 if (NDalicPINVOKE.SWIGPendingException.Pending)
4794 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4797 internal void SetOrientation(Rotation orientation)
4799 Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4800 if (NDalicPINVOKE.SWIGPendingException.Pending)
4801 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4804 internal void RotateBy(Degree angle, Vector3 axis)
4806 Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4807 if (NDalicPINVOKE.SWIGPendingException.Pending)
4808 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4811 internal void RotateBy(Radian angle, Vector3 axis)
4813 Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4814 if (NDalicPINVOKE.SWIGPendingException.Pending)
4815 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4818 internal void RotateBy(Rotation relativeRotation)
4820 Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4821 if (NDalicPINVOKE.SWIGPendingException.Pending)
4822 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4825 internal Rotation GetCurrentOrientation()
4827 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4828 if (NDalicPINVOKE.SWIGPendingException.Pending)
4829 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4833 internal void SetInheritOrientation(bool inherit)
4835 Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4836 if (NDalicPINVOKE.SWIGPendingException.Pending)
4837 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4840 internal bool IsOrientationInherited()
4842 bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
4843 if (NDalicPINVOKE.SWIGPendingException.Pending)
4844 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4848 internal Rotation GetCurrentWorldOrientation()
4850 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
4851 if (NDalicPINVOKE.SWIGPendingException.Pending)
4852 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4856 internal void SetScale(float scale)
4858 Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
4859 if (NDalicPINVOKE.SWIGPendingException.Pending)
4860 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4863 internal void SetScale(float scaleX, float scaleY, float scaleZ)
4865 Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
4866 if (NDalicPINVOKE.SWIGPendingException.Pending)
4867 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4870 internal void SetScale(Vector3 scale)
4872 Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
4873 if (NDalicPINVOKE.SWIGPendingException.Pending)
4874 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4877 internal void ScaleBy(Vector3 relativeScale)
4879 Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
4880 if (NDalicPINVOKE.SWIGPendingException.Pending)
4881 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4884 internal Vector3 GetCurrentScale()
4886 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
4887 if (NDalicPINVOKE.SWIGPendingException.Pending)
4888 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4892 internal Vector3 GetCurrentWorldScale()
4894 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
4895 if (NDalicPINVOKE.SWIGPendingException.Pending)
4896 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4900 internal void SetInheritScale(bool inherit)
4902 Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
4903 if (NDalicPINVOKE.SWIGPendingException.Pending)
4904 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4907 internal bool IsScaleInherited()
4909 bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
4910 if (NDalicPINVOKE.SWIGPendingException.Pending)
4911 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4915 internal Matrix GetCurrentWorldMatrix()
4917 Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
4918 if (NDalicPINVOKE.SWIGPendingException.Pending)
4919 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4923 internal void SetVisible(bool visible)
4925 Interop.Actor.Actor_SetVisible(swigCPtr, visible);
4926 if (NDalicPINVOKE.SWIGPendingException.Pending)
4927 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4930 internal bool IsVisible()
4932 bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
4933 if (NDalicPINVOKE.SWIGPendingException.Pending)
4934 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4938 internal void SetOpacity(float opacity)
4940 Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
4941 if (NDalicPINVOKE.SWIGPendingException.Pending)
4942 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4945 internal float GetCurrentOpacity()
4947 float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
4948 if (NDalicPINVOKE.SWIGPendingException.Pending)
4949 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4953 internal void SetColor(Vector4 color)
4955 Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
4956 if (NDalicPINVOKE.SWIGPendingException.Pending)
4957 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4960 internal Vector4 GetCurrentColor()
4962 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
4963 if (NDalicPINVOKE.SWIGPendingException.Pending)
4964 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4968 internal void SetColorMode(ColorMode colorMode)
4970 Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
4971 if (NDalicPINVOKE.SWIGPendingException.Pending)
4972 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4975 internal ColorMode GetColorMode()
4977 ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
4978 if (NDalicPINVOKE.SWIGPendingException.Pending)
4979 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4983 internal Vector4 GetCurrentWorldColor()
4985 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
4986 if (NDalicPINVOKE.SWIGPendingException.Pending)
4987 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4991 internal void SetDrawMode(DrawModeType drawMode)
4993 Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
4994 if (NDalicPINVOKE.SWIGPendingException.Pending)
4995 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4998 internal DrawModeType GetDrawMode()
5000 DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
5001 if (NDalicPINVOKE.SWIGPendingException.Pending)
5002 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5006 internal void SetKeyboardFocusable(bool focusable)
5008 Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5009 if (NDalicPINVOKE.SWIGPendingException.Pending)
5010 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5013 internal bool IsKeyboardFocusable()
5015 bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5016 if (NDalicPINVOKE.SWIGPendingException.Pending)
5017 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5021 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5023 Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5024 if (NDalicPINVOKE.SWIGPendingException.Pending)
5025 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5028 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5030 ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5031 if (NDalicPINVOKE.SWIGPendingException.Pending)
5032 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5036 internal Vector3 GetSizeModeFactor()
5038 Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5039 if (NDalicPINVOKE.SWIGPendingException.Pending)
5040 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5044 internal void SetMinimumSize(Vector2 size)
5046 Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5047 if (NDalicPINVOKE.SWIGPendingException.Pending)
5048 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5051 internal Vector2 GetMinimumSize()
5053 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5054 if (NDalicPINVOKE.SWIGPendingException.Pending)
5055 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5059 internal void SetMaximumSize(Vector2 size)
5061 Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5062 if (NDalicPINVOKE.SWIGPendingException.Pending)
5063 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5066 internal Vector2 GetMaximumSize()
5068 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5069 if (NDalicPINVOKE.SWIGPendingException.Pending)
5070 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5074 internal int GetHierarchyDepth()
5076 int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5077 if (NDalicPINVOKE.SWIGPendingException.Pending)
5078 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5082 internal uint GetRendererCount()
5084 uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5085 if (NDalicPINVOKE.SWIGPendingException.Pending)
5086 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5090 internal TouchDataSignal TouchSignal()
5092 TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5093 if (NDalicPINVOKE.SWIGPendingException.Pending)
5094 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5098 internal HoverSignal HoveredSignal()
5100 HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5101 if (NDalicPINVOKE.SWIGPendingException.Pending)
5102 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5106 internal WheelSignal WheelEventSignal()
5108 WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5109 if (NDalicPINVOKE.SWIGPendingException.Pending)
5110 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5114 internal ViewSignal OnWindowSignal()
5116 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5117 if (NDalicPINVOKE.SWIGPendingException.Pending)
5118 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5122 internal ViewSignal OffWindowSignal()
5124 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5125 if (NDalicPINVOKE.SWIGPendingException.Pending)
5126 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5130 internal ViewSignal OnRelayoutSignal()
5132 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5133 if (NDalicPINVOKE.SWIGPendingException.Pending)
5134 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5138 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5140 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5145 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5147 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5152 internal ViewSignal ResourcesLoadedSignal()
5154 ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5155 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5159 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5161 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5164 internal bool IsTopLevelView()
5166 if (GetParent() is Layer)
5173 internal void SetKeyInputFocus()
5175 Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5176 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5179 internal void ClearKeyInputFocus()
5181 Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5182 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5185 internal PinchGestureDetector GetPinchGestureDetector()
5187 PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5188 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5192 internal PanGestureDetector GetPanGestureDetector()
5194 PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5195 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5199 internal TapGestureDetector GetTapGestureDetector()
5201 TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5206 internal LongPressGestureDetector GetLongPressGestureDetector()
5208 LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5209 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5213 internal void SetBackgroundColor(Vector4 color)
5215 Interop.ViewInternal.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
5216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5219 internal Vector4 GetBackgroundColor()
5221 Vector4 ret = new Vector4(Interop.ViewInternal.View_GetBackgroundColor(swigCPtr), true);
5222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5226 internal void SetBackgroundImage(Image image)
5228 Interop.ViewInternal.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
5229 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5232 internal ControlKeySignal KeyEventSignal()
5234 ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5235 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5239 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5241 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5242 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5246 internal KeyInputFocusSignal KeyInputFocusLostSignal()
5248 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5253 internal IntPtr GetPtrfromView()
5255 return (IntPtr)swigCPtr;
5259 /// Removes the layout from this View.
5261 internal void ResetLayout()
5266 internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5268 return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5272 /// you can override it to clean-up your own resources.
5274 /// <param name="type">DisposeTypes</param>
5275 /// <since_tizen> 3 </since_tizen>
5276 protected override void Dispose(DisposeTypes type)
5283 if (type == DisposeTypes.Explicit)
5286 //Release your own managed resources here.
5287 //You should release all of your own disposable objects here.
5290 //Release your own unmanaged resources here.
5291 //You should not access any managed member here except static instance.
5292 //because the execution order of Finalizes is non-deterministic.
5295 DisConnectFromSignals();
5298 if (swigCPtr.Handle != global::System.IntPtr.Zero)
5302 swigCMemOwn = false;
5303 Interop.View.delete_View(swigCPtr);
5305 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5308 foreach (View view in Children)
5310 view.InternalParent = null;
5317 private void OnSize2DChanged(int width, int height)
5319 Size2D = new Size2D(width, height);
5322 private void OnPosition2DChanged(int x, int y)
5324 Position2D = new Position2D(x, y);
5327 private void DisConnectFromSignals()
5329 // Save current CPtr.
5330 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5332 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5333 swigCPtr = GetBaseHandleCPtrHandleRef;
5335 if (_onRelayoutEventCallback != null)
5337 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5340 if (_offWindowEventCallback != null)
5342 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5345 if (_onWindowEventCallback != null)
5347 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5350 if (_wheelEventCallback != null)
5352 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5355 if (_hoverEventCallback != null)
5357 this.HoveredSignal().Disconnect(_hoverEventCallback);
5360 if (_touchDataCallback != null)
5362 this.TouchSignal().Disconnect(_touchDataCallback);
5365 if (_ResourcesLoadedCallback != null)
5367 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5370 if (_offWindowEventCallback != null)
5372 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5375 if (_onWindowEventCallback != null)
5377 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5380 if (_wheelEventCallback != null)
5382 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5385 if (_hoverEventCallback != null)
5387 this.HoveredSignal().Disconnect(_hoverEventCallback);
5390 if (_touchDataCallback != null)
5392 this.TouchSignal().Disconnect(_touchDataCallback);
5395 if (_onRelayoutEventCallback != null)
5397 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5400 if (_keyCallback != null)
5402 this.KeyEventSignal().Disconnect(_keyCallback);
5405 if (_keyInputFocusLostCallback != null)
5407 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5410 if (_keyInputFocusGainedCallback != null)
5412 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5415 if (_backgroundResourceLoadedCallback != null)
5417 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5420 if (_onWindowSendEventCallback != null)
5422 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5425 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5426 // Restore current CPtr.
5427 swigCPtr = currentCPtr;
5430 private void OnKeyInputFocusGained(IntPtr view)
5432 if (_keyInputFocusGainedEventHandler != null)
5434 _keyInputFocusGainedEventHandler(this, null);
5438 private void OnKeyInputFocusLost(IntPtr view)
5440 if (_keyInputFocusLostEventHandler != null)
5442 _keyInputFocusLostEventHandler(this, null);
5446 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5448 if (keyEvent == global::System.IntPtr.Zero)
5450 NUILog.Error("keyEvent should not be null!");
5454 KeyEventArgs e = new KeyEventArgs();
5456 bool result = false;
5458 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5460 if (_keyEventHandler != null)
5462 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5464 // Oring the result of each callback.
5465 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5467 result |= del(this, e);
5474 // Callback for View OnRelayout signal
5475 private void OnRelayout(IntPtr data)
5477 if (_onRelayoutEventHandler != null)
5479 _onRelayoutEventHandler(this, null);
5483 // Callback for View TouchSignal
5484 private bool OnTouch(IntPtr view, IntPtr touchData)
5486 if (touchData == global::System.IntPtr.Zero)
5488 NUILog.Error("touchData should not be null!");
5492 TouchEventArgs e = new TouchEventArgs();
5494 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5496 if (_touchDataEventHandler != null)
5498 return _touchDataEventHandler(this, e);
5503 // Callback for View Hover signal
5504 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5506 if (hoverEvent == global::System.IntPtr.Zero)
5508 NUILog.Error("hoverEvent should not be null!");
5512 HoverEventArgs e = new HoverEventArgs();
5514 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5516 if (_hoverEventHandler != null)
5518 return _hoverEventHandler(this, e);
5523 // Callback for View Wheel signal
5524 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5526 if (wheelEvent == global::System.IntPtr.Zero)
5528 NUILog.Error("wheelEvent should not be null!");
5532 WheelEventArgs e = new WheelEventArgs();
5534 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5536 if (_wheelEventHandler != null)
5538 return _wheelEventHandler(this, e);
5543 // Callback for View OnWindow signal
5544 private void OnWindow(IntPtr data)
5546 if (_onWindowEventHandler != null)
5548 _onWindowEventHandler(this, null);
5552 // Callback for View OffWindow signal
5553 private void OffWindow(IntPtr data)
5555 if (_offWindowEventHandler != null)
5557 _offWindowEventHandler(this, null);
5561 // Callback for View visibility change signal
5562 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5564 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5567 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5569 e.Visibility = visibility;
5572 if (_visibilityChangedEventHandler != null)
5574 _visibilityChangedEventHandler(this, e);
5578 // Callback for View layout direction change signal
5579 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5581 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5584 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5588 if (_layoutDirectionChangedEventHandler != null)
5590 _layoutDirectionChangedEventHandler(this, e);
5594 private void OnResourcesLoaded(IntPtr view)
5596 if (_resourcesLoadedEventHandler != null)
5598 _resourcesLoadedEventHandler(this, null);
5602 private View ConvertIdToView(uint id)
5604 View view = GetParent()?.FindCurrentChildById(id);
5606 //If we can't find the parent's children, find in the top layer.
5609 Container parent = GetParent();
5610 while ((parent is View) && (parent != null))
5612 parent = parent.GetParent();
5613 if (parent is Layer)
5615 view = parent.FindCurrentChildById(id);
5624 private void OnBackgroundResourceLoaded(IntPtr view)
5626 BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5627 e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5629 if (_backgroundResourceLoadedEventHandler != null)
5631 _backgroundResourceLoadedEventHandler(this, e);
5636 /// Event argument passed through the ChildAdded event.
5638 /// <since_tizen> 5 </since_tizen>
5639 public class ChildAddedEventArgs : EventArgs
5642 /// Added child view at moment.
5644 /// <since_tizen> 5 </since_tizen>
5645 public View Added { get; set; }
5649 /// Event argument passed through the ChildRemoved event.
5651 /// <since_tizen> 5 </since_tizen>
5652 public class ChildRemovedEventArgs : EventArgs
5655 /// Removed child view at moment.
5657 /// <since_tizen> 5 </since_tizen>
5658 public View Removed { get; set; }
5662 /// Event arguments that passed via the KeyEvent signal.
5664 /// <since_tizen> 3 </since_tizen>
5665 public class KeyEventArgs : EventArgs
5670 /// Key - is the key sent to the view.
5672 /// <since_tizen> 3 </since_tizen>
5687 /// Event arguments that passed via the touch signal.
5689 /// <since_tizen> 3 </since_tizen>
5690 public class TouchEventArgs : EventArgs
5692 private Touch _touch;
5695 /// Touch - contains the information of touch points.
5697 /// <since_tizen> 3 </since_tizen>
5712 /// Event arguments that passed via the hover signal.
5714 /// <since_tizen> 3 </since_tizen>
5715 public class HoverEventArgs : EventArgs
5717 private Hover _hover;
5720 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5722 /// <since_tizen> 3 </since_tizen>
5737 /// Event arguments that passed via the wheel signal.
5739 /// <since_tizen> 3 </since_tizen>
5740 public class WheelEventArgs : EventArgs
5742 private Wheel _wheel;
5745 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5747 /// <since_tizen> 3 </since_tizen>
5762 /// Event arguments of visibility changed.
5764 /// <since_tizen> 3 </since_tizen>
5765 public class VisibilityChangedEventArgs : EventArgs
5768 private bool _visibility;
5769 private VisibilityChangeType _type;
5772 /// The view, or child of view, whose visibility has changed.
5774 /// <since_tizen> 3 </since_tizen>
5788 /// Whether the view is now visible or not.
5790 /// <since_tizen> 3 </since_tizen>
5791 public bool Visibility
5799 _visibility = value;
5804 /// Whether the view's visible property has changed or a parent's.
5806 /// <since_tizen> 3 </since_tizen>
5807 public VisibilityChangeType Type
5821 /// Event arguments of layout direction changed.
5823 /// <since_tizen> 4 </since_tizen>
5824 public class LayoutDirectionChangedEventArgs : EventArgs
5827 private ViewLayoutDirectionType _type;
5830 /// The view, or child of view, whose layout direction has changed.
5832 /// <since_tizen> 4 </since_tizen>
5846 /// Whether the view's layout direction property has changed or a parent's.
5848 /// <since_tizen> 4 </since_tizen>
5849 public ViewLayoutDirectionType Type
5863 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
5865 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5866 [EditorBrowsable(EditorBrowsableState.Never)]
5867 public Transition GetTransition(string transitionName)
5869 Transition trans = null;
5870 transDictionary.TryGetValue(transitionName, out trans);
5874 private void LoadTransitions()
5876 foreach (string str in transitionNames)
5878 string resourceName = str + ".xaml";
5879 Transition trans = null;
5881 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
5883 string likelyResourcePath = resource + "animation/" + resourceName;
5885 if (File.Exists(likelyResourcePath))
5887 trans = Extensions.LoadObject<Transition>(likelyResourcePath);
5891 transDictionary.Add(trans.Name, trans);
5896 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5897 [EditorBrowsable(EditorBrowsableState.Never)]
5898 public string[] TransitionNames
5902 return transitionNames;
5906 transitionNames = value;
5910 private string[] transitionNames;
5912 internal class BackgroundResourceLoadedEventArgs : EventArgs
5914 private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
5915 public ResourceLoadingStatusType Status
5928 internal class Property
5930 internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
5931 internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
5932 internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
5933 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
5934 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
5935 internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
5936 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
5937 internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
5938 internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
5939 internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
5940 internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
5941 internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
5942 internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
5943 internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
5944 internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
5945 internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
5946 internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
5947 internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
5948 internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
5949 internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
5950 internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
5951 internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
5952 internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
5953 internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
5954 internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
5955 internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
5956 internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
5957 internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
5958 internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
5959 internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
5960 internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
5961 internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
5962 internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
5963 internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
5964 internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
5965 internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
5966 internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
5967 internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
5968 internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
5969 internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
5970 internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
5971 internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
5972 internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
5973 internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
5974 internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
5975 internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
5976 internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
5977 internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
5978 internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
5979 internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
5980 internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
5981 internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
5982 internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
5983 internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
5984 internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
5985 internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
5986 internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
5987 internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
5988 internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
5989 internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
5990 internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
5991 internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
5992 internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();