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;
66 internal enum ResourceLoadingStatusType
75 /// View is the base class for all views.
77 /// <since_tizen> 3 </since_tizen>
78 public class View : Container, IResourcesProvider
80 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
81 [EditorBrowsable(EditorBrowsableState.Never)]
82 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
84 var view = (View)bindable;
87 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue((string)newValue));
90 defaultValueCreator: (bindable) =>
92 var view = (View)bindable;
94 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STYLE_NAME).Get(out temp);
97 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
98 [EditorBrowsable(EditorBrowsableState.Never)]
99 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create("BackgroundColor", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
101 var view = (View)bindable;
102 if (newValue != null)
104 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((Color)newValue));
107 defaultValueCreator: (bindable) =>
109 var view = (View)bindable;
110 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
112 Tizen.NUI.PropertyMap background = view.Background;
114 background.Find(Visual.Property.Type)?.Get(out visualType);
115 if (visualType == (int)Visual.Type.Color)
117 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
120 return backgroundColor;
122 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
123 [EditorBrowsable(EditorBrowsableState.Never)]
124 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) =>
126 var view = (View)bindable;
127 if (newValue != null)
129 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((string)newValue));
132 defaultValueCreator: (bindable) =>
134 var view = (View)bindable;
135 string backgroundImage = "";
137 Tizen.NUI.PropertyMap background = view.Background;
139 background.Find(Visual.Property.Type)?.Get(out visualType);
140 if (visualType == (int)Visual.Type.Image)
142 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
145 return backgroundImage;
147 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
148 [EditorBrowsable(EditorBrowsableState.Never)]
149 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
151 var view = (View)bindable;
152 if (newValue != null)
154 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
157 defaultValueCreator: (bindable) =>
159 var view = (View)bindable;
160 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
161 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
164 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
165 [EditorBrowsable(EditorBrowsableState.Never)]
166 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
168 var view = (View)bindable;
169 if (newValue != null)
171 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
174 defaultValueCreator: (bindable) =>
176 var view = (View)bindable;
178 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
180 NUILog.Error("State get error!");
184 case 0: return States.Normal;
185 case 1: return States.Focused;
186 case 2: return States.Disabled;
187 default: return States.Normal;
190 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
191 [EditorBrowsable(EditorBrowsableState.Never)]
192 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
194 var view = (View)bindable;
195 string valueToString = "";
196 if (newValue != null)
198 switch ((States)newValue)
200 case States.Normal: { valueToString = "NORMAL"; break; }
201 case States.Focused: { valueToString = "FOCUSED"; break; }
202 case States.Disabled: { valueToString = "DISABLED"; break; }
203 default: { valueToString = "NORMAL"; break; }
205 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
208 defaultValueCreator: (bindable) =>
210 var view = (View)bindable;
212 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
214 NUILog.Error("subState get error!");
218 case "NORMAL": return States.Normal;
219 case "FOCUSED": return States.Focused;
220 case "DISABLED": return States.Disabled;
221 default: return States.Normal;
224 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
225 [EditorBrowsable(EditorBrowsableState.Never)]
226 public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
228 var view = (View)bindable;
229 if (newValue != null)
231 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
234 defaultValueCreator: (bindable) =>
236 var view = (View)bindable;
237 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
238 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
242 /// Only for XAML property binding. This will be changed as Inhouse API by ACR later.
243 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
245 var view = (View)bindable;
246 if (newValue != null)
248 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
251 defaultValueCreator: (bindable) =>
253 var view = (View)bindable;
255 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
259 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
260 [EditorBrowsable(EditorBrowsableState.Never)]
261 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
263 var view = (View)bindable;
264 if (newValue != null)
266 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
269 defaultValueCreator: (bindable) =>
271 var view = (View)bindable;
273 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
276 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
277 [EditorBrowsable(EditorBrowsableState.Never)]
278 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
280 var view = (View)bindable;
281 if (newValue != null)
283 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
286 defaultValueCreator: (bindable) =>
288 var view = (View)bindable;
289 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
290 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
293 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
294 [EditorBrowsable(EditorBrowsableState.Never)]
295 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
297 var view = (View)bindable;
298 if (newValue != null)
300 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
303 defaultValueCreator: (bindable) =>
305 var view = (View)bindable;
306 Vector2 temp = new Vector2(0.0f, 0.0f);
307 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
310 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
311 [EditorBrowsable(EditorBrowsableState.Never)]
312 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
314 var view = (View)bindable;
315 if (newValue != null)
317 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
320 defaultValueCreator: (bindable) =>
322 var view = (View)bindable;
324 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
327 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
328 [EditorBrowsable(EditorBrowsableState.Never)]
329 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
331 var view = (View)bindable;
332 if (newValue != null)
334 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
337 defaultValueCreator: (bindable) =>
339 var view = (View)bindable;
341 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
344 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
345 [EditorBrowsable(EditorBrowsableState.Never)]
346 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
348 var view = (View)bindable;
349 string valueToString = "";
351 if (newValue != null)
353 switch ((HorizontalAlignmentType)newValue)
355 case Tizen.NUI.HorizontalAlignmentType.Left: { valueToString = "left"; break; }
356 case Tizen.NUI.HorizontalAlignmentType.Center: { valueToString = "center"; break; }
357 case Tizen.NUI.HorizontalAlignmentType.Right: { valueToString = "right"; break; }
358 default: { valueToString = "left"; break; }
360 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
363 defaultValueCreator: (bindable) =>
365 var view = (View)bindable;
367 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
369 NUILog.Error("CellHorizontalAlignment get error!");
374 case "left": return Tizen.NUI.HorizontalAlignmentType.Left;
375 case "center": return Tizen.NUI.HorizontalAlignmentType.Center;
376 case "right": return Tizen.NUI.HorizontalAlignmentType.Right;
377 default: return Tizen.NUI.HorizontalAlignmentType.Left;
380 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
381 [EditorBrowsable(EditorBrowsableState.Never)]
382 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
384 var view = (View)bindable;
385 string valueToString = "";
387 if (newValue != null)
389 switch ((VerticalAlignmentType)newValue)
391 case Tizen.NUI.VerticalAlignmentType.Top: { valueToString = "top"; break; }
392 case Tizen.NUI.VerticalAlignmentType.Center: { valueToString = "center"; break; }
393 case Tizen.NUI.VerticalAlignmentType.Bottom: { valueToString = "bottom"; break; }
394 default: { valueToString = "top"; break; }
396 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
399 defaultValueCreator: (bindable) =>
401 var view = (View)bindable;
403 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
405 NUILog.Error("CellVerticalAlignment get error!");
410 case "top": return Tizen.NUI.VerticalAlignmentType.Top;
411 case "center": return Tizen.NUI.VerticalAlignmentType.Center;
412 case "bottom": return Tizen.NUI.VerticalAlignmentType.Bottom;
413 default: return Tizen.NUI.VerticalAlignmentType.Top;
418 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
419 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
421 [EditorBrowsable(EditorBrowsableState.Never)]
422 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
424 var view = (View)bindable;
425 if (newValue != null)
427 view.Weight = (float)newValue;
431 defaultValueCreator: (bindable) =>
433 var view = (View)bindable;
437 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
438 [EditorBrowsable(EditorBrowsableState.Never)]
439 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
441 var view = (View)bindable;
442 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
443 else { view.LeftFocusableViewId = -1; }
445 defaultValueCreator: (bindable) =>
447 var view = (View)bindable;
448 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
451 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
452 [EditorBrowsable(EditorBrowsableState.Never)]
453 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
455 var view = (View)bindable;
456 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
457 else { view.RightFocusableViewId = -1; }
459 defaultValueCreator: (bindable) =>
461 var view = (View)bindable;
462 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
465 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
466 [EditorBrowsable(EditorBrowsableState.Never)]
467 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
469 var view = (View)bindable;
470 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
471 else { view.UpFocusableViewId = -1; }
473 defaultValueCreator: (bindable) =>
475 var view = (View)bindable;
476 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
479 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
480 [EditorBrowsable(EditorBrowsableState.Never)]
481 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
483 var view = (View)bindable;
484 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
485 else { view.DownFocusableViewId = -1; }
487 defaultValueCreator: (bindable) =>
489 var view = (View)bindable;
490 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
493 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
494 [EditorBrowsable(EditorBrowsableState.Never)]
495 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
497 var view = (View)bindable;
498 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
500 defaultValueCreator: (bindable) =>
502 var view = (View)bindable;
503 return view.IsKeyboardFocusable();
505 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
506 [EditorBrowsable(EditorBrowsableState.Never)]
507 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
509 var view = (View)bindable;
510 if (newValue != null)
512 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
515 defaultValueCreator: (bindable) =>
517 var view = (View)bindable;
518 Size temp = new Size(0.0f, 0.0f, 0.0f);
519 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
520 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
523 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
524 [EditorBrowsable(EditorBrowsableState.Never)]
525 public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
527 var view = (View)bindable;
528 if (newValue != null)
530 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
533 defaultValueCreator: (bindable) =>
535 var view = (View)bindable;
537 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
540 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
541 [EditorBrowsable(EditorBrowsableState.Never)]
542 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
544 var view = (View)bindable;
545 if (newValue != null)
547 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
550 defaultValueCreator: (bindable) =>
552 var view = (View)bindable;
553 Position temp = new Position(0.0f, 0.0f, 0.0f);
554 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
555 return new Position2D(temp);
557 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
558 [EditorBrowsable(EditorBrowsableState.Never)]
559 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
561 var view = (View)bindable;
562 if (newValue != null)
564 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
567 defaultValueCreator: (bindable) =>
569 var view = (View)bindable;
571 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
574 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
575 [EditorBrowsable(EditorBrowsableState.Never)]
576 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
578 var view = (View)bindable;
580 if (newValue != null)
582 value = (int)newValue;
585 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
588 var siblings = view.GetParent()?.Children;
589 if (siblings != null)
591 int currentOrder = siblings.IndexOf(view);
592 if (value != currentOrder)
594 if (value == 0) { view.LowerToBottom(); }
595 else if (value < siblings.Count - 1)
597 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
598 else { view.LowerBelow(siblings[value]); }
600 else { view.RaiseToTop(); }
605 defaultValueCreator: (bindable) =>
607 var view = (View)bindable;
608 var parentChildren = view.GetParent()?.Children;
609 int currentOrder = 0;
610 if (parentChildren != null)
612 currentOrder = parentChildren.IndexOf(view);
614 if (currentOrder < 0) { return 0; }
615 else if (currentOrder < parentChildren.Count) { return currentOrder; }
620 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
621 [EditorBrowsable(EditorBrowsableState.Never)]
622 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
624 var view = (View)bindable;
625 if (newValue != null)
627 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
630 defaultValueCreator: (bindable) =>
632 var view = (View)bindable;
633 Position temp = new Position(0.0f, 0.0f, 0.0f);
634 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
638 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
639 [EditorBrowsable(EditorBrowsableState.Never)]
640 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
642 var view = (View)bindable;
643 if (newValue != null)
645 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
648 defaultValueCreator: (bindable) =>
650 var view = (View)bindable;
651 Position temp = new Position(0.0f, 0.0f, 0.0f);
652 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
655 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
656 [EditorBrowsable(EditorBrowsableState.Never)]
657 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
659 var view = (View)bindable;
660 if (newValue != null)
662 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
665 defaultValueCreator: (bindable) =>
667 var view = (View)bindable;
669 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
672 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
673 [EditorBrowsable(EditorBrowsableState.Never)]
674 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
676 var view = (View)bindable;
677 if (newValue != null)
679 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
682 defaultValueCreator: (bindable) =>
684 var view = (View)bindable;
686 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
689 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
690 [EditorBrowsable(EditorBrowsableState.Never)]
691 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
693 var view = (View)bindable;
694 if (newValue != null)
696 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
699 defaultValueCreator: (bindable) =>
701 var view = (View)bindable;
702 Position temp = new Position(0.0f, 0.0f, 0.0f);
703 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
706 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
707 [EditorBrowsable(EditorBrowsableState.Never)]
708 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
710 var view = (View)bindable;
711 if (newValue != null)
713 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_X, new Tizen.NUI.PropertyValue((float)newValue));
716 defaultValueCreator: (bindable) =>
718 var view = (View)bindable;
720 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
723 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
724 [EditorBrowsable(EditorBrowsableState.Never)]
725 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
727 var view = (View)bindable;
728 if (newValue != null)
730 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Y, new Tizen.NUI.PropertyValue((float)newValue));
733 defaultValueCreator: (bindable) =>
735 var view = (View)bindable;
737 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
740 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
741 [EditorBrowsable(EditorBrowsableState.Never)]
742 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
744 var view = (View)bindable;
745 if (newValue != null)
747 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
750 defaultValueCreator: (bindable) =>
752 var view = (View)bindable;
754 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
757 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
758 [EditorBrowsable(EditorBrowsableState.Never)]
759 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
761 var view = (View)bindable;
762 if (newValue != null)
764 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
767 defaultValueCreator: (bindable) =>
769 var view = (View)bindable;
770 Rotation temp = new Rotation();
771 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
774 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
775 [EditorBrowsable(EditorBrowsableState.Never)]
776 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
778 var view = (View)bindable;
779 if (newValue != null)
781 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
784 defaultValueCreator: (bindable) =>
786 var view = (View)bindable;
787 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
788 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
791 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
792 [EditorBrowsable(EditorBrowsableState.Never)]
793 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
795 var view = (View)bindable;
796 if (newValue != null)
798 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_X, new Tizen.NUI.PropertyValue((float)newValue));
801 defaultValueCreator: (bindable) =>
803 var view = (View)bindable;
805 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
808 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
809 [EditorBrowsable(EditorBrowsableState.Never)]
810 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
812 var view = (View)bindable;
813 if (newValue != null)
815 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Y, new Tizen.NUI.PropertyValue((float)newValue));
818 defaultValueCreator: (bindable) =>
820 var view = (View)bindable;
822 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
825 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
826 [EditorBrowsable(EditorBrowsableState.Never)]
827 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
829 var view = (View)bindable;
830 if (newValue != null)
832 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
835 defaultValueCreator: (bindable) =>
837 var view = (View)bindable;
839 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
842 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
843 [EditorBrowsable(EditorBrowsableState.Never)]
844 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
846 var view = (View)bindable;
847 if (newValue != null)
849 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
852 defaultValueCreator: (bindable) =>
854 var view = (View)bindable;
856 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
859 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
860 [EditorBrowsable(EditorBrowsableState.Never)]
861 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
863 var view = (View)bindable;
864 if (newValue != null)
866 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
869 defaultValueCreator: (bindable) =>
871 var view = (View)bindable;
873 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
876 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
877 [EditorBrowsable(EditorBrowsableState.Never)]
878 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
880 var view = (View)bindable;
881 if (newValue != null)
883 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
886 defaultValueCreator: (bindable) =>
888 var view = (View)bindable;
890 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
893 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
894 [EditorBrowsable(EditorBrowsableState.Never)]
895 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
897 var view = (View)bindable;
898 if (newValue != null)
900 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
903 defaultValueCreator: (bindable) =>
905 var view = (View)bindable;
907 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
910 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
911 [EditorBrowsable(EditorBrowsableState.Never)]
912 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
914 var view = (View)bindable;
915 if (newValue != null)
917 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
920 defaultValueCreator: (bindable) =>
922 var view = (View)bindable;
924 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
927 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
928 [EditorBrowsable(EditorBrowsableState.Never)]
929 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
931 var view = (View)bindable;
932 if (newValue != null)
934 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
937 defaultValueCreator: (bindable) =>
939 var view = (View)bindable;
941 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
943 NUILog.Error("DrawMode get error!");
947 case "NORMAL": return DrawModeType.Normal;
948 case "OVERLAY_2D": return DrawModeType.Overlay2D;
949 #pragma warning disable CS0618 // Disable deprecated warning as we do need to use the deprecated API here.
950 case "STENCIL": return DrawModeType.Stencil;
951 #pragma warning restore CS0618
952 default: return DrawModeType.Normal;
955 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
956 [EditorBrowsable(EditorBrowsableState.Never)]
957 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
959 var view = (View)bindable;
960 if (newValue != null)
962 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
965 defaultValueCreator: (bindable) =>
967 var view = (View)bindable;
968 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
969 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
972 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
973 [EditorBrowsable(EditorBrowsableState.Never)]
974 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
976 var view = (View)bindable;
977 if (newValue != null)
979 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
982 defaultValueCreator: (bindable) =>
984 var view = (View)bindable;
986 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
988 NUILog.Error("WidthResizePolicy get error!");
992 case "FIXED": return ResizePolicyType.Fixed;
993 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
994 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
995 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
996 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
997 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
998 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
999 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1000 default: return ResizePolicyType.Fixed;
1003 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1004 [EditorBrowsable(EditorBrowsableState.Never)]
1005 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1007 var view = (View)bindable;
1008 if (newValue != null)
1010 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1013 defaultValueCreator: (bindable) =>
1015 var view = (View)bindable;
1017 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1019 NUILog.Error("HeightResizePolicy get error!");
1023 case "FIXED": return ResizePolicyType.Fixed;
1024 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1025 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1026 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1027 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1028 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1029 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1030 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1031 default: return ResizePolicyType.Fixed;
1034 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1035 [EditorBrowsable(EditorBrowsableState.Never)]
1036 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
1038 var view = (View)bindable;
1039 string valueToString = "";
1040 if (newValue != null)
1042 switch ((SizeScalePolicyType)newValue)
1044 case SizeScalePolicyType.UseSizeSet: { valueToString = "USE_SIZE_SET"; break; }
1045 case SizeScalePolicyType.FitWithAspectRatio: { valueToString = "FIT_WITH_ASPECT_RATIO"; break; }
1046 case SizeScalePolicyType.FillWithAspectRatio: { valueToString = "FILL_WITH_ASPECT_RATIO"; break; }
1047 default: { valueToString = "USE_SIZE_SET"; break; }
1049 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1052 defaultValueCreator: (bindable) =>
1054 var view = (View)bindable;
1056 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1058 NUILog.Error("SizeScalePolicy get error!");
1062 case "USE_SIZE_SET": return SizeScalePolicyType.UseSizeSet;
1063 case "FIT_WITH_ASPECT_RATIO": return SizeScalePolicyType.FitWithAspectRatio;
1064 case "FILL_WITH_ASPECT_RATIO": return SizeScalePolicyType.FillWithAspectRatio;
1065 default: return SizeScalePolicyType.UseSizeSet;
1068 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1069 [EditorBrowsable(EditorBrowsableState.Never)]
1070 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1072 var view = (View)bindable;
1073 if (newValue != null)
1075 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue((bool)newValue));
1078 defaultValueCreator: (bindable) =>
1080 var view = (View)bindable;
1082 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
1085 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1086 [EditorBrowsable(EditorBrowsableState.Never)]
1087 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1089 var view = (View)bindable;
1090 if (newValue != null)
1092 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue((bool)newValue));
1095 defaultValueCreator: (bindable) =>
1097 var view = (View)bindable;
1099 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
1102 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1103 [EditorBrowsable(EditorBrowsableState.Never)]
1104 public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1106 var view = (View)bindable;
1107 if (newValue != null)
1109 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1112 defaultValueCreator: (bindable) =>
1114 var view = (View)bindable;
1115 Extents temp = new Extents(0, 0, 0, 0);
1116 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PADDING).Get(temp);
1119 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1120 [EditorBrowsable(EditorBrowsableState.Never)]
1121 public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1123 var view = (View)bindable;
1124 if (newValue != null)
1126 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue((Size)newValue));
1129 defaultValueCreator: (bindable) =>
1131 var view = (View)bindable;
1132 Size temp = new Size(0, 0, 0);
1133 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
1136 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1137 [EditorBrowsable(EditorBrowsableState.Never)]
1138 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1140 var view = (View)bindable;
1141 if (newValue != null)
1143 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1146 defaultValueCreator: (bindable) =>
1148 var view = (View)bindable;
1149 Size2D temp = new Size2D(0, 0);
1150 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1153 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1154 [EditorBrowsable(EditorBrowsableState.Never)]
1155 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1157 var view = (View)bindable;
1158 if (newValue != null)
1160 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1163 defaultValueCreator: (bindable) =>
1165 var view = (View)bindable;
1166 Size2D temp = new Size2D(0, 0);
1167 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1170 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1171 [EditorBrowsable(EditorBrowsableState.Never)]
1172 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1174 var view = (View)bindable;
1175 if (newValue != null)
1177 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1180 defaultValueCreator: (bindable) =>
1182 var view = (View)bindable;
1184 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1187 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1188 [EditorBrowsable(EditorBrowsableState.Never)]
1189 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1191 var view = (View)bindable;
1192 if (newValue != null)
1194 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1197 defaultValueCreator: (bindable) =>
1199 var view = (View)bindable;
1201 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1203 NUILog.Error("ClippingMode get error!");
1205 return (ClippingModeType)temp;
1207 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1208 [EditorBrowsable(EditorBrowsableState.Never)]
1209 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1211 var view = (View)bindable;
1212 if (newValue != null)
1214 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1217 defaultValueCreator: (bindable) =>
1219 var view = (View)bindable;
1221 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1224 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1225 [EditorBrowsable(EditorBrowsableState.Never)]
1226 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1228 var view = (View)bindable;
1229 if (newValue != null)
1231 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1234 defaultValueCreator: (bindable) =>
1236 var view = (View)bindable;
1238 if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1240 NUILog.Error("LAYOUT_DIRECTION get error!");
1242 return (ViewLayoutDirectionType)temp;
1244 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1245 [EditorBrowsable(EditorBrowsableState.Never)]
1246 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1248 var view = (View)bindable;
1249 if (newValue != null)
1251 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1254 defaultValueCreator: (bindable) =>
1256 var view = (View)bindable;
1257 Extents temp = new Extents(0, 0, 0, 0);
1258 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1261 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1262 [EditorBrowsable(EditorBrowsableState.Never)]
1263 public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create("XamlStyle", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);
1266 /// Flag to indicate if layout set explicitly via API call or View was automatically given a Layout.
1268 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1269 [EditorBrowsable(EditorBrowsableState.Never)]
1270 public bool layoutSet = false;
1273 /// Flag to allow Layouting to be disabled for Views.
1274 /// Once a View has a Layout set then any children added to Views from then on will receive
1275 /// automatic Layouts.
1277 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1278 [EditorBrowsable(EditorBrowsableState.Never)]
1279 public static bool layoutingDisabled{get; set;} = true;
1281 private MergedStyle mergedStyle = null;
1282 internal MergedStyle _mergedStyle
1286 if (null == mergedStyle)
1288 mergedStyle = new MergedStyle(GetType(), this);
1295 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1296 private LayoutItem _layout; // Exclusive layout assigned to this View.
1298 // List of transitions paired with the condition that uses the transition.
1299 private Dictionary<TransitionCondition, TransitionList> _layoutTransitions;
1300 private int _widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
1301 private int _heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
1302 private float _weight = 0.0f; // Weighting of child View in a Layout
1303 private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
1304 private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
1305 private bool _backgroundImageSynchronosLoading = false;
1306 private EventHandler _offWindowEventHandler;
1307 private OffWindowEventCallbackType _offWindowEventCallback;
1308 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
1309 private WheelEventCallbackType _wheelEventCallback;
1310 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
1311 private KeyCallbackType _keyCallback;
1312 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
1313 private TouchDataCallbackType _touchDataCallback;
1314 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
1315 private HoverEventCallbackType _hoverEventCallback;
1316 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
1317 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
1318 private EventHandler _keyInputFocusGainedEventHandler;
1319 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
1320 private EventHandler _keyInputFocusLostEventHandler;
1321 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
1322 private EventHandler _onRelayoutEventHandler;
1323 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
1324 private EventHandler _onWindowEventHandler;
1325 private OnWindowEventCallbackType _onWindowEventCallback;
1326 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
1327 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
1328 // Resource Ready Signal
1329 private EventHandler _resourcesLoadedEventHandler;
1330 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1331 private EventHandler<BackgroundResourceLoadedEventArgs> _backgroundResourceLoadedEventHandler;
1332 private _backgroundResourceLoadedCallbackType _backgroundResourceLoadedCallback;
1334 private OnWindowEventCallbackType _onWindowSendEventCallback;
1336 private void SendViewAddedEventToWindow(IntPtr data)
1338 Window.Instance?.SendViewAdded(this);
1342 /// Creates a new instance of a view.
1344 /// <since_tizen> 3 </since_tizen>
1345 public View() : this(Interop.View.View_New(), true)
1347 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1349 internal View(View uiControl) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1351 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1354 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
1356 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1359 PositionUsesPivotPoint = false;
1362 _onWindowSendEventCallback = SendViewAddedEventToWindow;
1363 this.OnWindowSignal().Connect(_onWindowSendEventCallback);
1366 internal View(ViewImpl implementation) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1368 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1371 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1372 private delegate void OffWindowEventCallbackType(IntPtr control);
1373 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1374 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
1375 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1376 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
1377 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1378 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
1379 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1380 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
1381 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1382 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
1383 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1384 private delegate void ResourcesLoadedCallbackType(IntPtr control);
1385 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1386 private delegate void _backgroundResourceLoadedCallbackType(IntPtr view);
1387 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1388 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
1389 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1390 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
1391 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1392 private delegate void OnRelayoutEventCallbackType(IntPtr control);
1393 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1394 private delegate void OnWindowEventCallbackType(IntPtr control);
1395 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1396 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
1399 /// Event when a child is removed.
1401 /// <since_tizen> 5 </since_tizen>
1402 public new event EventHandler<ChildRemovedEventArgs> ChildRemoved;
1404 /// Event when a child is added.
1406 /// <since_tizen> 5 </since_tizen>
1407 public new event EventHandler<ChildAddedEventArgs> ChildAdded;
1410 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1411 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
1413 /// <since_tizen> 3 </since_tizen>
1414 public event EventHandler FocusGained
1418 if (_keyInputFocusGainedEventHandler == null)
1420 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
1421 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
1424 _keyInputFocusGainedEventHandler += value;
1429 _keyInputFocusGainedEventHandler -= value;
1431 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
1433 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
1439 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1440 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
1442 /// <since_tizen> 3 </since_tizen>
1443 public event EventHandler FocusLost
1447 if (_keyInputFocusLostEventHandler == null)
1449 _keyInputFocusLostCallback = OnKeyInputFocusLost;
1450 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
1453 _keyInputFocusLostEventHandler += value;
1458 _keyInputFocusLostEventHandler -= value;
1460 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
1462 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
1468 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1469 /// The KeyPressed signal is emitted when the key event is received.<br />
1471 /// <since_tizen> 3 </since_tizen>
1472 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
1476 if (_keyEventHandler == null)
1478 _keyCallback = OnKeyEvent;
1479 this.KeyEventSignal().Connect(_keyCallback);
1482 _keyEventHandler += value;
1487 _keyEventHandler -= value;
1489 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
1491 this.KeyEventSignal().Disconnect(_keyCallback);
1497 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
1498 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
1500 /// <since_tizen> 3 </since_tizen>
1501 public event EventHandler Relayout
1505 if (_onRelayoutEventHandler == null)
1507 _onRelayoutEventCallback = OnRelayout;
1508 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
1511 _onRelayoutEventHandler += value;
1516 _onRelayoutEventHandler -= value;
1518 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
1520 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
1527 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1528 /// The touched signal is emitted when the touch input is received.<br />
1530 /// <since_tizen> 3 </since_tizen>
1531 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
1535 if (_touchDataEventHandler == null)
1537 _touchDataCallback = OnTouch;
1538 this.TouchSignal().Connect(_touchDataCallback);
1541 _touchDataEventHandler += value;
1546 _touchDataEventHandler -= value;
1548 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
1550 this.TouchSignal().Disconnect(_touchDataCallback);
1557 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1558 /// The hovered signal is emitted when the hover input is received.<br />
1560 /// <since_tizen> 3 </since_tizen>
1561 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
1565 if (_hoverEventHandler == null)
1567 _hoverEventCallback = OnHoverEvent;
1568 this.HoveredSignal().Connect(_hoverEventCallback);
1571 _hoverEventHandler += value;
1576 _hoverEventHandler -= value;
1578 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
1580 this.HoveredSignal().Disconnect(_hoverEventCallback);
1587 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1588 /// The WheelMoved signal is emitted when the wheel event is received.<br />
1590 /// <since_tizen> 3 </since_tizen>
1591 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
1595 if (_wheelEventHandler == null)
1597 _wheelEventCallback = OnWheelEvent;
1598 this.WheelEventSignal().Connect(_wheelEventCallback);
1601 _wheelEventHandler += value;
1606 _wheelEventHandler -= value;
1608 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
1610 this.WheelEventSignal().Disconnect(_wheelEventCallback);
1617 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
1618 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
1620 /// <since_tizen> 3 </since_tizen>
1621 public event EventHandler AddedToWindow
1625 if (_onWindowEventHandler == null)
1627 _onWindowEventCallback = OnWindow;
1628 this.OnWindowSignal().Connect(_onWindowEventCallback);
1631 _onWindowEventHandler += value;
1636 _onWindowEventHandler -= value;
1638 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
1640 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
1646 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
1647 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
1649 /// <since_tizen> 3 </since_tizen>
1650 public event EventHandler RemovedFromWindow
1654 if (_offWindowEventHandler == null)
1656 _offWindowEventCallback = OffWindow;
1657 this.OffWindowSignal().Connect(_offWindowEventCallback);
1660 _offWindowEventHandler += value;
1665 _offWindowEventHandler -= value;
1667 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
1669 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
1675 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
1676 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
1678 /// <since_tizen> 3 </since_tizen>
1679 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
1683 if (_visibilityChangedEventHandler == null)
1685 _visibilityChangedEventCallback = OnVisibilityChanged;
1686 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
1689 _visibilityChangedEventHandler += value;
1694 _visibilityChangedEventHandler -= value;
1696 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
1698 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
1704 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
1705 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
1707 /// <since_tizen> 4 </since_tizen>
1708 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
1712 if (_layoutDirectionChangedEventHandler == null)
1714 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
1715 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
1718 _layoutDirectionChangedEventHandler += value;
1723 _layoutDirectionChangedEventHandler -= value;
1725 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
1727 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
1733 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1734 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1736 /// <since_tizen> 3 </since_tizen>
1737 public event EventHandler ResourcesLoaded
1741 if (_resourcesLoadedEventHandler == null)
1743 _ResourcesLoadedCallback = OnResourcesLoaded;
1744 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1747 _resourcesLoadedEventHandler += value;
1752 _resourcesLoadedEventHandler -= value;
1754 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1756 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1761 internal event EventHandler<BackgroundResourceLoadedEventArgs> BackgroundResourceLoaded
1765 if (_backgroundResourceLoadedEventHandler == null)
1767 _backgroundResourceLoadedCallback = OnBackgroundResourceLoaded;
1768 this.ResourcesLoadedSignal().Connect(_backgroundResourceLoadedCallback);
1771 _backgroundResourceLoadedEventHandler += value;
1775 _backgroundResourceLoadedEventHandler -= value;
1777 if (_backgroundResourceLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1779 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
1785 /// Enumeration for describing the states of the view.
1787 /// <since_tizen> 3 </since_tizen>
1791 /// The normal state.
1795 /// The focused state.
1799 /// The disabled state.
1805 /// Describes the direction to move the focus towards.
1807 /// <since_tizen> 3 </since_tizen>
1808 public enum FocusDirection
1811 /// Move keyboard focus towards the left direction.
1813 /// <since_tizen> 3 </since_tizen>
1816 /// Move keyboard focus towards the right direction.
1818 /// <since_tizen> 3 </since_tizen>
1821 /// Move keyboard focus towards the up direction.
1823 /// <since_tizen> 3 </since_tizen>
1826 /// Move keyboard focus towards the down direction.
1828 /// <since_tizen> 3 </since_tizen>
1831 /// Move keyboard focus towards the previous page direction.
1833 /// <since_tizen> 3 </since_tizen>
1836 /// Move keyboard focus towards the next page direction.
1838 /// <since_tizen> 3 </since_tizen>
1842 internal enum PropertyRange
1844 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1845 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1846 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1849 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1850 [EditorBrowsable(EditorBrowsableState.Never)]
1851 public bool IsResourcesCreated
1855 return Application.Current.IsResourcesCreated;
1859 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1860 [EditorBrowsable(EditorBrowsableState.Never)]
1861 public ResourceDictionary XamlResources
1865 return Application.Current.XamlResources;
1869 Application.Current.XamlResources = value;
1874 /// The StyleName, type string.
1876 /// <since_tizen> 3 </since_tizen>
1877 public string StyleName
1881 return (string)GetValue(StyleNameProperty);
1885 SetValue(StyleNameProperty, value);
1886 NotifyPropertyChanged();
1891 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1893 /// <since_tizen> 3 </since_tizen>
1894 public Color BackgroundColor
1898 return (Color)GetValue(BackgroundColorProperty);
1902 SetValue(BackgroundColorProperty, value);
1903 NotifyPropertyChanged();
1908 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1910 /// <since_tizen> 3 </since_tizen>
1911 public string BackgroundImage
1915 return (string)GetValue(BackgroundImageProperty);
1919 SetValue(BackgroundImageProperty, value);
1920 NotifyPropertyChanged();
1925 /// The background of view.
1927 /// <since_tizen> 3 </since_tizen>
1928 public Tizen.NUI.PropertyMap Background
1932 return (PropertyMap)GetValue(BackgroundProperty);
1936 SetValue(BackgroundProperty, value);
1937 NotifyPropertyChanged();
1943 /// The current state of the view.
1945 /// <since_tizen> 3 </since_tizen>
1950 return (States)GetValue(StateProperty);
1954 SetValue(StateProperty, value);
1955 NotifyPropertyChanged();
1960 /// The current sub state of the view.
1962 /// <since_tizen> 3 </since_tizen>
1963 public States SubState
1967 return (States)GetValue(SubStateProperty);
1971 SetValue(SubStateProperty, value);
1972 NotifyPropertyChanged();
1977 /// Displays a tooltip
1979 /// <since_tizen> 3 </since_tizen>
1980 public Tizen.NUI.PropertyMap Tooltip
1984 return (PropertyMap)GetValue(TooltipProperty);
1988 SetValue(TooltipProperty, value);
1989 NotifyPropertyChanged();
1994 /// Displays a tooltip as a text.
1996 /// <since_tizen> 3 </since_tizen>
1997 public string TooltipText
2001 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
2002 NotifyPropertyChanged();
2007 /// The Child property of FlexContainer.<br />
2008 /// The proportion of the free space in the container, the flex item will receive.<br />
2009 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
2011 /// <since_tizen> 3 </since_tizen>
2016 return (float)GetValue(FlexProperty);
2020 SetValue(FlexProperty, value);
2021 NotifyPropertyChanged();
2026 /// The Child property of FlexContainer.<br />
2027 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
2029 /// <since_tizen> 3 </since_tizen>
2030 public int AlignSelf
2034 return (int)GetValue(AlignSelfProperty);
2038 SetValue(AlignSelfProperty, value);
2039 NotifyPropertyChanged();
2044 /// The Child property of FlexContainer.<br />
2045 /// The space around the flex item.<br />
2047 /// <since_tizen> 3 </since_tizen>
2048 public Vector4 FlexMargin
2052 return (Vector4)GetValue(FlexMarginProperty);
2056 SetValue(FlexMarginProperty, value);
2057 NotifyPropertyChanged();
2062 /// The top-left cell this child occupies, if not set, the first available cell is used.
2064 /// <since_tizen> 3 </since_tizen>
2065 public Vector2 CellIndex
2069 return (Vector2)GetValue(CellIndexProperty);
2073 SetValue(CellIndexProperty, value);
2074 NotifyPropertyChanged();
2079 /// The number of rows this child occupies, if not set, the default value is 1.
2081 /// <since_tizen> 3 </since_tizen>
2082 public float RowSpan
2086 return (float)GetValue(RowSpanProperty);
2090 SetValue(RowSpanProperty, value);
2091 NotifyPropertyChanged();
2096 /// The number of columns this child occupies, if not set, the default value is 1.
2098 /// <since_tizen> 3 </since_tizen>
2099 public float ColumnSpan
2103 return (float)GetValue(ColumnSpanProperty);
2107 SetValue(ColumnSpanProperty, value);
2108 NotifyPropertyChanged();
2113 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
2115 /// <since_tizen> 3 </since_tizen>
2116 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
2120 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
2124 SetValue(CellHorizontalAlignmentProperty, value);
2125 NotifyPropertyChanged();
2130 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
2132 /// <since_tizen> 3 </since_tizen>
2133 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
2137 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
2141 SetValue(CellVerticalAlignmentProperty, value);
2142 NotifyPropertyChanged();
2147 /// The left focusable view.<br />
2148 /// This will return null if not set.<br />
2149 /// This will also return null if the specified left focusable view is not on a window.<br />
2151 /// <since_tizen> 3 </since_tizen>
2152 public View LeftFocusableView
2154 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2157 return (View)GetValue(LeftFocusableViewProperty);
2161 SetValue(LeftFocusableViewProperty, value);
2162 NotifyPropertyChanged();
2167 /// The right focusable view.<br />
2168 /// This will return null if not set.<br />
2169 /// This will also return null if the specified right focusable view is not on a window.<br />
2171 /// <since_tizen> 3 </since_tizen>
2172 public View RightFocusableView
2174 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2177 return (View)GetValue(RightFocusableViewProperty);
2181 SetValue(RightFocusableViewProperty, value);
2182 NotifyPropertyChanged();
2187 /// The up focusable view.<br />
2188 /// This will return null if not set.<br />
2189 /// This will also return null if the specified up focusable view is not on a window.<br />
2191 /// <since_tizen> 3 </since_tizen>
2192 public View UpFocusableView
2194 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2197 return (View)GetValue(UpFocusableViewProperty);
2201 SetValue(UpFocusableViewProperty, value);
2202 NotifyPropertyChanged();
2207 /// The down focusable view.<br />
2208 /// This will return null if not set.<br />
2209 /// This will also return null if the specified down focusable view is not on a window.<br />
2211 /// <since_tizen> 3 </since_tizen>
2212 public View DownFocusableView
2214 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2217 return (View)GetValue(DownFocusableViewProperty);
2221 SetValue(DownFocusableViewProperty, value);
2222 NotifyPropertyChanged();
2227 /// Whether the view should be focusable by keyboard navigation.
2229 /// <since_tizen> 3 </since_tizen>
2230 public bool Focusable
2234 SetValue(FocusableProperty, value);
2235 NotifyPropertyChanged();
2239 return (bool)GetValue(FocusableProperty);
2244 /// Retrieves the position of the view.<br />
2245 /// The coordinates are relative to the view's parent.<br />
2247 /// <since_tizen> 3 </since_tizen>
2248 public Position CurrentPosition
2252 return GetCurrentPosition();
2257 /// Sets the size of a view for the width and the height.<br />
2258 /// Geometry can be scaled to fit within this area.<br />
2259 /// This does not interfere with the view's scale factor.<br />
2260 /// The views default depth is the minimum of width and height.<br />
2263 /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
2264 /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
2265 /// Please note that this multi-cascade setting is especially possible for this NUI object (Size2D). <br />
2266 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2267 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2268 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2269 /// It may not match the current value in some cases, i.e. when the animation is progressing or the maximum or minimum size is set. <br />
2271 /// <since_tizen> 3 </since_tizen>
2272 public Size2D Size2D
2276 Size2D temp = (Size2D)GetValue(Size2DProperty);
2277 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
2281 SetValue(Size2DProperty, value);
2282 // Set Specification so when layouts measure this View it matches the value set here.
2283 // All Views are currently Layouts.
2284 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
2285 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
2286 _widthPolicy = value.Width;
2287 _heightPolicy = value.Height;
2288 _layout?.RequestLayout();
2289 NotifyPropertyChanged();
2294 /// Retrieves the size of the view.<br />
2295 /// The coordinates are relative to the view's parent.<br />
2297 /// <since_tizen> 3 </since_tizen>
2298 public Size2D CurrentSize
2302 return GetCurrentSize();
2307 /// Retrieves and sets the view's opacity.<br />
2309 /// <since_tizen> 3 </since_tizen>
2310 public float Opacity
2314 return (float)GetValue(OpacityProperty);
2318 SetValue(OpacityProperty, value);
2319 NotifyPropertyChanged();
2324 /// Sets the position of the view for X and Y.<br />
2325 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2326 /// If the position inheritance is disabled, sets the world position.<br />
2329 /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
2330 /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
2331 /// Please note that this multi-cascade setting is especially possible for this NUI object (Position2D). <br />
2332 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2333 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2334 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2336 /// <since_tizen> 3 </since_tizen>
2337 public Position2D Position2D
2341 Position2D temp = (Position2D)GetValue(Position2DProperty);
2342 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
2346 SetValue(Position2DProperty, value);
2347 NotifyPropertyChanged();
2352 /// Retrieves the screen postion of the view.<br />
2354 /// <since_tizen> 3 </since_tizen>
2355 public Vector2 ScreenPosition
2359 Vector2 temp = new Vector2(0.0f, 0.0f);
2360 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2366 /// Determines whether the pivot point should be used to determine the position of the view.
2367 /// This is true by default.
2369 /// <remarks>If false, then the top-left of the view is used for the position.
2370 /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
2372 /// <since_tizen> 3 </since_tizen>
2373 public bool PositionUsesPivotPoint
2377 return (bool)GetValue(PositionUsesPivotPointProperty);
2381 SetValue(PositionUsesPivotPointProperty, value);
2382 NotifyPropertyChanged();
2387 /// Please do not use! this will be deprecated.
2389 /// Please do not use! this will be deprecated!
2390 /// Instead please use PositionUsesPivotPoint.
2391 /// <since_tizen> 3 </since_tizen>
2392 [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " +
2394 "View view = new View(); " +
2395 "view.PivotPoint = PivotPoint.Center; " +
2396 "view.PositionUsesPivotPoint = true;")]
2397 [EditorBrowsable(EditorBrowsableState.Never)]
2398 public bool PositionUsesAnchorPoint
2403 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2408 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2409 NotifyPropertyChanged();
2414 /// Queries whether the view is connected to the stage.<br />
2415 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2417 /// <since_tizen> 3 </since_tizen>
2418 public bool IsOnWindow
2427 /// Gets the depth in the hierarchy for the view.
2429 /// <since_tizen> 3 </since_tizen>
2430 public int HierarchyDepth
2434 return GetHierarchyDepth();
2439 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2442 /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
2443 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2444 /// The values set by this property will likely change.
2446 /// <since_tizen> 3 </since_tizen>
2447 public int SiblingOrder
2451 return (int)GetValue(SiblingOrderProperty);
2455 SetValue(SiblingOrderProperty, value);
2456 NotifyPropertyChanged();
2461 /// Returns the natural size of the view.
2464 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2466 /// <since_tizen> 5 </since_tizen>
2467 public Vector3 NaturalSize
2471 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2472 if (NDalicPINVOKE.SWIGPendingException.Pending)
2473 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2479 /// Returns the natural size (Size2D) of the view.
2482 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2484 /// <since_tizen> 4 </since_tizen>
2485 public Size2D NaturalSize2D
2489 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2490 if (NDalicPINVOKE.SWIGPendingException.Pending)
2491 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2493 return new Size2D((int)temp.Width, (int)temp.Height);
2498 /// Gets or sets the origin of a view within its parent's area.<br />
2499 /// 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 />
2500 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
2501 /// A view's position is the distance between this origin and the view's anchor-point.<br />
2503 /// <pre>The view has been initialized.</pre>
2504 /// <since_tizen> 3 </since_tizen>
2505 public Position ParentOrigin
2509 return (Position)GetValue(ParentOriginProperty);
2513 SetValue(ParentOriginProperty, value);
2514 NotifyPropertyChanged();
2519 /// Gets or sets the anchor-point of a view.<br />
2520 /// 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 />
2521 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
2522 /// A view position is the distance between its parent-origin and this anchor-point.<br />
2523 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
2524 /// <pre>The view has been initialized.</pre>
2526 /// <since_tizen> 3 </since_tizen>
2527 public Position PivotPoint
2531 return (Position)GetValue(PivotPointProperty);
2535 SetValue(PivotPointProperty, value);
2536 NotifyPropertyChanged();
2541 /// Gets or sets the size width of the view.
2543 /// <since_tizen> 3 </since_tizen>
2544 public float SizeWidth
2548 return (float)GetValue(SizeWidthProperty);
2552 SetValue(SizeWidthProperty, value);
2553 WidthSpecification = (int)Math.Ceiling(value);
2554 NotifyPropertyChanged();
2559 /// Gets or sets the size height of the view.
2561 /// <since_tizen> 3 </since_tizen>
2562 public float SizeHeight
2566 return (float)GetValue(SizeHeightProperty);
2570 SetValue(SizeHeightProperty, value);
2571 HeightSpecification = (int)Math.Ceiling(value);
2572 NotifyPropertyChanged();
2577 /// Gets or sets the position of the view.<br />
2578 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
2579 /// If the position inheritance is disabled, sets the world position.<br />
2581 /// <since_tizen> 3 </since_tizen>
2582 public Position Position
2586 return (Position)GetValue(PositionProperty);
2590 SetValue(PositionProperty, value);
2591 NotifyPropertyChanged();
2596 /// Gets or sets the position X of the view.
2598 /// <since_tizen> 3 </since_tizen>
2599 public float PositionX
2603 return (float)GetValue(PositionXProperty);
2607 SetValue(PositionXProperty, value);
2608 NotifyPropertyChanged();
2613 /// Gets or sets the position Y of the view.
2615 /// <since_tizen> 3 </since_tizen>
2616 public float PositionY
2620 return (float)GetValue(PositionYProperty);
2624 SetValue(PositionYProperty, value);
2625 NotifyPropertyChanged();
2630 /// Gets or sets the position Z of the view.
2632 /// <since_tizen> 3 </since_tizen>
2633 public float PositionZ
2637 return (float)GetValue(PositionZProperty);
2641 SetValue(PositionZProperty, value);
2642 NotifyPropertyChanged();
2647 /// Gets or sets the world position of the view.
2649 /// <since_tizen> 3 </since_tizen>
2650 public Vector3 WorldPosition
2654 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2655 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2661 /// Gets or sets the orientation of the view.<br />
2662 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
2664 /// <remarks>This is an asynchronous method.</remarks>
2665 /// <since_tizen> 3 </since_tizen>
2666 public Rotation Orientation
2670 return (Rotation)GetValue(OrientationProperty);
2674 SetValue(OrientationProperty, value);
2675 NotifyPropertyChanged();
2680 /// Gets or sets the world orientation of the view.<br />
2682 /// <since_tizen> 3 </since_tizen>
2683 public Rotation WorldOrientation
2687 Rotation temp = new Rotation();
2688 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2694 /// Gets or sets the scale factor applied to the view.<br />
2696 /// <since_tizen> 3 </since_tizen>
2697 public Vector3 Scale
2701 return (Vector3)GetValue(ScaleProperty);
2705 SetValue(ScaleProperty, value);
2706 NotifyPropertyChanged();
2711 /// Gets or sets the scale X factor applied to the view.
2713 /// <since_tizen> 3 </since_tizen>
2718 return (float)GetValue(ScaleXProperty);
2722 SetValue(ScaleXProperty, value);
2723 NotifyPropertyChanged();
2728 /// Gets or sets the scale Y factor applied to the view.
2730 /// <since_tizen> 3 </since_tizen>
2735 return (float)GetValue(ScaleYProperty);
2739 SetValue(ScaleYProperty, value);
2740 NotifyPropertyChanged();
2745 /// Gets or sets the scale Z factor applied to the view.
2747 /// <since_tizen> 3 </since_tizen>
2752 return (float)GetValue(ScaleZProperty);
2756 SetValue(ScaleZProperty, value);
2757 NotifyPropertyChanged();
2762 /// Gets the world scale of the view.
2764 /// <since_tizen> 3 </since_tizen>
2765 public Vector3 WorldScale
2769 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2770 GetProperty(View.Property.WORLD_SCALE).Get(temp);
2776 /// Retrieves the visibility flag of the view.
2779 /// If the view is not visible, then the view and its children will not be rendered.
2780 /// 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.
2782 /// <since_tizen> 3 </since_tizen>
2783 public bool Visibility
2788 GetProperty(View.Property.VISIBLE).Get(out temp);
2794 /// Gets the view's world color.
2796 /// <since_tizen> 3 </since_tizen>
2797 public Vector4 WorldColor
2801 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2802 GetProperty(View.Property.WORLD_COLOR).Get(temp);
2808 /// Gets or sets the view's name.
2810 /// <since_tizen> 3 </since_tizen>
2815 return (string)GetValue(NameProperty);
2819 SetValue(NameProperty, value);
2820 NotifyPropertyChanged();
2825 /// Get the number of children held by the view.
2827 /// <since_tizen> 3 </since_tizen>
2828 public new uint ChildCount
2832 return GetChildCount();
2837 /// Gets the view's ID.
2840 /// <since_tizen> 3 </since_tizen>
2850 /// Gets or sets the status of whether the view should emit touch or hover signals.
2852 /// <since_tizen> 3 </since_tizen>
2853 public bool Sensitive
2857 return (bool)GetValue(SensitiveProperty);
2861 SetValue(SensitiveProperty, value);
2862 NotifyPropertyChanged();
2867 /// 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.
2869 /// <since_tizen> 3 </since_tizen>
2870 public bool LeaveRequired
2874 return (bool)GetValue(LeaveRequiredProperty);
2878 SetValue(LeaveRequiredProperty, value);
2879 NotifyPropertyChanged();
2884 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
2886 /// <since_tizen> 3 </since_tizen>
2887 public bool InheritOrientation
2891 return (bool)GetValue(InheritOrientationProperty);
2895 SetValue(InheritOrientationProperty, value);
2896 NotifyPropertyChanged();
2901 /// Gets or sets the status of whether a child view inherits it's parent's scale.
2903 /// <since_tizen> 3 </since_tizen>
2904 public bool InheritScale
2908 return (bool)GetValue(InheritScaleProperty);
2912 SetValue(InheritScaleProperty, value);
2913 NotifyPropertyChanged();
2918 /// Gets or sets the status of how the view and its children should be drawn.<br />
2919 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
2920 /// 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 />
2921 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
2922 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
2923 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
2925 /// <since_tizen> 3 </since_tizen>
2926 public DrawModeType DrawMode
2930 return (DrawModeType)GetValue(DrawModeProperty);
2934 SetValue(DrawModeProperty, value);
2935 NotifyPropertyChanged();
2940 /// Gets or sets the relative to parent size factor of the view.<br />
2941 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
2942 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
2944 /// <since_tizen> 3 </since_tizen>
2945 public Vector3 SizeModeFactor
2949 return (Vector3)GetValue(SizeModeFactorProperty);
2953 SetValue(SizeModeFactorProperty, value);
2954 NotifyPropertyChanged();
2959 /// Gets or sets the width resize policy to be used.
2961 /// <since_tizen> 3 </since_tizen>
2962 public ResizePolicyType WidthResizePolicy
2966 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
2970 SetValue(WidthResizePolicyProperty, value);
2971 // Match ResizePolicy to new Layouting.
2972 // Parent relative policies can not be mapped at this point as parent size unknown.
2975 case ResizePolicyType.UseNaturalSize:
2977 WidthSpecification = LayoutParamPolicies.WrapContent;
2980 case ResizePolicyType.FillToParent:
2982 WidthSpecification = LayoutParamPolicies.MatchParent;
2985 case ResizePolicyType.FitToChildren:
2987 WidthSpecification = LayoutParamPolicies.WrapContent;
2993 NotifyPropertyChanged();
2998 /// Gets or sets the height resize policy to be used.
3000 /// <since_tizen> 3 </since_tizen>
3001 public ResizePolicyType HeightResizePolicy
3005 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
3009 SetValue(HeightResizePolicyProperty, value);
3010 // Match ResizePolicy to new Layouting.
3011 // Parent relative policies can not be mapped at this point as parent size unknown.
3014 case ResizePolicyType.UseNaturalSize:
3016 HeightSpecification = LayoutParamPolicies.WrapContent;
3019 case ResizePolicyType.FillToParent:
3021 HeightSpecification = LayoutParamPolicies.MatchParent;
3024 case ResizePolicyType.FitToChildren:
3026 HeightSpecification = LayoutParamPolicies.WrapContent;
3032 NotifyPropertyChanged();
3037 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3038 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3040 /// <since_tizen> 3 </since_tizen>
3041 public SizeScalePolicyType SizeScalePolicy
3045 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
3049 SetValue(SizeScalePolicyProperty, value);
3050 NotifyPropertyChanged();
3055 /// Gets or sets the status of whether the width size is dependent on the height size.
3057 /// <since_tizen> 3 </since_tizen>
3058 public bool WidthForHeight
3062 return (bool)GetValue(WidthForHeightProperty);
3066 SetValue(WidthForHeightProperty, value);
3067 NotifyPropertyChanged();
3072 /// Gets or sets the status of whether the height size is dependent on the width size.
3074 /// <since_tizen> 3 </since_tizen>
3075 public bool HeightForWidth
3079 return (bool)GetValue(HeightForWidthProperty);
3083 SetValue(HeightForWidthProperty, value);
3084 NotifyPropertyChanged();
3089 /// Gets or sets the padding for use in layout.
3091 /// <since_tizen> 5 </since_tizen>
3092 public Extents Padding
3096 // If View has a Layout then padding in stored in the base Layout class
3099 return Layout.Padding;
3103 return (Extents)GetValue(PaddingProperty);
3105 // Two return points to prevent creating a zeroed Extent native object before assignment
3109 Extents padding = value;
3112 // Layout set so store Padding in LayoutItem instead of in View.
3113 // If View stores the Padding value then Legacy Size Negotiation will overwrite
3114 // the position and sizes measure in the Layouting.
3115 Layout.Padding = value;
3116 // If Layout is a LayoutItem then it could be a View that handles it's own padding.
3117 // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.
3118 if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
3120 padding = new Extents(0,0,0,0); // Reset value stored in View.
3122 _layout?.RequestLayout();
3124 SetValue(PaddingProperty, padding);
3125 NotifyPropertyChanged();
3126 _layout?.RequestLayout();
3131 /// Gets or sets the minimum size the view can be assigned in size negotiation.
3133 /// <since_tizen> 3 </since_tizen>
3134 public Size2D MinimumSize
3138 return (Size2D)GetValue(MinimumSizeProperty);
3142 if (_layout != null)
3144 // Note: it only works if minimum size is >= than natural size.
3145 // To force the size it should be done through the width&height spec or Size2D.
3146 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
3147 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
3148 _layout.RequestLayout();
3150 SetValue(MinimumSizeProperty, value);
3151 NotifyPropertyChanged();
3156 /// Gets or sets the maximum size the view can be assigned in size negotiation.
3158 /// <since_tizen> 3 </since_tizen>
3159 public Size2D MaximumSize
3163 return (Size2D)GetValue(MaximumSizeProperty);
3167 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
3168 // MATCH_PARENT spec + parent container size can be used to limit
3169 if (_layout != null)
3171 // Note: it only works if minimum size is >= than natural size.
3172 // To force the size it should be done through the width&height spec or Size2D.
3173 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
3174 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
3175 _layout.RequestLayout();
3177 SetValue(MaximumSizeProperty, value);
3178 NotifyPropertyChanged();
3183 /// Gets or sets whether a child view inherits it's parent's position.<br />
3184 /// Default is to inherit.<br />
3185 /// 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 />
3187 /// <since_tizen> 3 </since_tizen>
3188 public bool InheritPosition
3192 return (bool)GetValue(InheritPositionProperty);
3196 SetValue(InheritPositionProperty, value);
3197 NotifyPropertyChanged();
3202 /// Gets or sets the clipping behavior (mode) of it's children.
3204 /// <since_tizen> 3 </since_tizen>
3205 public ClippingModeType ClippingMode
3209 return (ClippingModeType)GetValue(ClippingModeProperty);
3213 SetValue(ClippingModeProperty, value);
3214 NotifyPropertyChanged();
3219 /// Gets the number of renderers held by the view.
3221 /// <since_tizen> 3 </since_tizen>
3222 public uint RendererCount
3226 return GetRendererCount();
3231 /// [Obsolete("Please do not use! this will be deprecated")]
3233 /// <since_tizen> 3 </since_tizen>
3234 /// Please do not use! this will be deprecated!
3235 /// Instead please use PivotPoint.
3236 [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " +
3238 "View view = new View(); " +
3239 "view.PivotPoint = PivotPoint.Center; " +
3240 "view.PositionUsesPivotPoint = true;")]
3241 [EditorBrowsable(EditorBrowsableState.Never)]
3242 public Position AnchorPoint
3246 Position temp = new Position(0.0f, 0.0f, 0.0f);
3247 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3252 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3253 NotifyPropertyChanged();
3258 /// Sets the size of a view for the width, the height and the depth.<br />
3259 /// Geometry can be scaled to fit within this area.<br />
3260 /// This does not interfere with the view's scale factor.<br />
3261 /// The views default depth is the minimum of width and height.<br />
3264 /// Please note that multi-cascade setting is not possible for this NUI object. <br />
3265 /// It is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
3266 /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f); <br />
3267 /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f; <br />
3268 /// 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 />
3270 /// <since_tizen> 5 </since_tizen>
3275 return (Size)GetValue(SizeProperty);
3279 SetValue(SizeProperty, value);
3280 // Set Specification so when layouts measure this View it matches the value set here.
3281 // All Views are currently Layouts.
3282 WidthSpecification = (int)Math.Ceiling(value.Width);
3283 HeightSpecification = (int)Math.Ceiling(value.Height);
3284 NotifyPropertyChanged();
3289 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
3291 /// <since_tizen> 3 </since_tizen>
3292 [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " +
3294 "Container parent = view.GetParent(); " +
3295 "View view = parent as View;")]
3296 [EditorBrowsable(EditorBrowsableState.Never)]
3297 public new View Parent
3302 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
3303 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
3304 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
3306 if (basehandle is Layer layer)
3308 ret = new View(Layer.getCPtr(layer).Handle, false);
3309 NUILog.Error("This Parent property is deprecated, shoud do not be used");
3313 ret = basehandle as View;
3316 Interop.BaseHandle.delete_BaseHandle(CPtr);
3317 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
3319 if (NDalicPINVOKE.SWIGPendingException.Pending)
3320 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3326 /// Gets/Sets whether inherit parent's the layout Direction.
3328 /// <since_tizen> 4 </since_tizen>
3329 public bool InheritLayoutDirection
3333 return (bool)GetValue(InheritLayoutDirectionProperty);
3337 SetValue(InheritLayoutDirectionProperty, value);
3338 NotifyPropertyChanged();
3343 /// Gets/Sets the layout Direction.
3345 /// <since_tizen> 4 </since_tizen>
3346 public ViewLayoutDirectionType LayoutDirection
3350 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
3354 SetValue(LayoutDirectionProperty, value);
3355 NotifyPropertyChanged();
3356 _layout?.RequestLayout();
3361 /// Gets or sets the Margin for use in layout.
3364 /// Margin property is supported by Layout algorithms and containers.
3365 /// Please Set Layout if you want to use Margin property.
3367 /// <since_tizen> 4 </since_tizen>
3368 public Extents Margin
3372 // If View has a Layout then margin is stored in Layout.
3375 return Layout.Margin;
3379 // If Layout not set then return margin stored in View.
3380 return (Extents)GetValue(MarginProperty);
3382 // Two return points to prevent creating a zeroed Extent native object before assignment
3388 // Layout set so store Margin in LayoutItem instead of View.
3389 // If View stores the Margin too then the Legacy Size Negotiation will
3390 // overwrite the position and size values measured in the Layouting.
3391 Layout.Margin = value;
3392 SetValue(MarginProperty, new Extents(0,0,0,0));
3393 _layout?.RequestLayout();
3397 SetValue(MarginProperty, value);
3399 NotifyPropertyChanged();
3400 _layout?.RequestLayout();
3405 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
3407 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3409 /// Previously named LayoutWidthSpecification
3411 [EditorBrowsable(EditorBrowsableState.Never)]
3412 public int WidthSpecification
3416 return _widthPolicy;
3420 _widthPolicy = value;
3421 if (_widthPolicy >= 0)
3423 _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3424 //Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3425 Size2D.Width = _widthPolicy;
3427 _layout?.RequestLayout();
3432 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
3434 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3436 /// Previously named LayoutHeightSpecification
3438 [EditorBrowsable(EditorBrowsableState.Never)]
3439 public int HeightSpecification
3443 return _heightPolicy;
3447 _heightPolicy = value;
3448 if (_heightPolicy >= 0)
3450 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3451 //Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3452 Size2D.Height = _heightPolicy;
3454 _layout?.RequestLayout();
3459 /// Gets the List of transitions for this View.
3461 /// Hidden-API which is usually used as Inhouse-API. If required to be opened as Public-API, ACR process is needed.
3462 [EditorBrowsable(EditorBrowsableState.Never)]
3463 public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
3467 if (_layoutTransitions == null)
3469 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3471 return _layoutTransitions;
3475 internal LayoutTransition LayoutTransition
3479 if (_layoutTransitions == null)
3481 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3483 LayoutTransitionsHelper.AddTransitionForCondition(_layoutTransitions,value.Condition,value, true);
3485 AttachTransitionsToChildren(value);
3490 /// [Obsolete("Please do not use! this will be deprecated")]
3492 /// Please do not use! this will be deprecated!
3493 /// Instead please use Padding.
3494 /// <since_tizen> 4 </since_tizen>
3495 [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
3496 [EditorBrowsable(EditorBrowsableState.Never)]
3497 public Extents PaddingEX
3501 Extents temp = new Extents(0, 0, 0, 0);
3502 GetProperty(View.Property.PADDING).Get(temp);
3507 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3508 NotifyPropertyChanged();
3509 _layout?.RequestLayout();
3513 /// <since_tizen> 6 </since_tizen>
3514 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
3515 [EditorBrowsable(EditorBrowsableState.Never)]
3516 public Style XamlStyle
3520 return (Style)GetValue(XamlStyleProperty);
3524 SetValue(XamlStyleProperty, value);
3529 /// The Color of View. This is an RGBA value.
3531 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3532 [EditorBrowsable(EditorBrowsableState.Never)]
3541 return GetCurrentColor();
3546 /// The color mode of View.
3547 /// This specifies whether the View uses its own color, or inherits its parent color.
3548 /// The default is ColorMode.UseOwnMultiplyParentColor.
3550 internal ColorMode ColorMode
3554 SetColorMode(value);
3558 return GetColorMode();
3562 internal float Weight
3571 _layout?.RequestLayout();
3576 /// Whether to load the BackgroundImage synchronously.
3577 /// If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
3578 /// Note: For Normal Quad images only.
3580 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3581 [EditorBrowsable(EditorBrowsableState.Never)]
3582 public bool BackgroundImageSynchronosLoading
3586 return _backgroundImageSynchronosLoading;
3590 if (value != _backgroundImageSynchronosLoading)
3593 PropertyMap bgMap = this.Background;
3595 bgMap.Find(Visual.Property.Type)?.Get(out visualType);
3596 if (visualType == (int)Visual.Type.Image)
3598 bgMap.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3600 if (bgUrl.Length != 0)
3602 _backgroundImageSynchronosLoading = value;
3603 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3604 this.Background = bgMap;
3610 internal float WorldPositionX
3615 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3620 internal float WorldPositionY
3625 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3630 internal float WorldPositionZ
3635 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3640 internal bool FocusState
3644 return IsKeyboardFocusable();
3648 SetKeyboardFocusable(value);
3653 /// Set the layout on this View. Replaces any existing Layout.
3655 internal LayoutItem Layout
3663 // Do nothing if layout provided is already set on this View.
3664 if (value == _layout)
3669 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3670 layoutingDisabled = false;
3673 // If new layout being set already has a owner then that owner receives a replacement default layout.
3674 // First check if the layout to be set already has a owner.
3675 if (value?.Owner != null)
3677 Log.Info("NUI", "Set layout already in use by another View: " + value.Owner.Name + "will get a LayoutGroup\n");
3678 // Previous owner of the layout gets a default layout as a replacement.
3679 value.Owner.Layout = new LayoutGroup();
3681 // Copy Margin and Padding to replacement LayoutGroup.
3682 value.Owner.Layout.Margin = value.Margin;
3683 value.Owner.Layout.Padding = value.Padding;
3686 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3687 // View if no replacement. Previously margin and padding values would have been moved from
3688 // the View to the layout.
3689 if (_layout != null ) // Existing layout
3693 // Existing layout being replaced so copy over margin and padding values.
3694 value.Margin = _layout.Margin;
3695 value.Padding = _layout.Padding;
3699 // Layout not being replaced so restore margin and padding to View.
3700 SetValue(MarginProperty, _layout.Margin);
3701 SetValue(PaddingProperty, _layout.Padding);
3702 NotifyPropertyChanged();
3707 // First Layout to be added to the View hence copy
3709 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3712 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3714 // If View already has a margin set then store it in Layout instead.
3715 value.Margin = Margin;
3716 SetValue(MarginProperty, new Extents(0,0,0,0));
3717 NotifyPropertyChanged();
3720 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3722 // If View already has a padding set then store it in Layout instead.
3723 value.Padding = Padding;
3724 SetValue(PaddingProperty, new Extents(0,0,0,0));
3725 NotifyPropertyChanged();
3730 // Remove existing layout from it's parent layout group.
3731 _layout?.Unparent();
3733 // Set layout to this view
3738 internal void SetLayout(LayoutItem layout)
3741 _layout?.AttachToOwner(this);
3742 _layout?.RequestLayout();
3746 /// Stores the calculated width value and its ModeType. Width component.
3748 internal MeasureSpecification MeasureSpecificationWidth
3752 _measureSpecificationWidth = value;
3753 _layout?.RequestLayout();
3757 return _measureSpecificationWidth;
3762 /// Stores the calculated width value and its ModeType. Height component.
3764 internal MeasureSpecification MeasureSpecificationHeight
3768 _measureSpecificationHeight = value;
3769 _layout?.RequestLayout();
3773 return _measureSpecificationHeight;
3777 internal void AttachTransitionsToChildren(LayoutTransition transition)
3779 // Iterate children, adding the transition unless a transition
3780 // for the same condition and property has already been
3781 // explicitly added.
3782 foreach (View view in Children)
3784 LayoutTransitionsHelper.AddTransitionForCondition(view.LayoutTransitions,transition.Condition, transition, false);
3788 internal float ParentOriginX
3793 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3798 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3799 NotifyPropertyChanged();
3803 internal float ParentOriginY
3808 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3813 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3814 NotifyPropertyChanged();
3818 internal float ParentOriginZ
3823 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3828 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3829 NotifyPropertyChanged();
3833 internal float PivotPointX
3838 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3843 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3847 internal float PivotPointY
3852 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3857 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3861 internal float PivotPointZ
3866 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3871 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3875 internal Matrix WorldMatrix
3879 Matrix temp = new Matrix();
3880 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3885 private int LeftFocusableViewId
3890 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
3895 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3899 private int RightFocusableViewId
3904 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
3909 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3913 private int UpFocusableViewId
3918 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
3923 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3927 private int DownFocusableViewId
3932 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
3937 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3942 /// Perform an action on a visual registered to this view. <br />
3943 /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
3945 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
3946 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
3947 /// <param name="attributes">Optional attributes for the action.</param>
3948 /// <since_tizen> 5 </since_tizen>
3949 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
3951 Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
3952 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3956 /// Creates an animation to animate the background color visual. If there is no
3957 /// background visual, creates one with transparent black as it's mixColor.
3959 /// <since_tizen> 3 </since_tizen>
3960 public Animation AnimateBackgroundColor(object destinationValue,
3963 AlphaFunction.BuiltinFunctions? alphaFunction = null,
3964 object initialValue = null)
3966 Tizen.NUI.PropertyMap background = Background;
3968 if (background.Empty())
3970 // If there is no background yet, ensure there is a transparent
3972 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
3973 background = Background;
3975 return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
3979 /// Creates an animation to animate the mixColor of the named visual.
3981 /// <since_tizen> 3 </since_tizen>
3982 public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
3984 Animation animation = null;
3986 PropertyMap _animator = new PropertyMap();
3987 if (alphaFunction != null)
3989 _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
3992 PropertyMap _timePeriod = new PropertyMap();
3993 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
3994 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
3995 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
3997 PropertyMap _transition = new PropertyMap();
3998 _transition.Add("animator", new PropertyValue(_animator));
3999 _transition.Add("target", new PropertyValue(targetVisual));
4000 _transition.Add("property", new PropertyValue("mixColor"));
4002 if (initialColor != null)
4004 PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
4005 _transition.Add("initialValue", initValue);
4008 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
4009 _transition.Add("targetValue", destValue);
4010 TransitionData _transitionData = new TransitionData(_transition);
4012 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
4013 if (NDalicPINVOKE.SWIGPendingException.Pending)
4014 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4019 // From Container Base class
4021 /// Adds a child view to this view.
4023 /// <seealso cref="Container.Add" />
4024 /// <since_tizen> 4 </since_tizen>
4025 public override void Add(View child)
4027 bool hasLayout = (_layout != null);
4028 Log.Info("NUI", "Add:" + child.Name + " to View:" + Name + " which has layout[" + hasLayout + "] + \n");
4032 Tizen.Log.Fatal("NUI", "Child is null");
4036 Container oldParent = child.GetParent();
4037 if (oldParent != this)
4039 // If child already has a parent then re-parent child
4040 if (oldParent != null)
4042 oldParent.Remove(child);
4044 child.InternalParent = this;
4046 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4048 if (NDalicPINVOKE.SWIGPendingException.Pending)
4049 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4050 Children.Add(child);
4052 if (ChildAdded != null)
4054 ChildAddedEventArgs e = new ChildAddedEventArgs
4058 ChildAdded(this, e);
4060 BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
4065 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4067 /// <seealso cref="Container.Remove" />
4068 /// <since_tizen> 4 </since_tizen>
4069 public override void Remove(View child)
4071 if (!child || child.GetParent()==null) // Early out if child null.
4074 bool hasLayout = (_layout != null);
4075 Log.Info("NUI","Removing View:" + child.Name + " layout[" + hasLayout.ToString() +"]\n");
4077 // If View has a layout then do a deferred child removal
4078 // Actual child removal is performed by the layouting system so
4079 // transitions can be completed.
4082 (_layout as LayoutGroup)?.RemoveChildFromLayoutGroup( child );
4091 /// Retrieves a child view by index.
4093 /// <seealso cref="Container.GetChildAt" />
4094 /// <since_tizen> 4 </since_tizen>
4095 public override View GetChildAt(uint index)
4097 if (index < Children.Count)
4099 return Children[Convert.ToInt32(index)];
4108 /// Retrieves the number of children held by the view.
4110 /// <seealso cref="Container.GetChildCount" />
4111 /// <since_tizen> 4 </since_tizen>
4112 public override uint GetChildCount()
4114 return Convert.ToUInt32(Children.Count);
4118 /// Gets the views parent.
4120 /// <seealso cref="Container.GetParent()" />
4121 /// <since_tizen> 4 </since_tizen>
4122 public override Container GetParent()
4124 return this.InternalParent as Container;
4128 /// Queries whether the view has a focus.
4130 /// <returns>True if this view has a focus.</returns>
4131 /// <since_tizen> 3 </since_tizen>
4132 public bool HasFocus()
4135 if (swigCPtr.Handle != global::System.IntPtr.Zero)
4137 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4138 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4142 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4148 /// Sets the name of the style to be applied to the view.
4150 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4151 /// <since_tizen> 3 </since_tizen>
4152 public void SetStyleName(string styleName)
4154 Interop.View.View_SetStyleName(swigCPtr, styleName);
4155 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4159 /// Retrieves the name of the style to be applied to the view (if any).
4161 /// <returns>A string matching a style, or an empty string.</returns>
4162 /// <since_tizen> 3 </since_tizen>
4163 public string GetStyleName()
4165 string ret = Interop.View.View_GetStyleName(swigCPtr);
4166 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4171 /// Clears the background.
4173 /// <since_tizen> 3 </since_tizen>
4174 public void ClearBackground()
4176 Interop.View.View_ClearBackground(swigCPtr);
4177 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4184 /// This is an asynchronous method.
4186 /// <since_tizen> 3 </since_tizen>
4196 /// This is an asynchronous method.
4197 /// If the view is hidden, then the view and its children will not be rendered.
4198 /// 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.
4200 /// <since_tizen> 3 </since_tizen>
4207 /// Raises the view above all other views.
4210 /// Sibling order of views within the parent will be updated automatically.
4211 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4213 /// <since_tizen> 3 </since_tizen>
4214 public void RaiseToTop()
4216 var parentChildren = GetParent()?.Children;
4218 if (parentChildren != null)
4220 parentChildren.Remove(this);
4221 parentChildren.Add(this);
4223 Interop.NDalic.RaiseToTop(swigCPtr);
4224 if (NDalicPINVOKE.SWIGPendingException.Pending)
4225 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4231 /// Lowers the view to the bottom of all views.
4234 /// The sibling order of views within the parent will be updated automatically.
4235 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4237 /// <since_tizen> 3 </since_tizen>
4238 public void LowerToBottom()
4240 var parentChildren = GetParent()?.Children;
4242 if (parentChildren != null)
4244 parentChildren.Remove(this);
4245 parentChildren.Insert(0, this);
4247 Interop.NDalic.LowerToBottom(swigCPtr);
4248 if (NDalicPINVOKE.SWIGPendingException.Pending)
4249 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4254 /// Queries if all resources required by a view are loaded and ready.
4256 /// <remarks>Most resources are only loaded when the control is placed on the stage.
4258 /// <since_tizen> 3 </since_tizen>
4259 public bool IsResourceReady()
4261 bool ret = Interop.View.IsResourceReady(swigCPtr);
4262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4267 /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4269 /// <pre>The view has been initialized. </pre>
4270 /// <returns>The parent layer of view </returns>
4271 /// <since_tizen> 5 </since_tizen>
4272 public Layer GetLayer()
4274 //to fix memory leak issue, match the handle count with native side.
4275 IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4276 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4277 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4278 Interop.BaseHandle.delete_BaseHandle(CPtr);
4279 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4281 if (NDalicPINVOKE.SWIGPendingException.Pending)
4282 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4287 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4289 /// <pre>The (child) view has been initialized. </pre>
4290 /// <since_tizen> 4 </since_tizen>
4291 public void Unparent()
4293 GetParent()?.Remove(this);
4297 /// Search through this view's hierarchy for a view with the given name.
4298 /// The view itself is also considered in the search.
4300 /// <pre>The view has been initialized.</pre>
4301 /// <param name="viewName">The name of the view to find.</param>
4302 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4303 /// <since_tizen> 3 </since_tizen>
4304 public View FindChildByName(string viewName)
4306 //to fix memory leak issue, match the handle count with native side.
4307 IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4308 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4309 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4310 Interop.BaseHandle.delete_BaseHandle(CPtr);
4311 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4313 if (NDalicPINVOKE.SWIGPendingException.Pending)
4314 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4319 /// Converts screen coordinates into the view's coordinate system using the default camera.
4321 /// <pre>The view has been initialized.</pre>
4322 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4323 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4324 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4325 /// <param name="screenX">The screen X-coordinate.</param>
4326 /// <param name="screenY">The screen Y-coordinate.</param>
4327 /// <returns>True if the conversion succeeded.</returns>
4328 /// <since_tizen> 3 </since_tizen>
4329 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4331 bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4332 if (NDalicPINVOKE.SWIGPendingException.Pending)
4333 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4338 /// Sets the relative to parent size factor of the view.<br />
4339 /// This factor is only used when ResizePolicy is set to either:
4340 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4341 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4343 /// <pre>The view has been initialized.</pre>
4344 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4345 /// <since_tizen> 3 </since_tizen>
4346 public void SetSizeModeFactor(Vector3 factor)
4348 Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4349 if (NDalicPINVOKE.SWIGPendingException.Pending)
4350 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4353 /// Calculates the height of the view given a width.<br />
4354 /// The natural size is used for default calculation.<br />
4355 /// Size 0 is treated as aspect ratio 1:1.<br />
4357 /// <param name="width">The width to use.</param>
4358 /// <returns>The height based on the width.</returns>
4359 /// <since_tizen> 3 </since_tizen>
4360 public float GetHeightForWidth(float width)
4362 float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4363 if (NDalicPINVOKE.SWIGPendingException.Pending)
4364 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4369 /// Calculates the width of the view given a height.<br />
4370 /// The natural size is used for default calculation.<br />
4371 /// Size 0 is treated as aspect ratio 1:1.<br />
4373 /// <param name="height">The height to use.</param>
4374 /// <returns>The width based on the height.</returns>
4375 /// <since_tizen> 3 </since_tizen>
4376 public float GetWidthForHeight(float height)
4378 float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4379 if (NDalicPINVOKE.SWIGPendingException.Pending)
4380 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4385 /// Return the amount of size allocated for relayout.
4387 /// <param name="dimension">The dimension to retrieve.</param>
4388 /// <returns>Return the size.</returns>
4389 /// <since_tizen> 3 </since_tizen>
4390 public float GetRelayoutSize(DimensionType dimension)
4392 float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4393 if (NDalicPINVOKE.SWIGPendingException.Pending)
4394 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4399 /// Set the padding for the view.
4401 /// <param name="padding">Padding for the view.</param>
4402 /// <since_tizen> 3 </since_tizen>
4403 public void SetPadding(PaddingType padding)
4405 Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4406 if (NDalicPINVOKE.SWIGPendingException.Pending)
4407 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4411 /// Return the value of padding for the view.
4413 /// <param name="paddingOut">the value of padding for the view</param>
4414 /// <since_tizen> 3 </since_tizen>
4415 public void GetPadding(PaddingType paddingOut)
4417 Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4418 if (NDalicPINVOKE.SWIGPendingException.Pending)
4419 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4422 /// <since_tizen> 3 </since_tizen>
4423 public uint AddRenderer(Renderer renderer)
4425 uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4426 if (NDalicPINVOKE.SWIGPendingException.Pending)
4427 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4431 /// <since_tizen> 3 </since_tizen>
4432 public Renderer GetRendererAt(uint index)
4434 //to fix memory leak issue, match the handle count with native side.
4435 IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4436 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4437 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4438 if (cPtr != null && ret == null)
4440 ret = new Renderer(cPtr, false);
4441 if (NDalicPINVOKE.SWIGPendingException.Pending)
4442 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4445 Interop.BaseHandle.delete_BaseHandle(CPtr);
4446 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4448 if (NDalicPINVOKE.SWIGPendingException.Pending)
4449 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4453 /// <since_tizen> 3 </since_tizen>
4454 public void RemoveRenderer(Renderer renderer)
4456 Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4457 if (NDalicPINVOKE.SWIGPendingException.Pending)
4458 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4461 /// <since_tizen> 3 </since_tizen>
4462 public void RemoveRenderer(uint index)
4464 Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4465 if (NDalicPINVOKE.SWIGPendingException.Pending)
4466 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4469 internal void Raise()
4471 var parentChildren = GetParent()?.Children;
4473 if (parentChildren != null)
4475 int currentIndex = parentChildren.IndexOf(this);
4477 // If the view is not already the last item in the list.
4478 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4480 View temp = parentChildren[currentIndex + 1];
4481 parentChildren[currentIndex + 1] = this;
4482 parentChildren[currentIndex] = temp;
4484 Interop.NDalic.Raise(swigCPtr);
4485 if (NDalicPINVOKE.SWIGPendingException.Pending)
4486 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4491 internal void Lower()
4493 var parentChildren = GetParent()?.Children;
4495 if (parentChildren != null)
4497 int currentIndex = parentChildren.IndexOf(this);
4499 // If the view is not already the first item in the list.
4500 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4502 View temp = parentChildren[currentIndex - 1];
4503 parentChildren[currentIndex - 1] = this;
4504 parentChildren[currentIndex] = temp;
4506 Interop.NDalic.Lower(swigCPtr);
4507 if (NDalicPINVOKE.SWIGPendingException.Pending)
4508 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4514 /// Raises the view to above the target view.
4516 /// <remarks>The sibling order of views within the parent will be updated automatically.
4517 /// Views on the level above the target view will still be shown above this view.
4518 /// Raising this view above views with the same sibling order as each other will raise this view above them.
4519 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4521 /// <param name="target">Will be raised above this view.</param>
4522 internal void RaiseAbove(View target)
4524 var parentChildren = GetParent()?.Children;
4526 if (parentChildren != null)
4528 int currentIndex = parentChildren.IndexOf(this);
4529 int targetIndex = parentChildren.IndexOf(target);
4531 if (currentIndex < 0 || targetIndex < 0 ||
4532 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4534 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4537 // If the currentIndex is less than the target index and the target has the same parent.
4538 if (currentIndex < targetIndex)
4540 parentChildren.Remove(this);
4541 parentChildren.Insert(targetIndex, this);
4543 Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4544 if (NDalicPINVOKE.SWIGPendingException.Pending)
4545 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4552 /// Lowers the view to below the target view.
4554 /// <remarks>The sibling order of views within the parent will be updated automatically.
4555 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4556 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4558 /// <param name="target">Will be lowered below this view.</param>
4559 internal void LowerBelow(View target)
4561 var parentChildren = GetParent()?.Children;
4563 if (parentChildren != null)
4565 int currentIndex = parentChildren.IndexOf(this);
4566 int targetIndex = parentChildren.IndexOf(target);
4567 if (currentIndex < 0 || targetIndex < 0 ||
4568 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4570 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4574 // If the currentIndex is not already the 0th index and the target has the same parent.
4575 if ((currentIndex != 0) && (targetIndex != -1) &&
4576 (currentIndex > targetIndex))
4578 parentChildren.Remove(this);
4579 parentChildren.Insert(targetIndex, this);
4581 Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4582 if (NDalicPINVOKE.SWIGPendingException.Pending)
4583 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4589 internal string GetName()
4591 string ret = Interop.Actor.Actor_GetName(swigCPtr);
4592 if (NDalicPINVOKE.SWIGPendingException.Pending)
4593 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4597 internal void SetName(string name)
4599 Interop.Actor.Actor_SetName(swigCPtr, name);
4600 if (NDalicPINVOKE.SWIGPendingException.Pending)
4601 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4604 internal uint GetId()
4606 uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4607 if (NDalicPINVOKE.SWIGPendingException.Pending)
4608 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4612 internal bool IsRoot()
4614 bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4615 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4619 internal bool OnWindow()
4621 bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4622 if (NDalicPINVOKE.SWIGPendingException.Pending)
4623 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4627 internal View FindChildById(uint id)
4629 //to fix memory leak issue, match the handle count with native side.
4630 IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4631 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4632 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4633 Interop.BaseHandle.delete_BaseHandle(CPtr);
4634 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4636 if (NDalicPINVOKE.SWIGPendingException.Pending)
4637 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4641 internal override View FindCurrentChildById(uint id)
4643 return FindChildById(id);
4646 internal void SetParentOrigin(Vector3 origin)
4648 Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4649 if (NDalicPINVOKE.SWIGPendingException.Pending)
4650 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4653 internal Vector3 GetCurrentParentOrigin()
4655 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4656 if (NDalicPINVOKE.SWIGPendingException.Pending)
4657 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4661 internal void SetAnchorPoint(Vector3 anchorPoint)
4663 Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4664 if (NDalicPINVOKE.SWIGPendingException.Pending)
4665 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4668 internal Vector3 GetCurrentAnchorPoint()
4670 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4671 if (NDalicPINVOKE.SWIGPendingException.Pending)
4672 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4676 internal void SetSize(float width, float height)
4678 Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4679 if (NDalicPINVOKE.SWIGPendingException.Pending)
4680 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4683 internal void SetSize(float width, float height, float depth)
4685 Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4686 if (NDalicPINVOKE.SWIGPendingException.Pending)
4687 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4690 internal void SetSize(Vector2 size)
4692 Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4693 if (NDalicPINVOKE.SWIGPendingException.Pending)
4694 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4697 internal void SetSize(Vector3 size)
4699 Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4700 if (NDalicPINVOKE.SWIGPendingException.Pending)
4701 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4704 internal Vector3 GetTargetSize()
4706 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4707 if (NDalicPINVOKE.SWIGPendingException.Pending)
4708 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4712 internal Size2D GetCurrentSize()
4714 Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4715 if (NDalicPINVOKE.SWIGPendingException.Pending)
4716 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4717 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4721 internal Vector3 GetNaturalSize()
4723 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4724 if (NDalicPINVOKE.SWIGPendingException.Pending)
4725 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4729 internal void SetPosition(float x, float y)
4731 Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4732 if (NDalicPINVOKE.SWIGPendingException.Pending)
4733 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4736 internal void SetPosition(float x, float y, float z)
4738 Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4739 if (NDalicPINVOKE.SWIGPendingException.Pending)
4740 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4743 internal void SetPosition(Vector3 position)
4745 Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4746 if (NDalicPINVOKE.SWIGPendingException.Pending)
4747 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4750 internal void SetX(float x)
4752 Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4753 if (NDalicPINVOKE.SWIGPendingException.Pending)
4754 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4757 internal void SetY(float y)
4759 Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4760 if (NDalicPINVOKE.SWIGPendingException.Pending)
4761 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4764 internal void SetZ(float z)
4766 Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4767 if (NDalicPINVOKE.SWIGPendingException.Pending)
4768 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4771 internal void TranslateBy(Vector3 distance)
4773 Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4774 if (NDalicPINVOKE.SWIGPendingException.Pending)
4775 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4778 internal Position GetCurrentPosition()
4780 Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4781 if (NDalicPINVOKE.SWIGPendingException.Pending)
4782 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4786 internal Vector3 GetCurrentWorldPosition()
4788 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4789 if (NDalicPINVOKE.SWIGPendingException.Pending)
4790 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4794 internal void SetInheritPosition(bool inherit)
4796 Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4797 if (NDalicPINVOKE.SWIGPendingException.Pending)
4798 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4801 internal bool IsPositionInherited()
4803 bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4804 if (NDalicPINVOKE.SWIGPendingException.Pending)
4805 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4809 internal void SetOrientation(Degree angle, Vector3 axis)
4811 Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4812 if (NDalicPINVOKE.SWIGPendingException.Pending)
4813 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4816 internal void SetOrientation(Radian angle, Vector3 axis)
4818 Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4819 if (NDalicPINVOKE.SWIGPendingException.Pending)
4820 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4823 internal void SetOrientation(Rotation orientation)
4825 Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4826 if (NDalicPINVOKE.SWIGPendingException.Pending)
4827 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4830 internal void RotateBy(Degree angle, Vector3 axis)
4832 Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4833 if (NDalicPINVOKE.SWIGPendingException.Pending)
4834 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4837 internal void RotateBy(Radian angle, Vector3 axis)
4839 Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4840 if (NDalicPINVOKE.SWIGPendingException.Pending)
4841 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4844 internal void RotateBy(Rotation relativeRotation)
4846 Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4847 if (NDalicPINVOKE.SWIGPendingException.Pending)
4848 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4851 internal Rotation GetCurrentOrientation()
4853 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4854 if (NDalicPINVOKE.SWIGPendingException.Pending)
4855 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4859 internal void SetInheritOrientation(bool inherit)
4861 Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4862 if (NDalicPINVOKE.SWIGPendingException.Pending)
4863 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4866 internal bool IsOrientationInherited()
4868 bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
4869 if (NDalicPINVOKE.SWIGPendingException.Pending)
4870 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4874 internal Rotation GetCurrentWorldOrientation()
4876 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
4877 if (NDalicPINVOKE.SWIGPendingException.Pending)
4878 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4882 internal void SetScale(float scale)
4884 Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
4885 if (NDalicPINVOKE.SWIGPendingException.Pending)
4886 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4889 internal void SetScale(float scaleX, float scaleY, float scaleZ)
4891 Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
4892 if (NDalicPINVOKE.SWIGPendingException.Pending)
4893 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4896 internal void SetScale(Vector3 scale)
4898 Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
4899 if (NDalicPINVOKE.SWIGPendingException.Pending)
4900 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4903 internal void ScaleBy(Vector3 relativeScale)
4905 Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
4906 if (NDalicPINVOKE.SWIGPendingException.Pending)
4907 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4910 internal Vector3 GetCurrentScale()
4912 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
4913 if (NDalicPINVOKE.SWIGPendingException.Pending)
4914 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4918 internal Vector3 GetCurrentWorldScale()
4920 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
4921 if (NDalicPINVOKE.SWIGPendingException.Pending)
4922 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4926 internal void SetInheritScale(bool inherit)
4928 Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
4929 if (NDalicPINVOKE.SWIGPendingException.Pending)
4930 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4933 internal bool IsScaleInherited()
4935 bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
4936 if (NDalicPINVOKE.SWIGPendingException.Pending)
4937 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4941 internal Matrix GetCurrentWorldMatrix()
4943 Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
4944 if (NDalicPINVOKE.SWIGPendingException.Pending)
4945 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4949 internal void SetVisible(bool visible)
4951 Interop.Actor.Actor_SetVisible(swigCPtr, visible);
4952 if (NDalicPINVOKE.SWIGPendingException.Pending)
4953 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4956 internal bool IsVisible()
4958 bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
4959 if (NDalicPINVOKE.SWIGPendingException.Pending)
4960 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4964 internal void SetOpacity(float opacity)
4966 Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
4967 if (NDalicPINVOKE.SWIGPendingException.Pending)
4968 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4971 internal float GetCurrentOpacity()
4973 float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
4974 if (NDalicPINVOKE.SWIGPendingException.Pending)
4975 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4979 internal void SetColor(Vector4 color)
4981 Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
4982 if (NDalicPINVOKE.SWIGPendingException.Pending)
4983 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4986 internal Vector4 GetCurrentColor()
4988 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
4989 if (NDalicPINVOKE.SWIGPendingException.Pending)
4990 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4994 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
4995 [EditorBrowsable(EditorBrowsableState.Never)]
4996 public void SetColorMode(ColorMode colorMode)
4998 Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
4999 if (NDalicPINVOKE.SWIGPendingException.Pending)
5000 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5003 internal ColorMode GetColorMode()
5005 ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
5006 if (NDalicPINVOKE.SWIGPendingException.Pending)
5007 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5011 internal Vector4 GetCurrentWorldColor()
5013 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
5014 if (NDalicPINVOKE.SWIGPendingException.Pending)
5015 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5019 internal void SetDrawMode(DrawModeType drawMode)
5021 Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
5022 if (NDalicPINVOKE.SWIGPendingException.Pending)
5023 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5026 internal DrawModeType GetDrawMode()
5028 DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
5029 if (NDalicPINVOKE.SWIGPendingException.Pending)
5030 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5034 internal void SetKeyboardFocusable(bool focusable)
5036 Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5037 if (NDalicPINVOKE.SWIGPendingException.Pending)
5038 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5041 internal bool IsKeyboardFocusable()
5043 bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5044 if (NDalicPINVOKE.SWIGPendingException.Pending)
5045 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5049 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5051 Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5052 if (NDalicPINVOKE.SWIGPendingException.Pending)
5053 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5056 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5058 ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5059 if (NDalicPINVOKE.SWIGPendingException.Pending)
5060 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5064 internal Vector3 GetSizeModeFactor()
5066 Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5067 if (NDalicPINVOKE.SWIGPendingException.Pending)
5068 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5072 internal void SetMinimumSize(Vector2 size)
5074 Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5075 if (NDalicPINVOKE.SWIGPendingException.Pending)
5076 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5079 internal Vector2 GetMinimumSize()
5081 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5082 if (NDalicPINVOKE.SWIGPendingException.Pending)
5083 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5087 internal void SetMaximumSize(Vector2 size)
5089 Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5090 if (NDalicPINVOKE.SWIGPendingException.Pending)
5091 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5094 internal Vector2 GetMaximumSize()
5096 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5097 if (NDalicPINVOKE.SWIGPendingException.Pending)
5098 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5102 internal int GetHierarchyDepth()
5104 int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5105 if (NDalicPINVOKE.SWIGPendingException.Pending)
5106 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5110 internal uint GetRendererCount()
5112 uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5113 if (NDalicPINVOKE.SWIGPendingException.Pending)
5114 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5118 internal TouchDataSignal TouchSignal()
5120 TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5121 if (NDalicPINVOKE.SWIGPendingException.Pending)
5122 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5126 internal HoverSignal HoveredSignal()
5128 HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5129 if (NDalicPINVOKE.SWIGPendingException.Pending)
5130 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5134 internal WheelSignal WheelEventSignal()
5136 WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5137 if (NDalicPINVOKE.SWIGPendingException.Pending)
5138 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5142 internal ViewSignal OnWindowSignal()
5144 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5145 if (NDalicPINVOKE.SWIGPendingException.Pending)
5146 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5150 internal ViewSignal OffWindowSignal()
5152 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5153 if (NDalicPINVOKE.SWIGPendingException.Pending)
5154 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5158 internal ViewSignal OnRelayoutSignal()
5160 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5161 if (NDalicPINVOKE.SWIGPendingException.Pending)
5162 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5166 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5168 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5169 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5173 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5175 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5176 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5180 internal ViewSignal ResourcesLoadedSignal()
5182 ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5183 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5187 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5189 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5192 internal bool IsTopLevelView()
5194 if (GetParent() is Layer)
5201 internal void SetKeyInputFocus()
5203 Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5204 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5207 internal void ClearKeyInputFocus()
5209 Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5210 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5213 internal PinchGestureDetector GetPinchGestureDetector()
5215 PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5220 internal PanGestureDetector GetPanGestureDetector()
5222 PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5223 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5227 internal TapGestureDetector GetTapGestureDetector()
5229 TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5230 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5234 internal LongPressGestureDetector GetLongPressGestureDetector()
5236 LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5237 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5241 internal ControlKeySignal KeyEventSignal()
5243 ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5244 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5248 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5250 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5251 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5255 internal KeyInputFocusSignal KeyInputFocusLostSignal()
5257 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5258 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5262 internal IntPtr GetPtrfromView()
5264 return (IntPtr)swigCPtr;
5267 internal void RemoveChild(View child)
5269 // Do actual child removal
5270 Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
5271 if (NDalicPINVOKE.SWIGPendingException.Pending)
5272 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5274 Children.Remove(child);
5275 child.InternalParent = null;
5277 if (ChildRemoved != null)
5279 ChildRemovedEventArgs e = new ChildRemovedEventArgs
5283 ChildRemoved(this, e);
5288 /// Removes the layout from this View.
5290 internal void ResetLayout()
5295 internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5297 return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5301 /// you can override it to clean-up your own resources.
5303 /// <param name="type">DisposeTypes</param>
5304 /// <since_tizen> 3 </since_tizen>
5305 protected override void Dispose(DisposeTypes type)
5312 //_mergedStyle = null;
5314 if (type == DisposeTypes.Explicit)
5317 //Release your own managed resources here.
5318 //You should release all of your own disposable objects here.
5321 //Release your own unmanaged resources here.
5322 //You should not access any managed member here except static instance.
5323 //because the execution order of Finalizes is non-deterministic.
5326 DisConnectFromSignals();
5329 if (swigCPtr.Handle != global::System.IntPtr.Zero)
5333 swigCMemOwn = false;
5334 Interop.View.delete_View(swigCPtr);
5336 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5339 foreach (View view in Children)
5341 view.InternalParent = null;
5348 private void OnSize2DChanged(int width, int height)
5350 Size2D = new Size2D(width, height);
5353 private void OnPosition2DChanged(int x, int y)
5355 Position2D = new Position2D(x, y);
5358 private void DisConnectFromSignals()
5360 // Save current CPtr.
5361 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5363 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5364 swigCPtr = GetBaseHandleCPtrHandleRef;
5366 if (_onRelayoutEventCallback != null)
5368 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5371 if (_offWindowEventCallback != null)
5373 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5376 if (_onWindowEventCallback != null)
5378 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5381 if (_wheelEventCallback != null)
5383 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5386 if (_hoverEventCallback != null)
5388 this.HoveredSignal().Disconnect(_hoverEventCallback);
5391 if (_touchDataCallback != null)
5393 this.TouchSignal().Disconnect(_touchDataCallback);
5396 if (_ResourcesLoadedCallback != null)
5398 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5401 if (_offWindowEventCallback != null)
5403 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5406 if (_onWindowEventCallback != null)
5408 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5411 if (_wheelEventCallback != null)
5413 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5416 if (_hoverEventCallback != null)
5418 this.HoveredSignal().Disconnect(_hoverEventCallback);
5421 if (_touchDataCallback != null)
5423 this.TouchSignal().Disconnect(_touchDataCallback);
5426 if (_onRelayoutEventCallback != null)
5428 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5431 if (_keyCallback != null)
5433 this.KeyEventSignal().Disconnect(_keyCallback);
5436 if (_keyInputFocusLostCallback != null)
5438 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5441 if (_keyInputFocusGainedCallback != null)
5443 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5446 if (_backgroundResourceLoadedCallback != null)
5448 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5451 if (_onWindowSendEventCallback != null)
5453 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5456 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5457 // Restore current CPtr.
5458 swigCPtr = currentCPtr;
5461 private void OnKeyInputFocusGained(IntPtr view)
5463 if (_keyInputFocusGainedEventHandler != null)
5465 _keyInputFocusGainedEventHandler(this, null);
5469 private void OnKeyInputFocusLost(IntPtr view)
5471 if (_keyInputFocusLostEventHandler != null)
5473 _keyInputFocusLostEventHandler(this, null);
5477 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5479 if (keyEvent == global::System.IntPtr.Zero)
5481 NUILog.Error("keyEvent should not be null!");
5485 KeyEventArgs e = new KeyEventArgs();
5487 bool result = false;
5489 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5491 if (_keyEventHandler != null)
5493 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5495 // Oring the result of each callback.
5496 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5498 result |= del(this, e);
5505 // Callback for View OnRelayout signal
5506 private void OnRelayout(IntPtr data)
5508 if (_onRelayoutEventHandler != null)
5510 _onRelayoutEventHandler(this, null);
5514 // Callback for View TouchSignal
5515 private bool OnTouch(IntPtr view, IntPtr touchData)
5517 if (touchData == global::System.IntPtr.Zero)
5519 NUILog.Error("touchData should not be null!");
5523 TouchEventArgs e = new TouchEventArgs();
5525 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5527 if (_touchDataEventHandler != null)
5529 return _touchDataEventHandler(this, e);
5534 // Callback for View Hover signal
5535 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5537 if (hoverEvent == global::System.IntPtr.Zero)
5539 NUILog.Error("hoverEvent should not be null!");
5543 HoverEventArgs e = new HoverEventArgs();
5545 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5547 if (_hoverEventHandler != null)
5549 return _hoverEventHandler(this, e);
5554 // Callback for View Wheel signal
5555 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5557 if (wheelEvent == global::System.IntPtr.Zero)
5559 NUILog.Error("wheelEvent should not be null!");
5563 WheelEventArgs e = new WheelEventArgs();
5565 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5567 if (_wheelEventHandler != null)
5569 return _wheelEventHandler(this, e);
5574 // Callback for View OnWindow signal
5575 private void OnWindow(IntPtr data)
5577 if (_onWindowEventHandler != null)
5579 _onWindowEventHandler(this, null);
5583 // Callback for View OffWindow signal
5584 private void OffWindow(IntPtr data)
5586 if (_offWindowEventHandler != null)
5588 _offWindowEventHandler(this, null);
5592 // Callback for View visibility change signal
5593 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5595 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5598 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5600 e.Visibility = visibility;
5603 if (_visibilityChangedEventHandler != null)
5605 _visibilityChangedEventHandler(this, e);
5609 // Callback for View layout direction change signal
5610 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5612 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5615 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5619 if (_layoutDirectionChangedEventHandler != null)
5621 _layoutDirectionChangedEventHandler(this, e);
5625 private void OnResourcesLoaded(IntPtr view)
5627 if (_resourcesLoadedEventHandler != null)
5629 _resourcesLoadedEventHandler(this, null);
5633 private View ConvertIdToView(uint id)
5635 View view = GetParent()?.FindCurrentChildById(id);
5637 //If we can't find the parent's children, find in the top layer.
5640 Container parent = GetParent();
5641 while ((parent is View) && (parent != null))
5643 parent = parent.GetParent();
5644 if (parent is Layer)
5646 view = parent.FindCurrentChildById(id);
5655 private void OnBackgroundResourceLoaded(IntPtr view)
5657 BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5658 e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5660 if (_backgroundResourceLoadedEventHandler != null)
5662 _backgroundResourceLoadedEventHandler(this, e);
5667 /// Event argument passed through the ChildAdded event.
5669 /// <since_tizen> 5 </since_tizen>
5670 public class ChildAddedEventArgs : EventArgs
5673 /// Added child view at moment.
5675 /// <since_tizen> 5 </since_tizen>
5676 public View Added { get; set; }
5680 /// Event argument passed through the ChildRemoved event.
5682 /// <since_tizen> 5 </since_tizen>
5683 public class ChildRemovedEventArgs : EventArgs
5686 /// Removed child view at moment.
5688 /// <since_tizen> 5 </since_tizen>
5689 public View Removed { get; set; }
5693 /// Event arguments that passed via the KeyEvent signal.
5695 /// <since_tizen> 3 </since_tizen>
5696 public class KeyEventArgs : EventArgs
5701 /// Key - is the key sent to the view.
5703 /// <since_tizen> 3 </since_tizen>
5718 /// Event arguments that passed via the touch signal.
5720 /// <since_tizen> 3 </since_tizen>
5721 public class TouchEventArgs : EventArgs
5723 private Touch _touch;
5726 /// Touch - contains the information of touch points.
5728 /// <since_tizen> 3 </since_tizen>
5743 /// Event arguments that passed via the hover signal.
5745 /// <since_tizen> 3 </since_tizen>
5746 public class HoverEventArgs : EventArgs
5748 private Hover _hover;
5751 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5753 /// <since_tizen> 3 </since_tizen>
5768 /// Event arguments that passed via the wheel signal.
5770 /// <since_tizen> 3 </since_tizen>
5771 public class WheelEventArgs : EventArgs
5773 private Wheel _wheel;
5776 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5778 /// <since_tizen> 3 </since_tizen>
5793 /// Event arguments of visibility changed.
5795 /// <since_tizen> 3 </since_tizen>
5796 public class VisibilityChangedEventArgs : EventArgs
5799 private bool _visibility;
5800 private VisibilityChangeType _type;
5803 /// The view, or child of view, whose visibility has changed.
5805 /// <since_tizen> 3 </since_tizen>
5819 /// Whether the view is now visible or not.
5821 /// <since_tizen> 3 </since_tizen>
5822 public bool Visibility
5830 _visibility = value;
5835 /// Whether the view's visible property has changed or a parent's.
5837 /// <since_tizen> 3 </since_tizen>
5838 public VisibilityChangeType Type
5852 /// Event arguments of layout direction changed.
5854 /// <since_tizen> 4 </since_tizen>
5855 public class LayoutDirectionChangedEventArgs : EventArgs
5858 private ViewLayoutDirectionType _type;
5861 /// The view, or child of view, whose layout direction has changed.
5863 /// <since_tizen> 4 </since_tizen>
5877 /// Whether the view's layout direction property has changed or a parent's.
5879 /// <since_tizen> 4 </since_tizen>
5880 public ViewLayoutDirectionType Type
5894 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
5896 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5897 [EditorBrowsable(EditorBrowsableState.Never)]
5898 public Transition GetTransition(string transitionName)
5900 Transition trans = null;
5901 transDictionary.TryGetValue(transitionName, out trans);
5905 private void LoadTransitions()
5907 foreach (string str in transitionNames)
5909 string resourceName = str + ".xaml";
5910 Transition trans = null;
5912 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
5914 string likelyResourcePath = resource + "animation/" + resourceName;
5916 if (File.Exists(likelyResourcePath))
5918 trans = Extensions.LoadObject<Transition>(likelyResourcePath);
5922 transDictionary.Add(trans.Name, trans);
5927 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5928 [EditorBrowsable(EditorBrowsableState.Never)]
5929 public string[] TransitionNames
5933 return transitionNames;
5937 transitionNames = value;
5941 private string[] transitionNames;
5943 internal class BackgroundResourceLoadedEventArgs : EventArgs
5945 private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
5946 public ResourceLoadingStatusType Status
5959 internal class Property
5961 internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
5962 internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
5963 internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
5964 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
5965 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
5966 internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
5967 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
5968 internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
5969 internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
5970 internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
5971 internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
5972 internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
5973 internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
5974 internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
5975 internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
5976 internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
5977 internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
5978 internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
5979 internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
5980 internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
5981 internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
5982 internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
5983 internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
5984 internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
5985 internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
5986 internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
5987 internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
5988 internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
5989 internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
5990 internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
5991 internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
5992 internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
5993 internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
5994 internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
5995 internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
5996 internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
5997 internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
5998 internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
5999 internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
6000 internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
6001 internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
6002 internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
6003 internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
6004 internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
6005 internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
6006 internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
6007 internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
6008 internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
6009 internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
6010 internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
6011 internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
6012 internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
6013 internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
6014 internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
6015 internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
6016 internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
6017 internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
6018 internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
6019 internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
6020 internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
6021 internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
6022 internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
6023 internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();