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 private MergedStyle mergedStyle = null;
1298 internal MergedStyle _mergedStyle
1302 if (null == mergedStyle)
1304 mergedStyle = new MergedStyle(GetType(), this);
1311 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1312 private LayoutItem _layout; // Exclusive layout assigned to this View.
1313 private int _widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
1314 private int _heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
1315 private float _weight = 0.0f; // Weighting of child View in a Layout
1316 private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
1317 private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
1318 private bool _backgroundImageSynchronosLoading = false;
1319 private EventHandler _offWindowEventHandler;
1320 private OffWindowEventCallbackType _offWindowEventCallback;
1321 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
1322 private WheelEventCallbackType _wheelEventCallback;
1323 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
1324 private KeyCallbackType _keyCallback;
1325 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
1326 private TouchDataCallbackType _touchDataCallback;
1327 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
1328 private HoverEventCallbackType _hoverEventCallback;
1329 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
1330 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
1331 private EventHandler _keyInputFocusGainedEventHandler;
1332 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
1333 private EventHandler _keyInputFocusLostEventHandler;
1334 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
1335 private EventHandler _onRelayoutEventHandler;
1336 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
1337 private EventHandler _onWindowEventHandler;
1338 private OnWindowEventCallbackType _onWindowEventCallback;
1339 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
1340 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
1341 // Resource Ready Signal
1342 private EventHandler _resourcesLoadedEventHandler;
1343 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1344 private EventHandler<BackgroundResourceLoadedEventArgs> _backgroundResourceLoadedEventHandler;
1345 private _backgroundResourceLoadedCallbackType _backgroundResourceLoadedCallback;
1347 private OnWindowEventCallbackType _onWindowSendEventCallback;
1349 private void SendViewAddedEventToWindow(IntPtr data)
1351 Window.Instance?.SendViewAdded(this);
1355 /// Creates a new instance of a view.
1357 /// <since_tizen> 3 </since_tizen>
1358 public View() : this(Interop.View.View_New(), true)
1360 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1362 internal View(View uiControl) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1364 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1367 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
1369 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1372 PositionUsesPivotPoint = false;
1375 _onWindowSendEventCallback = SendViewAddedEventToWindow;
1376 this.OnWindowSignal().Connect(_onWindowSendEventCallback);
1379 internal View(ViewImpl implementation) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1381 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1384 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1385 private delegate void OffWindowEventCallbackType(IntPtr control);
1386 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1387 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
1388 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1389 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
1390 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1391 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
1392 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1393 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
1394 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1395 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
1396 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1397 private delegate void ResourcesLoadedCallbackType(IntPtr control);
1398 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1399 private delegate void _backgroundResourceLoadedCallbackType(IntPtr view);
1400 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1401 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
1402 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1403 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
1404 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1405 private delegate void OnRelayoutEventCallbackType(IntPtr control);
1406 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1407 private delegate void OnWindowEventCallbackType(IntPtr control);
1408 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1409 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
1412 /// Event when a child is removed.
1414 /// <since_tizen> 5 </since_tizen>
1415 public new event EventHandler<ChildRemovedEventArgs> ChildRemoved;
1417 /// Event when a child is added.
1419 /// <since_tizen> 5 </since_tizen>
1420 public new event EventHandler<ChildAddedEventArgs> ChildAdded;
1423 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1424 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
1426 /// <since_tizen> 3 </since_tizen>
1427 public event EventHandler FocusGained
1431 if (_keyInputFocusGainedEventHandler == null)
1433 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
1434 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
1437 _keyInputFocusGainedEventHandler += value;
1442 _keyInputFocusGainedEventHandler -= value;
1444 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
1446 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
1452 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1453 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
1455 /// <since_tizen> 3 </since_tizen>
1456 public event EventHandler FocusLost
1460 if (_keyInputFocusLostEventHandler == null)
1462 _keyInputFocusLostCallback = OnKeyInputFocusLost;
1463 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
1466 _keyInputFocusLostEventHandler += value;
1471 _keyInputFocusLostEventHandler -= value;
1473 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
1475 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
1481 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1482 /// The KeyPressed signal is emitted when the key event is received.<br />
1484 /// <since_tizen> 3 </since_tizen>
1485 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
1489 if (_keyEventHandler == null)
1491 _keyCallback = OnKeyEvent;
1492 this.KeyEventSignal().Connect(_keyCallback);
1495 _keyEventHandler += value;
1500 _keyEventHandler -= value;
1502 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
1504 this.KeyEventSignal().Disconnect(_keyCallback);
1510 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
1511 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
1513 /// <since_tizen> 3 </since_tizen>
1514 public event EventHandler Relayout
1518 if (_onRelayoutEventHandler == null)
1520 _onRelayoutEventCallback = OnRelayout;
1521 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
1524 _onRelayoutEventHandler += value;
1529 _onRelayoutEventHandler -= value;
1531 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
1533 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
1540 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1541 /// The touched signal is emitted when the touch input is received.<br />
1543 /// <since_tizen> 3 </since_tizen>
1544 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
1548 if (_touchDataEventHandler == null)
1550 _touchDataCallback = OnTouch;
1551 this.TouchSignal().Connect(_touchDataCallback);
1554 _touchDataEventHandler += value;
1559 _touchDataEventHandler -= value;
1561 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
1563 this.TouchSignal().Disconnect(_touchDataCallback);
1570 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1571 /// The hovered signal is emitted when the hover input is received.<br />
1573 /// <since_tizen> 3 </since_tizen>
1574 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
1578 if (_hoverEventHandler == null)
1580 _hoverEventCallback = OnHoverEvent;
1581 this.HoveredSignal().Connect(_hoverEventCallback);
1584 _hoverEventHandler += value;
1589 _hoverEventHandler -= value;
1591 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
1593 this.HoveredSignal().Disconnect(_hoverEventCallback);
1600 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1601 /// The WheelMoved signal is emitted when the wheel event is received.<br />
1603 /// <since_tizen> 3 </since_tizen>
1604 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
1608 if (_wheelEventHandler == null)
1610 _wheelEventCallback = OnWheelEvent;
1611 this.WheelEventSignal().Connect(_wheelEventCallback);
1614 _wheelEventHandler += value;
1619 _wheelEventHandler -= value;
1621 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
1623 this.WheelEventSignal().Disconnect(_wheelEventCallback);
1630 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
1631 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
1633 /// <since_tizen> 3 </since_tizen>
1634 public event EventHandler AddedToWindow
1638 if (_onWindowEventHandler == null)
1640 _onWindowEventCallback = OnWindow;
1641 this.OnWindowSignal().Connect(_onWindowEventCallback);
1644 _onWindowEventHandler += value;
1649 _onWindowEventHandler -= value;
1651 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
1653 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
1659 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
1660 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
1662 /// <since_tizen> 3 </since_tizen>
1663 public event EventHandler RemovedFromWindow
1667 if (_offWindowEventHandler == null)
1669 _offWindowEventCallback = OffWindow;
1670 this.OffWindowSignal().Connect(_offWindowEventCallback);
1673 _offWindowEventHandler += value;
1678 _offWindowEventHandler -= value;
1680 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
1682 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
1688 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
1689 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
1691 /// <since_tizen> 3 </since_tizen>
1692 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
1696 if (_visibilityChangedEventHandler == null)
1698 _visibilityChangedEventCallback = OnVisibilityChanged;
1699 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
1702 _visibilityChangedEventHandler += value;
1707 _visibilityChangedEventHandler -= value;
1709 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
1711 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
1717 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
1718 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
1720 /// <since_tizen> 4 </since_tizen>
1721 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
1725 if (_layoutDirectionChangedEventHandler == null)
1727 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
1728 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
1731 _layoutDirectionChangedEventHandler += value;
1736 _layoutDirectionChangedEventHandler -= value;
1738 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
1740 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
1746 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1747 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1749 /// <since_tizen> 3 </since_tizen>
1750 public event EventHandler ResourcesLoaded
1754 if (_resourcesLoadedEventHandler == null)
1756 _ResourcesLoadedCallback = OnResourcesLoaded;
1757 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1760 _resourcesLoadedEventHandler += value;
1765 _resourcesLoadedEventHandler -= value;
1767 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1769 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1774 internal event EventHandler<BackgroundResourceLoadedEventArgs> BackgroundResourceLoaded
1778 if (_backgroundResourceLoadedEventHandler == null)
1780 _backgroundResourceLoadedCallback = OnBackgroundResourceLoaded;
1781 this.ResourcesLoadedSignal().Connect(_backgroundResourceLoadedCallback);
1784 _backgroundResourceLoadedEventHandler += value;
1788 _backgroundResourceLoadedEventHandler -= value;
1790 if (_backgroundResourceLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1792 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
1798 /// Enumeration for describing the states of the view.
1800 /// <since_tizen> 3 </since_tizen>
1804 /// The normal state.
1808 /// The focused state.
1812 /// The disabled state.
1818 /// Describes the direction to move the focus towards.
1820 /// <since_tizen> 3 </since_tizen>
1821 public enum FocusDirection
1824 /// Move keyboard focus towards the left direction.
1826 /// <since_tizen> 3 </since_tizen>
1829 /// Move keyboard focus towards the right direction.
1831 /// <since_tizen> 3 </since_tizen>
1834 /// Move keyboard focus towards the up direction.
1836 /// <since_tizen> 3 </since_tizen>
1839 /// Move keyboard focus towards the down direction.
1841 /// <since_tizen> 3 </since_tizen>
1844 /// Move keyboard focus towards the previous page direction.
1846 /// <since_tizen> 3 </since_tizen>
1849 /// Move keyboard focus towards the next page direction.
1851 /// <since_tizen> 3 </since_tizen>
1855 internal enum PropertyRange
1857 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1858 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1859 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1862 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1863 [EditorBrowsable(EditorBrowsableState.Never)]
1864 public bool IsResourcesCreated
1868 return Application.Current.IsResourcesCreated;
1872 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1873 [EditorBrowsable(EditorBrowsableState.Never)]
1874 public ResourceDictionary XamlResources
1878 return Application.Current.XamlResources;
1882 Application.Current.XamlResources = value;
1887 /// The StyleName, type string.
1889 /// <since_tizen> 3 </since_tizen>
1890 public string StyleName
1894 return (string)GetValue(StyleNameProperty);
1898 SetValue(StyleNameProperty, value);
1899 NotifyPropertyChanged();
1904 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1906 /// <since_tizen> 3 </since_tizen>
1907 public Color BackgroundColor
1911 return (Color)GetValue(BackgroundColorProperty);
1915 SetValue(BackgroundColorProperty, value);
1916 NotifyPropertyChanged();
1921 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1923 /// <since_tizen> 3 </since_tizen>
1924 public string BackgroundImage
1928 return (string)GetValue(BackgroundImageProperty);
1932 SetValue(BackgroundImageProperty, value);
1933 NotifyPropertyChanged();
1938 /// The background of view.
1940 /// <since_tizen> 3 </since_tizen>
1941 public Tizen.NUI.PropertyMap Background
1945 return (PropertyMap)GetValue(BackgroundProperty);
1949 SetValue(BackgroundProperty, value);
1950 NotifyPropertyChanged();
1956 /// The current state of the view.
1958 /// <since_tizen> 3 </since_tizen>
1963 return (States)GetValue(StateProperty);
1967 SetValue(StateProperty, value);
1968 NotifyPropertyChanged();
1973 /// The current sub state of the view.
1975 /// <since_tizen> 3 </since_tizen>
1976 public States SubState
1980 return (States)GetValue(SubStateProperty);
1984 SetValue(SubStateProperty, value);
1985 NotifyPropertyChanged();
1990 /// Displays a tooltip
1992 /// <since_tizen> 3 </since_tizen>
1993 public Tizen.NUI.PropertyMap Tooltip
1997 return (PropertyMap)GetValue(TooltipProperty);
2001 SetValue(TooltipProperty, value);
2002 NotifyPropertyChanged();
2007 /// Displays a tooltip as a text.
2009 /// <since_tizen> 3 </since_tizen>
2010 public string TooltipText
2014 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
2015 NotifyPropertyChanged();
2020 /// The Child property of FlexContainer.<br />
2021 /// The proportion of the free space in the container, the flex item will receive.<br />
2022 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
2024 /// <since_tizen> 3 </since_tizen>
2029 return (float)GetValue(FlexProperty);
2033 SetValue(FlexProperty, value);
2034 NotifyPropertyChanged();
2039 /// The Child property of FlexContainer.<br />
2040 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
2042 /// <since_tizen> 3 </since_tizen>
2043 public int AlignSelf
2047 return (int)GetValue(AlignSelfProperty);
2051 SetValue(AlignSelfProperty, value);
2052 NotifyPropertyChanged();
2057 /// The Child property of FlexContainer.<br />
2058 /// The space around the flex item.<br />
2060 /// <since_tizen> 3 </since_tizen>
2061 public Vector4 FlexMargin
2065 return (Vector4)GetValue(FlexMarginProperty);
2069 SetValue(FlexMarginProperty, value);
2070 NotifyPropertyChanged();
2075 /// The top-left cell this child occupies, if not set, the first available cell is used.
2077 /// <since_tizen> 3 </since_tizen>
2078 public Vector2 CellIndex
2082 return (Vector2)GetValue(CellIndexProperty);
2086 SetValue(CellIndexProperty, value);
2087 NotifyPropertyChanged();
2092 /// The number of rows this child occupies, if not set, the default value is 1.
2094 /// <since_tizen> 3 </since_tizen>
2095 public float RowSpan
2099 return (float)GetValue(RowSpanProperty);
2103 SetValue(RowSpanProperty, value);
2104 NotifyPropertyChanged();
2109 /// The number of columns this child occupies, if not set, the default value is 1.
2111 /// <since_tizen> 3 </since_tizen>
2112 public float ColumnSpan
2116 return (float)GetValue(ColumnSpanProperty);
2120 SetValue(ColumnSpanProperty, value);
2121 NotifyPropertyChanged();
2126 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
2128 /// <since_tizen> 3 </since_tizen>
2129 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
2133 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
2137 SetValue(CellHorizontalAlignmentProperty, value);
2138 NotifyPropertyChanged();
2143 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
2145 /// <since_tizen> 3 </since_tizen>
2146 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
2150 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
2154 SetValue(CellVerticalAlignmentProperty, value);
2155 NotifyPropertyChanged();
2160 /// The left focusable view.<br />
2161 /// This will return null if not set.<br />
2162 /// This will also return null if the specified left focusable view is not on a window.<br />
2164 /// <since_tizen> 3 </since_tizen>
2165 public View LeftFocusableView
2167 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2170 return (View)GetValue(LeftFocusableViewProperty);
2174 SetValue(LeftFocusableViewProperty, value);
2175 NotifyPropertyChanged();
2180 /// The right focusable view.<br />
2181 /// This will return null if not set.<br />
2182 /// This will also return null if the specified right focusable view is not on a window.<br />
2184 /// <since_tizen> 3 </since_tizen>
2185 public View RightFocusableView
2187 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2190 return (View)GetValue(RightFocusableViewProperty);
2194 SetValue(RightFocusableViewProperty, value);
2195 NotifyPropertyChanged();
2200 /// The up focusable view.<br />
2201 /// This will return null if not set.<br />
2202 /// This will also return null if the specified up focusable view is not on a window.<br />
2204 /// <since_tizen> 3 </since_tizen>
2205 public View UpFocusableView
2207 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2210 return (View)GetValue(UpFocusableViewProperty);
2214 SetValue(UpFocusableViewProperty, value);
2215 NotifyPropertyChanged();
2220 /// The down focusable view.<br />
2221 /// This will return null if not set.<br />
2222 /// This will also return null if the specified down focusable view is not on a window.<br />
2224 /// <since_tizen> 3 </since_tizen>
2225 public View DownFocusableView
2227 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2230 return (View)GetValue(DownFocusableViewProperty);
2234 SetValue(DownFocusableViewProperty, value);
2235 NotifyPropertyChanged();
2240 /// Whether the view should be focusable by keyboard navigation.
2242 /// <since_tizen> 3 </since_tizen>
2243 public bool Focusable
2247 SetValue(FocusableProperty, value);
2248 NotifyPropertyChanged();
2252 return (bool)GetValue(FocusableProperty);
2257 /// Retrieves the position of the view.<br />
2258 /// The coordinates are relative to the view's parent.<br />
2260 /// <since_tizen> 3 </since_tizen>
2261 public Position CurrentPosition
2265 return GetCurrentPosition();
2270 /// Sets the size of a view for the width and the height.<br />
2271 /// Geometry can be scaled to fit within this area.<br />
2272 /// This does not interfere with the view's scale factor.<br />
2273 /// The views default depth is the minimum of width and height.<br />
2276 /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
2277 /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
2278 /// Please note that this multi-cascade setting is especially possible for this NUI object (Size2D). <br />
2279 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2280 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2281 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2282 /// 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 />
2284 /// <since_tizen> 3 </since_tizen>
2285 public Size2D Size2D
2289 Size2D temp = (Size2D)GetValue(Size2DProperty);
2290 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
2294 SetValue(Size2DProperty, value);
2295 // Set Specification so when layouts measure this View it matches the value set here.
2296 // All Views are currently Layouts.
2297 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
2298 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
2299 NotifyPropertyChanged();
2304 /// Retrieves the size of the view.<br />
2305 /// The coordinates are relative to the view's parent.<br />
2307 /// <since_tizen> 3 </since_tizen>
2308 public Size2D CurrentSize
2312 return GetCurrentSize();
2317 /// Retrieves and sets the view's opacity.<br />
2319 /// <since_tizen> 3 </since_tizen>
2320 public float Opacity
2324 return (float)GetValue(OpacityProperty);
2328 SetValue(OpacityProperty, value);
2329 NotifyPropertyChanged();
2334 /// Sets the position of the view for X and Y.<br />
2335 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2336 /// If the position inheritance is disabled, sets the world position.<br />
2339 /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
2340 /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
2341 /// Please note that this multi-cascade setting is especially possible for this NUI object (Position2D). <br />
2342 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2343 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2344 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2346 /// <since_tizen> 3 </since_tizen>
2347 public Position2D Position2D
2351 Position2D temp = (Position2D)GetValue(Position2DProperty);
2352 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
2356 SetValue(Position2DProperty, value);
2357 NotifyPropertyChanged();
2362 /// Retrieves the screen postion of the view.<br />
2364 /// <since_tizen> 3 </since_tizen>
2365 public Vector2 ScreenPosition
2369 Vector2 temp = new Vector2(0.0f, 0.0f);
2370 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2376 /// Determines whether the pivot point should be used to determine the position of the view.
2377 /// This is true by default.
2379 /// <remarks>If false, then the top-left of the view is used for the position.
2380 /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
2382 /// <since_tizen> 3 </since_tizen>
2383 public bool PositionUsesPivotPoint
2387 return (bool)GetValue(PositionUsesPivotPointProperty);
2391 SetValue(PositionUsesPivotPointProperty, value);
2392 NotifyPropertyChanged();
2397 /// Please do not use! this will be deprecated.
2399 /// Please do not use! this will be deprecated!
2400 /// Instead please use PositionUsesPivotPoint.
2401 /// <since_tizen> 3 </since_tizen>
2402 [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " +
2404 "View view = new View(); " +
2405 "view.PivotPoint = PivotPoint.Center; " +
2406 "view.PositionUsesPivotPoint = true;")]
2407 [EditorBrowsable(EditorBrowsableState.Never)]
2408 public bool PositionUsesAnchorPoint
2413 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2418 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2419 NotifyPropertyChanged();
2424 /// Queries whether the view is connected to the stage.<br />
2425 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2427 /// <since_tizen> 3 </since_tizen>
2428 public bool IsOnWindow
2437 /// Gets the depth in the hierarchy for the view.
2439 /// <since_tizen> 3 </since_tizen>
2440 public int HierarchyDepth
2444 return GetHierarchyDepth();
2449 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2452 /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
2453 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2454 /// The values set by this property will likely change.
2456 /// <since_tizen> 3 </since_tizen>
2457 public int SiblingOrder
2461 return (int)GetValue(SiblingOrderProperty);
2465 SetValue(SiblingOrderProperty, value);
2466 NotifyPropertyChanged();
2471 /// Returns the natural size of the view.
2474 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2476 /// <since_tizen> 5 </since_tizen>
2477 public Vector3 NaturalSize
2481 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2482 if (NDalicPINVOKE.SWIGPendingException.Pending)
2483 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2489 /// Returns the natural size (Size2D) of the view.
2492 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2494 /// <since_tizen> 4 </since_tizen>
2495 public Size2D NaturalSize2D
2499 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2500 if (NDalicPINVOKE.SWIGPendingException.Pending)
2501 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2503 return new Size2D((int)temp.Width, (int)temp.Height);
2508 /// Gets or sets the origin of a view within its parent's area.<br />
2509 /// 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 />
2510 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
2511 /// A view's position is the distance between this origin and the view's anchor-point.<br />
2513 /// <pre>The view has been initialized.</pre>
2514 /// <since_tizen> 3 </since_tizen>
2515 public Position ParentOrigin
2519 return (Position)GetValue(ParentOriginProperty);
2523 SetValue(ParentOriginProperty, value);
2524 NotifyPropertyChanged();
2529 /// Gets or sets the anchor-point of a view.<br />
2530 /// 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 />
2531 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
2532 /// A view position is the distance between its parent-origin and this anchor-point.<br />
2533 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
2534 /// <pre>The view has been initialized.</pre>
2536 /// <since_tizen> 3 </since_tizen>
2537 public Position PivotPoint
2541 return (Position)GetValue(PivotPointProperty);
2545 SetValue(PivotPointProperty, value);
2546 NotifyPropertyChanged();
2551 /// Gets or sets the size width of the view.
2553 /// <since_tizen> 3 </since_tizen>
2554 public float SizeWidth
2558 return (float)GetValue(SizeWidthProperty);
2562 SetValue(SizeWidthProperty, value);
2563 WidthSpecification = (int)Math.Ceiling(value);
2564 NotifyPropertyChanged();
2569 /// Gets or sets the size height of the view.
2571 /// <since_tizen> 3 </since_tizen>
2572 public float SizeHeight
2576 return (float)GetValue(SizeHeightProperty);
2580 SetValue(SizeHeightProperty, value);
2581 HeightSpecification = (int)Math.Ceiling(value);
2582 NotifyPropertyChanged();
2587 /// Gets or sets the position of the view.<br />
2588 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
2589 /// If the position inheritance is disabled, sets the world position.<br />
2591 /// <since_tizen> 3 </since_tizen>
2592 public Position Position
2596 return (Position)GetValue(PositionProperty);
2600 SetValue(PositionProperty, value);
2601 NotifyPropertyChanged();
2606 /// Gets or sets the position X of the view.
2608 /// <since_tizen> 3 </since_tizen>
2609 public float PositionX
2613 return (float)GetValue(PositionXProperty);
2617 SetValue(PositionXProperty, value);
2618 NotifyPropertyChanged();
2623 /// Gets or sets the position Y of the view.
2625 /// <since_tizen> 3 </since_tizen>
2626 public float PositionY
2630 return (float)GetValue(PositionYProperty);
2634 SetValue(PositionYProperty, value);
2635 NotifyPropertyChanged();
2640 /// Gets or sets the position Z of the view.
2642 /// <since_tizen> 3 </since_tizen>
2643 public float PositionZ
2647 return (float)GetValue(PositionZProperty);
2651 SetValue(PositionZProperty, value);
2652 NotifyPropertyChanged();
2657 /// Gets or sets the world position of the view.
2659 /// <since_tizen> 3 </since_tizen>
2660 public Vector3 WorldPosition
2664 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2665 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2671 /// Gets or sets the orientation of the view.<br />
2672 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
2674 /// <remarks>This is an asynchronous method.</remarks>
2675 /// <since_tizen> 3 </since_tizen>
2676 public Rotation Orientation
2680 return (Rotation)GetValue(OrientationProperty);
2684 SetValue(OrientationProperty, value);
2685 NotifyPropertyChanged();
2690 /// Gets or sets the world orientation of the view.<br />
2692 /// <since_tizen> 3 </since_tizen>
2693 public Rotation WorldOrientation
2697 Rotation temp = new Rotation();
2698 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2704 /// Gets or sets the scale factor applied to the view.<br />
2706 /// <since_tizen> 3 </since_tizen>
2707 public Vector3 Scale
2711 return (Vector3)GetValue(ScaleProperty);
2715 SetValue(ScaleProperty, value);
2716 NotifyPropertyChanged();
2721 /// Gets or sets the scale X factor applied to the view.
2723 /// <since_tizen> 3 </since_tizen>
2728 return (float)GetValue(ScaleXProperty);
2732 SetValue(ScaleXProperty, value);
2733 NotifyPropertyChanged();
2738 /// Gets or sets the scale Y factor applied to the view.
2740 /// <since_tizen> 3 </since_tizen>
2745 return (float)GetValue(ScaleYProperty);
2749 SetValue(ScaleYProperty, value);
2750 NotifyPropertyChanged();
2755 /// Gets or sets the scale Z factor applied to the view.
2757 /// <since_tizen> 3 </since_tizen>
2762 return (float)GetValue(ScaleZProperty);
2766 SetValue(ScaleZProperty, value);
2767 NotifyPropertyChanged();
2772 /// Gets the world scale of the view.
2774 /// <since_tizen> 3 </since_tizen>
2775 public Vector3 WorldScale
2779 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2780 GetProperty(View.Property.WORLD_SCALE).Get(temp);
2786 /// Retrieves the visibility flag of the view.
2789 /// If the view is not visible, then the view and its children will not be rendered.
2790 /// 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.
2792 /// <since_tizen> 3 </since_tizen>
2793 public bool Visibility
2798 GetProperty(View.Property.VISIBLE).Get(out temp);
2804 /// Gets the view's world color.
2806 /// <since_tizen> 3 </since_tizen>
2807 public Vector4 WorldColor
2811 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2812 GetProperty(View.Property.WORLD_COLOR).Get(temp);
2818 /// Gets or sets the view's name.
2820 /// <since_tizen> 3 </since_tizen>
2825 return (string)GetValue(NameProperty);
2829 SetValue(NameProperty, value);
2830 NotifyPropertyChanged();
2835 /// Get the number of children held by the view.
2837 /// <since_tizen> 3 </since_tizen>
2838 public new uint ChildCount
2842 return GetChildCount();
2847 /// Gets the view's ID.
2850 /// <since_tizen> 3 </since_tizen>
2860 /// Gets or sets the status of whether the view should emit touch or hover signals.
2862 /// <since_tizen> 3 </since_tizen>
2863 public bool Sensitive
2867 return (bool)GetValue(SensitiveProperty);
2871 SetValue(SensitiveProperty, value);
2872 NotifyPropertyChanged();
2877 /// 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.
2879 /// <since_tizen> 3 </since_tizen>
2880 public bool LeaveRequired
2884 return (bool)GetValue(LeaveRequiredProperty);
2888 SetValue(LeaveRequiredProperty, value);
2889 NotifyPropertyChanged();
2894 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
2896 /// <since_tizen> 3 </since_tizen>
2897 public bool InheritOrientation
2901 return (bool)GetValue(InheritOrientationProperty);
2905 SetValue(InheritOrientationProperty, value);
2906 NotifyPropertyChanged();
2911 /// Gets or sets the status of whether a child view inherits it's parent's scale.
2913 /// <since_tizen> 3 </since_tizen>
2914 public bool InheritScale
2918 return (bool)GetValue(InheritScaleProperty);
2922 SetValue(InheritScaleProperty, value);
2923 NotifyPropertyChanged();
2928 /// Gets or sets the status of how the view and its children should be drawn.<br />
2929 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
2930 /// 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 />
2931 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
2932 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
2933 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
2935 /// <since_tizen> 3 </since_tizen>
2936 public DrawModeType DrawMode
2940 return (DrawModeType)GetValue(DrawModeProperty);
2944 SetValue(DrawModeProperty, value);
2945 NotifyPropertyChanged();
2950 /// Gets or sets the relative to parent size factor of the view.<br />
2951 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
2952 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
2954 /// <since_tizen> 3 </since_tizen>
2955 public Vector3 SizeModeFactor
2959 return (Vector3)GetValue(SizeModeFactorProperty);
2963 SetValue(SizeModeFactorProperty, value);
2964 NotifyPropertyChanged();
2969 /// Gets or sets the width resize policy to be used.
2971 /// <since_tizen> 3 </since_tizen>
2972 public ResizePolicyType WidthResizePolicy
2976 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
2980 SetValue(WidthResizePolicyProperty, value);
2981 // Match ResizePolicy to new Layouting.
2982 // Parent relative policies can not be mapped at this point as parent size unknown.
2985 case ResizePolicyType.UseNaturalSize:
2987 WidthSpecification = LayoutParamPolicies.WrapContent;
2990 case ResizePolicyType.FillToParent:
2992 WidthSpecification = LayoutParamPolicies.MatchParent;
2995 case ResizePolicyType.FitToChildren:
2997 WidthSpecification = LayoutParamPolicies.WrapContent;
3003 NotifyPropertyChanged();
3008 /// Gets or sets the height resize policy to be used.
3010 /// <since_tizen> 3 </since_tizen>
3011 public ResizePolicyType HeightResizePolicy
3015 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
3019 SetValue(HeightResizePolicyProperty, value);
3020 // Match ResizePolicy to new Layouting.
3021 // Parent relative policies can not be mapped at this point as parent size unknown.
3024 case ResizePolicyType.UseNaturalSize:
3026 HeightSpecification = LayoutParamPolicies.WrapContent;
3029 case ResizePolicyType.FillToParent:
3031 HeightSpecification = LayoutParamPolicies.MatchParent;
3034 case ResizePolicyType.FitToChildren:
3036 HeightSpecification = LayoutParamPolicies.WrapContent;
3042 NotifyPropertyChanged();
3047 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3048 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3050 /// <since_tizen> 3 </since_tizen>
3051 public SizeScalePolicyType SizeScalePolicy
3055 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
3059 SetValue(SizeScalePolicyProperty, value);
3060 NotifyPropertyChanged();
3065 /// Gets or sets the status of whether the width size is dependent on the height size.
3067 /// <since_tizen> 3 </since_tizen>
3068 public bool WidthForHeight
3072 return (bool)GetValue(WidthForHeightProperty);
3076 SetValue(WidthForHeightProperty, value);
3077 NotifyPropertyChanged();
3082 /// Gets or sets the status of whether the height size is dependent on the width size.
3084 /// <since_tizen> 3 </since_tizen>
3085 public bool HeightForWidth
3089 return (bool)GetValue(HeightForWidthProperty);
3093 SetValue(HeightForWidthProperty, value);
3094 NotifyPropertyChanged();
3099 /// Gets or sets the padding for use in layout.
3101 /// <since_tizen> 5 </since_tizen>
3102 public Extents Padding
3106 // If View has a Layout then padding in stored in the base Layout class
3109 return Layout.Padding;
3113 return (Extents)GetValue(PaddingProperty);
3115 // Two return points to prevent creating a zeroed Extent native object before assignment
3119 Extents padding = value;
3122 // Layout set so store Padding in LayoutItem instead of in View.
3123 // If View stores the Padding value then Legacy Size Negotiation will overwrite
3124 // the position and sizes measure in the Layouting.
3125 Layout.Padding = value;
3126 // If Layout is a LayoutItem then it could be a View that handles it's own padding.
3127 // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.
3128 if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
3130 padding = new Extents(0,0,0,0); // Reset value stored in View.
3132 _layout?.RequestLayout();
3134 SetValue(PaddingProperty, padding);
3135 NotifyPropertyChanged();
3136 _layout?.RequestLayout();
3141 /// Gets or sets the minimum size the view can be assigned in size negotiation.
3143 /// <since_tizen> 3 </since_tizen>
3144 public Size2D MinimumSize
3148 return (Size2D)GetValue(MinimumSizeProperty);
3152 if (_layout != null)
3154 // Note: it only works if minimum size is >= than natural size.
3155 // To force the size it should be done through the width&height spec or Size2D.
3156 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
3157 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
3158 _layout.RequestLayout();
3160 SetValue(MinimumSizeProperty, value);
3161 NotifyPropertyChanged();
3166 /// Gets or sets the maximum size the view can be assigned in size negotiation.
3168 /// <since_tizen> 3 </since_tizen>
3169 public Size2D MaximumSize
3173 return (Size2D)GetValue(MaximumSizeProperty);
3177 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
3178 // MATCH_PARENT spec + parent container size can be used to limit
3179 if (_layout != null)
3181 // Note: it only works if minimum size is >= than natural size.
3182 // To force the size it should be done through the width&height spec or Size2D.
3183 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
3184 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
3185 _layout.RequestLayout();
3187 SetValue(MaximumSizeProperty, value);
3188 NotifyPropertyChanged();
3193 /// Gets or sets whether a child view inherits it's parent's position.<br />
3194 /// Default is to inherit.<br />
3195 /// 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 />
3197 /// <since_tizen> 3 </since_tizen>
3198 public bool InheritPosition
3202 return (bool)GetValue(InheritPositionProperty);
3206 SetValue(InheritPositionProperty, value);
3207 NotifyPropertyChanged();
3212 /// Gets or sets the clipping behavior (mode) of it's children.
3214 /// <since_tizen> 3 </since_tizen>
3215 public ClippingModeType ClippingMode
3219 return (ClippingModeType)GetValue(ClippingModeProperty);
3223 SetValue(ClippingModeProperty, value);
3224 NotifyPropertyChanged();
3229 /// Gets the number of renderers held by the view.
3231 /// <since_tizen> 3 </since_tizen>
3232 public uint RendererCount
3236 return GetRendererCount();
3241 /// [Obsolete("Please do not use! this will be deprecated")]
3243 /// <since_tizen> 3 </since_tizen>
3244 /// Please do not use! this will be deprecated!
3245 /// Instead please use PivotPoint.
3246 [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " +
3248 "View view = new View(); " +
3249 "view.PivotPoint = PivotPoint.Center; " +
3250 "view.PositionUsesPivotPoint = true;")]
3251 [EditorBrowsable(EditorBrowsableState.Never)]
3252 public Position AnchorPoint
3256 Position temp = new Position(0.0f, 0.0f, 0.0f);
3257 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3262 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3263 NotifyPropertyChanged();
3268 /// Sets the size of a view for the width, the height and the depth.<br />
3269 /// Geometry can be scaled to fit within this area.<br />
3270 /// This does not interfere with the view's scale factor.<br />
3271 /// The views default depth is the minimum of width and height.<br />
3274 /// Please note that multi-cascade setting is not possible for this NUI object. <br />
3275 /// It is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
3276 /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f); <br />
3277 /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f; <br />
3278 /// 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 />
3280 /// <since_tizen> 5 </since_tizen>
3285 return (Size)GetValue(SizeProperty);
3289 SetValue(SizeProperty, value);
3290 // Set Specification so when layouts measure this View it matches the value set here.
3291 // All Views are currently Layouts.
3292 WidthSpecification = (int)Math.Ceiling(value.Width);
3293 HeightSpecification = (int)Math.Ceiling(value.Height);
3294 NotifyPropertyChanged();
3299 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
3301 /// <since_tizen> 3 </since_tizen>
3302 [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " +
3304 "Container parent = view.GetParent(); " +
3305 "View view = parent as View;")]
3306 [EditorBrowsable(EditorBrowsableState.Never)]
3307 public new View Parent
3312 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
3313 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
3314 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
3316 if (basehandle is Layer layer)
3318 ret = new View(Layer.getCPtr(layer).Handle, false);
3319 NUILog.Error("This Parent property is deprecated, shoud do not be used");
3323 ret = basehandle as View;
3326 Interop.BaseHandle.delete_BaseHandle(CPtr);
3327 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
3329 if (NDalicPINVOKE.SWIGPendingException.Pending)
3330 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3336 /// Gets/Sets whether inherit parent's the layout Direction.
3338 /// <since_tizen> 4 </since_tizen>
3339 public bool InheritLayoutDirection
3343 return (bool)GetValue(InheritLayoutDirectionProperty);
3347 SetValue(InheritLayoutDirectionProperty, value);
3348 NotifyPropertyChanged();
3353 /// Gets/Sets the layout Direction.
3355 /// <since_tizen> 4 </since_tizen>
3356 public ViewLayoutDirectionType LayoutDirection
3360 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
3364 SetValue(LayoutDirectionProperty, value);
3365 NotifyPropertyChanged();
3366 _layout?.RequestLayout();
3371 /// Gets or sets the Margin for use in layout.
3374 /// Margin property is supported by Layout algorithms and containers.
3375 /// Please Set Layout if you want to use Margin property.
3377 /// <since_tizen> 4 </since_tizen>
3378 public Extents Margin
3382 // If View has a Layout then margin is stored in Layout.
3385 return Layout.Margin;
3389 // If Layout not set then return margin stored in View.
3390 return (Extents)GetValue(MarginProperty);
3392 // Two return points to prevent creating a zeroed Extent native object before assignment
3398 // Layout set so store Margin in LayoutItem instead of View.
3399 // If View stores the Margin too then the Legacy Size Negotiation will
3400 // overwrite the position and size values measured in the Layouting.
3401 Layout.Margin = value;
3402 SetValue(MarginProperty, new Extents(0,0,0,0));
3403 _layout?.RequestLayout();
3407 SetValue(MarginProperty, value);
3409 NotifyPropertyChanged();
3410 _layout?.RequestLayout();
3415 /// The required policy for this dimension, ChildLayoutData enum or exact value.
3417 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3418 [EditorBrowsable(EditorBrowsableState.Never)]
3419 public int WidthSpecification
3423 return _widthPolicy;
3427 _widthPolicy = value;
3428 if (_widthPolicy >= 0)
3430 _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3431 Size2D.Width = _widthPolicy;
3433 _layout?.RequestLayout();
3438 /// The required policy for this dimension, ChildLayoutData enum or exact value.
3440 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3441 [EditorBrowsable(EditorBrowsableState.Never)]
3442 public int HeightSpecification
3446 return _heightPolicy;
3450 _heightPolicy = value;
3451 if (_heightPolicy >= 0)
3453 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3454 Size2D.Height = _heightPolicy;
3456 _layout?.RequestLayout();
3462 /// [Obsolete("Please do not use! this will be deprecated")]
3464 /// Please do not use! this will be deprecated!
3465 /// Instead please use Padding.
3466 /// <since_tizen> 4 </since_tizen>
3467 [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
3468 [EditorBrowsable(EditorBrowsableState.Never)]
3469 public Extents PaddingEX
3473 Extents temp = new Extents(0, 0, 0, 0);
3474 GetProperty(View.Property.PADDING).Get(temp);
3479 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3480 NotifyPropertyChanged();
3481 _layout?.RequestLayout();
3485 internal Style Style
3489 return (Style)GetValue(StyleProperty);
3493 SetValue(StyleProperty, value);
3498 /// Child property to specify desired width
3500 internal int LayoutWidthSpecificationFixed
3504 return _widthPolicy;
3508 _widthPolicy = value;
3509 _measureSpecificationWidth = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
3510 Size2D.Width = value;
3511 _layout?.RequestLayout();
3516 /// Child property to specify desired height
3518 internal int LayoutHeightSpecificationFixed
3522 return _heightPolicy;
3526 _heightPolicy = value;
3527 _measureSpecificationHeight = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
3528 Size2D.Height = value;
3529 _layout?.RequestLayout();
3534 /// Child property to specify desired width, use MatchParent/WrapContent)
3536 internal ChildLayoutData LayoutWidthSpecification
3540 return (ChildLayoutData)_widthPolicy;
3544 _widthPolicy = (int)value;
3549 /// Child property to specify desired height, use MatchParent/WrapContent)
3551 internal ChildLayoutData LayoutHeightSpecification
3555 return (ChildLayoutData)_heightPolicy;
3559 _heightPolicy = (int)value;
3563 internal float Weight
3572 _layout.RequestLayout();
3576 internal bool BackgroundImageSynchronosLoading
3580 return _backgroundImageSynchronosLoading;
3584 if (value != _backgroundImageSynchronosLoading)
3587 PropertyMap bgMap = this.Background;
3589 bgMap.Find(Visual.Property.Type)?.Get(out visualType);
3590 if (visualType == (int)Visual.Type.Image)
3592 bgMap.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3594 if (bgUrl.Length != 0)
3596 _backgroundImageSynchronosLoading = value;
3597 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3598 this.Background = bgMap;
3604 internal float WorldPositionX
3609 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3614 internal float WorldPositionY
3619 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3624 internal float WorldPositionZ
3629 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3634 internal bool FocusState
3638 return IsKeyboardFocusable();
3642 SetKeyboardFocusable(value);
3647 /// Set the layout on this View. Replaces any existing Layout.
3651 internal LayoutItem Layout
3659 // Do nothing if layout provided is already set on this View.
3660 if (value == _layout)
3665 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3666 layoutingDisabled = false;
3669 // If new layout being set already has a owner then that owner receives a replacement default layout.
3670 // First check if the layout to be set already has a owner.
3671 if (value?.Owner != null)
3673 Log.Info("NUI", "Set layout already in use by another View: " + value.Owner.Name + "will get a LayoutGroup\n");
3674 // Previous owner of the layout gets a default layout as a replacement.
3675 value.Owner.Layout = new LayoutGroup();
3677 // Copy Margin and Padding to replacement LayoutGroup.
3678 value.Owner.Layout.Margin = value.Margin;
3679 value.Owner.Layout.Padding = value.Padding;
3682 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3683 // View if no replacement. Previously margin and padding values would have been moved from
3684 // the View to the layout.
3685 if (_layout != null ) // Existing layout
3689 // Existing layout being replaced so copy over margin and padding values.
3690 value.Margin = _layout.Margin;
3691 value.Padding = _layout.Padding;
3695 // Layout not being replaced so restore margin and padding to View.
3696 SetValue(MarginProperty, _layout.Margin);
3697 SetValue(PaddingProperty, _layout.Padding);
3698 NotifyPropertyChanged();
3703 // First Layout to be added to the View hence copy
3705 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3708 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3710 // If View already has a margin set then store it in Layout instead.
3711 value.Margin = Margin;
3712 SetValue(MarginProperty, new Extents(0,0,0,0));
3713 NotifyPropertyChanged();
3716 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3718 // If View already has a padding set then store it in Layout instead.
3719 value.Padding = Padding;
3720 SetValue(PaddingProperty, new Extents(0,0,0,0));
3721 NotifyPropertyChanged();
3726 // Remove existing layout from it's parent layout group.
3727 _layout?.Unparent();
3729 // Set layout to this view
3734 internal void SetLayout(LayoutItem layout)
3737 _layout?.AttachToOwner(this);
3738 _layout?.RequestLayout();
3742 /// Stores the calculated width value and its ModeType. Width component.
3744 internal MeasureSpecification MeasureSpecificationWidth
3748 _measureSpecificationWidth = value;
3749 _layout?.RequestLayout();
3753 return _measureSpecificationWidth;
3758 /// Stores the calculated width value and its ModeType. Height component.
3760 internal MeasureSpecification MeasureSpecificationHeight
3764 _measureSpecificationHeight = value;
3765 _layout?.RequestLayout();
3769 return _measureSpecificationHeight;
3773 internal float ParentOriginX
3778 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3783 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3784 NotifyPropertyChanged();
3788 internal float ParentOriginY
3793 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3798 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3799 NotifyPropertyChanged();
3803 internal float ParentOriginZ
3808 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3813 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3814 NotifyPropertyChanged();
3818 internal float PivotPointX
3823 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3828 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3832 internal float PivotPointY
3837 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3842 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3846 internal float PivotPointZ
3851 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3856 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3860 internal Matrix WorldMatrix
3864 Matrix temp = new Matrix();
3865 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3870 private int LeftFocusableViewId
3875 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
3880 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3884 private int RightFocusableViewId
3889 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
3894 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3898 private int UpFocusableViewId
3903 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
3908 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3912 private int DownFocusableViewId
3917 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
3922 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3927 /// Perform an action on a visual registered to this view. <br />
3928 /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
3930 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
3931 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
3932 /// <param name="attributes">Optional attributes for the action.</param>
3933 /// <since_tizen> 5 </since_tizen>
3934 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
3936 Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
3937 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3941 /// Creates an animation to animate the background color visual. If there is no
3942 /// background visual, creates one with transparent black as it's mixColor.
3944 /// <since_tizen> 3 </since_tizen>
3945 public Animation AnimateBackgroundColor(object destinationValue,
3948 AlphaFunction.BuiltinFunctions? alphaFunction = null,
3949 object initialValue = null)
3951 Tizen.NUI.PropertyMap background = Background;
3953 if (background.Empty())
3955 // If there is no background yet, ensure there is a transparent
3957 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
3958 background = Background;
3960 return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
3964 /// Creates an animation to animate the mixColor of the named visual.
3966 /// <since_tizen> 3 </since_tizen>
3967 public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
3969 Animation animation = null;
3971 PropertyMap _animator = new PropertyMap();
3972 if (alphaFunction != null)
3974 _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
3977 PropertyMap _timePeriod = new PropertyMap();
3978 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
3979 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
3980 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
3982 PropertyMap _transition = new PropertyMap();
3983 _transition.Add("animator", new PropertyValue(_animator));
3984 _transition.Add("target", new PropertyValue(targetVisual));
3985 _transition.Add("property", new PropertyValue("mixColor"));
3987 if (initialColor != null)
3989 PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
3990 _transition.Add("initialValue", initValue);
3993 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
3994 _transition.Add("targetValue", destValue);
3995 TransitionData _transitionData = new TransitionData(_transition);
3997 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
3998 if (NDalicPINVOKE.SWIGPendingException.Pending)
3999 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4004 // From Container Base class
4006 /// Adds a child view to this view.
4008 /// <seealso cref="Container.Add" />
4009 /// <since_tizen> 4 </since_tizen>
4010 public override void Add(View child)
4012 bool hasLayout = (_layout != null);
4013 Log.Info("NUI", "Add:" + child.Name + " to View:" + Name + "which has layout[" + hasLayout + "] + \n");
4017 Tizen.Log.Fatal("NUI", "Child is null");
4021 Container oldParent = child.GetParent();
4022 if (oldParent != this)
4024 // If child already has a parent then re-parent child
4025 if (oldParent != null)
4027 oldParent.Remove(child);
4029 child.InternalParent = this;
4031 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4033 if (NDalicPINVOKE.SWIGPendingException.Pending)
4034 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4035 Children.Add(child);
4037 if (ChildAdded != null)
4039 ChildAddedEventArgs e = new ChildAddedEventArgs
4043 ChildAdded(this, e);
4045 BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
4050 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4052 /// <seealso cref="Container.Remove" />
4053 /// <since_tizen> 4 </since_tizen>
4054 public override void Remove(View child)
4056 bool hasLayout = (_layout != null);
4057 Log.Info("NUI","Removing View:" + child.Name + "layout[" + hasLayout.ToString() +"]\n");
4059 Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
4060 if (NDalicPINVOKE.SWIGPendingException.Pending)
4061 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4063 Children.Remove(child);
4064 child.InternalParent = null;
4066 if (ChildRemoved != null)
4068 ChildRemovedEventArgs e = new ChildRemovedEventArgs
4072 ChildRemoved(this, e);
4077 /// Retrieves a child view by index.
4079 /// <seealso cref="Container.GetChildAt" />
4080 /// <since_tizen> 4 </since_tizen>
4081 public override View GetChildAt(uint index)
4083 if (index < Children.Count)
4085 return Children[Convert.ToInt32(index)];
4094 /// Retrieves the number of children held by the view.
4096 /// <seealso cref="Container.GetChildCount" />
4097 /// <since_tizen> 4 </since_tizen>
4098 public override uint GetChildCount()
4100 return Convert.ToUInt32(Children.Count);
4104 /// Gets the views parent.
4106 /// <seealso cref="Container.GetParent()" />
4107 /// <since_tizen> 4 </since_tizen>
4108 public override Container GetParent()
4110 return this.InternalParent as Container;
4114 /// Queries whether the view has a focus.
4116 /// <returns>True if this view has a focus.</returns>
4117 /// <since_tizen> 3 </since_tizen>
4118 public bool HasFocus()
4121 if (swigCPtr.Handle != global::System.IntPtr.Zero)
4123 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4124 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4128 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4134 /// Sets the name of the style to be applied to the view.
4136 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4137 /// <since_tizen> 3 </since_tizen>
4138 public void SetStyleName(string styleName)
4140 Interop.View.View_SetStyleName(swigCPtr, styleName);
4141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4145 /// Retrieves the name of the style to be applied to the view (if any).
4147 /// <returns>A string matching a style, or an empty string.</returns>
4148 /// <since_tizen> 3 </since_tizen>
4149 public string GetStyleName()
4151 string ret = Interop.View.View_GetStyleName(swigCPtr);
4152 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4157 /// Clears the background.
4159 /// <since_tizen> 3 </since_tizen>
4160 public void ClearBackground()
4162 Interop.View.View_ClearBackground(swigCPtr);
4163 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4170 /// This is an asynchronous method.
4172 /// <since_tizen> 3 </since_tizen>
4182 /// This is an asynchronous method.
4183 /// If the view is hidden, then the view and its children will not be rendered.
4184 /// 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.
4186 /// <since_tizen> 3 </since_tizen>
4193 /// Raises the view above all other views.
4196 /// Sibling order of views within the parent will be updated automatically.
4197 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4199 /// <since_tizen> 3 </since_tizen>
4200 public void RaiseToTop()
4202 var parentChildren = GetParent()?.Children;
4204 if (parentChildren != null)
4206 parentChildren.Remove(this);
4207 parentChildren.Add(this);
4209 Interop.NDalic.RaiseToTop(swigCPtr);
4210 if (NDalicPINVOKE.SWIGPendingException.Pending)
4211 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4217 /// Lowers the view to the bottom of all views.
4220 /// The sibling order of views within the parent will be updated automatically.
4221 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4223 /// <since_tizen> 3 </since_tizen>
4224 public void LowerToBottom()
4226 var parentChildren = GetParent()?.Children;
4228 if (parentChildren != null)
4230 parentChildren.Remove(this);
4231 parentChildren.Insert(0, this);
4233 Interop.NDalic.LowerToBottom(swigCPtr);
4234 if (NDalicPINVOKE.SWIGPendingException.Pending)
4235 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4240 /// Queries if all resources required by a view are loaded and ready.
4242 /// <remarks>Most resources are only loaded when the control is placed on the stage.
4244 /// <since_tizen> 3 </since_tizen>
4245 public bool IsResourceReady()
4247 bool ret = Interop.View.IsResourceReady(swigCPtr);
4248 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4253 /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4255 /// <pre>The view has been initialized. </pre>
4256 /// <returns>The parent layer of view </returns>
4257 /// <since_tizen> 5 </since_tizen>
4258 public Layer GetLayer()
4260 //to fix memory leak issue, match the handle count with native side.
4261 IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4262 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4263 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4264 Interop.BaseHandle.delete_BaseHandle(CPtr);
4265 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4267 if (NDalicPINVOKE.SWIGPendingException.Pending)
4268 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4273 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4275 /// <pre>The (child) view has been initialized. </pre>
4276 /// <since_tizen> 4 </since_tizen>
4277 public void Unparent()
4279 GetParent()?.Remove(this);
4283 /// Search through this view's hierarchy for a view with the given name.
4284 /// The view itself is also considered in the search.
4286 /// <pre>The view has been initialized.</pre>
4287 /// <param name="viewName">The name of the view to find.</param>
4288 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4289 /// <since_tizen> 3 </since_tizen>
4290 public View FindChildByName(string viewName)
4292 //to fix memory leak issue, match the handle count with native side.
4293 IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4294 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4295 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4296 Interop.BaseHandle.delete_BaseHandle(CPtr);
4297 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4299 if (NDalicPINVOKE.SWIGPendingException.Pending)
4300 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4305 /// Converts screen coordinates into the view's coordinate system using the default camera.
4307 /// <pre>The view has been initialized.</pre>
4308 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4309 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4310 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4311 /// <param name="screenX">The screen X-coordinate.</param>
4312 /// <param name="screenY">The screen Y-coordinate.</param>
4313 /// <returns>True if the conversion succeeded.</returns>
4314 /// <since_tizen> 3 </since_tizen>
4315 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4317 bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4318 if (NDalicPINVOKE.SWIGPendingException.Pending)
4319 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4324 /// Sets the relative to parent size factor of the view.<br />
4325 /// This factor is only used when ResizePolicy is set to either:
4326 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4327 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4329 /// <pre>The view has been initialized.</pre>
4330 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4331 /// <since_tizen> 3 </since_tizen>
4332 public void SetSizeModeFactor(Vector3 factor)
4334 Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4335 if (NDalicPINVOKE.SWIGPendingException.Pending)
4336 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4339 /// Calculates the height of the view given a width.<br />
4340 /// The natural size is used for default calculation.<br />
4341 /// Size 0 is treated as aspect ratio 1:1.<br />
4343 /// <param name="width">The width to use.</param>
4344 /// <returns>The height based on the width.</returns>
4345 /// <since_tizen> 3 </since_tizen>
4346 public float GetHeightForWidth(float width)
4348 float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4349 if (NDalicPINVOKE.SWIGPendingException.Pending)
4350 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4355 /// Calculates the width of the view given a height.<br />
4356 /// The natural size is used for default calculation.<br />
4357 /// Size 0 is treated as aspect ratio 1:1.<br />
4359 /// <param name="height">The height to use.</param>
4360 /// <returns>The width based on the height.</returns>
4361 /// <since_tizen> 3 </since_tizen>
4362 public float GetWidthForHeight(float height)
4364 float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4365 if (NDalicPINVOKE.SWIGPendingException.Pending)
4366 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4371 /// Return the amount of size allocated for relayout.
4373 /// <param name="dimension">The dimension to retrieve.</param>
4374 /// <returns>Return the size.</returns>
4375 /// <since_tizen> 3 </since_tizen>
4376 public float GetRelayoutSize(DimensionType dimension)
4378 float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4379 if (NDalicPINVOKE.SWIGPendingException.Pending)
4380 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4385 /// Set the padding for the view.
4387 /// <param name="padding">Padding for the view.</param>
4388 /// <since_tizen> 3 </since_tizen>
4389 public void SetPadding(PaddingType padding)
4391 Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4392 if (NDalicPINVOKE.SWIGPendingException.Pending)
4393 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4397 /// Return the value of padding for the view.
4399 /// <param name="paddingOut">the value of padding for the view</param>
4400 /// <since_tizen> 3 </since_tizen>
4401 public void GetPadding(PaddingType paddingOut)
4403 Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4404 if (NDalicPINVOKE.SWIGPendingException.Pending)
4405 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4408 /// <since_tizen> 3 </since_tizen>
4409 public uint AddRenderer(Renderer renderer)
4411 uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4412 if (NDalicPINVOKE.SWIGPendingException.Pending)
4413 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4417 /// <since_tizen> 3 </since_tizen>
4418 public Renderer GetRendererAt(uint index)
4420 //to fix memory leak issue, match the handle count with native side.
4421 IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4422 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4423 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4424 if (cPtr != null && ret == null)
4426 ret = new Renderer(cPtr, false);
4427 if (NDalicPINVOKE.SWIGPendingException.Pending)
4428 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4431 Interop.BaseHandle.delete_BaseHandle(CPtr);
4432 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4434 if (NDalicPINVOKE.SWIGPendingException.Pending)
4435 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4439 /// <since_tizen> 3 </since_tizen>
4440 public void RemoveRenderer(Renderer renderer)
4442 Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4443 if (NDalicPINVOKE.SWIGPendingException.Pending)
4444 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4447 /// <since_tizen> 3 </since_tizen>
4448 public void RemoveRenderer(uint index)
4450 Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4451 if (NDalicPINVOKE.SWIGPendingException.Pending)
4452 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4455 internal void Raise()
4457 var parentChildren = GetParent()?.Children;
4459 if (parentChildren != null)
4461 int currentIndex = parentChildren.IndexOf(this);
4463 // If the view is not already the last item in the list.
4464 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4466 View temp = parentChildren[currentIndex + 1];
4467 parentChildren[currentIndex + 1] = this;
4468 parentChildren[currentIndex] = temp;
4470 Interop.NDalic.Raise(swigCPtr);
4471 if (NDalicPINVOKE.SWIGPendingException.Pending)
4472 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4477 internal void Lower()
4479 var parentChildren = GetParent()?.Children;
4481 if (parentChildren != null)
4483 int currentIndex = parentChildren.IndexOf(this);
4485 // If the view is not already the first item in the list.
4486 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4488 View temp = parentChildren[currentIndex - 1];
4489 parentChildren[currentIndex - 1] = this;
4490 parentChildren[currentIndex] = temp;
4492 Interop.NDalic.Lower(swigCPtr);
4493 if (NDalicPINVOKE.SWIGPendingException.Pending)
4494 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4500 /// Raises the view to above the target view.
4502 /// <remarks>The sibling order of views within the parent will be updated automatically.
4503 /// Views on the level above the target view will still be shown above this view.
4504 /// Raising this view above views with the same sibling order as each other will raise this view above them.
4505 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4507 /// <param name="target">Will be raised above this view.</param>
4508 internal void RaiseAbove(View target)
4510 var parentChildren = GetParent()?.Children;
4512 if (parentChildren != null)
4514 int currentIndex = parentChildren.IndexOf(this);
4515 int targetIndex = parentChildren.IndexOf(target);
4517 if (currentIndex < 0 || targetIndex < 0 ||
4518 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4520 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4523 // If the currentIndex is less than the target index and the target has the same parent.
4524 if (currentIndex < targetIndex)
4526 parentChildren.Remove(this);
4527 parentChildren.Insert(targetIndex, this);
4529 Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4530 if (NDalicPINVOKE.SWIGPendingException.Pending)
4531 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4538 /// Lowers the view to below the target view.
4540 /// <remarks>The sibling order of views within the parent will be updated automatically.
4541 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4542 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4544 /// <param name="target">Will be lowered below this view.</param>
4545 internal void LowerBelow(View target)
4547 var parentChildren = GetParent()?.Children;
4549 if (parentChildren != null)
4551 int currentIndex = parentChildren.IndexOf(this);
4552 int targetIndex = parentChildren.IndexOf(target);
4553 if (currentIndex < 0 || targetIndex < 0 ||
4554 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4556 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4560 // If the currentIndex is not already the 0th index and the target has the same parent.
4561 if ((currentIndex != 0) && (targetIndex != -1) &&
4562 (currentIndex > targetIndex))
4564 parentChildren.Remove(this);
4565 parentChildren.Insert(targetIndex, this);
4567 Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4568 if (NDalicPINVOKE.SWIGPendingException.Pending)
4569 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4575 internal string GetName()
4577 string ret = Interop.Actor.Actor_GetName(swigCPtr);
4578 if (NDalicPINVOKE.SWIGPendingException.Pending)
4579 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4583 internal void SetName(string name)
4585 Interop.Actor.Actor_SetName(swigCPtr, name);
4586 if (NDalicPINVOKE.SWIGPendingException.Pending)
4587 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4590 internal uint GetId()
4592 uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4593 if (NDalicPINVOKE.SWIGPendingException.Pending)
4594 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4598 internal bool IsRoot()
4600 bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4601 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4605 internal bool OnWindow()
4607 bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4608 if (NDalicPINVOKE.SWIGPendingException.Pending)
4609 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4613 internal View FindChildById(uint id)
4615 //to fix memory leak issue, match the handle count with native side.
4616 IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4617 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4618 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4619 Interop.BaseHandle.delete_BaseHandle(CPtr);
4620 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4622 if (NDalicPINVOKE.SWIGPendingException.Pending)
4623 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4627 internal override View FindCurrentChildById(uint id)
4629 return FindChildById(id);
4632 internal void SetParentOrigin(Vector3 origin)
4634 Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4635 if (NDalicPINVOKE.SWIGPendingException.Pending)
4636 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4639 internal Vector3 GetCurrentParentOrigin()
4641 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4642 if (NDalicPINVOKE.SWIGPendingException.Pending)
4643 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4647 internal void SetAnchorPoint(Vector3 anchorPoint)
4649 Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4650 if (NDalicPINVOKE.SWIGPendingException.Pending)
4651 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4654 internal Vector3 GetCurrentAnchorPoint()
4656 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4657 if (NDalicPINVOKE.SWIGPendingException.Pending)
4658 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4662 internal void SetSize(float width, float height)
4664 Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4665 if (NDalicPINVOKE.SWIGPendingException.Pending)
4666 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4669 internal void SetSize(float width, float height, float depth)
4671 Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4672 if (NDalicPINVOKE.SWIGPendingException.Pending)
4673 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4676 internal void SetSize(Vector2 size)
4678 Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4679 if (NDalicPINVOKE.SWIGPendingException.Pending)
4680 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4683 internal void SetSize(Vector3 size)
4685 Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4686 if (NDalicPINVOKE.SWIGPendingException.Pending)
4687 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4690 internal Vector3 GetTargetSize()
4692 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4693 if (NDalicPINVOKE.SWIGPendingException.Pending)
4694 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4698 internal Size2D GetCurrentSize()
4700 Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4701 if (NDalicPINVOKE.SWIGPendingException.Pending)
4702 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4703 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4707 internal Vector3 GetNaturalSize()
4709 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4710 if (NDalicPINVOKE.SWIGPendingException.Pending)
4711 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4715 internal void SetPosition(float x, float y)
4717 Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4718 if (NDalicPINVOKE.SWIGPendingException.Pending)
4719 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4722 internal void SetPosition(float x, float y, float z)
4724 Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4725 if (NDalicPINVOKE.SWIGPendingException.Pending)
4726 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4729 internal void SetPosition(Vector3 position)
4731 Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4732 if (NDalicPINVOKE.SWIGPendingException.Pending)
4733 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4736 internal void SetX(float x)
4738 Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4739 if (NDalicPINVOKE.SWIGPendingException.Pending)
4740 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4743 internal void SetY(float y)
4745 Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4746 if (NDalicPINVOKE.SWIGPendingException.Pending)
4747 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4750 internal void SetZ(float z)
4752 Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4753 if (NDalicPINVOKE.SWIGPendingException.Pending)
4754 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4757 internal void TranslateBy(Vector3 distance)
4759 Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4760 if (NDalicPINVOKE.SWIGPendingException.Pending)
4761 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4764 internal Position GetCurrentPosition()
4766 Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4767 if (NDalicPINVOKE.SWIGPendingException.Pending)
4768 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4772 internal Vector3 GetCurrentWorldPosition()
4774 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4775 if (NDalicPINVOKE.SWIGPendingException.Pending)
4776 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4780 internal void SetInheritPosition(bool inherit)
4782 Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4783 if (NDalicPINVOKE.SWIGPendingException.Pending)
4784 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4787 internal bool IsPositionInherited()
4789 bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4790 if (NDalicPINVOKE.SWIGPendingException.Pending)
4791 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4795 internal void SetOrientation(Degree angle, Vector3 axis)
4797 Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4798 if (NDalicPINVOKE.SWIGPendingException.Pending)
4799 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4802 internal void SetOrientation(Radian angle, Vector3 axis)
4804 Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4805 if (NDalicPINVOKE.SWIGPendingException.Pending)
4806 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4809 internal void SetOrientation(Rotation orientation)
4811 Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4812 if (NDalicPINVOKE.SWIGPendingException.Pending)
4813 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4816 internal void RotateBy(Degree angle, Vector3 axis)
4818 Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4819 if (NDalicPINVOKE.SWIGPendingException.Pending)
4820 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4823 internal void RotateBy(Radian angle, Vector3 axis)
4825 Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4826 if (NDalicPINVOKE.SWIGPendingException.Pending)
4827 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4830 internal void RotateBy(Rotation relativeRotation)
4832 Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4833 if (NDalicPINVOKE.SWIGPendingException.Pending)
4834 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4837 internal Rotation GetCurrentOrientation()
4839 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4840 if (NDalicPINVOKE.SWIGPendingException.Pending)
4841 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4845 internal void SetInheritOrientation(bool inherit)
4847 Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4848 if (NDalicPINVOKE.SWIGPendingException.Pending)
4849 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4852 internal bool IsOrientationInherited()
4854 bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
4855 if (NDalicPINVOKE.SWIGPendingException.Pending)
4856 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4860 internal Rotation GetCurrentWorldOrientation()
4862 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
4863 if (NDalicPINVOKE.SWIGPendingException.Pending)
4864 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4868 internal void SetScale(float scale)
4870 Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
4871 if (NDalicPINVOKE.SWIGPendingException.Pending)
4872 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4875 internal void SetScale(float scaleX, float scaleY, float scaleZ)
4877 Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
4878 if (NDalicPINVOKE.SWIGPendingException.Pending)
4879 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4882 internal void SetScale(Vector3 scale)
4884 Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
4885 if (NDalicPINVOKE.SWIGPendingException.Pending)
4886 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4889 internal void ScaleBy(Vector3 relativeScale)
4891 Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
4892 if (NDalicPINVOKE.SWIGPendingException.Pending)
4893 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4896 internal Vector3 GetCurrentScale()
4898 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
4899 if (NDalicPINVOKE.SWIGPendingException.Pending)
4900 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4904 internal Vector3 GetCurrentWorldScale()
4906 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
4907 if (NDalicPINVOKE.SWIGPendingException.Pending)
4908 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4912 internal void SetInheritScale(bool inherit)
4914 Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
4915 if (NDalicPINVOKE.SWIGPendingException.Pending)
4916 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4919 internal bool IsScaleInherited()
4921 bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
4922 if (NDalicPINVOKE.SWIGPendingException.Pending)
4923 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4927 internal Matrix GetCurrentWorldMatrix()
4929 Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
4930 if (NDalicPINVOKE.SWIGPendingException.Pending)
4931 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4935 internal void SetVisible(bool visible)
4937 Interop.Actor.Actor_SetVisible(swigCPtr, visible);
4938 if (NDalicPINVOKE.SWIGPendingException.Pending)
4939 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4942 internal bool IsVisible()
4944 bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
4945 if (NDalicPINVOKE.SWIGPendingException.Pending)
4946 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4950 internal void SetOpacity(float opacity)
4952 Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
4953 if (NDalicPINVOKE.SWIGPendingException.Pending)
4954 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4957 internal float GetCurrentOpacity()
4959 float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
4960 if (NDalicPINVOKE.SWIGPendingException.Pending)
4961 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4965 internal void SetColor(Vector4 color)
4967 Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
4968 if (NDalicPINVOKE.SWIGPendingException.Pending)
4969 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4972 internal Vector4 GetCurrentColor()
4974 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
4975 if (NDalicPINVOKE.SWIGPendingException.Pending)
4976 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4980 internal void SetColorMode(ColorMode colorMode)
4982 Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
4983 if (NDalicPINVOKE.SWIGPendingException.Pending)
4984 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4987 internal ColorMode GetColorMode()
4989 ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
4990 if (NDalicPINVOKE.SWIGPendingException.Pending)
4991 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4995 internal Vector4 GetCurrentWorldColor()
4997 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
4998 if (NDalicPINVOKE.SWIGPendingException.Pending)
4999 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5003 internal void SetDrawMode(DrawModeType drawMode)
5005 Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
5006 if (NDalicPINVOKE.SWIGPendingException.Pending)
5007 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5010 internal DrawModeType GetDrawMode()
5012 DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
5013 if (NDalicPINVOKE.SWIGPendingException.Pending)
5014 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5018 internal void SetKeyboardFocusable(bool focusable)
5020 Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5021 if (NDalicPINVOKE.SWIGPendingException.Pending)
5022 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5025 internal bool IsKeyboardFocusable()
5027 bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5028 if (NDalicPINVOKE.SWIGPendingException.Pending)
5029 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5033 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5035 Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5036 if (NDalicPINVOKE.SWIGPendingException.Pending)
5037 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5040 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5042 ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5043 if (NDalicPINVOKE.SWIGPendingException.Pending)
5044 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5048 internal Vector3 GetSizeModeFactor()
5050 Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5051 if (NDalicPINVOKE.SWIGPendingException.Pending)
5052 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5056 internal void SetMinimumSize(Vector2 size)
5058 Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5059 if (NDalicPINVOKE.SWIGPendingException.Pending)
5060 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5063 internal Vector2 GetMinimumSize()
5065 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5066 if (NDalicPINVOKE.SWIGPendingException.Pending)
5067 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5071 internal void SetMaximumSize(Vector2 size)
5073 Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5074 if (NDalicPINVOKE.SWIGPendingException.Pending)
5075 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5078 internal Vector2 GetMaximumSize()
5080 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5081 if (NDalicPINVOKE.SWIGPendingException.Pending)
5082 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5086 internal int GetHierarchyDepth()
5088 int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5089 if (NDalicPINVOKE.SWIGPendingException.Pending)
5090 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5094 internal uint GetRendererCount()
5096 uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5097 if (NDalicPINVOKE.SWIGPendingException.Pending)
5098 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5102 internal TouchDataSignal TouchSignal()
5104 TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5105 if (NDalicPINVOKE.SWIGPendingException.Pending)
5106 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5110 internal HoverSignal HoveredSignal()
5112 HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5113 if (NDalicPINVOKE.SWIGPendingException.Pending)
5114 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5118 internal WheelSignal WheelEventSignal()
5120 WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5121 if (NDalicPINVOKE.SWIGPendingException.Pending)
5122 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5126 internal ViewSignal OnWindowSignal()
5128 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5129 if (NDalicPINVOKE.SWIGPendingException.Pending)
5130 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5134 internal ViewSignal OffWindowSignal()
5136 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5137 if (NDalicPINVOKE.SWIGPendingException.Pending)
5138 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5142 internal ViewSignal OnRelayoutSignal()
5144 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5145 if (NDalicPINVOKE.SWIGPendingException.Pending)
5146 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5150 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5152 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5157 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5159 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5160 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5164 internal ViewSignal ResourcesLoadedSignal()
5166 ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5167 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5171 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5173 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5176 internal bool IsTopLevelView()
5178 if (GetParent() is Layer)
5185 internal void SetKeyInputFocus()
5187 Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5188 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5191 internal void ClearKeyInputFocus()
5193 Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5194 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5197 internal PinchGestureDetector GetPinchGestureDetector()
5199 PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5200 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5204 internal PanGestureDetector GetPanGestureDetector()
5206 PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5207 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5211 internal TapGestureDetector GetTapGestureDetector()
5213 TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5214 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5218 internal LongPressGestureDetector GetLongPressGestureDetector()
5220 LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5221 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5225 internal void SetBackgroundColor(Vector4 color)
5227 Interop.ViewInternal.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
5228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5231 internal Vector4 GetBackgroundColor()
5233 Vector4 ret = new Vector4(Interop.ViewInternal.View_GetBackgroundColor(swigCPtr), true);
5234 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5238 internal void SetBackgroundImage(Image image)
5240 Interop.ViewInternal.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
5241 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5244 internal ControlKeySignal KeyEventSignal()
5246 ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5247 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5251 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5253 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5254 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5258 internal KeyInputFocusSignal KeyInputFocusLostSignal()
5260 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5261 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5265 internal IntPtr GetPtrfromView()
5267 return (IntPtr)swigCPtr;
5271 /// Removes the layout from this View.
5273 internal void ResetLayout()
5278 internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5280 return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5284 /// you can override it to clean-up your own resources.
5286 /// <param name="type">DisposeTypes</param>
5287 /// <since_tizen> 3 </since_tizen>
5288 protected override void Dispose(DisposeTypes type)
5295 if (type == DisposeTypes.Explicit)
5298 //Release your own managed resources here.
5299 //You should release all of your own disposable objects here.
5302 //Release your own unmanaged resources here.
5303 //You should not access any managed member here except static instance.
5304 //because the execution order of Finalizes is non-deterministic.
5307 DisConnectFromSignals();
5310 if (swigCPtr.Handle != global::System.IntPtr.Zero)
5314 swigCMemOwn = false;
5315 Interop.View.delete_View(swigCPtr);
5317 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5320 foreach (View view in Children)
5322 view.InternalParent = null;
5329 private void OnSize2DChanged(int width, int height)
5331 Size2D = new Size2D(width, height);
5334 private void OnPosition2DChanged(int x, int y)
5336 Position2D = new Position2D(x, y);
5339 private void DisConnectFromSignals()
5341 // Save current CPtr.
5342 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5344 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5345 swigCPtr = GetBaseHandleCPtrHandleRef;
5347 if (_onRelayoutEventCallback != null)
5349 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5352 if (_offWindowEventCallback != null)
5354 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5357 if (_onWindowEventCallback != null)
5359 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5362 if (_wheelEventCallback != null)
5364 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5367 if (_hoverEventCallback != null)
5369 this.HoveredSignal().Disconnect(_hoverEventCallback);
5372 if (_touchDataCallback != null)
5374 this.TouchSignal().Disconnect(_touchDataCallback);
5377 if (_ResourcesLoadedCallback != null)
5379 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5382 if (_offWindowEventCallback != null)
5384 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5387 if (_onWindowEventCallback != null)
5389 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5392 if (_wheelEventCallback != null)
5394 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5397 if (_hoverEventCallback != null)
5399 this.HoveredSignal().Disconnect(_hoverEventCallback);
5402 if (_touchDataCallback != null)
5404 this.TouchSignal().Disconnect(_touchDataCallback);
5407 if (_onRelayoutEventCallback != null)
5409 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5412 if (_keyCallback != null)
5414 this.KeyEventSignal().Disconnect(_keyCallback);
5417 if (_keyInputFocusLostCallback != null)
5419 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5422 if (_keyInputFocusGainedCallback != null)
5424 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5427 if (_backgroundResourceLoadedCallback != null)
5429 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5432 if (_onWindowSendEventCallback != null)
5434 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5437 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5438 // Restore current CPtr.
5439 swigCPtr = currentCPtr;
5442 private void OnKeyInputFocusGained(IntPtr view)
5444 if (_keyInputFocusGainedEventHandler != null)
5446 _keyInputFocusGainedEventHandler(this, null);
5450 private void OnKeyInputFocusLost(IntPtr view)
5452 if (_keyInputFocusLostEventHandler != null)
5454 _keyInputFocusLostEventHandler(this, null);
5458 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5460 if (keyEvent == global::System.IntPtr.Zero)
5462 NUILog.Error("keyEvent should not be null!");
5466 KeyEventArgs e = new KeyEventArgs();
5468 bool result = false;
5470 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5472 if (_keyEventHandler != null)
5474 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5476 // Oring the result of each callback.
5477 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5479 result |= del(this, e);
5486 // Callback for View OnRelayout signal
5487 private void OnRelayout(IntPtr data)
5489 if (_onRelayoutEventHandler != null)
5491 _onRelayoutEventHandler(this, null);
5495 // Callback for View TouchSignal
5496 private bool OnTouch(IntPtr view, IntPtr touchData)
5498 if (touchData == global::System.IntPtr.Zero)
5500 NUILog.Error("touchData should not be null!");
5504 TouchEventArgs e = new TouchEventArgs();
5506 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5508 if (_touchDataEventHandler != null)
5510 return _touchDataEventHandler(this, e);
5515 // Callback for View Hover signal
5516 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5518 if (hoverEvent == global::System.IntPtr.Zero)
5520 NUILog.Error("hoverEvent should not be null!");
5524 HoverEventArgs e = new HoverEventArgs();
5526 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5528 if (_hoverEventHandler != null)
5530 return _hoverEventHandler(this, e);
5535 // Callback for View Wheel signal
5536 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5538 if (wheelEvent == global::System.IntPtr.Zero)
5540 NUILog.Error("wheelEvent should not be null!");
5544 WheelEventArgs e = new WheelEventArgs();
5546 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5548 if (_wheelEventHandler != null)
5550 return _wheelEventHandler(this, e);
5555 // Callback for View OnWindow signal
5556 private void OnWindow(IntPtr data)
5558 if (_onWindowEventHandler != null)
5560 _onWindowEventHandler(this, null);
5564 // Callback for View OffWindow signal
5565 private void OffWindow(IntPtr data)
5567 if (_offWindowEventHandler != null)
5569 _offWindowEventHandler(this, null);
5573 // Callback for View visibility change signal
5574 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5576 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5579 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5581 e.Visibility = visibility;
5584 if (_visibilityChangedEventHandler != null)
5586 _visibilityChangedEventHandler(this, e);
5590 // Callback for View layout direction change signal
5591 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5593 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5596 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5600 if (_layoutDirectionChangedEventHandler != null)
5602 _layoutDirectionChangedEventHandler(this, e);
5606 private void OnResourcesLoaded(IntPtr view)
5608 if (_resourcesLoadedEventHandler != null)
5610 _resourcesLoadedEventHandler(this, null);
5614 private View ConvertIdToView(uint id)
5616 View view = GetParent()?.FindCurrentChildById(id);
5618 //If we can't find the parent's children, find in the top layer.
5621 Container parent = GetParent();
5622 while ((parent is View) && (parent != null))
5624 parent = parent.GetParent();
5625 if (parent is Layer)
5627 view = parent.FindCurrentChildById(id);
5636 private void OnBackgroundResourceLoaded(IntPtr view)
5638 BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5639 e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5641 if (_backgroundResourceLoadedEventHandler != null)
5643 _backgroundResourceLoadedEventHandler(this, e);
5648 /// Event argument passed through the ChildAdded event.
5650 /// <since_tizen> 5 </since_tizen>
5651 public class ChildAddedEventArgs : EventArgs
5654 /// Added child view at moment.
5656 /// <since_tizen> 5 </since_tizen>
5657 public View Added { get; set; }
5661 /// Event argument passed through the ChildRemoved event.
5663 /// <since_tizen> 5 </since_tizen>
5664 public class ChildRemovedEventArgs : EventArgs
5667 /// Removed child view at moment.
5669 /// <since_tizen> 5 </since_tizen>
5670 public View Removed { get; set; }
5674 /// Event arguments that passed via the KeyEvent signal.
5676 /// <since_tizen> 3 </since_tizen>
5677 public class KeyEventArgs : EventArgs
5682 /// Key - is the key sent to the view.
5684 /// <since_tizen> 3 </since_tizen>
5699 /// Event arguments that passed via the touch signal.
5701 /// <since_tizen> 3 </since_tizen>
5702 public class TouchEventArgs : EventArgs
5704 private Touch _touch;
5707 /// Touch - contains the information of touch points.
5709 /// <since_tizen> 3 </since_tizen>
5724 /// Event arguments that passed via the hover signal.
5726 /// <since_tizen> 3 </since_tizen>
5727 public class HoverEventArgs : EventArgs
5729 private Hover _hover;
5732 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5734 /// <since_tizen> 3 </since_tizen>
5749 /// Event arguments that passed via the wheel signal.
5751 /// <since_tizen> 3 </since_tizen>
5752 public class WheelEventArgs : EventArgs
5754 private Wheel _wheel;
5757 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5759 /// <since_tizen> 3 </since_tizen>
5774 /// Event arguments of visibility changed.
5776 /// <since_tizen> 3 </since_tizen>
5777 public class VisibilityChangedEventArgs : EventArgs
5780 private bool _visibility;
5781 private VisibilityChangeType _type;
5784 /// The view, or child of view, whose visibility has changed.
5786 /// <since_tizen> 3 </since_tizen>
5800 /// Whether the view is now visible or not.
5802 /// <since_tizen> 3 </since_tizen>
5803 public bool Visibility
5811 _visibility = value;
5816 /// Whether the view's visible property has changed or a parent's.
5818 /// <since_tizen> 3 </since_tizen>
5819 public VisibilityChangeType Type
5833 /// Event arguments of layout direction changed.
5835 /// <since_tizen> 4 </since_tizen>
5836 public class LayoutDirectionChangedEventArgs : EventArgs
5839 private ViewLayoutDirectionType _type;
5842 /// The view, or child of view, whose layout direction has changed.
5844 /// <since_tizen> 4 </since_tizen>
5858 /// Whether the view's layout direction property has changed or a parent's.
5860 /// <since_tizen> 4 </since_tizen>
5861 public ViewLayoutDirectionType Type
5875 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
5877 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5878 [EditorBrowsable(EditorBrowsableState.Never)]
5879 public Transition GetTransition(string transitionName)
5881 Transition trans = null;
5882 transDictionary.TryGetValue(transitionName, out trans);
5886 private void LoadTransitions()
5888 foreach (string str in transitionNames)
5890 string resourceName = str + ".xaml";
5891 Transition trans = null;
5893 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
5895 string likelyResourcePath = resource + "animation/" + resourceName;
5897 if (File.Exists(likelyResourcePath))
5899 trans = Extensions.LoadObject<Transition>(likelyResourcePath);
5903 transDictionary.Add(trans.Name, trans);
5908 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5909 [EditorBrowsable(EditorBrowsableState.Never)]
5910 public string[] TransitionNames
5914 return transitionNames;
5918 transitionNames = value;
5922 private string[] transitionNames;
5924 internal class BackgroundResourceLoadedEventArgs : EventArgs
5926 private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
5927 public ResourceLoadingStatusType Status
5940 internal class Property
5942 internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
5943 internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
5944 internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
5945 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
5946 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
5947 internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
5948 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
5949 internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
5950 internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
5951 internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
5952 internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
5953 internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
5954 internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
5955 internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
5956 internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
5957 internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
5958 internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
5959 internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
5960 internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
5961 internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
5962 internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
5963 internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
5964 internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
5965 internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
5966 internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
5967 internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
5968 internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
5969 internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
5970 internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
5971 internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
5972 internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
5973 internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
5974 internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
5975 internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
5976 internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
5977 internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
5978 internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
5979 internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
5980 internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
5981 internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
5982 internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
5983 internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
5984 internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
5985 internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
5986 internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
5987 internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
5988 internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
5989 internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
5990 internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
5991 internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
5992 internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
5993 internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
5994 internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
5995 internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
5996 internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
5997 internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
5998 internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
5999 internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
6000 internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
6001 internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
6002 internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
6003 internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
6004 internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();