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));
3542 Size2D.Width = _widthPolicy;
3544 _layout?.RequestLayout();
3549 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
3551 /// <since_tizen> 6 </since_tizen>
3552 [EditorBrowsable(EditorBrowsableState.Never)]
3553 public int HeightSpecification
3557 return _heightPolicy;
3561 _heightPolicy = value;
3562 if (_heightPolicy >= 0)
3564 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3565 //Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3566 Size2D.Height = _heightPolicy;
3568 _layout?.RequestLayout();
3573 /// Gets the List of transitions for this View.
3575 /// <since_tizen> 6 </since_tizen>
3576 public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
3580 if (_layoutTransitions == null)
3582 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3584 return _layoutTransitions;
3589 /// Set a layout transitions for this View.
3592 /// Use LayoutTransitions to receive a collection of LayoutTransitions set on the View.
3594 /// <since_tizen> 6 </since_tizen>
3595 public LayoutTransition LayoutTransition
3599 if (_layoutTransitions == null)
3601 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3603 LayoutTransitionsHelper.AddTransitionForCondition(_layoutTransitions,value.Condition,value, true);
3605 AttachTransitionsToChildren(value);
3610 /// Deprecated in API5; Will be removed in API8. Please use Padding instead.
3612 /// <since_tizen> 4 </since_tizen>
3613 [Obsolete("Deprecated in API5; Will be removed in API8. Please use Padding instead.")]
3614 [EditorBrowsable(EditorBrowsableState.Never)]
3615 public Extents PaddingEX
3619 Extents temp = new Extents(0, 0, 0, 0);
3620 GetProperty(View.Property.PADDING).Get(temp);
3625 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3626 NotifyPropertyChanged();
3627 _layout?.RequestLayout();
3631 /// <since_tizen> 6 </since_tizen>
3632 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
3633 [EditorBrowsable(EditorBrowsableState.Never)]
3634 public Style XamlStyle
3638 return (Style)GetValue(XamlStyleProperty);
3642 SetValue(XamlStyleProperty, value);
3647 /// The Color of View. This is an RGBA value.
3651 /// Animatable - This property can be animated using <c>Animation</c> class.
3654 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3655 [EditorBrowsable(EditorBrowsableState.Never)]
3664 return GetCurrentColor();
3670 /// Set the layout on this View. Replaces any existing Layout.
3672 /// <since_tizen> 6 </since_tizen>
3673 public LayoutItem Layout
3681 // Do nothing if layout provided is already set on this View.
3682 if (value == _layout)
3687 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3688 layoutingDisabled = false;
3691 // If new layout being set already has a owner then that owner receives a replacement default layout.
3692 // First check if the layout to be set already has a owner.
3693 if (value?.Owner != null)
3695 // Previous owner of the layout gets a default layout as a replacement.
3696 value.Owner.Layout = new LayoutGroup();
3698 // Copy Margin and Padding to replacement LayoutGroup.
3699 value.Owner.Layout.Margin = value.Margin;
3700 value.Owner.Layout.Padding = value.Padding;
3703 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3704 // View if no replacement. Previously margin and padding values would have been moved from
3705 // the View to the layout.
3706 if (_layout != null ) // Existing layout
3710 // Existing layout being replaced so copy over margin and padding values.
3711 value.Margin = _layout.Margin;
3712 value.Padding = _layout.Padding;
3716 // Layout not being replaced so restore margin and padding to View.
3717 SetValue(MarginProperty, _layout.Margin);
3718 SetValue(PaddingProperty, _layout.Padding);
3719 NotifyPropertyChanged();
3724 // First Layout to be added to the View hence copy
3726 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3729 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3731 // If View already has a margin set then store it in Layout instead.
3732 value.Margin = Margin;
3733 SetValue(MarginProperty, new Extents(0,0,0,0));
3734 NotifyPropertyChanged();
3737 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3739 // If View already has a padding set then store it in Layout instead.
3740 value.Padding = Padding;
3741 SetValue(PaddingProperty, new Extents(0,0,0,0));
3742 NotifyPropertyChanged();
3747 // Remove existing layout from it's parent layout group.
3748 _layout?.Unparent();
3750 // Set layout to this view
3756 /// The weight of the View, used to share available space in a layout with siblings.
3758 /// <since_tizen> 6 </since_tizen>
3768 _layout?.RequestLayout();
3774 /// The color mode of View.
3775 /// This specifies whether the View uses its own color, or inherits its parent color.
3776 /// The default is ColorMode.UseOwnMultiplyParentColor.
3778 internal ColorMode ColorMode
3782 SetColorMode(value);
3786 return GetColorMode();
3791 /// Whether to load the BackgroundImage synchronously.
3792 /// If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
3793 /// Note: For Normal Quad images only.
3795 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3796 [EditorBrowsable(EditorBrowsableState.Never)]
3797 public bool BackgroundImageSynchronosLoading
3801 return _backgroundImageSynchronosLoading;
3805 _backgroundImageSynchronosLoading = value;
3808 Background.Find(Visual.Property.Type)?.Get(out visualType);
3809 if (visualType == (int)Visual.Type.Image)
3811 Background.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3814 if (bgUrl.Length != 0)
3816 PropertyMap bgMap = this.Background;
3817 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3824 internal float WorldPositionX
3829 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3834 internal float WorldPositionY
3839 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3844 internal float WorldPositionZ
3849 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3854 internal bool FocusState
3858 return IsKeyboardFocusable();
3862 SetKeyboardFocusable(value);
3866 internal void SetLayout(LayoutItem layout)
3869 _layout?.AttachToOwner(this);
3870 _layout?.RequestLayout();
3874 /// Stores the calculated width value and its ModeType. Width component.
3876 internal MeasureSpecification MeasureSpecificationWidth
3880 _measureSpecificationWidth = value;
3881 _layout?.RequestLayout();
3885 return _measureSpecificationWidth;
3890 /// Stores the calculated width value and its ModeType. Height component.
3892 internal MeasureSpecification MeasureSpecificationHeight
3896 _measureSpecificationHeight = value;
3897 _layout?.RequestLayout();
3901 return _measureSpecificationHeight;
3905 internal void AttachTransitionsToChildren(LayoutTransition transition)
3907 // Iterate children, adding the transition unless a transition
3908 // for the same condition and property has already been
3909 // explicitly added.
3910 foreach (View view in Children)
3912 LayoutTransitionsHelper.AddTransitionForCondition(view.LayoutTransitions,transition.Condition, transition, false);
3916 internal float ParentOriginX
3921 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3926 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3927 NotifyPropertyChanged();
3931 internal float ParentOriginY
3936 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3941 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3942 NotifyPropertyChanged();
3946 internal float ParentOriginZ
3951 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3956 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3957 NotifyPropertyChanged();
3961 internal float PivotPointX
3966 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3971 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3975 internal float PivotPointY
3980 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3985 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3989 internal float PivotPointZ
3994 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3999 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
4003 internal Matrix WorldMatrix
4007 Matrix temp = new Matrix();
4008 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
4013 private int LeftFocusableViewId
4018 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
4023 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4027 private int RightFocusableViewId
4032 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
4037 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4041 private int UpFocusableViewId
4046 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
4051 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4055 private int DownFocusableViewId
4060 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
4065 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4070 /// Perform an action on a visual registered to this view. <br />
4071 /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
4073 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
4074 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
4075 /// <param name="attributes">Optional attributes for the action.</param>
4076 /// <since_tizen> 5 </since_tizen>
4077 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
4079 Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
4080 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4084 /// Creates an animation to animate the background color visual. If there is no
4085 /// background visual, creates one with transparent black as it's mixColor.
4087 /// <since_tizen> 3 </since_tizen>
4088 public Animation AnimateBackgroundColor(object destinationValue,
4091 AlphaFunction.BuiltinFunctions? alphaFunction = null,
4092 object initialValue = null)
4094 Tizen.NUI.PropertyMap background = Background;
4096 if (background.Empty())
4098 // If there is no background yet, ensure there is a transparent
4100 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
4101 background = Background;
4103 return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
4107 /// Creates an animation to animate the mixColor of the named visual.
4109 /// <since_tizen> 3 </since_tizen>
4110 public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
4112 Animation animation = null;
4114 PropertyMap _animator = new PropertyMap();
4115 if (alphaFunction != null)
4117 _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
4120 PropertyMap _timePeriod = new PropertyMap();
4121 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
4122 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
4123 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
4125 PropertyMap _transition = new PropertyMap();
4126 _transition.Add("animator", new PropertyValue(_animator));
4127 _transition.Add("target", new PropertyValue(targetVisual));
4128 _transition.Add("property", new PropertyValue("mixColor"));
4130 if (initialColor != null)
4132 PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
4133 _transition.Add("initialValue", initValue);
4136 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
4137 _transition.Add("targetValue", destValue);
4138 TransitionData _transitionData = new TransitionData(_transition);
4140 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
4141 if (NDalicPINVOKE.SWIGPendingException.Pending)
4142 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4147 // From Container Base class
4149 /// Adds a child view to this view.
4151 /// <seealso cref="Container.Add" />
4152 /// <since_tizen> 4 </since_tizen>
4153 public override void Add(View child)
4155 bool hasLayout = (_layout != null);
4159 Tizen.Log.Fatal("NUI", "Child is null");
4163 Container oldParent = child.GetParent();
4164 if (oldParent != this)
4166 // If child already has a parent then re-parent child
4167 if (oldParent != null)
4169 oldParent.Remove(child);
4171 child.InternalParent = this;
4173 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4175 if (NDalicPINVOKE.SWIGPendingException.Pending)
4176 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4177 Children.Add(child);
4179 if (ChildAdded != null)
4181 ChildAddedEventArgs e = new ChildAddedEventArgs
4185 ChildAdded(this, e);
4187 BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
4192 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4194 /// <seealso cref="Container.Remove" />
4195 /// <since_tizen> 4 </since_tizen>
4196 public override void Remove(View child)
4198 if (!child || child.GetParent()==null) // Early out if child null.
4201 bool hasLayout = (_layout != null);
4203 // If View has a layout then do a deferred child removal
4204 // Actual child removal is performed by the layouting system so
4205 // transitions can be completed.
4208 (_layout as LayoutGroup)?.RemoveChildFromLayoutGroup( child );
4217 /// Retrieves a child view by index.
4219 /// <seealso cref="Container.GetChildAt" />
4220 /// <since_tizen> 4 </since_tizen>
4221 public override View GetChildAt(uint index)
4223 if (index < Children.Count)
4225 return Children[Convert.ToInt32(index)];
4234 /// Retrieves the number of children held by the view.
4236 /// <seealso cref="Container.GetChildCount" />
4237 /// <since_tizen> 4 </since_tizen>
4238 public override uint GetChildCount()
4240 return Convert.ToUInt32(Children.Count);
4244 /// Gets the views parent.
4246 /// <seealso cref="Container.GetParent()" />
4247 /// <since_tizen> 4 </since_tizen>
4248 public override Container GetParent()
4250 return this.InternalParent as Container;
4254 /// Queries whether the view has a focus.
4256 /// <returns>True if this view has a focus.</returns>
4257 /// <since_tizen> 3 </since_tizen>
4258 public bool HasFocus()
4261 if (swigCPtr.Handle != global::System.IntPtr.Zero)
4263 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4264 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4268 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4274 /// Sets the name of the style to be applied to the view.
4276 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4277 /// <since_tizen> 3 </since_tizen>
4278 public void SetStyleName(string styleName)
4280 Interop.View.View_SetStyleName(swigCPtr, styleName);
4281 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4285 /// Retrieves the name of the style to be applied to the view (if any).
4287 /// <returns>A string matching a style, or an empty string.</returns>
4288 /// <since_tizen> 3 </since_tizen>
4289 public string GetStyleName()
4291 string ret = Interop.View.View_GetStyleName(swigCPtr);
4292 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4297 /// Clears the background.
4299 /// <since_tizen> 3 </since_tizen>
4300 public void ClearBackground()
4302 Interop.View.View_ClearBackground(swigCPtr);
4303 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4310 /// This is an asynchronous method.
4312 /// <since_tizen> 3 </since_tizen>
4322 /// This is an asynchronous method.
4323 /// If the view is hidden, then the view and its children will not be rendered.
4324 /// 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.
4326 /// <since_tizen> 3 </since_tizen>
4333 /// Raises the view above all other views.
4336 /// Sibling order of views within the parent will be updated automatically.
4337 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4339 /// <since_tizen> 3 </since_tizen>
4340 public void RaiseToTop()
4342 var parentChildren = GetParent()?.Children;
4344 if (parentChildren != null)
4346 parentChildren.Remove(this);
4347 parentChildren.Add(this);
4349 Interop.NDalic.RaiseToTop(swigCPtr);
4350 if (NDalicPINVOKE.SWIGPendingException.Pending)
4351 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4357 /// Lowers the view to the bottom of all views.
4360 /// The sibling order of views within the parent will be updated automatically.
4361 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4363 /// <since_tizen> 3 </since_tizen>
4364 public void LowerToBottom()
4366 var parentChildren = GetParent()?.Children;
4368 if (parentChildren != null)
4370 parentChildren.Remove(this);
4371 parentChildren.Insert(0, this);
4373 Interop.NDalic.LowerToBottom(swigCPtr);
4374 if (NDalicPINVOKE.SWIGPendingException.Pending)
4375 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4380 /// Queries if all resources required by a view are loaded and ready.
4382 /// <remarks>Most resources are only loaded when the control is placed on the stage.
4384 /// <since_tizen> 3 </since_tizen>
4385 public bool IsResourceReady()
4387 bool ret = Interop.View.IsResourceReady(swigCPtr);
4388 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4393 /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4395 /// <pre>The view has been initialized. </pre>
4396 /// <returns>The parent layer of view </returns>
4397 /// <since_tizen> 5 </since_tizen>
4398 public Layer GetLayer()
4400 //to fix memory leak issue, match the handle count with native side.
4401 IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4402 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4403 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4404 Interop.BaseHandle.delete_BaseHandle(CPtr);
4405 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4407 if (NDalicPINVOKE.SWIGPendingException.Pending)
4408 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4413 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4415 /// <pre>The (child) view has been initialized. </pre>
4416 /// <since_tizen> 4 </since_tizen>
4417 public void Unparent()
4419 GetParent()?.Remove(this);
4423 /// Search through this view's hierarchy for a view with the given name.
4424 /// The view itself is also considered in the search.
4426 /// <pre>The view has been initialized.</pre>
4427 /// <param name="viewName">The name of the view to find.</param>
4428 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4429 /// <since_tizen> 3 </since_tizen>
4430 public View FindChildByName(string viewName)
4432 //to fix memory leak issue, match the handle count with native side.
4433 IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4434 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4435 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4436 Interop.BaseHandle.delete_BaseHandle(CPtr);
4437 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4439 if (NDalicPINVOKE.SWIGPendingException.Pending)
4440 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4445 /// Converts screen coordinates into the view's coordinate system using the default camera.
4447 /// <pre>The view has been initialized.</pre>
4448 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4449 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4450 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4451 /// <param name="screenX">The screen X-coordinate.</param>
4452 /// <param name="screenY">The screen Y-coordinate.</param>
4453 /// <returns>True if the conversion succeeded.</returns>
4454 /// <since_tizen> 3 </since_tizen>
4455 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4457 bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4458 if (NDalicPINVOKE.SWIGPendingException.Pending)
4459 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4464 /// Sets the relative to parent size factor of the view.<br />
4465 /// This factor is only used when ResizePolicy is set to either:
4466 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4467 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4469 /// <pre>The view has been initialized.</pre>
4470 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4471 /// <since_tizen> 3 </since_tizen>
4472 public void SetSizeModeFactor(Vector3 factor)
4474 Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4475 if (NDalicPINVOKE.SWIGPendingException.Pending)
4476 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4479 /// Calculates the height of the view given a width.<br />
4480 /// The natural size is used for default calculation.<br />
4481 /// Size 0 is treated as aspect ratio 1:1.<br />
4483 /// <param name="width">The width to use.</param>
4484 /// <returns>The height based on the width.</returns>
4485 /// <since_tizen> 3 </since_tizen>
4486 public float GetHeightForWidth(float width)
4488 float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4489 if (NDalicPINVOKE.SWIGPendingException.Pending)
4490 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4495 /// Calculates the width of the view given a height.<br />
4496 /// The natural size is used for default calculation.<br />
4497 /// Size 0 is treated as aspect ratio 1:1.<br />
4499 /// <param name="height">The height to use.</param>
4500 /// <returns>The width based on the height.</returns>
4501 /// <since_tizen> 3 </since_tizen>
4502 public float GetWidthForHeight(float height)
4504 float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4505 if (NDalicPINVOKE.SWIGPendingException.Pending)
4506 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4511 /// Return the amount of size allocated for relayout.
4513 /// <param name="dimension">The dimension to retrieve.</param>
4514 /// <returns>Return the size.</returns>
4515 /// <since_tizen> 3 </since_tizen>
4516 public float GetRelayoutSize(DimensionType dimension)
4518 float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4519 if (NDalicPINVOKE.SWIGPendingException.Pending)
4520 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4525 /// Set the padding for the view.
4527 /// <param name="padding">Padding for the view.</param>
4528 /// <since_tizen> 3 </since_tizen>
4529 public void SetPadding(PaddingType padding)
4531 Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4532 if (NDalicPINVOKE.SWIGPendingException.Pending)
4533 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4537 /// Return the value of padding for the view.
4539 /// <param name="paddingOut">the value of padding for the view</param>
4540 /// <since_tizen> 3 </since_tizen>
4541 public void GetPadding(PaddingType paddingOut)
4543 Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4544 if (NDalicPINVOKE.SWIGPendingException.Pending)
4545 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4548 /// <since_tizen> 3 </since_tizen>
4549 public uint AddRenderer(Renderer renderer)
4551 uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4552 if (NDalicPINVOKE.SWIGPendingException.Pending)
4553 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4557 /// <since_tizen> 3 </since_tizen>
4558 public Renderer GetRendererAt(uint index)
4560 //to fix memory leak issue, match the handle count with native side.
4561 IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4562 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4563 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4564 if (cPtr != null && ret == null)
4566 ret = new Renderer(cPtr, false);
4567 if (NDalicPINVOKE.SWIGPendingException.Pending)
4568 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4571 Interop.BaseHandle.delete_BaseHandle(CPtr);
4572 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4574 if (NDalicPINVOKE.SWIGPendingException.Pending)
4575 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4579 /// <since_tizen> 3 </since_tizen>
4580 public void RemoveRenderer(Renderer renderer)
4582 Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4583 if (NDalicPINVOKE.SWIGPendingException.Pending)
4584 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4587 /// <since_tizen> 3 </since_tizen>
4588 public void RemoveRenderer(uint index)
4590 Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4591 if (NDalicPINVOKE.SWIGPendingException.Pending)
4592 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4595 internal void Raise()
4597 var parentChildren = GetParent()?.Children;
4599 if (parentChildren != null)
4601 int currentIndex = parentChildren.IndexOf(this);
4603 // If the view is not already the last item in the list.
4604 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4606 View temp = parentChildren[currentIndex + 1];
4607 parentChildren[currentIndex + 1] = this;
4608 parentChildren[currentIndex] = temp;
4610 Interop.NDalic.Raise(swigCPtr);
4611 if (NDalicPINVOKE.SWIGPendingException.Pending)
4612 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4617 internal void Lower()
4619 var parentChildren = GetParent()?.Children;
4621 if (parentChildren != null)
4623 int currentIndex = parentChildren.IndexOf(this);
4625 // If the view is not already the first item in the list.
4626 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4628 View temp = parentChildren[currentIndex - 1];
4629 parentChildren[currentIndex - 1] = this;
4630 parentChildren[currentIndex] = temp;
4632 Interop.NDalic.Lower(swigCPtr);
4633 if (NDalicPINVOKE.SWIGPendingException.Pending)
4634 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4640 /// Raises the view to above the target view.
4642 /// <remarks>The sibling order of views within the parent will be updated automatically.
4643 /// Views on the level above the target view will still be shown above this view.
4644 /// Raising this view above views with the same sibling order as each other will raise this view above them.
4645 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4647 /// <param name="target">Will be raised above this view.</param>
4648 internal void RaiseAbove(View target)
4650 var parentChildren = GetParent()?.Children;
4652 if (parentChildren != null)
4654 int currentIndex = parentChildren.IndexOf(this);
4655 int targetIndex = parentChildren.IndexOf(target);
4657 if (currentIndex < 0 || targetIndex < 0 ||
4658 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4660 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4663 // If the currentIndex is less than the target index and the target has the same parent.
4664 if (currentIndex < targetIndex)
4666 parentChildren.Remove(this);
4667 parentChildren.Insert(targetIndex, this);
4669 Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4670 if (NDalicPINVOKE.SWIGPendingException.Pending)
4671 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4678 /// Lowers the view to below the target view.
4680 /// <remarks>The sibling order of views within the parent will be updated automatically.
4681 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4682 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4684 /// <param name="target">Will be lowered below this view.</param>
4685 internal void LowerBelow(View target)
4687 var parentChildren = GetParent()?.Children;
4689 if (parentChildren != null)
4691 int currentIndex = parentChildren.IndexOf(this);
4692 int targetIndex = parentChildren.IndexOf(target);
4693 if (currentIndex < 0 || targetIndex < 0 ||
4694 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4696 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4700 // If the currentIndex is not already the 0th index and the target has the same parent.
4701 if ((currentIndex != 0) && (targetIndex != -1) &&
4702 (currentIndex > targetIndex))
4704 parentChildren.Remove(this);
4705 parentChildren.Insert(targetIndex, this);
4707 Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4708 if (NDalicPINVOKE.SWIGPendingException.Pending)
4709 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4715 internal string GetName()
4717 string ret = Interop.Actor.Actor_GetName(swigCPtr);
4718 if (NDalicPINVOKE.SWIGPendingException.Pending)
4719 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4723 internal void SetName(string name)
4725 Interop.Actor.Actor_SetName(swigCPtr, name);
4726 if (NDalicPINVOKE.SWIGPendingException.Pending)
4727 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4730 internal uint GetId()
4732 uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4733 if (NDalicPINVOKE.SWIGPendingException.Pending)
4734 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4738 internal bool IsRoot()
4740 bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4741 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4745 internal bool OnWindow()
4747 bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4748 if (NDalicPINVOKE.SWIGPendingException.Pending)
4749 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4753 internal View FindChildById(uint id)
4755 //to fix memory leak issue, match the handle count with native side.
4756 IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4757 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4758 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4759 Interop.BaseHandle.delete_BaseHandle(CPtr);
4760 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4762 if (NDalicPINVOKE.SWIGPendingException.Pending)
4763 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4767 internal override View FindCurrentChildById(uint id)
4769 return FindChildById(id);
4772 internal void SetParentOrigin(Vector3 origin)
4774 Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4775 if (NDalicPINVOKE.SWIGPendingException.Pending)
4776 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4779 internal Vector3 GetCurrentParentOrigin()
4781 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4782 if (NDalicPINVOKE.SWIGPendingException.Pending)
4783 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4787 internal void SetAnchorPoint(Vector3 anchorPoint)
4789 Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4790 if (NDalicPINVOKE.SWIGPendingException.Pending)
4791 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4794 internal Vector3 GetCurrentAnchorPoint()
4796 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4797 if (NDalicPINVOKE.SWIGPendingException.Pending)
4798 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4802 internal void SetSize(float width, float height)
4804 Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4805 if (NDalicPINVOKE.SWIGPendingException.Pending)
4806 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4809 internal void SetSize(float width, float height, float depth)
4811 Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4812 if (NDalicPINVOKE.SWIGPendingException.Pending)
4813 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4816 internal void SetSize(Vector2 size)
4818 Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4819 if (NDalicPINVOKE.SWIGPendingException.Pending)
4820 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4823 internal void SetSize(Vector3 size)
4825 Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4826 if (NDalicPINVOKE.SWIGPendingException.Pending)
4827 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4830 internal Vector3 GetTargetSize()
4832 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4833 if (NDalicPINVOKE.SWIGPendingException.Pending)
4834 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4838 internal Size2D GetCurrentSize()
4840 Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4841 if (NDalicPINVOKE.SWIGPendingException.Pending)
4842 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4843 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4847 internal Vector3 GetNaturalSize()
4849 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4850 if (NDalicPINVOKE.SWIGPendingException.Pending)
4851 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4855 internal void SetPosition(float x, float y)
4857 Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4858 if (NDalicPINVOKE.SWIGPendingException.Pending)
4859 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4862 internal void SetPosition(float x, float y, float z)
4864 Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4865 if (NDalicPINVOKE.SWIGPendingException.Pending)
4866 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4869 internal void SetPosition(Vector3 position)
4871 Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4872 if (NDalicPINVOKE.SWIGPendingException.Pending)
4873 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4876 internal void SetX(float x)
4878 Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4879 if (NDalicPINVOKE.SWIGPendingException.Pending)
4880 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4883 internal void SetY(float y)
4885 Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4886 if (NDalicPINVOKE.SWIGPendingException.Pending)
4887 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4890 internal void SetZ(float z)
4892 Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4893 if (NDalicPINVOKE.SWIGPendingException.Pending)
4894 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4897 internal void TranslateBy(Vector3 distance)
4899 Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4900 if (NDalicPINVOKE.SWIGPendingException.Pending)
4901 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4904 internal Position GetCurrentPosition()
4906 Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4907 if (NDalicPINVOKE.SWIGPendingException.Pending)
4908 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4912 internal Vector3 GetCurrentWorldPosition()
4914 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4915 if (NDalicPINVOKE.SWIGPendingException.Pending)
4916 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4920 internal void SetInheritPosition(bool inherit)
4922 Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4923 if (NDalicPINVOKE.SWIGPendingException.Pending)
4924 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4927 internal bool IsPositionInherited()
4929 bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4930 if (NDalicPINVOKE.SWIGPendingException.Pending)
4931 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4935 internal void SetOrientation(Degree angle, Vector3 axis)
4937 Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4938 if (NDalicPINVOKE.SWIGPendingException.Pending)
4939 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4942 internal void SetOrientation(Radian angle, Vector3 axis)
4944 Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4945 if (NDalicPINVOKE.SWIGPendingException.Pending)
4946 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4949 internal void SetOrientation(Rotation orientation)
4951 Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4952 if (NDalicPINVOKE.SWIGPendingException.Pending)
4953 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4956 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4957 [EditorBrowsable(EditorBrowsableState.Never)]
4958 public void RotateBy(Degree angle, Vector3 axis)
4960 Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4961 if (NDalicPINVOKE.SWIGPendingException.Pending)
4962 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4965 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4966 [EditorBrowsable(EditorBrowsableState.Never)]
4967 public void RotateBy(Radian angle, Vector3 axis)
4969 Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4970 if (NDalicPINVOKE.SWIGPendingException.Pending)
4971 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4974 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4975 [EditorBrowsable(EditorBrowsableState.Never)]
4976 public void RotateBy(Rotation relativeRotation)
4978 Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4979 if (NDalicPINVOKE.SWIGPendingException.Pending)
4980 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4983 internal Rotation GetCurrentOrientation()
4985 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4986 if (NDalicPINVOKE.SWIGPendingException.Pending)
4987 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4991 internal void SetInheritOrientation(bool inherit)
4993 Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4994 if (NDalicPINVOKE.SWIGPendingException.Pending)
4995 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4998 internal bool IsOrientationInherited()
5000 bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
5001 if (NDalicPINVOKE.SWIGPendingException.Pending)
5002 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5006 internal Rotation GetCurrentWorldOrientation()
5008 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
5009 if (NDalicPINVOKE.SWIGPendingException.Pending)
5010 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5014 internal void SetScale(float scale)
5016 Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
5017 if (NDalicPINVOKE.SWIGPendingException.Pending)
5018 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5021 internal void SetScale(float scaleX, float scaleY, float scaleZ)
5023 Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
5024 if (NDalicPINVOKE.SWIGPendingException.Pending)
5025 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5028 internal void SetScale(Vector3 scale)
5030 Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
5031 if (NDalicPINVOKE.SWIGPendingException.Pending)
5032 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5035 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5036 [EditorBrowsable(EditorBrowsableState.Never)]
5037 public void ScaleBy(Vector3 relativeScale)
5039 Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
5040 if (NDalicPINVOKE.SWIGPendingException.Pending)
5041 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5044 internal Vector3 GetCurrentScale()
5046 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
5047 if (NDalicPINVOKE.SWIGPendingException.Pending)
5048 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5052 internal Vector3 GetCurrentWorldScale()
5054 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
5055 if (NDalicPINVOKE.SWIGPendingException.Pending)
5056 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5060 internal void SetInheritScale(bool inherit)
5062 Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
5063 if (NDalicPINVOKE.SWIGPendingException.Pending)
5064 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5067 internal bool IsScaleInherited()
5069 bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
5070 if (NDalicPINVOKE.SWIGPendingException.Pending)
5071 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5075 internal Matrix GetCurrentWorldMatrix()
5077 Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
5078 if (NDalicPINVOKE.SWIGPendingException.Pending)
5079 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5083 internal void SetVisible(bool visible)
5085 Interop.Actor.Actor_SetVisible(swigCPtr, visible);
5086 if (NDalicPINVOKE.SWIGPendingException.Pending)
5087 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5090 internal bool IsVisible()
5092 bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
5093 if (NDalicPINVOKE.SWIGPendingException.Pending)
5094 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5098 internal void SetOpacity(float opacity)
5100 Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
5101 if (NDalicPINVOKE.SWIGPendingException.Pending)
5102 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5105 internal float GetCurrentOpacity()
5107 float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
5108 if (NDalicPINVOKE.SWIGPendingException.Pending)
5109 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5113 internal void SetColor(Vector4 color)
5115 Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
5116 if (NDalicPINVOKE.SWIGPendingException.Pending)
5117 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5120 internal Vector4 GetCurrentColor()
5122 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
5123 if (NDalicPINVOKE.SWIGPendingException.Pending)
5124 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5128 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
5129 [EditorBrowsable(EditorBrowsableState.Never)]
5130 public void SetColorMode(ColorMode colorMode)
5132 Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
5133 if (NDalicPINVOKE.SWIGPendingException.Pending)
5134 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5137 internal ColorMode GetColorMode()
5139 ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
5140 if (NDalicPINVOKE.SWIGPendingException.Pending)
5141 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5145 internal Vector4 GetCurrentWorldColor()
5147 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
5148 if (NDalicPINVOKE.SWIGPendingException.Pending)
5149 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5153 internal void SetDrawMode(DrawModeType drawMode)
5155 Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
5156 if (NDalicPINVOKE.SWIGPendingException.Pending)
5157 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5160 internal DrawModeType GetDrawMode()
5162 DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
5163 if (NDalicPINVOKE.SWIGPendingException.Pending)
5164 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5168 internal void SetKeyboardFocusable(bool focusable)
5170 Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5171 if (NDalicPINVOKE.SWIGPendingException.Pending)
5172 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5175 internal bool IsKeyboardFocusable()
5177 bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5178 if (NDalicPINVOKE.SWIGPendingException.Pending)
5179 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5183 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5185 Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5186 if (NDalicPINVOKE.SWIGPendingException.Pending)
5187 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5190 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5192 ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5193 if (NDalicPINVOKE.SWIGPendingException.Pending)
5194 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5198 internal Vector3 GetSizeModeFactor()
5200 Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5201 if (NDalicPINVOKE.SWIGPendingException.Pending)
5202 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5206 internal void SetMinimumSize(Vector2 size)
5208 Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5209 if (NDalicPINVOKE.SWIGPendingException.Pending)
5210 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5213 internal Vector2 GetMinimumSize()
5215 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5216 if (NDalicPINVOKE.SWIGPendingException.Pending)
5217 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5221 internal void SetMaximumSize(Vector2 size)
5223 Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5224 if (NDalicPINVOKE.SWIGPendingException.Pending)
5225 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5228 internal Vector2 GetMaximumSize()
5230 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5231 if (NDalicPINVOKE.SWIGPendingException.Pending)
5232 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5236 internal int GetHierarchyDepth()
5238 int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5239 if (NDalicPINVOKE.SWIGPendingException.Pending)
5240 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5244 internal uint GetRendererCount()
5246 uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5247 if (NDalicPINVOKE.SWIGPendingException.Pending)
5248 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5252 internal TouchDataSignal TouchSignal()
5254 TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5255 if (NDalicPINVOKE.SWIGPendingException.Pending)
5256 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5260 internal HoverSignal HoveredSignal()
5262 HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5263 if (NDalicPINVOKE.SWIGPendingException.Pending)
5264 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5268 internal WheelSignal WheelEventSignal()
5270 WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5271 if (NDalicPINVOKE.SWIGPendingException.Pending)
5272 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5276 internal ViewSignal OnWindowSignal()
5278 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5279 if (NDalicPINVOKE.SWIGPendingException.Pending)
5280 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5284 internal ViewSignal OffWindowSignal()
5286 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5287 if (NDalicPINVOKE.SWIGPendingException.Pending)
5288 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5292 internal ViewSignal OnRelayoutSignal()
5294 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5295 if (NDalicPINVOKE.SWIGPendingException.Pending)
5296 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5300 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5302 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5303 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5307 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5309 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5310 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5314 internal ViewSignal ResourcesLoadedSignal()
5316 ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5317 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5321 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5323 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5326 internal bool IsTopLevelView()
5328 if (GetParent() is Layer)
5335 internal void SetKeyInputFocus()
5337 Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5338 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5341 internal void ClearKeyInputFocus()
5343 Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5344 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5347 internal PinchGestureDetector GetPinchGestureDetector()
5349 PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5350 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5354 internal PanGestureDetector GetPanGestureDetector()
5356 PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5357 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5361 internal TapGestureDetector GetTapGestureDetector()
5363 TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5364 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5368 internal LongPressGestureDetector GetLongPressGestureDetector()
5370 LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5371 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5375 internal ControlKeySignal KeyEventSignal()
5377 ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5378 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5382 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5384 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5385 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5389 internal KeyInputFocusSignal KeyInputFocusLostSignal()
5391 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5392 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5396 internal IntPtr GetPtrfromView()
5398 return (IntPtr)swigCPtr;
5401 internal void RemoveChild(View child)
5403 // Do actual child removal
5404 Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
5405 if (NDalicPINVOKE.SWIGPendingException.Pending)
5406 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5408 Children.Remove(child);
5409 child.InternalParent = null;
5411 if (ChildRemoved != null)
5413 ChildRemovedEventArgs e = new ChildRemovedEventArgs
5417 ChildRemoved(this, e);
5422 /// Removes the layout from this View.
5424 internal void ResetLayout()
5429 internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5431 return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5435 /// you can override it to clean-up your own resources.
5437 /// <param name="type">DisposeTypes</param>
5438 /// <since_tizen> 3 </since_tizen>
5439 protected override void Dispose(DisposeTypes type)
5446 //_mergedStyle = null;
5448 //Release your own unmanaged resources here.
5449 //You should not access any managed member here except static instance.
5450 //because the execution order of Finalizes is non-deterministic.
5453 DisConnectFromSignals();
5456 if (swigCPtr.Handle != global::System.IntPtr.Zero)
5460 swigCMemOwn = false;
5461 Interop.View.delete_View(swigCPtr);
5463 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5466 foreach (View view in Children)
5468 view.InternalParent = null;
5475 private void OnSize2DChanged(int width, int height)
5477 Size2D = new Size2D(width, height);
5480 private void OnMinimumSizeChanged(int width, int height)
5482 MinimumSize = new Size2D(width, height);
5485 private void OnMaximumSizeChanged(int width, int height)
5487 MaximumSize = new Size2D(width, height);
5490 private void OnPosition2DChanged(int x, int y)
5492 Position2D = new Position2D(x, y);
5495 private void OnSizeChanged(float width, float height, float depth)
5497 Size = new Size(width, height, depth);
5500 private void OnPositionChanged(float x, float y, float z)
5502 Position = new Position(x, y, z);
5505 private void OnParentOriginChanged(float x, float y, float z)
5507 ParentOrigin = new Position(x, y, z);
5510 private void OnPivotPointChanged(float x, float y, float z)
5512 PivotPoint = new Position(x, y, z);
5515 private void DisConnectFromSignals()
5517 // Save current CPtr.
5518 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5520 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5521 swigCPtr = GetBaseHandleCPtrHandleRef;
5523 if (_onRelayoutEventCallback != null)
5525 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5528 if (_offWindowEventCallback != null)
5530 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5533 if (_onWindowEventCallback != null)
5535 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5538 if (_wheelEventCallback != null)
5540 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5543 if (_hoverEventCallback != null)
5545 this.HoveredSignal().Disconnect(_hoverEventCallback);
5548 if (_touchDataCallback != null)
5550 this.TouchSignal().Disconnect(_touchDataCallback);
5553 if (_ResourcesLoadedCallback != null)
5555 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5558 if (_offWindowEventCallback != null)
5560 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5563 if (_onWindowEventCallback != null)
5565 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5568 if (_wheelEventCallback != null)
5570 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5573 if (_hoverEventCallback != null)
5575 this.HoveredSignal().Disconnect(_hoverEventCallback);
5578 if (_touchDataCallback != null)
5580 this.TouchSignal().Disconnect(_touchDataCallback);
5583 if (_onRelayoutEventCallback != null)
5585 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5588 if (_keyCallback != null)
5590 this.KeyEventSignal().Disconnect(_keyCallback);
5593 if (_keyInputFocusLostCallback != null)
5595 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5598 if (_keyInputFocusGainedCallback != null)
5600 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5603 if (_backgroundResourceLoadedCallback != null)
5605 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5608 if (_onWindowSendEventCallback != null)
5610 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5613 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5614 // Restore current CPtr.
5615 swigCPtr = currentCPtr;
5618 private void OnKeyInputFocusGained(IntPtr view)
5620 if (_keyInputFocusGainedEventHandler != null)
5622 _keyInputFocusGainedEventHandler(this, null);
5626 private void OnKeyInputFocusLost(IntPtr view)
5628 if (_keyInputFocusLostEventHandler != null)
5630 _keyInputFocusLostEventHandler(this, null);
5634 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5636 if (keyEvent == global::System.IntPtr.Zero)
5638 NUILog.Error("keyEvent should not be null!");
5642 KeyEventArgs e = new KeyEventArgs();
5644 bool result = false;
5646 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5648 if (_keyEventHandler != null)
5650 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5652 // Oring the result of each callback.
5653 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5655 result |= del(this, e);
5662 // Callback for View OnRelayout signal
5663 private void OnRelayout(IntPtr data)
5665 if (_onRelayoutEventHandler != null)
5667 _onRelayoutEventHandler(this, null);
5671 // Callback for View TouchSignal
5672 private bool OnTouch(IntPtr view, IntPtr touchData)
5674 if (touchData == global::System.IntPtr.Zero)
5676 NUILog.Error("touchData should not be null!");
5680 TouchEventArgs e = new TouchEventArgs();
5682 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5684 if (_touchDataEventHandler != null)
5686 return _touchDataEventHandler(this, e);
5691 // Callback for View Hover signal
5692 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5694 if (hoverEvent == global::System.IntPtr.Zero)
5696 NUILog.Error("hoverEvent should not be null!");
5700 HoverEventArgs e = new HoverEventArgs();
5702 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5704 if (_hoverEventHandler != null)
5706 return _hoverEventHandler(this, e);
5711 // Callback for View Wheel signal
5712 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5714 if (wheelEvent == global::System.IntPtr.Zero)
5716 NUILog.Error("wheelEvent should not be null!");
5720 WheelEventArgs e = new WheelEventArgs();
5722 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5724 if (_wheelEventHandler != null)
5726 return _wheelEventHandler(this, e);
5731 // Callback for View OnWindow signal
5732 private void OnWindow(IntPtr data)
5734 if (_onWindowEventHandler != null)
5736 _onWindowEventHandler(this, null);
5740 // Callback for View OffWindow signal
5741 private void OffWindow(IntPtr data)
5743 if (_offWindowEventHandler != null)
5745 _offWindowEventHandler(this, null);
5749 // Callback for View visibility change signal
5750 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5752 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5755 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5757 e.Visibility = visibility;
5760 if (_visibilityChangedEventHandler != null)
5762 _visibilityChangedEventHandler(this, e);
5766 // Callback for View layout direction change signal
5767 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5769 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5772 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5776 if (_layoutDirectionChangedEventHandler != null)
5778 _layoutDirectionChangedEventHandler(this, e);
5782 private void OnResourcesLoaded(IntPtr view)
5784 if (_resourcesLoadedEventHandler != null)
5786 _resourcesLoadedEventHandler(this, null);
5790 private View ConvertIdToView(uint id)
5792 View view = GetParent()?.FindCurrentChildById(id);
5794 //If we can't find the parent's children, find in the top layer.
5797 Container parent = GetParent();
5798 while ((parent is View) && (parent != null))
5800 parent = parent.GetParent();
5801 if (parent is Layer)
5803 view = parent.FindCurrentChildById(id);
5812 private void OnBackgroundResourceLoaded(IntPtr view)
5814 BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5815 e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5817 if (_backgroundResourceLoadedEventHandler != null)
5819 _backgroundResourceLoadedEventHandler(this, e);
5824 /// Event argument passed through the ChildAdded event.
5826 /// <since_tizen> 5 </since_tizen>
5827 public class ChildAddedEventArgs : EventArgs
5830 /// Added child view at moment.
5832 /// <since_tizen> 5 </since_tizen>
5833 public View Added { get; set; }
5837 /// Event argument passed through the ChildRemoved event.
5839 /// <since_tizen> 5 </since_tizen>
5840 public class ChildRemovedEventArgs : EventArgs
5843 /// Removed child view at moment.
5845 /// <since_tizen> 5 </since_tizen>
5846 public View Removed { get; set; }
5850 /// Event arguments that passed via the KeyEvent signal.
5852 /// <since_tizen> 3 </since_tizen>
5853 public class KeyEventArgs : EventArgs
5858 /// Key - is the key sent to the view.
5860 /// <since_tizen> 3 </since_tizen>
5875 /// Event arguments that passed via the touch signal.
5877 /// <since_tizen> 3 </since_tizen>
5878 public class TouchEventArgs : EventArgs
5880 private Touch _touch;
5883 /// Touch - contains the information of touch points.
5885 /// <since_tizen> 3 </since_tizen>
5900 /// Event arguments that passed via the hover signal.
5902 /// <since_tizen> 3 </since_tizen>
5903 public class HoverEventArgs : EventArgs
5905 private Hover _hover;
5908 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5910 /// <since_tizen> 3 </since_tizen>
5925 /// Event arguments that passed via the wheel signal.
5927 /// <since_tizen> 3 </since_tizen>
5928 public class WheelEventArgs : EventArgs
5930 private Wheel _wheel;
5933 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5935 /// <since_tizen> 3 </since_tizen>
5950 /// Event arguments of visibility changed.
5952 /// <since_tizen> 3 </since_tizen>
5953 public class VisibilityChangedEventArgs : EventArgs
5956 private bool _visibility;
5957 private VisibilityChangeType _type;
5960 /// The view, or child of view, whose visibility has changed.
5962 /// <since_tizen> 3 </since_tizen>
5976 /// Whether the view is now visible or not.
5978 /// <since_tizen> 3 </since_tizen>
5979 public bool Visibility
5987 _visibility = value;
5992 /// Whether the view's visible property has changed or a parent's.
5994 /// <since_tizen> 3 </since_tizen>
5995 public VisibilityChangeType Type
6009 /// Event arguments of layout direction changed.
6011 /// <since_tizen> 4 </since_tizen>
6012 public class LayoutDirectionChangedEventArgs : EventArgs
6015 private ViewLayoutDirectionType _type;
6018 /// The view, or child of view, whose layout direction has changed.
6020 /// <since_tizen> 4 </since_tizen>
6034 /// Whether the view's layout direction property has changed or a parent's.
6036 /// <since_tizen> 4 </since_tizen>
6037 public ViewLayoutDirectionType Type
6050 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
6051 [EditorBrowsable(EditorBrowsableState.Never)]
6052 public Vector2 UpdateSizeHint
6056 return (Vector2)GetValue(UpdateSizeHintProperty);
6060 SetValue(UpdateSizeHintProperty, value);
6061 NotifyPropertyChanged();
6065 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
6067 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
6068 [EditorBrowsable(EditorBrowsableState.Never)]
6069 public Transition GetTransition(string transitionName)
6071 Transition trans = null;
6072 transDictionary.TryGetValue(transitionName, out trans);
6076 private void LoadTransitions()
6078 foreach (string str in transitionNames)
6080 string resourceName = str + ".xaml";
6081 Transition trans = null;
6083 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
6085 string likelyResourcePath = resource + "animation/" + resourceName;
6087 if (File.Exists(likelyResourcePath))
6089 trans = Extensions.LoadObject<Transition>(likelyResourcePath);
6093 transDictionary.Add(trans.Name, trans);
6098 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
6099 [EditorBrowsable(EditorBrowsableState.Never)]
6100 public string[] TransitionNames
6104 return transitionNames;
6108 transitionNames = value;
6112 private string[] transitionNames;
6114 internal class BackgroundResourceLoadedEventArgs : EventArgs
6116 private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
6117 public ResourceLoadingStatusType Status
6130 internal class Property
6132 internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
6133 internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
6134 internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
6135 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
6136 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
6137 internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
6138 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
6139 internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
6140 internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
6141 internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
6142 internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
6143 internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
6144 internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
6145 internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
6146 internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
6147 internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
6148 internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
6149 internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
6150 internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
6151 internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
6152 internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
6153 internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
6154 internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
6155 internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
6156 internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
6157 internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
6158 internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
6159 internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
6160 internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
6161 internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
6162 internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
6163 internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
6164 internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
6165 internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
6166 internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
6167 internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
6168 internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
6169 internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
6170 internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
6171 internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
6172 internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
6173 internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
6174 internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
6175 internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
6176 internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
6177 internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
6178 internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
6179 internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
6180 internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
6181 internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
6182 internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
6183 internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
6184 internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
6185 internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
6186 internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
6187 internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
6188 internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
6189 internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
6190 internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
6191 internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
6192 internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
6193 internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
6194 internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();