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));
3426 _layout?.RequestLayout();
3431 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
3433 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3435 /// Previously named LayoutHeightSpecification
3437 [EditorBrowsable(EditorBrowsableState.Never)]
3438 public int HeightSpecification
3442 return _heightPolicy;
3446 _heightPolicy = value;
3447 if (_heightPolicy >= 0)
3449 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3450 Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3452 _layout?.RequestLayout();
3457 /// Gets the List of transitions for this View.
3459 /// Hidden-API which is usually used as Inhouse-API. If required to be opened as Public-API, ACR process is needed.
3460 [EditorBrowsable(EditorBrowsableState.Never)]
3461 public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
3465 if (_layoutTransitions == null)
3467 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3469 return _layoutTransitions;
3473 internal LayoutTransition LayoutTransition
3477 if (_layoutTransitions == null)
3479 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3481 LayoutTransitionsHelper.AddTransitionForCondition(_layoutTransitions,value.Condition,value, true);
3483 AttachTransitionsToChildren(value);
3488 /// [Obsolete("Please do not use! this will be deprecated")]
3490 /// Please do not use! this will be deprecated!
3491 /// Instead please use Padding.
3492 /// <since_tizen> 4 </since_tizen>
3493 [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
3494 [EditorBrowsable(EditorBrowsableState.Never)]
3495 public Extents PaddingEX
3499 Extents temp = new Extents(0, 0, 0, 0);
3500 GetProperty(View.Property.PADDING).Get(temp);
3505 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3506 NotifyPropertyChanged();
3507 _layout?.RequestLayout();
3511 /// <since_tizen> 6 </since_tizen>
3512 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
3513 [EditorBrowsable(EditorBrowsableState.Never)]
3514 public Style XamlStyle
3518 return (Style)GetValue(XamlStyleProperty);
3522 SetValue(XamlStyleProperty, value);
3527 /// The Color of View. This is an RGBA value.
3529 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3530 [EditorBrowsable(EditorBrowsableState.Never)]
3539 return GetCurrentColor();
3544 /// The color mode of View.
3545 /// This specifies whether the View uses its own color, or inherits its parent color.
3546 /// The default is ColorMode.UseOwnMultiplyParentColor.
3548 internal ColorMode ColorMode
3552 SetColorMode(value);
3556 return GetColorMode();
3560 internal float Weight
3569 _layout?.RequestLayout();
3574 /// Whether to load the BackgroundImage synchronously.
3575 /// If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
3576 /// Note: For Normal Quad images only.
3578 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3579 [EditorBrowsable(EditorBrowsableState.Never)]
3580 public bool BackgroundImageSynchronosLoading
3584 return _backgroundImageSynchronosLoading;
3588 if (value != _backgroundImageSynchronosLoading)
3591 PropertyMap bgMap = this.Background;
3593 bgMap.Find(Visual.Property.Type)?.Get(out visualType);
3594 if (visualType == (int)Visual.Type.Image)
3596 bgMap.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3598 if (bgUrl.Length != 0)
3600 _backgroundImageSynchronosLoading = value;
3601 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3602 this.Background = bgMap;
3608 internal float WorldPositionX
3613 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3618 internal float WorldPositionY
3623 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3628 internal float WorldPositionZ
3633 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3638 internal bool FocusState
3642 return IsKeyboardFocusable();
3646 SetKeyboardFocusable(value);
3651 /// Set the layout on this View. Replaces any existing Layout.
3653 internal LayoutItem Layout
3661 // Do nothing if layout provided is already set on this View.
3662 if (value == _layout)
3667 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3668 layoutingDisabled = false;
3671 // If new layout being set already has a owner then that owner receives a replacement default layout.
3672 // First check if the layout to be set already has a owner.
3673 if (value?.Owner != null)
3675 Log.Info("NUI", "Set layout already in use by another View: " + value.Owner.Name + "will get a LayoutGroup\n");
3676 // Previous owner of the layout gets a default layout as a replacement.
3677 value.Owner.Layout = new LayoutGroup();
3679 // Copy Margin and Padding to replacement LayoutGroup.
3680 value.Owner.Layout.Margin = value.Margin;
3681 value.Owner.Layout.Padding = value.Padding;
3684 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3685 // View if no replacement. Previously margin and padding values would have been moved from
3686 // the View to the layout.
3687 if (_layout != null ) // Existing layout
3691 // Existing layout being replaced so copy over margin and padding values.
3692 value.Margin = _layout.Margin;
3693 value.Padding = _layout.Padding;
3697 // Layout not being replaced so restore margin and padding to View.
3698 SetValue(MarginProperty, _layout.Margin);
3699 SetValue(PaddingProperty, _layout.Padding);
3700 NotifyPropertyChanged();
3705 // First Layout to be added to the View hence copy
3707 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3710 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3712 // If View already has a margin set then store it in Layout instead.
3713 value.Margin = Margin;
3714 SetValue(MarginProperty, new Extents(0,0,0,0));
3715 NotifyPropertyChanged();
3718 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3720 // If View already has a padding set then store it in Layout instead.
3721 value.Padding = Padding;
3722 SetValue(PaddingProperty, new Extents(0,0,0,0));
3723 NotifyPropertyChanged();
3728 // Remove existing layout from it's parent layout group.
3729 _layout?.Unparent();
3731 // Set layout to this view
3736 internal void SetLayout(LayoutItem layout)
3739 _layout?.AttachToOwner(this);
3740 _layout?.RequestLayout();
3744 /// Stores the calculated width value and its ModeType. Width component.
3746 internal MeasureSpecification MeasureSpecificationWidth
3750 _measureSpecificationWidth = value;
3751 _layout?.RequestLayout();
3755 return _measureSpecificationWidth;
3760 /// Stores the calculated width value and its ModeType. Height component.
3762 internal MeasureSpecification MeasureSpecificationHeight
3766 _measureSpecificationHeight = value;
3767 _layout?.RequestLayout();
3771 return _measureSpecificationHeight;
3775 internal void AttachTransitionsToChildren(LayoutTransition transition)
3777 // Iterate children, adding the transition unless a transition
3778 // for the same condition and property has already been
3779 // explicitly added.
3780 foreach (View view in Children)
3782 LayoutTransitionsHelper.AddTransitionForCondition(view.LayoutTransitions,transition.Condition, transition, false);
3786 internal float ParentOriginX
3791 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3796 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3797 NotifyPropertyChanged();
3801 internal float ParentOriginY
3806 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3811 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3812 NotifyPropertyChanged();
3816 internal float ParentOriginZ
3821 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3826 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3827 NotifyPropertyChanged();
3831 internal float PivotPointX
3836 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3841 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3845 internal float PivotPointY
3850 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3855 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3859 internal float PivotPointZ
3864 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3869 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3873 internal Matrix WorldMatrix
3877 Matrix temp = new Matrix();
3878 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3883 private int LeftFocusableViewId
3888 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
3893 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3897 private int RightFocusableViewId
3902 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
3907 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3911 private int UpFocusableViewId
3916 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
3921 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3925 private int DownFocusableViewId
3930 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
3935 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3940 /// Perform an action on a visual registered to this view. <br />
3941 /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
3943 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
3944 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
3945 /// <param name="attributes">Optional attributes for the action.</param>
3946 /// <since_tizen> 5 </since_tizen>
3947 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
3949 Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
3950 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3954 /// Creates an animation to animate the background color visual. If there is no
3955 /// background visual, creates one with transparent black as it's mixColor.
3957 /// <since_tizen> 3 </since_tizen>
3958 public Animation AnimateBackgroundColor(object destinationValue,
3961 AlphaFunction.BuiltinFunctions? alphaFunction = null,
3962 object initialValue = null)
3964 Tizen.NUI.PropertyMap background = Background;
3966 if (background.Empty())
3968 // If there is no background yet, ensure there is a transparent
3970 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
3971 background = Background;
3973 return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
3977 /// Creates an animation to animate the mixColor of the named visual.
3979 /// <since_tizen> 3 </since_tizen>
3980 public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
3982 Animation animation = null;
3984 PropertyMap _animator = new PropertyMap();
3985 if (alphaFunction != null)
3987 _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
3990 PropertyMap _timePeriod = new PropertyMap();
3991 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
3992 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
3993 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
3995 PropertyMap _transition = new PropertyMap();
3996 _transition.Add("animator", new PropertyValue(_animator));
3997 _transition.Add("target", new PropertyValue(targetVisual));
3998 _transition.Add("property", new PropertyValue("mixColor"));
4000 if (initialColor != null)
4002 PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
4003 _transition.Add("initialValue", initValue);
4006 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
4007 _transition.Add("targetValue", destValue);
4008 TransitionData _transitionData = new TransitionData(_transition);
4010 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
4011 if (NDalicPINVOKE.SWIGPendingException.Pending)
4012 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4017 // From Container Base class
4019 /// Adds a child view to this view.
4021 /// <seealso cref="Container.Add" />
4022 /// <since_tizen> 4 </since_tizen>
4023 public override void Add(View child)
4025 bool hasLayout = (_layout != null);
4026 Log.Info("NUI", "Add:" + child.Name + " to View:" + Name + " which has layout[" + hasLayout + "] + \n");
4030 Tizen.Log.Fatal("NUI", "Child is null");
4034 Container oldParent = child.GetParent();
4035 if (oldParent != this)
4037 // If child already has a parent then re-parent child
4038 if (oldParent != null)
4040 oldParent.Remove(child);
4042 child.InternalParent = this;
4044 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4046 if (NDalicPINVOKE.SWIGPendingException.Pending)
4047 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4048 Children.Add(child);
4050 if (ChildAdded != null)
4052 ChildAddedEventArgs e = new ChildAddedEventArgs
4056 ChildAdded(this, e);
4058 BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
4063 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4065 /// <seealso cref="Container.Remove" />
4066 /// <since_tizen> 4 </since_tizen>
4067 public override void Remove(View child)
4069 if (!child || child.GetParent()==null) // Early out if child null.
4072 bool hasLayout = (_layout != null);
4073 Log.Info("NUI","Removing View:" + child.Name + "layout[" + hasLayout.ToString() +"]\n");
4075 // If View has a layout then do a deferred child removal
4076 // Actual child removal is performed by the layouting system so
4077 // transitions can be completed.
4080 (_layout as LayoutGroup)?.RemoveChildFromLayoutGroup( child );
4089 /// Retrieves a child view by index.
4091 /// <seealso cref="Container.GetChildAt" />
4092 /// <since_tizen> 4 </since_tizen>
4093 public override View GetChildAt(uint index)
4095 if (index < Children.Count)
4097 return Children[Convert.ToInt32(index)];
4106 /// Retrieves the number of children held by the view.
4108 /// <seealso cref="Container.GetChildCount" />
4109 /// <since_tizen> 4 </since_tizen>
4110 public override uint GetChildCount()
4112 return Convert.ToUInt32(Children.Count);
4116 /// Gets the views parent.
4118 /// <seealso cref="Container.GetParent()" />
4119 /// <since_tizen> 4 </since_tizen>
4120 public override Container GetParent()
4122 return this.InternalParent as Container;
4126 /// Queries whether the view has a focus.
4128 /// <returns>True if this view has a focus.</returns>
4129 /// <since_tizen> 3 </since_tizen>
4130 public bool HasFocus()
4133 if (swigCPtr.Handle != global::System.IntPtr.Zero)
4135 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4140 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4146 /// Sets the name of the style to be applied to the view.
4148 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4149 /// <since_tizen> 3 </since_tizen>
4150 public void SetStyleName(string styleName)
4152 Interop.View.View_SetStyleName(swigCPtr, styleName);
4153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4157 /// Retrieves the name of the style to be applied to the view (if any).
4159 /// <returns>A string matching a style, or an empty string.</returns>
4160 /// <since_tizen> 3 </since_tizen>
4161 public string GetStyleName()
4163 string ret = Interop.View.View_GetStyleName(swigCPtr);
4164 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4169 /// Clears the background.
4171 /// <since_tizen> 3 </since_tizen>
4172 public void ClearBackground()
4174 Interop.View.View_ClearBackground(swigCPtr);
4175 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4182 /// This is an asynchronous method.
4184 /// <since_tizen> 3 </since_tizen>
4194 /// This is an asynchronous method.
4195 /// If the view is hidden, then the view and its children will not be rendered.
4196 /// 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.
4198 /// <since_tizen> 3 </since_tizen>
4205 /// Raises the view above all other views.
4208 /// Sibling order of views within the parent will be updated automatically.
4209 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4211 /// <since_tizen> 3 </since_tizen>
4212 public void RaiseToTop()
4214 var parentChildren = GetParent()?.Children;
4216 if (parentChildren != null)
4218 parentChildren.Remove(this);
4219 parentChildren.Add(this);
4221 Interop.NDalic.RaiseToTop(swigCPtr);
4222 if (NDalicPINVOKE.SWIGPendingException.Pending)
4223 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4229 /// Lowers the view to the bottom of all views.
4232 /// The sibling order of views within the parent will be updated automatically.
4233 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4235 /// <since_tizen> 3 </since_tizen>
4236 public void LowerToBottom()
4238 var parentChildren = GetParent()?.Children;
4240 if (parentChildren != null)
4242 parentChildren.Remove(this);
4243 parentChildren.Insert(0, this);
4245 Interop.NDalic.LowerToBottom(swigCPtr);
4246 if (NDalicPINVOKE.SWIGPendingException.Pending)
4247 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4252 /// Queries if all resources required by a view are loaded and ready.
4254 /// <remarks>Most resources are only loaded when the control is placed on the stage.
4256 /// <since_tizen> 3 </since_tizen>
4257 public bool IsResourceReady()
4259 bool ret = Interop.View.IsResourceReady(swigCPtr);
4260 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4265 /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4267 /// <pre>The view has been initialized. </pre>
4268 /// <returns>The parent layer of view </returns>
4269 /// <since_tizen> 5 </since_tizen>
4270 public Layer GetLayer()
4272 //to fix memory leak issue, match the handle count with native side.
4273 IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4274 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4275 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4276 Interop.BaseHandle.delete_BaseHandle(CPtr);
4277 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4279 if (NDalicPINVOKE.SWIGPendingException.Pending)
4280 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4285 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4287 /// <pre>The (child) view has been initialized. </pre>
4288 /// <since_tizen> 4 </since_tizen>
4289 public void Unparent()
4291 GetParent()?.Remove(this);
4295 /// Search through this view's hierarchy for a view with the given name.
4296 /// The view itself is also considered in the search.
4298 /// <pre>The view has been initialized.</pre>
4299 /// <param name="viewName">The name of the view to find.</param>
4300 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4301 /// <since_tizen> 3 </since_tizen>
4302 public View FindChildByName(string viewName)
4304 //to fix memory leak issue, match the handle count with native side.
4305 IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4306 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4307 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4308 Interop.BaseHandle.delete_BaseHandle(CPtr);
4309 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4311 if (NDalicPINVOKE.SWIGPendingException.Pending)
4312 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4317 /// Converts screen coordinates into the view's coordinate system using the default camera.
4319 /// <pre>The view has been initialized.</pre>
4320 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4321 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4322 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4323 /// <param name="screenX">The screen X-coordinate.</param>
4324 /// <param name="screenY">The screen Y-coordinate.</param>
4325 /// <returns>True if the conversion succeeded.</returns>
4326 /// <since_tizen> 3 </since_tizen>
4327 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4329 bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4330 if (NDalicPINVOKE.SWIGPendingException.Pending)
4331 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4336 /// Sets the relative to parent size factor of the view.<br />
4337 /// This factor is only used when ResizePolicy is set to either:
4338 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4339 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4341 /// <pre>The view has been initialized.</pre>
4342 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4343 /// <since_tizen> 3 </since_tizen>
4344 public void SetSizeModeFactor(Vector3 factor)
4346 Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4347 if (NDalicPINVOKE.SWIGPendingException.Pending)
4348 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4351 /// Calculates the height of the view given a width.<br />
4352 /// The natural size is used for default calculation.<br />
4353 /// Size 0 is treated as aspect ratio 1:1.<br />
4355 /// <param name="width">The width to use.</param>
4356 /// <returns>The height based on the width.</returns>
4357 /// <since_tizen> 3 </since_tizen>
4358 public float GetHeightForWidth(float width)
4360 float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4361 if (NDalicPINVOKE.SWIGPendingException.Pending)
4362 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4367 /// Calculates the width of the view given a height.<br />
4368 /// The natural size is used for default calculation.<br />
4369 /// Size 0 is treated as aspect ratio 1:1.<br />
4371 /// <param name="height">The height to use.</param>
4372 /// <returns>The width based on the height.</returns>
4373 /// <since_tizen> 3 </since_tizen>
4374 public float GetWidthForHeight(float height)
4376 float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4377 if (NDalicPINVOKE.SWIGPendingException.Pending)
4378 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4383 /// Return the amount of size allocated for relayout.
4385 /// <param name="dimension">The dimension to retrieve.</param>
4386 /// <returns>Return the size.</returns>
4387 /// <since_tizen> 3 </since_tizen>
4388 public float GetRelayoutSize(DimensionType dimension)
4390 float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4391 if (NDalicPINVOKE.SWIGPendingException.Pending)
4392 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4397 /// Set the padding for the view.
4399 /// <param name="padding">Padding for the view.</param>
4400 /// <since_tizen> 3 </since_tizen>
4401 public void SetPadding(PaddingType padding)
4403 Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4404 if (NDalicPINVOKE.SWIGPendingException.Pending)
4405 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4409 /// Return the value of padding for the view.
4411 /// <param name="paddingOut">the value of padding for the view</param>
4412 /// <since_tizen> 3 </since_tizen>
4413 public void GetPadding(PaddingType paddingOut)
4415 Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4416 if (NDalicPINVOKE.SWIGPendingException.Pending)
4417 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4420 /// <since_tizen> 3 </since_tizen>
4421 public uint AddRenderer(Renderer renderer)
4423 uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4424 if (NDalicPINVOKE.SWIGPendingException.Pending)
4425 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4429 /// <since_tizen> 3 </since_tizen>
4430 public Renderer GetRendererAt(uint index)
4432 //to fix memory leak issue, match the handle count with native side.
4433 IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4434 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4435 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4436 if (cPtr != null && ret == null)
4438 ret = new Renderer(cPtr, false);
4439 if (NDalicPINVOKE.SWIGPendingException.Pending)
4440 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4443 Interop.BaseHandle.delete_BaseHandle(CPtr);
4444 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4446 if (NDalicPINVOKE.SWIGPendingException.Pending)
4447 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4451 /// <since_tizen> 3 </since_tizen>
4452 public void RemoveRenderer(Renderer renderer)
4454 Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4455 if (NDalicPINVOKE.SWIGPendingException.Pending)
4456 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4459 /// <since_tizen> 3 </since_tizen>
4460 public void RemoveRenderer(uint index)
4462 Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4463 if (NDalicPINVOKE.SWIGPendingException.Pending)
4464 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4467 internal void Raise()
4469 var parentChildren = GetParent()?.Children;
4471 if (parentChildren != null)
4473 int currentIndex = parentChildren.IndexOf(this);
4475 // If the view is not already the last item in the list.
4476 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4478 View temp = parentChildren[currentIndex + 1];
4479 parentChildren[currentIndex + 1] = this;
4480 parentChildren[currentIndex] = temp;
4482 Interop.NDalic.Raise(swigCPtr);
4483 if (NDalicPINVOKE.SWIGPendingException.Pending)
4484 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4489 internal void Lower()
4491 var parentChildren = GetParent()?.Children;
4493 if (parentChildren != null)
4495 int currentIndex = parentChildren.IndexOf(this);
4497 // If the view is not already the first item in the list.
4498 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4500 View temp = parentChildren[currentIndex - 1];
4501 parentChildren[currentIndex - 1] = this;
4502 parentChildren[currentIndex] = temp;
4504 Interop.NDalic.Lower(swigCPtr);
4505 if (NDalicPINVOKE.SWIGPendingException.Pending)
4506 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4512 /// Raises the view to above the target view.
4514 /// <remarks>The sibling order of views within the parent will be updated automatically.
4515 /// Views on the level above the target view will still be shown above this view.
4516 /// Raising this view above views with the same sibling order as each other will raise this view above them.
4517 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4519 /// <param name="target">Will be raised above this view.</param>
4520 internal void RaiseAbove(View target)
4522 var parentChildren = GetParent()?.Children;
4524 if (parentChildren != null)
4526 int currentIndex = parentChildren.IndexOf(this);
4527 int targetIndex = parentChildren.IndexOf(target);
4529 if (currentIndex < 0 || targetIndex < 0 ||
4530 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4532 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4535 // If the currentIndex is less than the target index and the target has the same parent.
4536 if (currentIndex < targetIndex)
4538 parentChildren.Remove(this);
4539 parentChildren.Insert(targetIndex, this);
4541 Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4542 if (NDalicPINVOKE.SWIGPendingException.Pending)
4543 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4550 /// Lowers the view to below the target view.
4552 /// <remarks>The sibling order of views within the parent will be updated automatically.
4553 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4554 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4556 /// <param name="target">Will be lowered below this view.</param>
4557 internal void LowerBelow(View target)
4559 var parentChildren = GetParent()?.Children;
4561 if (parentChildren != null)
4563 int currentIndex = parentChildren.IndexOf(this);
4564 int targetIndex = parentChildren.IndexOf(target);
4565 if (currentIndex < 0 || targetIndex < 0 ||
4566 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4568 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4572 // If the currentIndex is not already the 0th index and the target has the same parent.
4573 if ((currentIndex != 0) && (targetIndex != -1) &&
4574 (currentIndex > targetIndex))
4576 parentChildren.Remove(this);
4577 parentChildren.Insert(targetIndex, this);
4579 Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4580 if (NDalicPINVOKE.SWIGPendingException.Pending)
4581 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4587 internal string GetName()
4589 string ret = Interop.Actor.Actor_GetName(swigCPtr);
4590 if (NDalicPINVOKE.SWIGPendingException.Pending)
4591 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4595 internal void SetName(string name)
4597 Interop.Actor.Actor_SetName(swigCPtr, name);
4598 if (NDalicPINVOKE.SWIGPendingException.Pending)
4599 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4602 internal uint GetId()
4604 uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4605 if (NDalicPINVOKE.SWIGPendingException.Pending)
4606 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4610 internal bool IsRoot()
4612 bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4617 internal bool OnWindow()
4619 bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4620 if (NDalicPINVOKE.SWIGPendingException.Pending)
4621 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4625 internal View FindChildById(uint id)
4627 //to fix memory leak issue, match the handle count with native side.
4628 IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4629 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4630 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4631 Interop.BaseHandle.delete_BaseHandle(CPtr);
4632 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4634 if (NDalicPINVOKE.SWIGPendingException.Pending)
4635 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4639 internal override View FindCurrentChildById(uint id)
4641 return FindChildById(id);
4644 internal void SetParentOrigin(Vector3 origin)
4646 Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4647 if (NDalicPINVOKE.SWIGPendingException.Pending)
4648 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4651 internal Vector3 GetCurrentParentOrigin()
4653 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4654 if (NDalicPINVOKE.SWIGPendingException.Pending)
4655 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4659 internal void SetAnchorPoint(Vector3 anchorPoint)
4661 Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4662 if (NDalicPINVOKE.SWIGPendingException.Pending)
4663 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4666 internal Vector3 GetCurrentAnchorPoint()
4668 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4669 if (NDalicPINVOKE.SWIGPendingException.Pending)
4670 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4674 internal void SetSize(float width, float height)
4676 Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4677 if (NDalicPINVOKE.SWIGPendingException.Pending)
4678 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4681 internal void SetSize(float width, float height, float depth)
4683 Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4684 if (NDalicPINVOKE.SWIGPendingException.Pending)
4685 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4688 internal void SetSize(Vector2 size)
4690 Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4691 if (NDalicPINVOKE.SWIGPendingException.Pending)
4692 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4695 internal void SetSize(Vector3 size)
4697 Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4698 if (NDalicPINVOKE.SWIGPendingException.Pending)
4699 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4702 internal Vector3 GetTargetSize()
4704 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4705 if (NDalicPINVOKE.SWIGPendingException.Pending)
4706 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4710 internal Size2D GetCurrentSize()
4712 Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4713 if (NDalicPINVOKE.SWIGPendingException.Pending)
4714 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4715 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4719 internal Vector3 GetNaturalSize()
4721 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4722 if (NDalicPINVOKE.SWIGPendingException.Pending)
4723 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4727 internal void SetPosition(float x, float y)
4729 Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4730 if (NDalicPINVOKE.SWIGPendingException.Pending)
4731 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4734 internal void SetPosition(float x, float y, float z)
4736 Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4737 if (NDalicPINVOKE.SWIGPendingException.Pending)
4738 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4741 internal void SetPosition(Vector3 position)
4743 Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4744 if (NDalicPINVOKE.SWIGPendingException.Pending)
4745 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4748 internal void SetX(float x)
4750 Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4751 if (NDalicPINVOKE.SWIGPendingException.Pending)
4752 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4755 internal void SetY(float y)
4757 Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4758 if (NDalicPINVOKE.SWIGPendingException.Pending)
4759 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4762 internal void SetZ(float z)
4764 Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4765 if (NDalicPINVOKE.SWIGPendingException.Pending)
4766 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4769 internal void TranslateBy(Vector3 distance)
4771 Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4772 if (NDalicPINVOKE.SWIGPendingException.Pending)
4773 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4776 internal Position GetCurrentPosition()
4778 Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4779 if (NDalicPINVOKE.SWIGPendingException.Pending)
4780 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4784 internal Vector3 GetCurrentWorldPosition()
4786 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4787 if (NDalicPINVOKE.SWIGPendingException.Pending)
4788 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4792 internal void SetInheritPosition(bool inherit)
4794 Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4795 if (NDalicPINVOKE.SWIGPendingException.Pending)
4796 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4799 internal bool IsPositionInherited()
4801 bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4802 if (NDalicPINVOKE.SWIGPendingException.Pending)
4803 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4807 internal void SetOrientation(Degree angle, Vector3 axis)
4809 Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4810 if (NDalicPINVOKE.SWIGPendingException.Pending)
4811 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4814 internal void SetOrientation(Radian angle, Vector3 axis)
4816 Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4817 if (NDalicPINVOKE.SWIGPendingException.Pending)
4818 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4821 internal void SetOrientation(Rotation orientation)
4823 Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4824 if (NDalicPINVOKE.SWIGPendingException.Pending)
4825 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4828 internal void RotateBy(Degree angle, Vector3 axis)
4830 Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4831 if (NDalicPINVOKE.SWIGPendingException.Pending)
4832 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4835 internal void RotateBy(Radian angle, Vector3 axis)
4837 Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4838 if (NDalicPINVOKE.SWIGPendingException.Pending)
4839 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4842 internal void RotateBy(Rotation relativeRotation)
4844 Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4845 if (NDalicPINVOKE.SWIGPendingException.Pending)
4846 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4849 internal Rotation GetCurrentOrientation()
4851 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4852 if (NDalicPINVOKE.SWIGPendingException.Pending)
4853 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4857 internal void SetInheritOrientation(bool inherit)
4859 Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4860 if (NDalicPINVOKE.SWIGPendingException.Pending)
4861 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4864 internal bool IsOrientationInherited()
4866 bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
4867 if (NDalicPINVOKE.SWIGPendingException.Pending)
4868 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4872 internal Rotation GetCurrentWorldOrientation()
4874 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
4875 if (NDalicPINVOKE.SWIGPendingException.Pending)
4876 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4880 internal void SetScale(float scale)
4882 Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
4883 if (NDalicPINVOKE.SWIGPendingException.Pending)
4884 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4887 internal void SetScale(float scaleX, float scaleY, float scaleZ)
4889 Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
4890 if (NDalicPINVOKE.SWIGPendingException.Pending)
4891 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4894 internal void SetScale(Vector3 scale)
4896 Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
4897 if (NDalicPINVOKE.SWIGPendingException.Pending)
4898 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4901 internal void ScaleBy(Vector3 relativeScale)
4903 Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
4904 if (NDalicPINVOKE.SWIGPendingException.Pending)
4905 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4908 internal Vector3 GetCurrentScale()
4910 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
4911 if (NDalicPINVOKE.SWIGPendingException.Pending)
4912 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4916 internal Vector3 GetCurrentWorldScale()
4918 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
4919 if (NDalicPINVOKE.SWIGPendingException.Pending)
4920 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4924 internal void SetInheritScale(bool inherit)
4926 Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
4927 if (NDalicPINVOKE.SWIGPendingException.Pending)
4928 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4931 internal bool IsScaleInherited()
4933 bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
4934 if (NDalicPINVOKE.SWIGPendingException.Pending)
4935 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4939 internal Matrix GetCurrentWorldMatrix()
4941 Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
4942 if (NDalicPINVOKE.SWIGPendingException.Pending)
4943 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4947 internal void SetVisible(bool visible)
4949 Interop.Actor.Actor_SetVisible(swigCPtr, visible);
4950 if (NDalicPINVOKE.SWIGPendingException.Pending)
4951 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4954 internal bool IsVisible()
4956 bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
4957 if (NDalicPINVOKE.SWIGPendingException.Pending)
4958 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4962 internal void SetOpacity(float opacity)
4964 Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
4965 if (NDalicPINVOKE.SWIGPendingException.Pending)
4966 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4969 internal float GetCurrentOpacity()
4971 float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
4972 if (NDalicPINVOKE.SWIGPendingException.Pending)
4973 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4977 internal void SetColor(Vector4 color)
4979 Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
4980 if (NDalicPINVOKE.SWIGPendingException.Pending)
4981 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4984 internal Vector4 GetCurrentColor()
4986 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
4987 if (NDalicPINVOKE.SWIGPendingException.Pending)
4988 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4992 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
4993 [EditorBrowsable(EditorBrowsableState.Never)]
4994 public void SetColorMode(ColorMode colorMode)
4996 Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
4997 if (NDalicPINVOKE.SWIGPendingException.Pending)
4998 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5001 internal ColorMode GetColorMode()
5003 ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
5004 if (NDalicPINVOKE.SWIGPendingException.Pending)
5005 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5009 internal Vector4 GetCurrentWorldColor()
5011 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
5012 if (NDalicPINVOKE.SWIGPendingException.Pending)
5013 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5017 internal void SetDrawMode(DrawModeType drawMode)
5019 Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
5020 if (NDalicPINVOKE.SWIGPendingException.Pending)
5021 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5024 internal DrawModeType GetDrawMode()
5026 DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
5027 if (NDalicPINVOKE.SWIGPendingException.Pending)
5028 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5032 internal void SetKeyboardFocusable(bool focusable)
5034 Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5035 if (NDalicPINVOKE.SWIGPendingException.Pending)
5036 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5039 internal bool IsKeyboardFocusable()
5041 bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5042 if (NDalicPINVOKE.SWIGPendingException.Pending)
5043 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5047 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5049 Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5050 if (NDalicPINVOKE.SWIGPendingException.Pending)
5051 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5054 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5056 ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5057 if (NDalicPINVOKE.SWIGPendingException.Pending)
5058 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5062 internal Vector3 GetSizeModeFactor()
5064 Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5065 if (NDalicPINVOKE.SWIGPendingException.Pending)
5066 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5070 internal void SetMinimumSize(Vector2 size)
5072 Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5073 if (NDalicPINVOKE.SWIGPendingException.Pending)
5074 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5077 internal Vector2 GetMinimumSize()
5079 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5080 if (NDalicPINVOKE.SWIGPendingException.Pending)
5081 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5085 internal void SetMaximumSize(Vector2 size)
5087 Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5088 if (NDalicPINVOKE.SWIGPendingException.Pending)
5089 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5092 internal Vector2 GetMaximumSize()
5094 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5095 if (NDalicPINVOKE.SWIGPendingException.Pending)
5096 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5100 internal int GetHierarchyDepth()
5102 int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5103 if (NDalicPINVOKE.SWIGPendingException.Pending)
5104 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5108 internal uint GetRendererCount()
5110 uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5111 if (NDalicPINVOKE.SWIGPendingException.Pending)
5112 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5116 internal TouchDataSignal TouchSignal()
5118 TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5119 if (NDalicPINVOKE.SWIGPendingException.Pending)
5120 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5124 internal HoverSignal HoveredSignal()
5126 HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5127 if (NDalicPINVOKE.SWIGPendingException.Pending)
5128 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5132 internal WheelSignal WheelEventSignal()
5134 WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5135 if (NDalicPINVOKE.SWIGPendingException.Pending)
5136 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5140 internal ViewSignal OnWindowSignal()
5142 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5143 if (NDalicPINVOKE.SWIGPendingException.Pending)
5144 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5148 internal ViewSignal OffWindowSignal()
5150 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5151 if (NDalicPINVOKE.SWIGPendingException.Pending)
5152 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5156 internal ViewSignal OnRelayoutSignal()
5158 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5159 if (NDalicPINVOKE.SWIGPendingException.Pending)
5160 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5164 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5166 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5167 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5171 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5173 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5174 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5178 internal ViewSignal ResourcesLoadedSignal()
5180 ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5181 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5185 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5187 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5190 internal bool IsTopLevelView()
5192 if (GetParent() is Layer)
5199 internal void SetKeyInputFocus()
5201 Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5205 internal void ClearKeyInputFocus()
5207 Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5208 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5211 internal PinchGestureDetector GetPinchGestureDetector()
5213 PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5214 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5218 internal PanGestureDetector GetPanGestureDetector()
5220 PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5221 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5225 internal TapGestureDetector GetTapGestureDetector()
5227 TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5232 internal LongPressGestureDetector GetLongPressGestureDetector()
5234 LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5235 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5239 internal void SetBackgroundColor(Vector4 color)
5241 Interop.ViewInternal.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
5242 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5245 internal Vector4 GetBackgroundColor()
5247 Vector4 ret = new Vector4(Interop.ViewInternal.View_GetBackgroundColor(swigCPtr), true);
5248 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5252 internal void SetBackgroundImage(Image image)
5254 Interop.ViewInternal.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
5255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5258 internal ControlKeySignal KeyEventSignal()
5260 ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5261 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5265 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5267 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5268 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5272 internal KeyInputFocusSignal KeyInputFocusLostSignal()
5274 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5279 internal IntPtr GetPtrfromView()
5281 return (IntPtr)swigCPtr;
5284 internal void RemoveChild(View child)
5286 // Do actual child removal
5287 Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
5288 if (NDalicPINVOKE.SWIGPendingException.Pending)
5289 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5291 Children.Remove(child);
5292 child.InternalParent = null;
5294 if (ChildRemoved != null)
5296 ChildRemovedEventArgs e = new ChildRemovedEventArgs
5300 ChildRemoved(this, e);
5305 /// Removes the layout from this View.
5307 internal void ResetLayout()
5312 internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5314 return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5318 /// you can override it to clean-up your own resources.
5320 /// <param name="type">DisposeTypes</param>
5321 /// <since_tizen> 3 </since_tizen>
5322 protected override void Dispose(DisposeTypes type)
5329 //_mergedStyle = null;
5331 if (type == DisposeTypes.Explicit)
5334 //Release your own managed resources here.
5335 //You should release all of your own disposable objects here.
5338 //Release your own unmanaged resources here.
5339 //You should not access any managed member here except static instance.
5340 //because the execution order of Finalizes is non-deterministic.
5343 DisConnectFromSignals();
5346 if (swigCPtr.Handle != global::System.IntPtr.Zero)
5350 swigCMemOwn = false;
5351 Interop.View.delete_View(swigCPtr);
5353 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5356 foreach (View view in Children)
5358 view.InternalParent = null;
5365 private void OnSize2DChanged(int width, int height)
5367 Size2D = new Size2D(width, height);
5370 private void OnPosition2DChanged(int x, int y)
5372 Position2D = new Position2D(x, y);
5375 private void DisConnectFromSignals()
5377 // Save current CPtr.
5378 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5380 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5381 swigCPtr = GetBaseHandleCPtrHandleRef;
5383 if (_onRelayoutEventCallback != null)
5385 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5388 if (_offWindowEventCallback != null)
5390 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5393 if (_onWindowEventCallback != null)
5395 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5398 if (_wheelEventCallback != null)
5400 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5403 if (_hoverEventCallback != null)
5405 this.HoveredSignal().Disconnect(_hoverEventCallback);
5408 if (_touchDataCallback != null)
5410 this.TouchSignal().Disconnect(_touchDataCallback);
5413 if (_ResourcesLoadedCallback != null)
5415 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5418 if (_offWindowEventCallback != null)
5420 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5423 if (_onWindowEventCallback != null)
5425 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5428 if (_wheelEventCallback != null)
5430 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5433 if (_hoverEventCallback != null)
5435 this.HoveredSignal().Disconnect(_hoverEventCallback);
5438 if (_touchDataCallback != null)
5440 this.TouchSignal().Disconnect(_touchDataCallback);
5443 if (_onRelayoutEventCallback != null)
5445 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5448 if (_keyCallback != null)
5450 this.KeyEventSignal().Disconnect(_keyCallback);
5453 if (_keyInputFocusLostCallback != null)
5455 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5458 if (_keyInputFocusGainedCallback != null)
5460 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5463 if (_backgroundResourceLoadedCallback != null)
5465 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5468 if (_onWindowSendEventCallback != null)
5470 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5473 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5474 // Restore current CPtr.
5475 swigCPtr = currentCPtr;
5478 private void OnKeyInputFocusGained(IntPtr view)
5480 if (_keyInputFocusGainedEventHandler != null)
5482 _keyInputFocusGainedEventHandler(this, null);
5486 private void OnKeyInputFocusLost(IntPtr view)
5488 if (_keyInputFocusLostEventHandler != null)
5490 _keyInputFocusLostEventHandler(this, null);
5494 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5496 if (keyEvent == global::System.IntPtr.Zero)
5498 NUILog.Error("keyEvent should not be null!");
5502 KeyEventArgs e = new KeyEventArgs();
5504 bool result = false;
5506 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5508 if (_keyEventHandler != null)
5510 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5512 // Oring the result of each callback.
5513 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5515 result |= del(this, e);
5522 // Callback for View OnRelayout signal
5523 private void OnRelayout(IntPtr data)
5525 if (_onRelayoutEventHandler != null)
5527 _onRelayoutEventHandler(this, null);
5531 // Callback for View TouchSignal
5532 private bool OnTouch(IntPtr view, IntPtr touchData)
5534 if (touchData == global::System.IntPtr.Zero)
5536 NUILog.Error("touchData should not be null!");
5540 TouchEventArgs e = new TouchEventArgs();
5542 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5544 if (_touchDataEventHandler != null)
5546 return _touchDataEventHandler(this, e);
5551 // Callback for View Hover signal
5552 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5554 if (hoverEvent == global::System.IntPtr.Zero)
5556 NUILog.Error("hoverEvent should not be null!");
5560 HoverEventArgs e = new HoverEventArgs();
5562 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5564 if (_hoverEventHandler != null)
5566 return _hoverEventHandler(this, e);
5571 // Callback for View Wheel signal
5572 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5574 if (wheelEvent == global::System.IntPtr.Zero)
5576 NUILog.Error("wheelEvent should not be null!");
5580 WheelEventArgs e = new WheelEventArgs();
5582 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5584 if (_wheelEventHandler != null)
5586 return _wheelEventHandler(this, e);
5591 // Callback for View OnWindow signal
5592 private void OnWindow(IntPtr data)
5594 if (_onWindowEventHandler != null)
5596 _onWindowEventHandler(this, null);
5600 // Callback for View OffWindow signal
5601 private void OffWindow(IntPtr data)
5603 if (_offWindowEventHandler != null)
5605 _offWindowEventHandler(this, null);
5609 // Callback for View visibility change signal
5610 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5612 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5615 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5617 e.Visibility = visibility;
5620 if (_visibilityChangedEventHandler != null)
5622 _visibilityChangedEventHandler(this, e);
5626 // Callback for View layout direction change signal
5627 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5629 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5632 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5636 if (_layoutDirectionChangedEventHandler != null)
5638 _layoutDirectionChangedEventHandler(this, e);
5642 private void OnResourcesLoaded(IntPtr view)
5644 if (_resourcesLoadedEventHandler != null)
5646 _resourcesLoadedEventHandler(this, null);
5650 private View ConvertIdToView(uint id)
5652 View view = GetParent()?.FindCurrentChildById(id);
5654 //If we can't find the parent's children, find in the top layer.
5657 Container parent = GetParent();
5658 while ((parent is View) && (parent != null))
5660 parent = parent.GetParent();
5661 if (parent is Layer)
5663 view = parent.FindCurrentChildById(id);
5672 private void OnBackgroundResourceLoaded(IntPtr view)
5674 BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5675 e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5677 if (_backgroundResourceLoadedEventHandler != null)
5679 _backgroundResourceLoadedEventHandler(this, e);
5684 /// Event argument passed through the ChildAdded event.
5686 /// <since_tizen> 5 </since_tizen>
5687 public class ChildAddedEventArgs : EventArgs
5690 /// Added child view at moment.
5692 /// <since_tizen> 5 </since_tizen>
5693 public View Added { get; set; }
5697 /// Event argument passed through the ChildRemoved event.
5699 /// <since_tizen> 5 </since_tizen>
5700 public class ChildRemovedEventArgs : EventArgs
5703 /// Removed child view at moment.
5705 /// <since_tizen> 5 </since_tizen>
5706 public View Removed { get; set; }
5710 /// Event arguments that passed via the KeyEvent signal.
5712 /// <since_tizen> 3 </since_tizen>
5713 public class KeyEventArgs : EventArgs
5718 /// Key - is the key sent to the view.
5720 /// <since_tizen> 3 </since_tizen>
5735 /// Event arguments that passed via the touch signal.
5737 /// <since_tizen> 3 </since_tizen>
5738 public class TouchEventArgs : EventArgs
5740 private Touch _touch;
5743 /// Touch - contains the information of touch points.
5745 /// <since_tizen> 3 </since_tizen>
5760 /// Event arguments that passed via the hover signal.
5762 /// <since_tizen> 3 </since_tizen>
5763 public class HoverEventArgs : EventArgs
5765 private Hover _hover;
5768 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5770 /// <since_tizen> 3 </since_tizen>
5785 /// Event arguments that passed via the wheel signal.
5787 /// <since_tizen> 3 </since_tizen>
5788 public class WheelEventArgs : EventArgs
5790 private Wheel _wheel;
5793 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5795 /// <since_tizen> 3 </since_tizen>
5810 /// Event arguments of visibility changed.
5812 /// <since_tizen> 3 </since_tizen>
5813 public class VisibilityChangedEventArgs : EventArgs
5816 private bool _visibility;
5817 private VisibilityChangeType _type;
5820 /// The view, or child of view, whose visibility has changed.
5822 /// <since_tizen> 3 </since_tizen>
5836 /// Whether the view is now visible or not.
5838 /// <since_tizen> 3 </since_tizen>
5839 public bool Visibility
5847 _visibility = value;
5852 /// Whether the view's visible property has changed or a parent's.
5854 /// <since_tizen> 3 </since_tizen>
5855 public VisibilityChangeType Type
5869 /// Event arguments of layout direction changed.
5871 /// <since_tizen> 4 </since_tizen>
5872 public class LayoutDirectionChangedEventArgs : EventArgs
5875 private ViewLayoutDirectionType _type;
5878 /// The view, or child of view, whose layout direction has changed.
5880 /// <since_tizen> 4 </since_tizen>
5894 /// Whether the view's layout direction property has changed or a parent's.
5896 /// <since_tizen> 4 </since_tizen>
5897 public ViewLayoutDirectionType Type
5911 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
5913 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5914 [EditorBrowsable(EditorBrowsableState.Never)]
5915 public Transition GetTransition(string transitionName)
5917 Transition trans = null;
5918 transDictionary.TryGetValue(transitionName, out trans);
5922 private void LoadTransitions()
5924 foreach (string str in transitionNames)
5926 string resourceName = str + ".xaml";
5927 Transition trans = null;
5929 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
5931 string likelyResourcePath = resource + "animation/" + resourceName;
5933 if (File.Exists(likelyResourcePath))
5935 trans = Extensions.LoadObject<Transition>(likelyResourcePath);
5939 transDictionary.Add(trans.Name, trans);
5944 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5945 [EditorBrowsable(EditorBrowsableState.Never)]
5946 public string[] TransitionNames
5950 return transitionNames;
5954 transitionNames = value;
5958 private string[] transitionNames;
5960 internal class BackgroundResourceLoadedEventArgs : EventArgs
5962 private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
5963 public ResourceLoadingStatusType Status
5976 internal class Property
5978 internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
5979 internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
5980 internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
5981 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
5982 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
5983 internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
5984 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
5985 internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
5986 internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
5987 internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
5988 internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
5989 internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
5990 internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
5991 internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
5992 internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
5993 internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
5994 internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
5995 internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
5996 internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
5997 internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
5998 internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
5999 internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
6000 internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
6001 internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
6002 internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
6003 internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
6004 internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
6005 internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
6006 internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
6007 internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
6008 internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
6009 internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
6010 internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
6011 internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
6012 internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
6013 internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
6014 internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
6015 internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
6016 internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
6017 internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
6018 internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
6019 internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
6020 internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
6021 internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
6022 internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
6023 internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
6024 internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
6025 internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
6026 internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
6027 internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
6028 internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
6029 internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
6030 internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
6031 internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
6032 internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
6033 internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
6034 internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
6035 internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
6036 internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
6037 internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
6038 internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
6039 internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
6040 internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();