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));
130 view.BackgroundImageSynchronosLoading = view._backgroundImageSynchronosLoading;
133 defaultValueCreator: (bindable) =>
135 var view = (View)bindable;
136 string backgroundImage = "";
138 Tizen.NUI.PropertyMap background = view.Background;
140 background.Find(Visual.Property.Type)?.Get(out visualType);
141 if (visualType == (int)Visual.Type.Image)
143 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
146 return backgroundImage;
148 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
149 [EditorBrowsable(EditorBrowsableState.Never)]
150 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
152 var view = (View)bindable;
153 if (newValue != null)
155 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
158 defaultValueCreator: (bindable) =>
160 var view = (View)bindable;
161 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
162 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
165 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
166 [EditorBrowsable(EditorBrowsableState.Never)]
167 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
169 var view = (View)bindable;
170 if (newValue != null)
172 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
175 defaultValueCreator: (bindable) =>
177 var view = (View)bindable;
179 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
181 NUILog.Error("State get error!");
185 case 0: return States.Normal;
186 case 1: return States.Focused;
187 case 2: return States.Disabled;
188 default: return States.Normal;
191 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
192 [EditorBrowsable(EditorBrowsableState.Never)]
193 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
195 var view = (View)bindable;
196 string valueToString = "";
197 if (newValue != null)
199 switch ((States)newValue)
201 case States.Normal: { valueToString = "NORMAL"; break; }
202 case States.Focused: { valueToString = "FOCUSED"; break; }
203 case States.Disabled: { valueToString = "DISABLED"; break; }
204 default: { valueToString = "NORMAL"; break; }
206 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
209 defaultValueCreator: (bindable) =>
211 var view = (View)bindable;
213 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
215 NUILog.Error("subState get error!");
219 case "NORMAL": return States.Normal;
220 case "FOCUSED": return States.Focused;
221 case "DISABLED": return States.Disabled;
222 default: return States.Normal;
225 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
226 [EditorBrowsable(EditorBrowsableState.Never)]
227 public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
229 var view = (View)bindable;
230 if (newValue != null)
232 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
235 defaultValueCreator: (bindable) =>
237 var view = (View)bindable;
238 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
239 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
243 /// Only for XAML property binding. No need to open as public. (keep as Hidden/InhouseAPI)
244 [EditorBrowsable(EditorBrowsableState.Never)]
245 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
247 var view = (View)bindable;
248 if (newValue != null)
250 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
253 defaultValueCreator: (bindable) =>
255 var view = (View)bindable;
257 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
261 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
262 [EditorBrowsable(EditorBrowsableState.Never)]
263 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
265 var view = (View)bindable;
266 if (newValue != null)
268 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
271 defaultValueCreator: (bindable) =>
273 var view = (View)bindable;
275 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
278 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
279 [EditorBrowsable(EditorBrowsableState.Never)]
280 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
282 var view = (View)bindable;
283 if (newValue != null)
285 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
288 defaultValueCreator: (bindable) =>
290 var view = (View)bindable;
291 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
292 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
295 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
296 [EditorBrowsable(EditorBrowsableState.Never)]
297 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
299 var view = (View)bindable;
300 if (newValue != null)
302 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
305 defaultValueCreator: (bindable) =>
307 var view = (View)bindable;
308 Vector2 temp = new Vector2(0.0f, 0.0f);
309 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
312 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
313 [EditorBrowsable(EditorBrowsableState.Never)]
314 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
316 var view = (View)bindable;
317 if (newValue != null)
319 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
322 defaultValueCreator: (bindable) =>
324 var view = (View)bindable;
326 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
329 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
330 [EditorBrowsable(EditorBrowsableState.Never)]
331 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
333 var view = (View)bindable;
334 if (newValue != null)
336 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
339 defaultValueCreator: (bindable) =>
341 var view = (View)bindable;
343 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
346 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
347 [EditorBrowsable(EditorBrowsableState.Never)]
348 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
350 var view = (View)bindable;
351 string valueToString = "";
353 if (newValue != null)
355 switch ((HorizontalAlignmentType)newValue)
357 case Tizen.NUI.HorizontalAlignmentType.Left: { valueToString = "left"; break; }
358 case Tizen.NUI.HorizontalAlignmentType.Center: { valueToString = "center"; break; }
359 case Tizen.NUI.HorizontalAlignmentType.Right: { valueToString = "right"; break; }
360 default: { valueToString = "left"; break; }
362 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
365 defaultValueCreator: (bindable) =>
367 var view = (View)bindable;
369 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
371 NUILog.Error("CellHorizontalAlignment get error!");
376 case "left": return Tizen.NUI.HorizontalAlignmentType.Left;
377 case "center": return Tizen.NUI.HorizontalAlignmentType.Center;
378 case "right": return Tizen.NUI.HorizontalAlignmentType.Right;
379 default: return Tizen.NUI.HorizontalAlignmentType.Left;
382 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
383 [EditorBrowsable(EditorBrowsableState.Never)]
384 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
386 var view = (View)bindable;
387 string valueToString = "";
389 if (newValue != null)
391 switch ((VerticalAlignmentType)newValue)
393 case Tizen.NUI.VerticalAlignmentType.Top: { valueToString = "top"; break; }
394 case Tizen.NUI.VerticalAlignmentType.Center: { valueToString = "center"; break; }
395 case Tizen.NUI.VerticalAlignmentType.Bottom: { valueToString = "bottom"; break; }
396 default: { valueToString = "top"; break; }
398 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
401 defaultValueCreator: (bindable) =>
403 var view = (View)bindable;
405 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
407 NUILog.Error("CellVerticalAlignment get error!");
412 case "top": return Tizen.NUI.VerticalAlignmentType.Top;
413 case "center": return Tizen.NUI.VerticalAlignmentType.Center;
414 case "bottom": return Tizen.NUI.VerticalAlignmentType.Bottom;
415 default: return Tizen.NUI.VerticalAlignmentType.Top;
420 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
421 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
423 [EditorBrowsable(EditorBrowsableState.Never)]
424 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
426 var view = (View)bindable;
427 if (newValue != null)
429 view.Weight = (float)newValue;
433 defaultValueCreator: (bindable) =>
435 var view = (View)bindable;
439 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
440 [EditorBrowsable(EditorBrowsableState.Never)]
441 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
443 var view = (View)bindable;
444 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
445 else { view.LeftFocusableViewId = -1; }
447 defaultValueCreator: (bindable) =>
449 var view = (View)bindable;
450 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
453 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
454 [EditorBrowsable(EditorBrowsableState.Never)]
455 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
457 var view = (View)bindable;
458 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
459 else { view.RightFocusableViewId = -1; }
461 defaultValueCreator: (bindable) =>
463 var view = (View)bindable;
464 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
467 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
468 [EditorBrowsable(EditorBrowsableState.Never)]
469 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
471 var view = (View)bindable;
472 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
473 else { view.UpFocusableViewId = -1; }
475 defaultValueCreator: (bindable) =>
477 var view = (View)bindable;
478 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
481 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
482 [EditorBrowsable(EditorBrowsableState.Never)]
483 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
485 var view = (View)bindable;
486 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
487 else { view.DownFocusableViewId = -1; }
489 defaultValueCreator: (bindable) =>
491 var view = (View)bindable;
492 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
495 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
496 [EditorBrowsable(EditorBrowsableState.Never)]
497 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
499 var view = (View)bindable;
500 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
502 defaultValueCreator: (bindable) =>
504 var view = (View)bindable;
505 return view.IsKeyboardFocusable();
507 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
508 [EditorBrowsable(EditorBrowsableState.Never)]
509 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
511 var view = (View)bindable;
512 if (newValue != null)
514 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
517 defaultValueCreator: (bindable) =>
519 var view = (View)bindable;
520 Size temp = new Size(0.0f, 0.0f, 0.0f);
521 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
522 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
525 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
526 [EditorBrowsable(EditorBrowsableState.Never)]
527 public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
529 var view = (View)bindable;
530 if (newValue != null)
532 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
535 defaultValueCreator: (bindable) =>
537 var view = (View)bindable;
539 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
542 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
543 [EditorBrowsable(EditorBrowsableState.Never)]
544 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
546 var view = (View)bindable;
547 if (newValue != null)
549 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
552 defaultValueCreator: (bindable) =>
554 var view = (View)bindable;
555 Position temp = new Position(0.0f, 0.0f, 0.0f);
556 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
557 return new Position2D(temp);
559 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
560 [EditorBrowsable(EditorBrowsableState.Never)]
561 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
563 var view = (View)bindable;
564 if (newValue != null)
566 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
569 defaultValueCreator: (bindable) =>
571 var view = (View)bindable;
573 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
576 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
577 [EditorBrowsable(EditorBrowsableState.Never)]
578 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
580 var view = (View)bindable;
582 if (newValue != null)
584 value = (int)newValue;
587 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
590 var siblings = view.GetParent()?.Children;
591 if (siblings != null)
593 int currentOrder = siblings.IndexOf(view);
594 if (value != currentOrder)
596 if (value == 0) { view.LowerToBottom(); }
597 else if (value < siblings.Count - 1)
599 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
600 else { view.LowerBelow(siblings[value]); }
602 else { view.RaiseToTop(); }
607 defaultValueCreator: (bindable) =>
609 var view = (View)bindable;
610 var parentChildren = view.GetParent()?.Children;
611 int currentOrder = 0;
612 if (parentChildren != null)
614 currentOrder = parentChildren.IndexOf(view);
616 if (currentOrder < 0) { return 0; }
617 else if (currentOrder < parentChildren.Count) { return currentOrder; }
622 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
623 [EditorBrowsable(EditorBrowsableState.Never)]
624 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
626 var view = (View)bindable;
627 if (newValue != null)
629 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
632 defaultValueCreator: (bindable) =>
634 var view = (View)bindable;
635 Position temp = new Position(0.0f, 0.0f, 0.0f);
636 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
640 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
641 [EditorBrowsable(EditorBrowsableState.Never)]
642 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
644 var view = (View)bindable;
645 if (newValue != null)
647 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
650 defaultValueCreator: (bindable) =>
652 var view = (View)bindable;
653 Position temp = new Position(0.0f, 0.0f, 0.0f);
654 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
657 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
658 [EditorBrowsable(EditorBrowsableState.Never)]
659 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
661 var view = (View)bindable;
662 if (newValue != null)
664 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
667 defaultValueCreator: (bindable) =>
669 var view = (View)bindable;
671 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
674 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
675 [EditorBrowsable(EditorBrowsableState.Never)]
676 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
678 var view = (View)bindable;
679 if (newValue != null)
681 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
684 defaultValueCreator: (bindable) =>
686 var view = (View)bindable;
688 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
691 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
692 [EditorBrowsable(EditorBrowsableState.Never)]
693 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
695 var view = (View)bindable;
696 if (newValue != null)
698 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
701 defaultValueCreator: (bindable) =>
703 var view = (View)bindable;
704 Position temp = new Position(0.0f, 0.0f, 0.0f);
705 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
708 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
709 [EditorBrowsable(EditorBrowsableState.Never)]
710 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
712 var view = (View)bindable;
713 if (newValue != null)
715 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_X, new Tizen.NUI.PropertyValue((float)newValue));
718 defaultValueCreator: (bindable) =>
720 var view = (View)bindable;
722 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
725 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
726 [EditorBrowsable(EditorBrowsableState.Never)]
727 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
729 var view = (View)bindable;
730 if (newValue != null)
732 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Y, new Tizen.NUI.PropertyValue((float)newValue));
735 defaultValueCreator: (bindable) =>
737 var view = (View)bindable;
739 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
742 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
743 [EditorBrowsable(EditorBrowsableState.Never)]
744 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
746 var view = (View)bindable;
747 if (newValue != null)
749 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
752 defaultValueCreator: (bindable) =>
754 var view = (View)bindable;
756 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
759 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
760 [EditorBrowsable(EditorBrowsableState.Never)]
761 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
763 var view = (View)bindable;
764 if (newValue != null)
766 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
769 defaultValueCreator: (bindable) =>
771 var view = (View)bindable;
772 Rotation temp = new Rotation();
773 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
776 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
777 [EditorBrowsable(EditorBrowsableState.Never)]
778 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
780 var view = (View)bindable;
781 if (newValue != null)
783 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
786 defaultValueCreator: (bindable) =>
788 var view = (View)bindable;
789 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
790 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
793 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
794 [EditorBrowsable(EditorBrowsableState.Never)]
795 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
797 var view = (View)bindable;
798 if (newValue != null)
800 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_X, new Tizen.NUI.PropertyValue((float)newValue));
803 defaultValueCreator: (bindable) =>
805 var view = (View)bindable;
807 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
810 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
811 [EditorBrowsable(EditorBrowsableState.Never)]
812 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
814 var view = (View)bindable;
815 if (newValue != null)
817 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Y, new Tizen.NUI.PropertyValue((float)newValue));
820 defaultValueCreator: (bindable) =>
822 var view = (View)bindable;
824 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
827 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
828 [EditorBrowsable(EditorBrowsableState.Never)]
829 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
831 var view = (View)bindable;
832 if (newValue != null)
834 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
837 defaultValueCreator: (bindable) =>
839 var view = (View)bindable;
841 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
844 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
845 [EditorBrowsable(EditorBrowsableState.Never)]
846 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
848 var view = (View)bindable;
849 if (newValue != null)
851 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
854 defaultValueCreator: (bindable) =>
856 var view = (View)bindable;
858 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
861 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
862 [EditorBrowsable(EditorBrowsableState.Never)]
863 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
865 var view = (View)bindable;
866 if (newValue != null)
868 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
871 defaultValueCreator: (bindable) =>
873 var view = (View)bindable;
875 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
878 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
879 [EditorBrowsable(EditorBrowsableState.Never)]
880 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
882 var view = (View)bindable;
883 if (newValue != null)
885 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
888 defaultValueCreator: (bindable) =>
890 var view = (View)bindable;
892 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
895 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
896 [EditorBrowsable(EditorBrowsableState.Never)]
897 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
899 var view = (View)bindable;
900 if (newValue != null)
902 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
905 defaultValueCreator: (bindable) =>
907 var view = (View)bindable;
909 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
912 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
913 [EditorBrowsable(EditorBrowsableState.Never)]
914 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
916 var view = (View)bindable;
917 if (newValue != null)
919 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
922 defaultValueCreator: (bindable) =>
924 var view = (View)bindable;
926 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
929 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
930 [EditorBrowsable(EditorBrowsableState.Never)]
931 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
933 var view = (View)bindable;
934 if (newValue != null)
936 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
939 defaultValueCreator: (bindable) =>
941 var view = (View)bindable;
943 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
945 NUILog.Error("DrawMode get error!");
949 case "NORMAL": return DrawModeType.Normal;
950 case "OVERLAY_2D": return DrawModeType.Overlay2D;
951 #pragma warning disable CS0618 // Disable deprecated warning as we do need to use the deprecated API here.
952 case "STENCIL": return DrawModeType.Stencil;
953 #pragma warning restore CS0618
954 default: return DrawModeType.Normal;
957 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
958 [EditorBrowsable(EditorBrowsableState.Never)]
959 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
961 var view = (View)bindable;
962 if (newValue != null)
964 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
967 defaultValueCreator: (bindable) =>
969 var view = (View)bindable;
970 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
971 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
974 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
975 [EditorBrowsable(EditorBrowsableState.Never)]
976 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
978 var view = (View)bindable;
979 if (newValue != null)
981 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
984 defaultValueCreator: (bindable) =>
986 var view = (View)bindable;
988 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
990 NUILog.Error("WidthResizePolicy get error!");
994 case "FIXED": return ResizePolicyType.Fixed;
995 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
996 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
997 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
998 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
999 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1000 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1001 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1002 default: return ResizePolicyType.Fixed;
1005 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1006 [EditorBrowsable(EditorBrowsableState.Never)]
1007 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1009 var view = (View)bindable;
1010 if (newValue != null)
1012 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1015 defaultValueCreator: (bindable) =>
1017 var view = (View)bindable;
1019 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1021 NUILog.Error("HeightResizePolicy get error!");
1025 case "FIXED": return ResizePolicyType.Fixed;
1026 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1027 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1028 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1029 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1030 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1031 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1032 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1033 default: return ResizePolicyType.Fixed;
1036 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1037 [EditorBrowsable(EditorBrowsableState.Never)]
1038 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
1040 var view = (View)bindable;
1041 string valueToString = "";
1042 if (newValue != null)
1044 switch ((SizeScalePolicyType)newValue)
1046 case SizeScalePolicyType.UseSizeSet: { valueToString = "USE_SIZE_SET"; break; }
1047 case SizeScalePolicyType.FitWithAspectRatio: { valueToString = "FIT_WITH_ASPECT_RATIO"; break; }
1048 case SizeScalePolicyType.FillWithAspectRatio: { valueToString = "FILL_WITH_ASPECT_RATIO"; break; }
1049 default: { valueToString = "USE_SIZE_SET"; break; }
1051 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1054 defaultValueCreator: (bindable) =>
1056 var view = (View)bindable;
1058 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1060 NUILog.Error("SizeScalePolicy get error!");
1064 case "USE_SIZE_SET": return SizeScalePolicyType.UseSizeSet;
1065 case "FIT_WITH_ASPECT_RATIO": return SizeScalePolicyType.FitWithAspectRatio;
1066 case "FILL_WITH_ASPECT_RATIO": return SizeScalePolicyType.FillWithAspectRatio;
1067 default: return SizeScalePolicyType.UseSizeSet;
1070 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1071 [EditorBrowsable(EditorBrowsableState.Never)]
1072 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1074 var view = (View)bindable;
1075 if (newValue != null)
1077 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue((bool)newValue));
1080 defaultValueCreator: (bindable) =>
1082 var view = (View)bindable;
1084 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
1087 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1088 [EditorBrowsable(EditorBrowsableState.Never)]
1089 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1091 var view = (View)bindable;
1092 if (newValue != null)
1094 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue((bool)newValue));
1097 defaultValueCreator: (bindable) =>
1099 var view = (View)bindable;
1101 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
1104 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1105 [EditorBrowsable(EditorBrowsableState.Never)]
1106 public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1108 var view = (View)bindable;
1109 if (newValue != null)
1111 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1114 defaultValueCreator: (bindable) =>
1116 var view = (View)bindable;
1117 Extents temp = new Extents(0, 0, 0, 0);
1118 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PADDING).Get(temp);
1121 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1122 [EditorBrowsable(EditorBrowsableState.Never)]
1123 public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1125 var view = (View)bindable;
1126 if (newValue != null)
1128 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue((Size)newValue));
1131 defaultValueCreator: (bindable) =>
1133 var view = (View)bindable;
1134 Size temp = new Size(0, 0, 0);
1135 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
1138 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1139 [EditorBrowsable(EditorBrowsableState.Never)]
1140 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1142 var view = (View)bindable;
1143 if (newValue != null)
1145 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1148 defaultValueCreator: (bindable) =>
1150 var view = (View)bindable;
1151 Size2D temp = new Size2D(0, 0);
1152 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1155 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1156 [EditorBrowsable(EditorBrowsableState.Never)]
1157 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1159 var view = (View)bindable;
1160 if (newValue != null)
1162 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1165 defaultValueCreator: (bindable) =>
1167 var view = (View)bindable;
1168 Size2D temp = new Size2D(0, 0);
1169 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1172 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1173 [EditorBrowsable(EditorBrowsableState.Never)]
1174 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1176 var view = (View)bindable;
1177 if (newValue != null)
1179 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1182 defaultValueCreator: (bindable) =>
1184 var view = (View)bindable;
1186 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1189 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1190 [EditorBrowsable(EditorBrowsableState.Never)]
1191 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1193 var view = (View)bindable;
1194 if (newValue != null)
1196 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1199 defaultValueCreator: (bindable) =>
1201 var view = (View)bindable;
1203 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1205 NUILog.Error("ClippingMode get error!");
1207 return (ClippingModeType)temp;
1209 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1210 [EditorBrowsable(EditorBrowsableState.Never)]
1211 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1213 var view = (View)bindable;
1214 if (newValue != null)
1216 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1219 defaultValueCreator: (bindable) =>
1221 var view = (View)bindable;
1223 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1226 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1227 [EditorBrowsable(EditorBrowsableState.Never)]
1228 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1230 var view = (View)bindable;
1231 if (newValue != null)
1233 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1236 defaultValueCreator: (bindable) =>
1238 var view = (View)bindable;
1240 if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1242 NUILog.Error("LAYOUT_DIRECTION get error!");
1244 return (ViewLayoutDirectionType)temp;
1246 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1247 [EditorBrowsable(EditorBrowsableState.Never)]
1248 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1250 var view = (View)bindable;
1251 if (newValue != null)
1253 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1256 defaultValueCreator: (bindable) =>
1258 var view = (View)bindable;
1259 Extents temp = new Extents(0, 0, 0, 0);
1260 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1265 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1266 [EditorBrowsable(EditorBrowsableState.Never)]
1267 public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create("UpdateSizeHint", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1269 var view = (View)bindable;
1270 if (newValue != null)
1272 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get(), new Tizen.NUI.PropertyValue((Vector2)newValue));
1275 defaultValueCreator: (bindable) =>
1277 var view = (View)bindable;
1279 Vector2 temp = new Vector2(0.0f, 0.0f);
1280 Tizen.NUI.Object.GetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get()).Get(temp);
1285 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1286 [EditorBrowsable(EditorBrowsableState.Never)]
1287 public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create("XamlStyle", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);
1290 /// Flag to indicate if layout set explicitly via API call or View was automatically given a Layout.
1292 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1293 [EditorBrowsable(EditorBrowsableState.Never)]
1294 public bool layoutSet = false;
1297 /// Flag to allow Layouting to be disabled for Views.
1298 /// Once a View has a Layout set then any children added to Views from then on will receive
1299 /// automatic Layouts.
1301 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1302 [EditorBrowsable(EditorBrowsableState.Never)]
1303 public static bool layoutingDisabled{get; set;} = true;
1305 private MergedStyle mergedStyle = null;
1306 internal MergedStyle _mergedStyle
1310 if (null == mergedStyle)
1312 mergedStyle = new MergedStyle(GetType(), this);
1319 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1320 private LayoutItem _layout; // Exclusive layout assigned to this View.
1322 // List of transitions paired with the condition that uses the transition.
1323 private Dictionary<TransitionCondition, TransitionList> _layoutTransitions;
1324 private int _widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
1325 private int _heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
1326 private float _weight = 0.0f; // Weighting of child View in a Layout
1327 private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
1328 private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
1329 private bool _backgroundImageSynchronosLoading = false;
1330 private EventHandler _offWindowEventHandler;
1331 private OffWindowEventCallbackType _offWindowEventCallback;
1332 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
1333 private WheelEventCallbackType _wheelEventCallback;
1334 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
1335 private KeyCallbackType _keyCallback;
1336 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
1337 private TouchDataCallbackType _touchDataCallback;
1338 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
1339 private HoverEventCallbackType _hoverEventCallback;
1340 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
1341 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
1342 private EventHandler _keyInputFocusGainedEventHandler;
1343 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
1344 private EventHandler _keyInputFocusLostEventHandler;
1345 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
1346 private EventHandler _onRelayoutEventHandler;
1347 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
1348 private EventHandler _onWindowEventHandler;
1349 private OnWindowEventCallbackType _onWindowEventCallback;
1350 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
1351 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
1352 // Resource Ready Signal
1353 private EventHandler _resourcesLoadedEventHandler;
1354 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1355 private EventHandler<BackgroundResourceLoadedEventArgs> _backgroundResourceLoadedEventHandler;
1356 private _backgroundResourceLoadedCallbackType _backgroundResourceLoadedCallback;
1358 private OnWindowEventCallbackType _onWindowSendEventCallback;
1360 private void SendViewAddedEventToWindow(IntPtr data)
1362 Window.Instance?.SendViewAdded(this);
1366 /// Creates a new instance of a view.
1368 /// <since_tizen> 3 </since_tizen>
1369 public View() : this(Interop.View.View_New(), true)
1371 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1375 /// Create a new instance of a View with setting the status of shown or hidden.
1377 /// <param name="shown">false : Not displayed (hidden), true : displayed (shown)</param>
1378 /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
1379 [EditorBrowsable(EditorBrowsableState.Never)]
1380 public View(bool shown) : this(Interop.View.View_New(), true)
1382 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1386 internal View(View uiControl, bool shown = true) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1388 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1395 internal View(global::System.IntPtr cPtr, bool cMemoryOwn, bool shown = true) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
1397 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1400 PositionUsesPivotPoint = false;
1403 _onWindowSendEventCallback = SendViewAddedEventToWindow;
1404 this.OnWindowSignal().Connect(_onWindowSendEventCallback);
1412 internal View(ViewImpl implementation, bool shown = true) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1414 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1422 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1423 private delegate void OffWindowEventCallbackType(IntPtr control);
1424 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1425 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
1426 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1427 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
1428 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1429 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
1430 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1431 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
1432 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1433 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
1434 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1435 private delegate void ResourcesLoadedCallbackType(IntPtr control);
1436 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1437 private delegate void _backgroundResourceLoadedCallbackType(IntPtr view);
1438 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1439 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
1440 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1441 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
1442 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1443 private delegate void OnRelayoutEventCallbackType(IntPtr control);
1444 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1445 private delegate void OnWindowEventCallbackType(IntPtr control);
1446 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1447 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
1450 /// Event when a child is removed.
1452 /// <since_tizen> 5 </since_tizen>
1453 public new event EventHandler<ChildRemovedEventArgs> ChildRemoved;
1455 /// Event when a child is added.
1457 /// <since_tizen> 5 </since_tizen>
1458 public new event EventHandler<ChildAddedEventArgs> ChildAdded;
1461 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1462 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
1464 /// <since_tizen> 3 </since_tizen>
1465 public event EventHandler FocusGained
1469 if (_keyInputFocusGainedEventHandler == null)
1471 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
1472 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
1475 _keyInputFocusGainedEventHandler += value;
1480 _keyInputFocusGainedEventHandler -= value;
1482 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
1484 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
1490 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1491 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
1493 /// <since_tizen> 3 </since_tizen>
1494 public event EventHandler FocusLost
1498 if (_keyInputFocusLostEventHandler == null)
1500 _keyInputFocusLostCallback = OnKeyInputFocusLost;
1501 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
1504 _keyInputFocusLostEventHandler += value;
1509 _keyInputFocusLostEventHandler -= value;
1511 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
1513 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
1519 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1520 /// The KeyPressed signal is emitted when the key event is received.<br />
1522 /// <since_tizen> 3 </since_tizen>
1523 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
1527 if (_keyEventHandler == null)
1529 _keyCallback = OnKeyEvent;
1530 this.KeyEventSignal().Connect(_keyCallback);
1533 _keyEventHandler += value;
1538 _keyEventHandler -= value;
1540 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
1542 this.KeyEventSignal().Disconnect(_keyCallback);
1548 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
1549 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
1551 /// <since_tizen> 3 </since_tizen>
1552 public event EventHandler Relayout
1556 if (_onRelayoutEventHandler == null)
1558 _onRelayoutEventCallback = OnRelayout;
1559 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
1562 _onRelayoutEventHandler += value;
1567 _onRelayoutEventHandler -= value;
1569 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
1571 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
1578 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1579 /// The touched signal is emitted when the touch input is received.<br />
1581 /// <since_tizen> 3 </since_tizen>
1582 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
1586 if (_touchDataEventHandler == null)
1588 _touchDataCallback = OnTouch;
1589 this.TouchSignal().Connect(_touchDataCallback);
1592 _touchDataEventHandler += value;
1597 _touchDataEventHandler -= value;
1599 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
1601 this.TouchSignal().Disconnect(_touchDataCallback);
1608 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1609 /// The hovered signal is emitted when the hover input is received.<br />
1611 /// <since_tizen> 3 </since_tizen>
1612 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
1616 if (_hoverEventHandler == null)
1618 _hoverEventCallback = OnHoverEvent;
1619 this.HoveredSignal().Connect(_hoverEventCallback);
1622 _hoverEventHandler += value;
1627 _hoverEventHandler -= value;
1629 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
1631 this.HoveredSignal().Disconnect(_hoverEventCallback);
1638 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1639 /// The WheelMoved signal is emitted when the wheel event is received.<br />
1641 /// <since_tizen> 3 </since_tizen>
1642 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
1646 if (_wheelEventHandler == null)
1648 _wheelEventCallback = OnWheelEvent;
1649 this.WheelEventSignal().Connect(_wheelEventCallback);
1652 _wheelEventHandler += value;
1657 _wheelEventHandler -= value;
1659 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
1661 this.WheelEventSignal().Disconnect(_wheelEventCallback);
1668 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
1669 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
1671 /// <since_tizen> 3 </since_tizen>
1672 public event EventHandler AddedToWindow
1676 if (_onWindowEventHandler == null)
1678 _onWindowEventCallback = OnWindow;
1679 this.OnWindowSignal().Connect(_onWindowEventCallback);
1682 _onWindowEventHandler += value;
1687 _onWindowEventHandler -= value;
1689 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
1691 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
1697 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
1698 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
1700 /// <since_tizen> 3 </since_tizen>
1701 public event EventHandler RemovedFromWindow
1705 if (_offWindowEventHandler == null)
1707 _offWindowEventCallback = OffWindow;
1708 this.OffWindowSignal().Connect(_offWindowEventCallback);
1711 _offWindowEventHandler += value;
1716 _offWindowEventHandler -= value;
1718 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
1720 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
1726 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
1727 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
1729 /// <since_tizen> 3 </since_tizen>
1730 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
1734 if (_visibilityChangedEventHandler == null)
1736 _visibilityChangedEventCallback = OnVisibilityChanged;
1737 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
1740 _visibilityChangedEventHandler += value;
1745 _visibilityChangedEventHandler -= value;
1747 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
1749 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
1755 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
1756 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
1758 /// <since_tizen> 4 </since_tizen>
1759 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
1763 if (_layoutDirectionChangedEventHandler == null)
1765 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
1766 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
1769 _layoutDirectionChangedEventHandler += value;
1774 _layoutDirectionChangedEventHandler -= value;
1776 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
1778 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
1784 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1785 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1787 /// <since_tizen> 3 </since_tizen>
1788 public event EventHandler ResourcesLoaded
1792 if (_resourcesLoadedEventHandler == null)
1794 _ResourcesLoadedCallback = OnResourcesLoaded;
1795 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1798 _resourcesLoadedEventHandler += value;
1803 _resourcesLoadedEventHandler -= value;
1805 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1807 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1812 internal event EventHandler<BackgroundResourceLoadedEventArgs> BackgroundResourceLoaded
1816 if (_backgroundResourceLoadedEventHandler == null)
1818 _backgroundResourceLoadedCallback = OnBackgroundResourceLoaded;
1819 this.ResourcesLoadedSignal().Connect(_backgroundResourceLoadedCallback);
1822 _backgroundResourceLoadedEventHandler += value;
1826 _backgroundResourceLoadedEventHandler -= value;
1828 if (_backgroundResourceLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1830 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
1836 /// Enumeration for describing the states of the view.
1838 /// <since_tizen> 3 </since_tizen>
1842 /// The normal state.
1846 /// The focused state.
1850 /// The disabled state.
1856 /// Describes the direction to move the focus towards.
1858 /// <since_tizen> 3 </since_tizen>
1859 public enum FocusDirection
1862 /// Move keyboard focus towards the left direction.
1864 /// <since_tizen> 3 </since_tizen>
1867 /// Move keyboard focus towards the right direction.
1869 /// <since_tizen> 3 </since_tizen>
1872 /// Move keyboard focus towards the up direction.
1874 /// <since_tizen> 3 </since_tizen>
1877 /// Move keyboard focus towards the down direction.
1879 /// <since_tizen> 3 </since_tizen>
1882 /// Move keyboard focus towards the previous page direction.
1884 /// <since_tizen> 3 </since_tizen>
1887 /// Move keyboard focus towards the next page direction.
1889 /// <since_tizen> 3 </since_tizen>
1893 internal enum PropertyRange
1895 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1896 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1897 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1900 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1901 [EditorBrowsable(EditorBrowsableState.Never)]
1902 public bool IsResourcesCreated
1906 return Application.Current.IsResourcesCreated;
1910 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1911 [EditorBrowsable(EditorBrowsableState.Never)]
1912 public ResourceDictionary XamlResources
1916 return Application.Current.XamlResources;
1920 Application.Current.XamlResources = value;
1925 /// The StyleName, type string.
1927 /// <since_tizen> 3 </since_tizen>
1928 public string StyleName
1932 return (string)GetValue(StyleNameProperty);
1936 SetValue(StyleNameProperty, value);
1937 NotifyPropertyChanged();
1942 /// The mutually exclusive with "backgroundImage" and "background" type Vector4.
1944 /// <since_tizen> 3 </since_tizen>
1945 public Color BackgroundColor
1949 return (Color)GetValue(BackgroundColorProperty);
1953 SetValue(BackgroundColorProperty, value);
1954 NotifyPropertyChanged();
1959 /// The mutually exclusive with "backgroundColor" and "background" type Map.
1961 /// <since_tizen> 3 </since_tizen>
1962 public string BackgroundImage
1966 return (string)GetValue(BackgroundImageProperty);
1970 SetValue(BackgroundImageProperty, value);
1971 NotifyPropertyChanged();
1976 /// The background of view.
1978 /// <since_tizen> 3 </since_tizen>
1979 public Tizen.NUI.PropertyMap Background
1983 return (PropertyMap)GetValue(BackgroundProperty);
1987 SetValue(BackgroundProperty, value);
1988 NotifyPropertyChanged();
1994 /// The current state of the view.
1996 /// <since_tizen> 3 </since_tizen>
2001 return (States)GetValue(StateProperty);
2005 SetValue(StateProperty, value);
2006 NotifyPropertyChanged();
2011 /// The current sub state of the view.
2013 /// <since_tizen> 3 </since_tizen>
2014 public States SubState
2018 return (States)GetValue(SubStateProperty);
2022 SetValue(SubStateProperty, value);
2023 NotifyPropertyChanged();
2028 /// Displays a tooltip
2030 /// <since_tizen> 3 </since_tizen>
2031 public Tizen.NUI.PropertyMap Tooltip
2035 return (PropertyMap)GetValue(TooltipProperty);
2039 SetValue(TooltipProperty, value);
2040 NotifyPropertyChanged();
2045 /// Displays a tooltip as a text.
2047 /// <since_tizen> 3 </since_tizen>
2048 public string TooltipText
2052 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
2053 NotifyPropertyChanged();
2058 /// The Child property of FlexContainer.<br />
2059 /// The proportion of the free space in the container, the flex item will receive.<br />
2060 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
2062 /// <since_tizen> 3 </since_tizen>
2067 return (float)GetValue(FlexProperty);
2071 SetValue(FlexProperty, value);
2072 NotifyPropertyChanged();
2077 /// The Child property of FlexContainer.<br />
2078 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
2080 /// <since_tizen> 3 </since_tizen>
2081 public int AlignSelf
2085 return (int)GetValue(AlignSelfProperty);
2089 SetValue(AlignSelfProperty, value);
2090 NotifyPropertyChanged();
2095 /// The Child property of FlexContainer.<br />
2096 /// The space around the flex item.<br />
2098 /// <since_tizen> 3 </since_tizen>
2099 public Vector4 FlexMargin
2103 return (Vector4)GetValue(FlexMarginProperty);
2107 SetValue(FlexMarginProperty, value);
2108 NotifyPropertyChanged();
2113 /// The top-left cell this child occupies, if not set, the first available cell is used.
2115 /// <since_tizen> 3 </since_tizen>
2116 public Vector2 CellIndex
2120 return (Vector2)GetValue(CellIndexProperty);
2124 SetValue(CellIndexProperty, value);
2125 NotifyPropertyChanged();
2130 /// The number of rows this child occupies, if not set, the default value is 1.
2132 /// <since_tizen> 3 </since_tizen>
2133 public float RowSpan
2137 return (float)GetValue(RowSpanProperty);
2141 SetValue(RowSpanProperty, value);
2142 NotifyPropertyChanged();
2147 /// The number of columns this child occupies, if not set, the default value is 1.
2149 /// <since_tizen> 3 </since_tizen>
2150 public float ColumnSpan
2154 return (float)GetValue(ColumnSpanProperty);
2158 SetValue(ColumnSpanProperty, value);
2159 NotifyPropertyChanged();
2164 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
2166 /// <since_tizen> 3 </since_tizen>
2167 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
2171 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
2175 SetValue(CellHorizontalAlignmentProperty, value);
2176 NotifyPropertyChanged();
2181 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
2183 /// <since_tizen> 3 </since_tizen>
2184 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
2188 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
2192 SetValue(CellVerticalAlignmentProperty, value);
2193 NotifyPropertyChanged();
2198 /// The left focusable view.<br />
2199 /// This will return null if not set.<br />
2200 /// This will also return null if the specified left focusable view is not on a window.<br />
2202 /// <since_tizen> 3 </since_tizen>
2203 public View LeftFocusableView
2205 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2208 return (View)GetValue(LeftFocusableViewProperty);
2212 SetValue(LeftFocusableViewProperty, value);
2213 NotifyPropertyChanged();
2218 /// The right focusable view.<br />
2219 /// This will return null if not set.<br />
2220 /// This will also return null if the specified right focusable view is not on a window.<br />
2222 /// <since_tizen> 3 </since_tizen>
2223 public View RightFocusableView
2225 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2228 return (View)GetValue(RightFocusableViewProperty);
2232 SetValue(RightFocusableViewProperty, value);
2233 NotifyPropertyChanged();
2238 /// The up focusable view.<br />
2239 /// This will return null if not set.<br />
2240 /// This will also return null if the specified up focusable view is not on a window.<br />
2242 /// <since_tizen> 3 </since_tizen>
2243 public View UpFocusableView
2245 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2248 return (View)GetValue(UpFocusableViewProperty);
2252 SetValue(UpFocusableViewProperty, value);
2253 NotifyPropertyChanged();
2258 /// The down focusable view.<br />
2259 /// This will return null if not set.<br />
2260 /// This will also return null if the specified down focusable view is not on a window.<br />
2262 /// <since_tizen> 3 </since_tizen>
2263 public View DownFocusableView
2265 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2268 return (View)GetValue(DownFocusableViewProperty);
2272 SetValue(DownFocusableViewProperty, value);
2273 NotifyPropertyChanged();
2278 /// Whether the view should be focusable by keyboard navigation.
2280 /// <since_tizen> 3 </since_tizen>
2281 public bool Focusable
2285 SetValue(FocusableProperty, value);
2286 NotifyPropertyChanged();
2290 return (bool)GetValue(FocusableProperty);
2295 /// Retrieves the position of the view.<br />
2296 /// The coordinates are relative to the view's parent.<br />
2298 /// <since_tizen> 3 </since_tizen>
2299 public Position CurrentPosition
2303 return GetCurrentPosition();
2308 /// Sets the size of a view for the width and the height.<br />
2309 /// Geometry can be scaled to fit within this area.<br />
2310 /// This does not interfere with the view's scale factor.<br />
2311 /// The views default depth is the minimum of width and height.<br />
2314 /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
2315 /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
2316 /// Please note that this multi-cascade setting is especially possible for this NUI object (Size2D). <br />
2317 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2318 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2319 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2320 /// 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 />
2322 /// <since_tizen> 3 </since_tizen>
2323 public Size2D Size2D
2327 Size2D temp = (Size2D)GetValue(Size2DProperty);
2328 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
2332 SetValue(Size2DProperty, value);
2333 // Set Specification so when layouts measure this View it matches the value set here.
2334 // All Views are currently Layouts.
2335 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
2336 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
2337 _widthPolicy = value.Width;
2338 _heightPolicy = value.Height;
2339 _layout?.RequestLayout();
2340 NotifyPropertyChanged();
2345 /// Retrieves the size of the view.<br />
2346 /// The coordinates are relative to the view's parent.<br />
2348 /// <since_tizen> 3 </since_tizen>
2349 public Size2D CurrentSize
2353 return GetCurrentSize();
2358 /// Retrieves and sets the view's opacity.<br />
2360 /// <since_tizen> 3 </since_tizen>
2361 public float Opacity
2365 return (float)GetValue(OpacityProperty);
2369 SetValue(OpacityProperty, value);
2370 NotifyPropertyChanged();
2375 /// Sets the position of the view for X and Y.<br />
2376 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2377 /// If the position inheritance is disabled, sets the world position.<br />
2380 /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
2381 /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
2382 /// Please note that this multi-cascade setting is especially possible for this NUI object (Position2D). <br />
2383 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2384 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2385 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2387 /// <since_tizen> 3 </since_tizen>
2388 public Position2D Position2D
2392 Position2D temp = (Position2D)GetValue(Position2DProperty);
2393 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
2397 SetValue(Position2DProperty, value);
2398 NotifyPropertyChanged();
2403 /// Retrieves the screen postion of the view.<br />
2405 /// <since_tizen> 3 </since_tizen>
2406 public Vector2 ScreenPosition
2410 Vector2 temp = new Vector2(0.0f, 0.0f);
2411 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2417 /// Determines whether the pivot point should be used to determine the position of the view.
2418 /// This is true by default.
2420 /// <remarks>If false, then the top-left of the view is used for the position.
2421 /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
2423 /// <since_tizen> 3 </since_tizen>
2424 public bool PositionUsesPivotPoint
2428 return (bool)GetValue(PositionUsesPivotPointProperty);
2432 SetValue(PositionUsesPivotPointProperty, value);
2433 NotifyPropertyChanged();
2438 /// Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead!
2440 /// <since_tizen> 3 </since_tizen>
2441 [Obsolete("Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead! " +
2443 "View view = new View(); " +
2444 "view.PivotPoint = PivotPoint.Center; " +
2445 "view.PositionUsesPivotPoint = true;" +
2446 " Deprecated in API5: Will be removed in API8")]
2447 [EditorBrowsable(EditorBrowsableState.Never)]
2448 public bool PositionUsesAnchorPoint
2453 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2458 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2459 NotifyPropertyChanged();
2464 /// Queries whether the view is connected to the stage.<br />
2465 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2467 /// <since_tizen> 3 </since_tizen>
2468 public bool IsOnWindow
2477 /// Gets the depth in the hierarchy for the view.
2479 /// <since_tizen> 3 </since_tizen>
2480 public int HierarchyDepth
2484 return GetHierarchyDepth();
2489 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2492 /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
2493 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2494 /// The values set by this property will likely change.
2496 /// <since_tizen> 3 </since_tizen>
2497 public int SiblingOrder
2501 return (int)GetValue(SiblingOrderProperty);
2505 SetValue(SiblingOrderProperty, value);
2506 NotifyPropertyChanged();
2511 /// Returns the natural size of the view.
2514 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2516 /// <since_tizen> 5 </since_tizen>
2517 public Vector3 NaturalSize
2521 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2522 if (NDalicPINVOKE.SWIGPendingException.Pending)
2523 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2529 /// Returns the natural size (Size2D) of the view.
2532 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2534 /// <since_tizen> 4 </since_tizen>
2535 public Size2D NaturalSize2D
2539 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2540 if (NDalicPINVOKE.SWIGPendingException.Pending)
2541 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2543 return new Size2D((int)temp.Width, (int)temp.Height);
2548 /// Gets or sets the origin of a view within its parent's area.<br />
2549 /// 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 />
2550 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
2551 /// A view's position is the distance between this origin and the view's anchor-point.<br />
2553 /// <pre>The view has been initialized.</pre>
2554 /// <since_tizen> 3 </since_tizen>
2555 public Position ParentOrigin
2559 Position tmp = (Position)GetValue(ParentOriginProperty);
2560 return new Position(OnParentOriginChanged, tmp.X, tmp.Y, tmp.Z);
2564 SetValue(ParentOriginProperty, value);
2565 NotifyPropertyChanged();
2570 /// Gets or sets the anchor-point of a view.<br />
2571 /// 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 />
2572 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
2573 /// A view position is the distance between its parent-origin and this anchor-point.<br />
2574 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
2575 /// <pre>The view has been initialized.</pre>
2577 /// <since_tizen> 3 </since_tizen>
2578 public Position PivotPoint
2582 Position tmp = (Position)GetValue(PivotPointProperty);
2583 return new Position(OnPivotPointChanged, tmp.X, tmp.Y, tmp.Z);
2587 SetValue(PivotPointProperty, value);
2588 NotifyPropertyChanged();
2593 /// Gets or sets the size width of the view.
2597 /// Animatable - This property can be animated using <c>Animation</c> class.
2600 /// <since_tizen> 3 </since_tizen>
2601 public float SizeWidth
2605 return (float)GetValue(SizeWidthProperty);
2609 SetValue(SizeWidthProperty, value);
2610 WidthSpecification = (int)Math.Ceiling(value);
2611 NotifyPropertyChanged();
2616 /// Gets or sets the size height of the view.
2620 /// Animatable - This property can be animated using <c>Animation</c> class.
2623 /// <since_tizen> 3 </since_tizen>
2624 public float SizeHeight
2628 return (float)GetValue(SizeHeightProperty);
2632 SetValue(SizeHeightProperty, value);
2633 HeightSpecification = (int)Math.Ceiling(value);
2634 NotifyPropertyChanged();
2639 /// Gets or sets the position of the view.<br />
2640 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
2641 /// If the position inheritance is disabled, sets the world position.<br />
2645 /// Animatable - This property can be animated using <c>Animation</c> class.
2648 /// <since_tizen> 3 </since_tizen>
2649 public Position Position
2653 Position tmp = (Position)GetValue(PositionProperty);
2654 return new Position(OnPositionChanged, tmp.X, tmp.Y, tmp.Z);
2658 SetValue(PositionProperty, value);
2659 NotifyPropertyChanged();
2664 /// Gets or sets the position X of the view.
2668 /// Animatable - This property can be animated using <c>Animation</c> class.
2671 /// <since_tizen> 3 </since_tizen>
2672 public float PositionX
2676 return (float)GetValue(PositionXProperty);
2680 SetValue(PositionXProperty, value);
2681 NotifyPropertyChanged();
2686 /// Gets or sets the position Y of the view.
2690 /// Animatable - This property can be animated using <c>Animation</c> class.
2693 /// <since_tizen> 3 </since_tizen>
2694 public float PositionY
2698 return (float)GetValue(PositionYProperty);
2702 SetValue(PositionYProperty, value);
2703 NotifyPropertyChanged();
2708 /// Gets or sets the position Z of the view.
2712 /// Animatable - This property can be animated using <c>Animation</c> class.
2715 /// <since_tizen> 3 </since_tizen>
2716 public float PositionZ
2720 return (float)GetValue(PositionZProperty);
2724 SetValue(PositionZProperty, value);
2725 NotifyPropertyChanged();
2730 /// Gets or sets the world position of the view.
2732 /// <since_tizen> 3 </since_tizen>
2733 public Vector3 WorldPosition
2737 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2738 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2744 /// Gets or sets the orientation of the view.<br />
2745 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
2749 /// This is an asynchronous method.
2752 /// Animatable - This property can be animated using <c>Animation</c> class.
2755 /// <since_tizen> 3 </since_tizen>
2756 public Rotation Orientation
2760 return (Rotation)GetValue(OrientationProperty);
2764 SetValue(OrientationProperty, value);
2765 NotifyPropertyChanged();
2770 /// Gets or sets the world orientation of the view.<br />
2772 /// <since_tizen> 3 </since_tizen>
2773 public Rotation WorldOrientation
2777 Rotation temp = new Rotation();
2778 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2784 /// Gets or sets the scale factor applied to the view.<br />
2788 /// Animatable - This property can be animated using <c>Animation</c> class.
2791 /// <since_tizen> 3 </since_tizen>
2792 public Vector3 Scale
2796 return (Vector3)GetValue(ScaleProperty);
2800 SetValue(ScaleProperty, value);
2801 NotifyPropertyChanged();
2806 /// Gets or sets the scale X factor applied to the view.
2810 /// Animatable - This property can be animated using <c>Animation</c> class.
2813 /// <since_tizen> 3 </since_tizen>
2818 return (float)GetValue(ScaleXProperty);
2822 SetValue(ScaleXProperty, value);
2823 NotifyPropertyChanged();
2828 /// Gets or sets the scale Y factor applied to the view.
2832 /// Animatable - This property can be animated using <c>Animation</c> class.
2835 /// <since_tizen> 3 </since_tizen>
2840 return (float)GetValue(ScaleYProperty);
2844 SetValue(ScaleYProperty, value);
2845 NotifyPropertyChanged();
2850 /// Gets or sets the scale Z factor applied to the view.
2854 /// Animatable - This property can be animated using <c>Animation</c> class.
2857 /// <since_tizen> 3 </since_tizen>
2862 return (float)GetValue(ScaleZProperty);
2866 SetValue(ScaleZProperty, value);
2867 NotifyPropertyChanged();
2872 /// Gets the world scale of the view.
2874 /// <since_tizen> 3 </since_tizen>
2875 public Vector3 WorldScale
2879 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2880 GetProperty(View.Property.WORLD_SCALE).Get(temp);
2886 /// Retrieves the visibility flag of the view.
2890 /// If the view is not visible, then the view and its children will not be rendered.
2891 /// 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.
2894 /// Animatable - This property can be animated using <c>Animation</c> class.
2897 /// <since_tizen> 3 </since_tizen>
2898 public bool Visibility
2903 GetProperty(View.Property.VISIBLE).Get(out temp);
2909 /// Gets the view's world color.
2911 /// <since_tizen> 3 </since_tizen>
2912 public Vector4 WorldColor
2916 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2917 GetProperty(View.Property.WORLD_COLOR).Get(temp);
2923 /// Gets or sets the view's name.
2925 /// <since_tizen> 3 </since_tizen>
2930 return (string)GetValue(NameProperty);
2934 SetValue(NameProperty, value);
2935 NotifyPropertyChanged();
2940 /// Get the number of children held by the view.
2942 /// <since_tizen> 3 </since_tizen>
2943 public new uint ChildCount
2947 return GetChildCount();
2952 /// Gets the view's ID.
2955 /// <since_tizen> 3 </since_tizen>
2965 /// Gets or sets the status of whether the view should emit touch or hover signals.
2967 /// <since_tizen> 3 </since_tizen>
2968 public bool Sensitive
2972 return (bool)GetValue(SensitiveProperty);
2976 SetValue(SensitiveProperty, value);
2977 NotifyPropertyChanged();
2982 /// 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.
2984 /// <since_tizen> 3 </since_tizen>
2985 public bool LeaveRequired
2989 return (bool)GetValue(LeaveRequiredProperty);
2993 SetValue(LeaveRequiredProperty, value);
2994 NotifyPropertyChanged();
2999 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3001 /// <since_tizen> 3 </since_tizen>
3002 public bool InheritOrientation
3006 return (bool)GetValue(InheritOrientationProperty);
3010 SetValue(InheritOrientationProperty, value);
3011 NotifyPropertyChanged();
3016 /// Gets or sets the status of whether a child view inherits it's parent's scale.
3018 /// <since_tizen> 3 </since_tizen>
3019 public bool InheritScale
3023 return (bool)GetValue(InheritScaleProperty);
3027 SetValue(InheritScaleProperty, value);
3028 NotifyPropertyChanged();
3033 /// Gets or sets the status of how the view and its children should be drawn.<br />
3034 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3035 /// 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 />
3036 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3037 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3038 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3040 /// <since_tizen> 3 </since_tizen>
3041 public DrawModeType DrawMode
3045 return (DrawModeType)GetValue(DrawModeProperty);
3049 SetValue(DrawModeProperty, value);
3050 NotifyPropertyChanged();
3055 /// Gets or sets the relative to parent size factor of the view.<br />
3056 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3057 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3059 /// <since_tizen> 3 </since_tizen>
3060 public Vector3 SizeModeFactor
3064 return (Vector3)GetValue(SizeModeFactorProperty);
3068 SetValue(SizeModeFactorProperty, value);
3069 NotifyPropertyChanged();
3074 /// Gets or sets the width resize policy to be used.
3076 /// <since_tizen> 3 </since_tizen>
3077 public ResizePolicyType WidthResizePolicy
3081 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
3085 SetValue(WidthResizePolicyProperty, value);
3086 // Match ResizePolicy to new Layouting.
3087 // Parent relative policies can not be mapped at this point as parent size unknown.
3090 case ResizePolicyType.UseNaturalSize:
3092 WidthSpecification = LayoutParamPolicies.WrapContent;
3095 case ResizePolicyType.FillToParent:
3097 WidthSpecification = LayoutParamPolicies.MatchParent;
3100 case ResizePolicyType.FitToChildren:
3102 WidthSpecification = LayoutParamPolicies.WrapContent;
3108 NotifyPropertyChanged();
3113 /// Gets or sets the height resize policy to be used.
3115 /// <since_tizen> 3 </since_tizen>
3116 public ResizePolicyType HeightResizePolicy
3120 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
3124 SetValue(HeightResizePolicyProperty, value);
3125 // Match ResizePolicy to new Layouting.
3126 // Parent relative policies can not be mapped at this point as parent size unknown.
3129 case ResizePolicyType.UseNaturalSize:
3131 HeightSpecification = LayoutParamPolicies.WrapContent;
3134 case ResizePolicyType.FillToParent:
3136 HeightSpecification = LayoutParamPolicies.MatchParent;
3139 case ResizePolicyType.FitToChildren:
3141 HeightSpecification = LayoutParamPolicies.WrapContent;
3147 NotifyPropertyChanged();
3152 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3153 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3155 /// <since_tizen> 3 </since_tizen>
3156 public SizeScalePolicyType SizeScalePolicy
3160 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
3164 SetValue(SizeScalePolicyProperty, value);
3165 NotifyPropertyChanged();
3170 /// Gets or sets the status of whether the width size is dependent on the height size.
3172 /// <since_tizen> 3 </since_tizen>
3173 public bool WidthForHeight
3177 return (bool)GetValue(WidthForHeightProperty);
3181 SetValue(WidthForHeightProperty, value);
3182 NotifyPropertyChanged();
3187 /// Gets or sets the status of whether the height size is dependent on the width size.
3189 /// <since_tizen> 3 </since_tizen>
3190 public bool HeightForWidth
3194 return (bool)GetValue(HeightForWidthProperty);
3198 SetValue(HeightForWidthProperty, value);
3199 NotifyPropertyChanged();
3204 /// Gets or sets the padding for use in layout.
3206 /// <since_tizen> 5 </since_tizen>
3207 public Extents Padding
3211 // If View has a Layout then padding in stored in the base Layout class
3214 return Layout.Padding;
3218 return (Extents)GetValue(PaddingProperty);
3220 // Two return points to prevent creating a zeroed Extent native object before assignment
3224 Extents padding = value;
3227 // Layout set so store Padding in LayoutItem instead of in View.
3228 // If View stores the Padding value then Legacy Size Negotiation will overwrite
3229 // the position and sizes measure in the Layouting.
3230 Layout.Padding = value;
3231 // If Layout is a LayoutItem then it could be a View that handles it's own padding.
3232 // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.
3233 if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
3235 padding = new Extents(0,0,0,0); // Reset value stored in View.
3237 _layout?.RequestLayout();
3239 SetValue(PaddingProperty, padding);
3240 NotifyPropertyChanged();
3241 _layout?.RequestLayout();
3246 /// Gets or sets the minimum size the view can be assigned in size negotiation.
3248 /// <since_tizen> 3 </since_tizen>
3249 public Size2D MinimumSize
3253 Size2D tmp = (Size2D)GetValue(MinimumSizeProperty);
3254 return new Size2D(OnMinimumSizeChanged, tmp.Width, tmp.Height);
3258 if (_layout != null)
3260 // Note: it only works if minimum size is >= than natural size.
3261 // To force the size it should be done through the width&height spec or Size2D.
3262 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
3263 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
3264 _layout.RequestLayout();
3266 SetValue(MinimumSizeProperty, value);
3267 NotifyPropertyChanged();
3272 /// Gets or sets the maximum size the view can be assigned in size negotiation.
3274 /// <since_tizen> 3 </since_tizen>
3275 public Size2D MaximumSize
3279 Size2D tmp = (Size2D)GetValue(MaximumSizeProperty);
3280 return new Size2D(OnMaximumSizeChanged, tmp.Width, tmp.Height);
3284 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
3285 // MATCH_PARENT spec + parent container size can be used to limit
3286 if (_layout != null)
3288 // Note: it only works if minimum size is >= than natural size.
3289 // To force the size it should be done through the width&height spec or Size2D.
3290 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
3291 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
3292 _layout.RequestLayout();
3294 SetValue(MaximumSizeProperty, value);
3295 NotifyPropertyChanged();
3300 /// Gets or sets whether a child view inherits it's parent's position.<br />
3301 /// Default is to inherit.<br />
3302 /// 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 />
3304 /// <since_tizen> 3 </since_tizen>
3305 public bool InheritPosition
3309 return (bool)GetValue(InheritPositionProperty);
3313 SetValue(InheritPositionProperty, value);
3314 NotifyPropertyChanged();
3319 /// Gets or sets the clipping behavior (mode) of it's children.
3321 /// <since_tizen> 3 </since_tizen>
3322 public ClippingModeType ClippingMode
3326 return (ClippingModeType)GetValue(ClippingModeProperty);
3330 SetValue(ClippingModeProperty, value);
3331 NotifyPropertyChanged();
3336 /// Gets the number of renderers held by the view.
3338 /// <since_tizen> 3 </since_tizen>
3339 public uint RendererCount
3343 return GetRendererCount();
3348 /// Deprecated in API5; Will be removed in API8. Please use PivotPoint instead!
3350 /// <since_tizen> 3 </since_tizen>
3351 [Obsolete("Deprecated in API5; Will be removed in API8. Please use PivotPoint instead! " +
3353 "View view = new View(); " +
3354 "view.PivotPoint = PivotPoint.Center; " +
3355 "view.PositionUsesPivotPoint = true;")]
3356 [EditorBrowsable(EditorBrowsableState.Never)]
3357 public Position AnchorPoint
3361 Position temp = new Position(0.0f, 0.0f, 0.0f);
3362 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3367 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3368 NotifyPropertyChanged();
3373 /// Sets the size of a view for the width, the height and the depth.<br />
3374 /// Geometry can be scaled to fit within this area.<br />
3375 /// This does not interfere with the view's scale factor.<br />
3376 /// The views default depth is the minimum of width and height.<br />
3380 /// Please note that multi-cascade setting is not possible for this NUI object. <br />
3381 /// It is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
3382 /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f); <br />
3383 /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f; <br />
3384 /// 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 />
3387 /// Animatable - This property can be animated using <c>Animation</c> class.
3390 /// <since_tizen> 5 </since_tizen>
3395 Size tmp = (Size)GetValue(SizeProperty);
3396 return new Size(OnSizeChanged, tmp.Width, tmp.Height, tmp.Depth);
3400 SetValue(SizeProperty, value);
3401 // Set Specification so when layouts measure this View it matches the value set here.
3402 // All Views are currently Layouts.
3403 WidthSpecification = (int)Math.Ceiling(value.Width);
3404 HeightSpecification = (int)Math.Ceiling(value.Height);
3405 NotifyPropertyChanged();
3410 /// Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead!
3412 /// <since_tizen> 3 </since_tizen>
3413 [Obsolete("Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead! " +
3415 "Container parent = view.GetParent(); " +
3416 "View view = parent as View;")]
3417 [EditorBrowsable(EditorBrowsableState.Never)]
3418 public new View Parent
3423 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
3424 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
3425 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
3427 if (basehandle is Layer layer)
3429 ret = new View(Layer.getCPtr(layer).Handle, false);
3430 NUILog.Error("This Parent property is deprecated, shoud do not be used");
3434 ret = basehandle as View;
3437 Interop.BaseHandle.delete_BaseHandle(CPtr);
3438 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
3440 if (NDalicPINVOKE.SWIGPendingException.Pending)
3441 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3447 /// Gets/Sets whether inherit parent's the layout Direction.
3449 /// <since_tizen> 4 </since_tizen>
3450 public bool InheritLayoutDirection
3454 return (bool)GetValue(InheritLayoutDirectionProperty);
3458 SetValue(InheritLayoutDirectionProperty, value);
3459 NotifyPropertyChanged();
3464 /// Gets/Sets the layout Direction.
3466 /// <since_tizen> 4 </since_tizen>
3467 public ViewLayoutDirectionType LayoutDirection
3471 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
3475 SetValue(LayoutDirectionProperty, value);
3476 NotifyPropertyChanged();
3477 _layout?.RequestLayout();
3482 /// Gets or sets the Margin for use in layout.
3485 /// Margin property is supported by Layout algorithms and containers.
3486 /// Please Set Layout if you want to use Margin property.
3488 /// <since_tizen> 4 </since_tizen>
3489 public Extents Margin
3493 // If View has a Layout then margin is stored in Layout.
3496 return Layout.Margin;
3500 // If Layout not set then return margin stored in View.
3501 return (Extents)GetValue(MarginProperty);
3503 // Two return points to prevent creating a zeroed Extent native object before assignment
3509 // Layout set so store Margin in LayoutItem instead of View.
3510 // If View stores the Margin too then the Legacy Size Negotiation will
3511 // overwrite the position and size values measured in the Layouting.
3512 Layout.Margin = value;
3513 SetValue(MarginProperty, new Extents(0,0,0,0));
3514 _layout?.RequestLayout();
3518 SetValue(MarginProperty, value);
3520 NotifyPropertyChanged();
3521 _layout?.RequestLayout();
3526 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
3528 /// <since_tizen> 6 </since_tizen>
3529 public int WidthSpecification
3533 return _widthPolicy;
3537 _widthPolicy = value;
3538 if (_widthPolicy >= 0)
3540 _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3541 Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3543 _layout?.RequestLayout();
3548 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
3550 /// <since_tizen> 6 </since_tizen>
3551 [EditorBrowsable(EditorBrowsableState.Never)]
3552 public int HeightSpecification
3556 return _heightPolicy;
3560 _heightPolicy = value;
3561 if (_heightPolicy >= 0)
3563 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3564 Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3566 _layout?.RequestLayout();
3571 /// Gets the List of transitions for this View.
3573 /// <since_tizen> 6 </since_tizen>
3574 public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
3578 if (_layoutTransitions == null)
3580 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3582 return _layoutTransitions;
3587 /// Set a layout transitions for this View.
3590 /// Use LayoutTransitions to receive a collection of LayoutTransitions set on the View.
3592 /// <since_tizen> 6 </since_tizen>
3593 public LayoutTransition LayoutTransition
3597 if (_layoutTransitions == null)
3599 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3601 LayoutTransitionsHelper.AddTransitionForCondition(_layoutTransitions,value.Condition,value, true);
3603 AttachTransitionsToChildren(value);
3608 /// Deprecated in API5; Will be removed in API8. Please use Padding instead.
3610 /// <since_tizen> 4 </since_tizen>
3611 [Obsolete("Deprecated in API5; Will be removed in API8. Please use Padding instead.")]
3612 [EditorBrowsable(EditorBrowsableState.Never)]
3613 public Extents PaddingEX
3617 Extents temp = new Extents(0, 0, 0, 0);
3618 GetProperty(View.Property.PADDING).Get(temp);
3623 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3624 NotifyPropertyChanged();
3625 _layout?.RequestLayout();
3629 /// <since_tizen> 6 </since_tizen>
3630 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
3631 [EditorBrowsable(EditorBrowsableState.Never)]
3632 public Style XamlStyle
3636 return (Style)GetValue(XamlStyleProperty);
3640 SetValue(XamlStyleProperty, value);
3645 /// The Color of View. This is an RGBA value.
3649 /// Animatable - This property can be animated using <c>Animation</c> class.
3652 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3653 [EditorBrowsable(EditorBrowsableState.Never)]
3662 return GetCurrentColor();
3668 /// Set the layout on this View. Replaces any existing Layout.
3670 /// <since_tizen> 6 </since_tizen>
3671 public LayoutItem Layout
3679 // Do nothing if layout provided is already set on this View.
3680 if (value == _layout)
3685 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3686 layoutingDisabled = false;
3689 // If new layout being set already has a owner then that owner receives a replacement default layout.
3690 // First check if the layout to be set already has a owner.
3691 if (value?.Owner != null)
3693 // Previous owner of the layout gets a default layout as a replacement.
3694 value.Owner.Layout = new LayoutGroup();
3696 // Copy Margin and Padding to replacement LayoutGroup.
3697 value.Owner.Layout.Margin = value.Margin;
3698 value.Owner.Layout.Padding = value.Padding;
3701 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3702 // View if no replacement. Previously margin and padding values would have been moved from
3703 // the View to the layout.
3704 if (_layout != null ) // Existing layout
3708 // Existing layout being replaced so copy over margin and padding values.
3709 value.Margin = _layout.Margin;
3710 value.Padding = _layout.Padding;
3714 // Layout not being replaced so restore margin and padding to View.
3715 SetValue(MarginProperty, _layout.Margin);
3716 SetValue(PaddingProperty, _layout.Padding);
3717 NotifyPropertyChanged();
3722 // First Layout to be added to the View hence copy
3724 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3727 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3729 // If View already has a margin set then store it in Layout instead.
3730 value.Margin = Margin;
3731 SetValue(MarginProperty, new Extents(0,0,0,0));
3732 NotifyPropertyChanged();
3735 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3737 // If View already has a padding set then store it in Layout instead.
3738 value.Padding = Padding;
3739 SetValue(PaddingProperty, new Extents(0,0,0,0));
3740 NotifyPropertyChanged();
3745 // Remove existing layout from it's parent layout group.
3746 _layout?.Unparent();
3748 // Set layout to this view
3754 /// The weight of the View, used to share available space in a layout with siblings.
3756 /// <since_tizen> 6 </since_tizen>
3766 _layout?.RequestLayout();
3772 /// The color mode of View.
3773 /// This specifies whether the View uses its own color, or inherits its parent color.
3774 /// The default is ColorMode.UseOwnMultiplyParentColor.
3776 internal ColorMode ColorMode
3780 SetColorMode(value);
3784 return GetColorMode();
3789 /// Whether to load the BackgroundImage synchronously.
3790 /// If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
3791 /// Note: For Normal Quad images only.
3793 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3794 [EditorBrowsable(EditorBrowsableState.Never)]
3795 public bool BackgroundImageSynchronosLoading
3799 return _backgroundImageSynchronosLoading;
3803 _backgroundImageSynchronosLoading = value;
3806 Background.Find(Visual.Property.Type)?.Get(out visualType);
3807 if (visualType == (int)Visual.Type.Image)
3809 Background.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3812 if (bgUrl.Length != 0)
3814 PropertyMap bgMap = this.Background;
3815 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3822 internal float WorldPositionX
3827 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3832 internal float WorldPositionY
3837 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3842 internal float WorldPositionZ
3847 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3852 internal bool FocusState
3856 return IsKeyboardFocusable();
3860 SetKeyboardFocusable(value);
3864 internal void SetLayout(LayoutItem layout)
3867 _layout?.AttachToOwner(this);
3868 _layout?.RequestLayout();
3872 /// Stores the calculated width value and its ModeType. Width component.
3874 internal MeasureSpecification MeasureSpecificationWidth
3878 _measureSpecificationWidth = value;
3879 _layout?.RequestLayout();
3883 return _measureSpecificationWidth;
3888 /// Stores the calculated width value and its ModeType. Height component.
3890 internal MeasureSpecification MeasureSpecificationHeight
3894 _measureSpecificationHeight = value;
3895 _layout?.RequestLayout();
3899 return _measureSpecificationHeight;
3903 internal void AttachTransitionsToChildren(LayoutTransition transition)
3905 // Iterate children, adding the transition unless a transition
3906 // for the same condition and property has already been
3907 // explicitly added.
3908 foreach (View view in Children)
3910 LayoutTransitionsHelper.AddTransitionForCondition(view.LayoutTransitions,transition.Condition, transition, false);
3914 internal float ParentOriginX
3919 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3924 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3925 NotifyPropertyChanged();
3929 internal float ParentOriginY
3934 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3939 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3940 NotifyPropertyChanged();
3944 internal float ParentOriginZ
3949 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3954 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3955 NotifyPropertyChanged();
3959 internal float PivotPointX
3964 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3969 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3973 internal float PivotPointY
3978 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3983 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3987 internal float PivotPointZ
3992 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3997 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
4001 internal Matrix WorldMatrix
4005 Matrix temp = new Matrix();
4006 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
4011 private int LeftFocusableViewId
4016 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
4021 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4025 private int RightFocusableViewId
4030 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
4035 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4039 private int UpFocusableViewId
4044 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
4049 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4053 private int DownFocusableViewId
4058 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
4063 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4068 /// Perform an action on a visual registered to this view. <br />
4069 /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
4071 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
4072 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
4073 /// <param name="attributes">Optional attributes for the action.</param>
4074 /// <since_tizen> 5 </since_tizen>
4075 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
4077 Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
4078 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4082 /// Creates an animation to animate the background color visual. If there is no
4083 /// background visual, creates one with transparent black as it's mixColor.
4085 /// <since_tizen> 3 </since_tizen>
4086 public Animation AnimateBackgroundColor(object destinationValue,
4089 AlphaFunction.BuiltinFunctions? alphaFunction = null,
4090 object initialValue = null)
4092 Tizen.NUI.PropertyMap background = Background;
4094 if (background.Empty())
4096 // If there is no background yet, ensure there is a transparent
4098 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
4099 background = Background;
4101 return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
4105 /// Creates an animation to animate the mixColor of the named visual.
4107 /// <since_tizen> 3 </since_tizen>
4108 public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
4110 Animation animation = null;
4112 PropertyMap _animator = new PropertyMap();
4113 if (alphaFunction != null)
4115 _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
4118 PropertyMap _timePeriod = new PropertyMap();
4119 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
4120 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
4121 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
4123 PropertyMap _transition = new PropertyMap();
4124 _transition.Add("animator", new PropertyValue(_animator));
4125 _transition.Add("target", new PropertyValue(targetVisual));
4126 _transition.Add("property", new PropertyValue("mixColor"));
4128 if (initialColor != null)
4130 PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
4131 _transition.Add("initialValue", initValue);
4134 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
4135 _transition.Add("targetValue", destValue);
4136 TransitionData _transitionData = new TransitionData(_transition);
4138 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
4139 if (NDalicPINVOKE.SWIGPendingException.Pending)
4140 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4145 // From Container Base class
4147 /// Adds a child view to this view.
4149 /// <seealso cref="Container.Add" />
4150 /// <since_tizen> 4 </since_tizen>
4151 public override void Add(View child)
4153 bool hasLayout = (_layout != null);
4157 Tizen.Log.Fatal("NUI", "Child is null");
4161 Container oldParent = child.GetParent();
4162 if (oldParent != this)
4164 // If child already has a parent then re-parent child
4165 if (oldParent != null)
4167 oldParent.Remove(child);
4169 child.InternalParent = this;
4171 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4173 if (NDalicPINVOKE.SWIGPendingException.Pending)
4174 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4175 Children.Add(child);
4177 if (ChildAdded != null)
4179 ChildAddedEventArgs e = new ChildAddedEventArgs
4183 ChildAdded(this, e);
4185 BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
4190 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4192 /// <seealso cref="Container.Remove" />
4193 /// <since_tizen> 4 </since_tizen>
4194 public override void Remove(View child)
4196 if (!child || child.GetParent()==null) // Early out if child null.
4199 bool hasLayout = (_layout != null);
4201 // If View has a layout then do a deferred child removal
4202 // Actual child removal is performed by the layouting system so
4203 // transitions can be completed.
4206 (_layout as LayoutGroup)?.RemoveChildFromLayoutGroup( child );
4215 /// Retrieves a child view by index.
4217 /// <seealso cref="Container.GetChildAt" />
4218 /// <since_tizen> 4 </since_tizen>
4219 public override View GetChildAt(uint index)
4221 if (index < Children.Count)
4223 return Children[Convert.ToInt32(index)];
4232 /// Retrieves the number of children held by the view.
4234 /// <seealso cref="Container.GetChildCount" />
4235 /// <since_tizen> 4 </since_tizen>
4236 public override uint GetChildCount()
4238 return Convert.ToUInt32(Children.Count);
4242 /// Gets the views parent.
4244 /// <seealso cref="Container.GetParent()" />
4245 /// <since_tizen> 4 </since_tizen>
4246 public override Container GetParent()
4248 return this.InternalParent as Container;
4252 /// Queries whether the view has a focus.
4254 /// <returns>True if this view has a focus.</returns>
4255 /// <since_tizen> 3 </since_tizen>
4256 public bool HasFocus()
4259 if (swigCPtr.Handle != global::System.IntPtr.Zero)
4261 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4266 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4272 /// Sets the name of the style to be applied to the view.
4274 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4275 /// <since_tizen> 3 </since_tizen>
4276 public void SetStyleName(string styleName)
4278 Interop.View.View_SetStyleName(swigCPtr, styleName);
4279 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4283 /// Retrieves the name of the style to be applied to the view (if any).
4285 /// <returns>A string matching a style, or an empty string.</returns>
4286 /// <since_tizen> 3 </since_tizen>
4287 public string GetStyleName()
4289 string ret = Interop.View.View_GetStyleName(swigCPtr);
4290 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4295 /// Clears the background.
4297 /// <since_tizen> 3 </since_tizen>
4298 public void ClearBackground()
4300 Interop.View.View_ClearBackground(swigCPtr);
4301 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4308 /// This is an asynchronous method.
4310 /// <since_tizen> 3 </since_tizen>
4320 /// This is an asynchronous method.
4321 /// If the view is hidden, then the view and its children will not be rendered.
4322 /// 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.
4324 /// <since_tizen> 3 </since_tizen>
4331 /// Raises the view above all other views.
4334 /// Sibling order of views within the parent will be updated automatically.
4335 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4337 /// <since_tizen> 3 </since_tizen>
4338 public void RaiseToTop()
4340 var parentChildren = GetParent()?.Children;
4342 if (parentChildren != null)
4344 parentChildren.Remove(this);
4345 parentChildren.Add(this);
4347 Interop.NDalic.RaiseToTop(swigCPtr);
4348 if (NDalicPINVOKE.SWIGPendingException.Pending)
4349 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4355 /// Lowers the view to the bottom of all views.
4358 /// The sibling order of views within the parent will be updated automatically.
4359 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4361 /// <since_tizen> 3 </since_tizen>
4362 public void LowerToBottom()
4364 var parentChildren = GetParent()?.Children;
4366 if (parentChildren != null)
4368 parentChildren.Remove(this);
4369 parentChildren.Insert(0, this);
4371 Interop.NDalic.LowerToBottom(swigCPtr);
4372 if (NDalicPINVOKE.SWIGPendingException.Pending)
4373 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4378 /// Queries if all resources required by a view are loaded and ready.
4380 /// <remarks>Most resources are only loaded when the control is placed on the stage.
4382 /// <since_tizen> 3 </since_tizen>
4383 public bool IsResourceReady()
4385 bool ret = Interop.View.IsResourceReady(swigCPtr);
4386 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4391 /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4393 /// <pre>The view has been initialized. </pre>
4394 /// <returns>The parent layer of view </returns>
4395 /// <since_tizen> 5 </since_tizen>
4396 public Layer GetLayer()
4398 //to fix memory leak issue, match the handle count with native side.
4399 IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4400 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4401 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4402 Interop.BaseHandle.delete_BaseHandle(CPtr);
4403 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4405 if (NDalicPINVOKE.SWIGPendingException.Pending)
4406 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4411 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4413 /// <pre>The (child) view has been initialized. </pre>
4414 /// <since_tizen> 4 </since_tizen>
4415 public void Unparent()
4417 GetParent()?.Remove(this);
4421 /// Search through this view's hierarchy for a view with the given name.
4422 /// The view itself is also considered in the search.
4424 /// <pre>The view has been initialized.</pre>
4425 /// <param name="viewName">The name of the view to find.</param>
4426 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4427 /// <since_tizen> 3 </since_tizen>
4428 public View FindChildByName(string viewName)
4430 //to fix memory leak issue, match the handle count with native side.
4431 IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4432 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4433 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4434 Interop.BaseHandle.delete_BaseHandle(CPtr);
4435 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4437 if (NDalicPINVOKE.SWIGPendingException.Pending)
4438 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4443 /// Converts screen coordinates into the view's coordinate system using the default camera.
4445 /// <pre>The view has been initialized.</pre>
4446 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4447 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4448 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4449 /// <param name="screenX">The screen X-coordinate.</param>
4450 /// <param name="screenY">The screen Y-coordinate.</param>
4451 /// <returns>True if the conversion succeeded.</returns>
4452 /// <since_tizen> 3 </since_tizen>
4453 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4455 bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4456 if (NDalicPINVOKE.SWIGPendingException.Pending)
4457 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4462 /// Sets the relative to parent size factor of the view.<br />
4463 /// This factor is only used when ResizePolicy is set to either:
4464 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4465 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4467 /// <pre>The view has been initialized.</pre>
4468 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4469 /// <since_tizen> 3 </since_tizen>
4470 public void SetSizeModeFactor(Vector3 factor)
4472 Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4473 if (NDalicPINVOKE.SWIGPendingException.Pending)
4474 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4477 /// Calculates the height of the view given a width.<br />
4478 /// The natural size is used for default calculation.<br />
4479 /// Size 0 is treated as aspect ratio 1:1.<br />
4481 /// <param name="width">The width to use.</param>
4482 /// <returns>The height based on the width.</returns>
4483 /// <since_tizen> 3 </since_tizen>
4484 public float GetHeightForWidth(float width)
4486 float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4487 if (NDalicPINVOKE.SWIGPendingException.Pending)
4488 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4493 /// Calculates the width of the view given a height.<br />
4494 /// The natural size is used for default calculation.<br />
4495 /// Size 0 is treated as aspect ratio 1:1.<br />
4497 /// <param name="height">The height to use.</param>
4498 /// <returns>The width based on the height.</returns>
4499 /// <since_tizen> 3 </since_tizen>
4500 public float GetWidthForHeight(float height)
4502 float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4503 if (NDalicPINVOKE.SWIGPendingException.Pending)
4504 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4509 /// Return the amount of size allocated for relayout.
4511 /// <param name="dimension">The dimension to retrieve.</param>
4512 /// <returns>Return the size.</returns>
4513 /// <since_tizen> 3 </since_tizen>
4514 public float GetRelayoutSize(DimensionType dimension)
4516 float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4517 if (NDalicPINVOKE.SWIGPendingException.Pending)
4518 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4523 /// Set the padding for the view.
4525 /// <param name="padding">Padding for the view.</param>
4526 /// <since_tizen> 3 </since_tizen>
4527 public void SetPadding(PaddingType padding)
4529 Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4530 if (NDalicPINVOKE.SWIGPendingException.Pending)
4531 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4535 /// Return the value of padding for the view.
4537 /// <param name="paddingOut">the value of padding for the view</param>
4538 /// <since_tizen> 3 </since_tizen>
4539 public void GetPadding(PaddingType paddingOut)
4541 Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4542 if (NDalicPINVOKE.SWIGPendingException.Pending)
4543 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4546 /// <since_tizen> 3 </since_tizen>
4547 public uint AddRenderer(Renderer renderer)
4549 uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4550 if (NDalicPINVOKE.SWIGPendingException.Pending)
4551 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4555 /// <since_tizen> 3 </since_tizen>
4556 public Renderer GetRendererAt(uint index)
4558 //to fix memory leak issue, match the handle count with native side.
4559 IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4560 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4561 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4562 if (cPtr != null && ret == null)
4564 ret = new Renderer(cPtr, false);
4565 if (NDalicPINVOKE.SWIGPendingException.Pending)
4566 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4569 Interop.BaseHandle.delete_BaseHandle(CPtr);
4570 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4572 if (NDalicPINVOKE.SWIGPendingException.Pending)
4573 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4577 /// <since_tizen> 3 </since_tizen>
4578 public void RemoveRenderer(Renderer renderer)
4580 Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4581 if (NDalicPINVOKE.SWIGPendingException.Pending)
4582 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4585 /// <since_tizen> 3 </since_tizen>
4586 public void RemoveRenderer(uint index)
4588 Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4589 if (NDalicPINVOKE.SWIGPendingException.Pending)
4590 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4593 internal void Raise()
4595 var parentChildren = GetParent()?.Children;
4597 if (parentChildren != null)
4599 int currentIndex = parentChildren.IndexOf(this);
4601 // If the view is not already the last item in the list.
4602 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4604 View temp = parentChildren[currentIndex + 1];
4605 parentChildren[currentIndex + 1] = this;
4606 parentChildren[currentIndex] = temp;
4608 Interop.NDalic.Raise(swigCPtr);
4609 if (NDalicPINVOKE.SWIGPendingException.Pending)
4610 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4615 internal void Lower()
4617 var parentChildren = GetParent()?.Children;
4619 if (parentChildren != null)
4621 int currentIndex = parentChildren.IndexOf(this);
4623 // If the view is not already the first item in the list.
4624 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4626 View temp = parentChildren[currentIndex - 1];
4627 parentChildren[currentIndex - 1] = this;
4628 parentChildren[currentIndex] = temp;
4630 Interop.NDalic.Lower(swigCPtr);
4631 if (NDalicPINVOKE.SWIGPendingException.Pending)
4632 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4638 /// Raises the view to above the target view.
4640 /// <remarks>The sibling order of views within the parent will be updated automatically.
4641 /// Views on the level above the target view will still be shown above this view.
4642 /// Raising this view above views with the same sibling order as each other will raise this view above them.
4643 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4645 /// <param name="target">Will be raised above this view.</param>
4646 internal void RaiseAbove(View target)
4648 var parentChildren = GetParent()?.Children;
4650 if (parentChildren != null)
4652 int currentIndex = parentChildren.IndexOf(this);
4653 int targetIndex = parentChildren.IndexOf(target);
4655 if (currentIndex < 0 || targetIndex < 0 ||
4656 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4658 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4661 // If the currentIndex is less than the target index and the target has the same parent.
4662 if (currentIndex < targetIndex)
4664 parentChildren.Remove(this);
4665 parentChildren.Insert(targetIndex, this);
4667 Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4668 if (NDalicPINVOKE.SWIGPendingException.Pending)
4669 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4676 /// Lowers the view to below the target view.
4678 /// <remarks>The sibling order of views within the parent will be updated automatically.
4679 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4680 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4682 /// <param name="target">Will be lowered below this view.</param>
4683 internal void LowerBelow(View target)
4685 var parentChildren = GetParent()?.Children;
4687 if (parentChildren != null)
4689 int currentIndex = parentChildren.IndexOf(this);
4690 int targetIndex = parentChildren.IndexOf(target);
4691 if (currentIndex < 0 || targetIndex < 0 ||
4692 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4694 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4698 // If the currentIndex is not already the 0th index and the target has the same parent.
4699 if ((currentIndex != 0) && (targetIndex != -1) &&
4700 (currentIndex > targetIndex))
4702 parentChildren.Remove(this);
4703 parentChildren.Insert(targetIndex, this);
4705 Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4706 if (NDalicPINVOKE.SWIGPendingException.Pending)
4707 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4713 internal string GetName()
4715 string ret = Interop.Actor.Actor_GetName(swigCPtr);
4716 if (NDalicPINVOKE.SWIGPendingException.Pending)
4717 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4721 internal void SetName(string name)
4723 Interop.Actor.Actor_SetName(swigCPtr, name);
4724 if (NDalicPINVOKE.SWIGPendingException.Pending)
4725 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4728 internal uint GetId()
4730 uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4731 if (NDalicPINVOKE.SWIGPendingException.Pending)
4732 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4736 internal bool IsRoot()
4738 bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4739 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4743 internal bool OnWindow()
4745 bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4746 if (NDalicPINVOKE.SWIGPendingException.Pending)
4747 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4751 internal View FindChildById(uint id)
4753 //to fix memory leak issue, match the handle count with native side.
4754 IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4755 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4756 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4757 Interop.BaseHandle.delete_BaseHandle(CPtr);
4758 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4760 if (NDalicPINVOKE.SWIGPendingException.Pending)
4761 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4765 internal override View FindCurrentChildById(uint id)
4767 return FindChildById(id);
4770 internal void SetParentOrigin(Vector3 origin)
4772 Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4773 if (NDalicPINVOKE.SWIGPendingException.Pending)
4774 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4777 internal Vector3 GetCurrentParentOrigin()
4779 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4780 if (NDalicPINVOKE.SWIGPendingException.Pending)
4781 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4785 internal void SetAnchorPoint(Vector3 anchorPoint)
4787 Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4788 if (NDalicPINVOKE.SWIGPendingException.Pending)
4789 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4792 internal Vector3 GetCurrentAnchorPoint()
4794 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4795 if (NDalicPINVOKE.SWIGPendingException.Pending)
4796 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4800 internal void SetSize(float width, float height)
4802 Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4803 if (NDalicPINVOKE.SWIGPendingException.Pending)
4804 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4807 internal void SetSize(float width, float height, float depth)
4809 Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4810 if (NDalicPINVOKE.SWIGPendingException.Pending)
4811 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4814 internal void SetSize(Vector2 size)
4816 Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4817 if (NDalicPINVOKE.SWIGPendingException.Pending)
4818 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4821 internal void SetSize(Vector3 size)
4823 Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4824 if (NDalicPINVOKE.SWIGPendingException.Pending)
4825 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4828 internal Vector3 GetTargetSize()
4830 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4831 if (NDalicPINVOKE.SWIGPendingException.Pending)
4832 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4836 internal Size2D GetCurrentSize()
4838 Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4839 if (NDalicPINVOKE.SWIGPendingException.Pending)
4840 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4841 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4845 internal Vector3 GetNaturalSize()
4847 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4848 if (NDalicPINVOKE.SWIGPendingException.Pending)
4849 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4853 internal void SetPosition(float x, float y)
4855 Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4856 if (NDalicPINVOKE.SWIGPendingException.Pending)
4857 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4860 internal void SetPosition(float x, float y, float z)
4862 Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4863 if (NDalicPINVOKE.SWIGPendingException.Pending)
4864 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4867 internal void SetPosition(Vector3 position)
4869 Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4870 if (NDalicPINVOKE.SWIGPendingException.Pending)
4871 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4874 internal void SetX(float x)
4876 Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4877 if (NDalicPINVOKE.SWIGPendingException.Pending)
4878 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4881 internal void SetY(float y)
4883 Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4884 if (NDalicPINVOKE.SWIGPendingException.Pending)
4885 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4888 internal void SetZ(float z)
4890 Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4891 if (NDalicPINVOKE.SWIGPendingException.Pending)
4892 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4895 internal void TranslateBy(Vector3 distance)
4897 Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4898 if (NDalicPINVOKE.SWIGPendingException.Pending)
4899 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4902 internal Position GetCurrentPosition()
4904 Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4905 if (NDalicPINVOKE.SWIGPendingException.Pending)
4906 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4910 internal Vector3 GetCurrentWorldPosition()
4912 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4913 if (NDalicPINVOKE.SWIGPendingException.Pending)
4914 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4918 internal void SetInheritPosition(bool inherit)
4920 Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4921 if (NDalicPINVOKE.SWIGPendingException.Pending)
4922 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4925 internal bool IsPositionInherited()
4927 bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4928 if (NDalicPINVOKE.SWIGPendingException.Pending)
4929 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4933 internal void SetOrientation(Degree angle, Vector3 axis)
4935 Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4936 if (NDalicPINVOKE.SWIGPendingException.Pending)
4937 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4940 internal void SetOrientation(Radian angle, Vector3 axis)
4942 Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4943 if (NDalicPINVOKE.SWIGPendingException.Pending)
4944 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4947 internal void SetOrientation(Rotation orientation)
4949 Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4950 if (NDalicPINVOKE.SWIGPendingException.Pending)
4951 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4954 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4955 [EditorBrowsable(EditorBrowsableState.Never)]
4956 public void RotateBy(Degree angle, Vector3 axis)
4958 Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4959 if (NDalicPINVOKE.SWIGPendingException.Pending)
4960 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4963 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4964 [EditorBrowsable(EditorBrowsableState.Never)]
4965 public void RotateBy(Radian angle, Vector3 axis)
4967 Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4968 if (NDalicPINVOKE.SWIGPendingException.Pending)
4969 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4972 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4973 [EditorBrowsable(EditorBrowsableState.Never)]
4974 public void RotateBy(Rotation relativeRotation)
4976 Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4977 if (NDalicPINVOKE.SWIGPendingException.Pending)
4978 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4981 internal Rotation GetCurrentOrientation()
4983 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4984 if (NDalicPINVOKE.SWIGPendingException.Pending)
4985 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4989 internal void SetInheritOrientation(bool inherit)
4991 Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4992 if (NDalicPINVOKE.SWIGPendingException.Pending)
4993 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4996 internal bool IsOrientationInherited()
4998 bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
4999 if (NDalicPINVOKE.SWIGPendingException.Pending)
5000 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5004 internal Rotation GetCurrentWorldOrientation()
5006 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
5007 if (NDalicPINVOKE.SWIGPendingException.Pending)
5008 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5012 internal void SetScale(float scale)
5014 Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
5015 if (NDalicPINVOKE.SWIGPendingException.Pending)
5016 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5019 internal void SetScale(float scaleX, float scaleY, float scaleZ)
5021 Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
5022 if (NDalicPINVOKE.SWIGPendingException.Pending)
5023 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5026 internal void SetScale(Vector3 scale)
5028 Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
5029 if (NDalicPINVOKE.SWIGPendingException.Pending)
5030 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5033 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5034 [EditorBrowsable(EditorBrowsableState.Never)]
5035 public void ScaleBy(Vector3 relativeScale)
5037 Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
5038 if (NDalicPINVOKE.SWIGPendingException.Pending)
5039 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5042 internal Vector3 GetCurrentScale()
5044 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
5045 if (NDalicPINVOKE.SWIGPendingException.Pending)
5046 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5050 internal Vector3 GetCurrentWorldScale()
5052 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
5053 if (NDalicPINVOKE.SWIGPendingException.Pending)
5054 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5058 internal void SetInheritScale(bool inherit)
5060 Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
5061 if (NDalicPINVOKE.SWIGPendingException.Pending)
5062 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5065 internal bool IsScaleInherited()
5067 bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
5068 if (NDalicPINVOKE.SWIGPendingException.Pending)
5069 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5073 internal Matrix GetCurrentWorldMatrix()
5075 Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
5076 if (NDalicPINVOKE.SWIGPendingException.Pending)
5077 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5081 internal void SetVisible(bool visible)
5083 Interop.Actor.Actor_SetVisible(swigCPtr, visible);
5084 if (NDalicPINVOKE.SWIGPendingException.Pending)
5085 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5088 internal bool IsVisible()
5090 bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
5091 if (NDalicPINVOKE.SWIGPendingException.Pending)
5092 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5096 internal void SetOpacity(float opacity)
5098 Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
5099 if (NDalicPINVOKE.SWIGPendingException.Pending)
5100 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5103 internal float GetCurrentOpacity()
5105 float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
5106 if (NDalicPINVOKE.SWIGPendingException.Pending)
5107 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5111 internal void SetColor(Vector4 color)
5113 Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
5114 if (NDalicPINVOKE.SWIGPendingException.Pending)
5115 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5118 internal Vector4 GetCurrentColor()
5120 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
5121 if (NDalicPINVOKE.SWIGPendingException.Pending)
5122 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5126 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
5127 [EditorBrowsable(EditorBrowsableState.Never)]
5128 public void SetColorMode(ColorMode colorMode)
5130 Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
5131 if (NDalicPINVOKE.SWIGPendingException.Pending)
5132 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5135 internal ColorMode GetColorMode()
5137 ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
5138 if (NDalicPINVOKE.SWIGPendingException.Pending)
5139 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5143 internal Vector4 GetCurrentWorldColor()
5145 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
5146 if (NDalicPINVOKE.SWIGPendingException.Pending)
5147 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5151 internal void SetDrawMode(DrawModeType drawMode)
5153 Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
5154 if (NDalicPINVOKE.SWIGPendingException.Pending)
5155 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5158 internal DrawModeType GetDrawMode()
5160 DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
5161 if (NDalicPINVOKE.SWIGPendingException.Pending)
5162 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5166 internal void SetKeyboardFocusable(bool focusable)
5168 Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5169 if (NDalicPINVOKE.SWIGPendingException.Pending)
5170 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5173 internal bool IsKeyboardFocusable()
5175 bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5176 if (NDalicPINVOKE.SWIGPendingException.Pending)
5177 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5181 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5183 Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5184 if (NDalicPINVOKE.SWIGPendingException.Pending)
5185 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5188 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5190 ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5191 if (NDalicPINVOKE.SWIGPendingException.Pending)
5192 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5196 internal Vector3 GetSizeModeFactor()
5198 Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5199 if (NDalicPINVOKE.SWIGPendingException.Pending)
5200 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5204 internal void SetMinimumSize(Vector2 size)
5206 Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5207 if (NDalicPINVOKE.SWIGPendingException.Pending)
5208 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5211 internal Vector2 GetMinimumSize()
5213 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5214 if (NDalicPINVOKE.SWIGPendingException.Pending)
5215 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5219 internal void SetMaximumSize(Vector2 size)
5221 Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5222 if (NDalicPINVOKE.SWIGPendingException.Pending)
5223 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5226 internal Vector2 GetMaximumSize()
5228 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5229 if (NDalicPINVOKE.SWIGPendingException.Pending)
5230 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5234 internal int GetHierarchyDepth()
5236 int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5237 if (NDalicPINVOKE.SWIGPendingException.Pending)
5238 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5242 internal uint GetRendererCount()
5244 uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5245 if (NDalicPINVOKE.SWIGPendingException.Pending)
5246 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5250 internal TouchDataSignal TouchSignal()
5252 TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5253 if (NDalicPINVOKE.SWIGPendingException.Pending)
5254 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5258 internal HoverSignal HoveredSignal()
5260 HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5261 if (NDalicPINVOKE.SWIGPendingException.Pending)
5262 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5266 internal WheelSignal WheelEventSignal()
5268 WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5269 if (NDalicPINVOKE.SWIGPendingException.Pending)
5270 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5274 internal ViewSignal OnWindowSignal()
5276 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5277 if (NDalicPINVOKE.SWIGPendingException.Pending)
5278 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5282 internal ViewSignal OffWindowSignal()
5284 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5285 if (NDalicPINVOKE.SWIGPendingException.Pending)
5286 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5290 internal ViewSignal OnRelayoutSignal()
5292 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5293 if (NDalicPINVOKE.SWIGPendingException.Pending)
5294 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5298 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5300 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5301 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5305 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5307 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5308 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5312 internal ViewSignal ResourcesLoadedSignal()
5314 ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5315 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5319 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5321 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5324 internal bool IsTopLevelView()
5326 if (GetParent() is Layer)
5333 internal void SetKeyInputFocus()
5335 Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5336 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5339 internal void ClearKeyInputFocus()
5341 Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5342 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5345 internal PinchGestureDetector GetPinchGestureDetector()
5347 PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5348 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5352 internal PanGestureDetector GetPanGestureDetector()
5354 PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5359 internal TapGestureDetector GetTapGestureDetector()
5361 TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5362 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5366 internal LongPressGestureDetector GetLongPressGestureDetector()
5368 LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5369 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5373 internal ControlKeySignal KeyEventSignal()
5375 ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5376 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5380 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5382 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5383 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5387 internal KeyInputFocusSignal KeyInputFocusLostSignal()
5389 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5394 internal IntPtr GetPtrfromView()
5396 return (IntPtr)swigCPtr;
5399 internal void RemoveChild(View child)
5401 // Do actual child removal
5402 Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
5403 if (NDalicPINVOKE.SWIGPendingException.Pending)
5404 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5406 Children.Remove(child);
5407 child.InternalParent = null;
5409 if (ChildRemoved != null)
5411 ChildRemovedEventArgs e = new ChildRemovedEventArgs
5415 ChildRemoved(this, e);
5420 /// Removes the layout from this View.
5422 internal void ResetLayout()
5427 internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5429 return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5433 /// you can override it to clean-up your own resources.
5435 /// <param name="type">DisposeTypes</param>
5436 /// <since_tizen> 3 </since_tizen>
5437 protected override void Dispose(DisposeTypes type)
5444 //_mergedStyle = null;
5446 //Release your own unmanaged resources here.
5447 //You should not access any managed member here except static instance.
5448 //because the execution order of Finalizes is non-deterministic.
5451 DisConnectFromSignals();
5454 if (swigCPtr.Handle != global::System.IntPtr.Zero)
5458 swigCMemOwn = false;
5459 Interop.View.delete_View(swigCPtr);
5461 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5464 foreach (View view in Children)
5466 view.InternalParent = null;
5473 private void OnSize2DChanged(int width, int height)
5475 Size2D = new Size2D(width, height);
5478 private void OnMinimumSizeChanged(int width, int height)
5480 MinimumSize = new Size2D(width, height);
5483 private void OnMaximumSizeChanged(int width, int height)
5485 MaximumSize = new Size2D(width, height);
5488 private void OnPosition2DChanged(int x, int y)
5490 Position2D = new Position2D(x, y);
5493 private void OnSizeChanged(float width, float height, float depth)
5495 Size = new Size(width, height, depth);
5498 private void OnPositionChanged(float x, float y, float z)
5500 Position = new Position(x, y, z);
5503 private void OnParentOriginChanged(float x, float y, float z)
5505 ParentOrigin = new Position(x, y, z);
5508 private void OnPivotPointChanged(float x, float y, float z)
5510 PivotPoint = new Position(x, y, z);
5513 private void DisConnectFromSignals()
5515 // Save current CPtr.
5516 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5518 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5519 swigCPtr = GetBaseHandleCPtrHandleRef;
5521 if (_onRelayoutEventCallback != null)
5523 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5526 if (_offWindowEventCallback != null)
5528 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5531 if (_onWindowEventCallback != null)
5533 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5536 if (_wheelEventCallback != null)
5538 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5541 if (_hoverEventCallback != null)
5543 this.HoveredSignal().Disconnect(_hoverEventCallback);
5546 if (_touchDataCallback != null)
5548 this.TouchSignal().Disconnect(_touchDataCallback);
5551 if (_ResourcesLoadedCallback != null)
5553 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5556 if (_offWindowEventCallback != null)
5558 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5561 if (_onWindowEventCallback != null)
5563 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5566 if (_wheelEventCallback != null)
5568 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5571 if (_hoverEventCallback != null)
5573 this.HoveredSignal().Disconnect(_hoverEventCallback);
5576 if (_touchDataCallback != null)
5578 this.TouchSignal().Disconnect(_touchDataCallback);
5581 if (_onRelayoutEventCallback != null)
5583 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5586 if (_keyCallback != null)
5588 this.KeyEventSignal().Disconnect(_keyCallback);
5591 if (_keyInputFocusLostCallback != null)
5593 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5596 if (_keyInputFocusGainedCallback != null)
5598 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5601 if (_backgroundResourceLoadedCallback != null)
5603 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5606 if (_onWindowSendEventCallback != null)
5608 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5611 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5612 // Restore current CPtr.
5613 swigCPtr = currentCPtr;
5616 private void OnKeyInputFocusGained(IntPtr view)
5618 if (_keyInputFocusGainedEventHandler != null)
5620 _keyInputFocusGainedEventHandler(this, null);
5624 private void OnKeyInputFocusLost(IntPtr view)
5626 if (_keyInputFocusLostEventHandler != null)
5628 _keyInputFocusLostEventHandler(this, null);
5632 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5634 if (keyEvent == global::System.IntPtr.Zero)
5636 NUILog.Error("keyEvent should not be null!");
5640 KeyEventArgs e = new KeyEventArgs();
5642 bool result = false;
5644 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5646 if (_keyEventHandler != null)
5648 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5650 // Oring the result of each callback.
5651 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5653 result |= del(this, e);
5660 // Callback for View OnRelayout signal
5661 private void OnRelayout(IntPtr data)
5663 if (_onRelayoutEventHandler != null)
5665 _onRelayoutEventHandler(this, null);
5669 // Callback for View TouchSignal
5670 private bool OnTouch(IntPtr view, IntPtr touchData)
5672 if (touchData == global::System.IntPtr.Zero)
5674 NUILog.Error("touchData should not be null!");
5678 TouchEventArgs e = new TouchEventArgs();
5680 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5682 if (_touchDataEventHandler != null)
5684 return _touchDataEventHandler(this, e);
5689 // Callback for View Hover signal
5690 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5692 if (hoverEvent == global::System.IntPtr.Zero)
5694 NUILog.Error("hoverEvent should not be null!");
5698 HoverEventArgs e = new HoverEventArgs();
5700 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5702 if (_hoverEventHandler != null)
5704 return _hoverEventHandler(this, e);
5709 // Callback for View Wheel signal
5710 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5712 if (wheelEvent == global::System.IntPtr.Zero)
5714 NUILog.Error("wheelEvent should not be null!");
5718 WheelEventArgs e = new WheelEventArgs();
5720 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5722 if (_wheelEventHandler != null)
5724 return _wheelEventHandler(this, e);
5729 // Callback for View OnWindow signal
5730 private void OnWindow(IntPtr data)
5732 if (_onWindowEventHandler != null)
5734 _onWindowEventHandler(this, null);
5738 // Callback for View OffWindow signal
5739 private void OffWindow(IntPtr data)
5741 if (_offWindowEventHandler != null)
5743 _offWindowEventHandler(this, null);
5747 // Callback for View visibility change signal
5748 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5750 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5753 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5755 e.Visibility = visibility;
5758 if (_visibilityChangedEventHandler != null)
5760 _visibilityChangedEventHandler(this, e);
5764 // Callback for View layout direction change signal
5765 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5767 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5770 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5774 if (_layoutDirectionChangedEventHandler != null)
5776 _layoutDirectionChangedEventHandler(this, e);
5780 private void OnResourcesLoaded(IntPtr view)
5782 if (_resourcesLoadedEventHandler != null)
5784 _resourcesLoadedEventHandler(this, null);
5788 private View ConvertIdToView(uint id)
5790 View view = GetParent()?.FindCurrentChildById(id);
5792 //If we can't find the parent's children, find in the top layer.
5795 Container parent = GetParent();
5796 while ((parent is View) && (parent != null))
5798 parent = parent.GetParent();
5799 if (parent is Layer)
5801 view = parent.FindCurrentChildById(id);
5810 private void OnBackgroundResourceLoaded(IntPtr view)
5812 BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5813 e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5815 if (_backgroundResourceLoadedEventHandler != null)
5817 _backgroundResourceLoadedEventHandler(this, e);
5822 /// Event argument passed through the ChildAdded event.
5824 /// <since_tizen> 5 </since_tizen>
5825 public class ChildAddedEventArgs : EventArgs
5828 /// Added child view at moment.
5830 /// <since_tizen> 5 </since_tizen>
5831 public View Added { get; set; }
5835 /// Event argument passed through the ChildRemoved event.
5837 /// <since_tizen> 5 </since_tizen>
5838 public class ChildRemovedEventArgs : EventArgs
5841 /// Removed child view at moment.
5843 /// <since_tizen> 5 </since_tizen>
5844 public View Removed { get; set; }
5848 /// Event arguments that passed via the KeyEvent signal.
5850 /// <since_tizen> 3 </since_tizen>
5851 public class KeyEventArgs : EventArgs
5856 /// Key - is the key sent to the view.
5858 /// <since_tizen> 3 </since_tizen>
5873 /// Event arguments that passed via the touch signal.
5875 /// <since_tizen> 3 </since_tizen>
5876 public class TouchEventArgs : EventArgs
5878 private Touch _touch;
5881 /// Touch - contains the information of touch points.
5883 /// <since_tizen> 3 </since_tizen>
5898 /// Event arguments that passed via the hover signal.
5900 /// <since_tizen> 3 </since_tizen>
5901 public class HoverEventArgs : EventArgs
5903 private Hover _hover;
5906 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5908 /// <since_tizen> 3 </since_tizen>
5923 /// Event arguments that passed via the wheel signal.
5925 /// <since_tizen> 3 </since_tizen>
5926 public class WheelEventArgs : EventArgs
5928 private Wheel _wheel;
5931 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5933 /// <since_tizen> 3 </since_tizen>
5948 /// Event arguments of visibility changed.
5950 /// <since_tizen> 3 </since_tizen>
5951 public class VisibilityChangedEventArgs : EventArgs
5954 private bool _visibility;
5955 private VisibilityChangeType _type;
5958 /// The view, or child of view, whose visibility has changed.
5960 /// <since_tizen> 3 </since_tizen>
5974 /// Whether the view is now visible or not.
5976 /// <since_tizen> 3 </since_tizen>
5977 public bool Visibility
5985 _visibility = value;
5990 /// Whether the view's visible property has changed or a parent's.
5992 /// <since_tizen> 3 </since_tizen>
5993 public VisibilityChangeType Type
6007 /// Event arguments of layout direction changed.
6009 /// <since_tizen> 4 </since_tizen>
6010 public class LayoutDirectionChangedEventArgs : EventArgs
6013 private ViewLayoutDirectionType _type;
6016 /// The view, or child of view, whose layout direction has changed.
6018 /// <since_tizen> 4 </since_tizen>
6032 /// Whether the view's layout direction property has changed or a parent's.
6034 /// <since_tizen> 4 </since_tizen>
6035 public ViewLayoutDirectionType Type
6048 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
6049 [EditorBrowsable(EditorBrowsableState.Never)]
6050 public Vector2 UpdateSizeHint
6054 return (Vector2)GetValue(UpdateSizeHintProperty);
6058 SetValue(UpdateSizeHintProperty, value);
6059 NotifyPropertyChanged();
6063 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
6065 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
6066 [EditorBrowsable(EditorBrowsableState.Never)]
6067 public Transition GetTransition(string transitionName)
6069 Transition trans = null;
6070 transDictionary.TryGetValue(transitionName, out trans);
6074 private void LoadTransitions()
6076 foreach (string str in transitionNames)
6078 string resourceName = str + ".xaml";
6079 Transition trans = null;
6081 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
6083 string likelyResourcePath = resource + "animation/" + resourceName;
6085 if (File.Exists(likelyResourcePath))
6087 trans = Extensions.LoadObject<Transition>(likelyResourcePath);
6091 transDictionary.Add(trans.Name, trans);
6096 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
6097 [EditorBrowsable(EditorBrowsableState.Never)]
6098 public string[] TransitionNames
6102 return transitionNames;
6106 transitionNames = value;
6110 private string[] transitionNames;
6112 internal class BackgroundResourceLoadedEventArgs : EventArgs
6114 private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
6115 public ResourceLoadingStatusType Status
6128 internal class Property
6130 internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
6131 internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
6132 internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
6133 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
6134 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
6135 internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
6136 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
6137 internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
6138 internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
6139 internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
6140 internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
6141 internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
6142 internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
6143 internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
6144 internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
6145 internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
6146 internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
6147 internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
6148 internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
6149 internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
6150 internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
6151 internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
6152 internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
6153 internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
6154 internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
6155 internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
6156 internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
6157 internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
6158 internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
6159 internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
6160 internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
6161 internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
6162 internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
6163 internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
6164 internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
6165 internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
6166 internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
6167 internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
6168 internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
6169 internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
6170 internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
6171 internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
6172 internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
6173 internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
6174 internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
6175 internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
6176 internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
6177 internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
6178 internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
6179 internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
6180 internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
6181 internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
6182 internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
6183 internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
6184 internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
6185 internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
6186 internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
6187 internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
6188 internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
6189 internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
6190 internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
6191 internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
6192 internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();