2 * Copyright(c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.Collections.Generic;
19 using System.ComponentModel;
21 using System.Runtime.InteropServices;
22 using Tizen.NUI.Binding;
25 namespace Tizen.NUI.BaseComponents
28 /// The View layout Direction type.
30 /// <since_tizen> 4 </since_tizen>
31 public enum ViewLayoutDirectionType
36 /// <since_tizen> 4 </since_tizen>
41 /// <since_tizen> 4 </since_tizen>
46 /// [Draft] Available policies for layout parameters
48 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
49 [EditorBrowsable(EditorBrowsableState.Never)]
50 public static class LayoutParamPolicies
53 /// Constant which indicates child size should match parent size
55 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
56 [EditorBrowsable(EditorBrowsableState.Never)]
57 public const int MatchParent = -1;
59 /// Constant which indicates parent should take the smallest size possible to wrap it's children with their desired size
61 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
62 [EditorBrowsable(EditorBrowsableState.Never)]
63 public const int WrapContent = -2;
67 /// [Draft] Replaced by LayoutParamPolicies, will be removed once occurrences replaced.
69 internal enum ChildLayoutData
72 /// Constant which indicates child size should match parent size
74 MatchParent = LayoutParamPolicies.MatchParent,
76 /// Constant which indicates parent should take the smallest size possible to wrap it's children with their desired size
78 WrapContent = LayoutParamPolicies.WrapContent,
81 internal enum ResourceLoadingStatusType
90 /// View is the base class for all views.
92 /// <since_tizen> 3 </since_tizen>
93 public class View : Container, IResourcesProvider
95 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
96 [EditorBrowsable(EditorBrowsableState.Never)]
97 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
99 var view = (View)bindable;
100 if (newValue != null)
102 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue((string)newValue));
105 defaultValueCreator: (bindable) =>
107 var view = (View)bindable;
109 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STYLE_NAME).Get(out temp);
112 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
113 [EditorBrowsable(EditorBrowsableState.Never)]
114 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create("BackgroundColor", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
116 var view = (View)bindable;
117 if (newValue != null)
119 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((Color)newValue));
122 defaultValueCreator: (bindable) =>
124 var view = (View)bindable;
125 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
127 Tizen.NUI.PropertyMap background = view.Background;
129 background.Find(Visual.Property.Type)?.Get(out visualType);
130 if (visualType == (int)Visual.Type.Color)
132 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
135 return backgroundColor;
137 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
138 [EditorBrowsable(EditorBrowsableState.Never)]
139 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) =>
141 var view = (View)bindable;
142 if (newValue != null)
144 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((string)newValue));
147 defaultValueCreator: (bindable) =>
149 var view = (View)bindable;
150 string backgroundImage = "";
152 Tizen.NUI.PropertyMap background = view.Background;
154 background.Find(Visual.Property.Type)?.Get(out visualType);
155 if (visualType == (int)Visual.Type.Image)
157 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
160 return backgroundImage;
162 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
163 [EditorBrowsable(EditorBrowsableState.Never)]
164 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
166 var view = (View)bindable;
167 if (newValue != null)
169 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
172 defaultValueCreator: (bindable) =>
174 var view = (View)bindable;
175 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
176 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
179 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
180 [EditorBrowsable(EditorBrowsableState.Never)]
181 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
183 var view = (View)bindable;
184 if (newValue != null)
186 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
189 defaultValueCreator: (bindable) =>
191 var view = (View)bindable;
193 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
195 NUILog.Error("State get error!");
199 case 0: return States.Normal;
200 case 1: return States.Focused;
201 case 2: return States.Disabled;
202 default: return States.Normal;
205 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
206 [EditorBrowsable(EditorBrowsableState.Never)]
207 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
209 var view = (View)bindable;
210 string valueToString = "";
211 if (newValue != null)
213 switch ((States)newValue)
215 case States.Normal: { valueToString = "NORMAL"; break; }
216 case States.Focused: { valueToString = "FOCUSED"; break; }
217 case States.Disabled: { valueToString = "DISABLED"; break; }
218 default: { valueToString = "NORMAL"; break; }
220 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
223 defaultValueCreator: (bindable) =>
225 var view = (View)bindable;
227 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
229 NUILog.Error("subState get error!");
233 case "NORMAL": return States.Normal;
234 case "FOCUSED": return States.Focused;
235 case "DISABLED": return States.Disabled;
236 default: return States.Normal;
239 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
240 [EditorBrowsable(EditorBrowsableState.Never)]
241 public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
243 var view = (View)bindable;
244 if (newValue != null)
246 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
249 defaultValueCreator: (bindable) =>
251 var view = (View)bindable;
252 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
253 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
257 /// Only for XAML property binding. This will be changed as Inhouse API by ACR later.
258 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
260 var view = (View)bindable;
261 if (newValue != null)
263 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
266 defaultValueCreator: (bindable) =>
268 var view = (View)bindable;
270 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
274 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
275 [EditorBrowsable(EditorBrowsableState.Never)]
276 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
278 var view = (View)bindable;
279 if (newValue != null)
281 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
284 defaultValueCreator: (bindable) =>
286 var view = (View)bindable;
288 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
291 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
292 [EditorBrowsable(EditorBrowsableState.Never)]
293 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
295 var view = (View)bindable;
296 if (newValue != null)
298 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
301 defaultValueCreator: (bindable) =>
303 var view = (View)bindable;
304 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
305 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
308 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
309 [EditorBrowsable(EditorBrowsableState.Never)]
310 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
312 var view = (View)bindable;
313 if (newValue != null)
315 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
318 defaultValueCreator: (bindable) =>
320 var view = (View)bindable;
321 Vector2 temp = new Vector2(0.0f, 0.0f);
322 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
325 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
326 [EditorBrowsable(EditorBrowsableState.Never)]
327 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
329 var view = (View)bindable;
330 if (newValue != null)
332 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
335 defaultValueCreator: (bindable) =>
337 var view = (View)bindable;
339 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
342 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
343 [EditorBrowsable(EditorBrowsableState.Never)]
344 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
346 var view = (View)bindable;
347 if (newValue != null)
349 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
352 defaultValueCreator: (bindable) =>
354 var view = (View)bindable;
356 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
359 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
360 [EditorBrowsable(EditorBrowsableState.Never)]
361 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
363 var view = (View)bindable;
364 string valueToString = "";
366 if (newValue != null)
368 switch ((HorizontalAlignmentType)newValue)
370 case Tizen.NUI.HorizontalAlignmentType.Left: { valueToString = "left"; break; }
371 case Tizen.NUI.HorizontalAlignmentType.Center: { valueToString = "center"; break; }
372 case Tizen.NUI.HorizontalAlignmentType.Right: { valueToString = "right"; break; }
373 default: { valueToString = "left"; break; }
375 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
378 defaultValueCreator: (bindable) =>
380 var view = (View)bindable;
382 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
384 NUILog.Error("CellHorizontalAlignment get error!");
389 case "left": return Tizen.NUI.HorizontalAlignmentType.Left;
390 case "center": return Tizen.NUI.HorizontalAlignmentType.Center;
391 case "right": return Tizen.NUI.HorizontalAlignmentType.Right;
392 default: return Tizen.NUI.HorizontalAlignmentType.Left;
395 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
396 [EditorBrowsable(EditorBrowsableState.Never)]
397 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
399 var view = (View)bindable;
400 string valueToString = "";
402 if (newValue != null)
404 switch ((VerticalAlignmentType)newValue)
406 case Tizen.NUI.VerticalAlignmentType.Top: { valueToString = "top"; break; }
407 case Tizen.NUI.VerticalAlignmentType.Center: { valueToString = "center"; break; }
408 case Tizen.NUI.VerticalAlignmentType.Bottom: { valueToString = "bottom"; break; }
409 default: { valueToString = "top"; break; }
411 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
414 defaultValueCreator: (bindable) =>
416 var view = (View)bindable;
418 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
420 NUILog.Error("CellVerticalAlignment get error!");
425 case "top": return Tizen.NUI.VerticalAlignmentType.Top;
426 case "center": return Tizen.NUI.VerticalAlignmentType.Center;
427 case "bottom": return Tizen.NUI.VerticalAlignmentType.Bottom;
428 default: return Tizen.NUI.VerticalAlignmentType.Top;
433 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
434 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
436 [EditorBrowsable(EditorBrowsableState.Never)]
437 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
439 var view = (View)bindable;
440 if (newValue != null)
442 view.Weight = (float)newValue;
446 defaultValueCreator: (bindable) =>
448 var view = (View)bindable;
452 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
453 [EditorBrowsable(EditorBrowsableState.Never)]
454 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
456 var view = (View)bindable;
457 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
458 else { view.LeftFocusableViewId = -1; }
460 defaultValueCreator: (bindable) =>
462 var view = (View)bindable;
463 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
466 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
467 [EditorBrowsable(EditorBrowsableState.Never)]
468 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
470 var view = (View)bindable;
471 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
472 else { view.RightFocusableViewId = -1; }
474 defaultValueCreator: (bindable) =>
476 var view = (View)bindable;
477 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
480 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
481 [EditorBrowsable(EditorBrowsableState.Never)]
482 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
484 var view = (View)bindable;
485 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
486 else { view.UpFocusableViewId = -1; }
488 defaultValueCreator: (bindable) =>
490 var view = (View)bindable;
491 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
494 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
495 [EditorBrowsable(EditorBrowsableState.Never)]
496 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
498 var view = (View)bindable;
499 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
500 else { view.DownFocusableViewId = -1; }
502 defaultValueCreator: (bindable) =>
504 var view = (View)bindable;
505 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
508 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
509 [EditorBrowsable(EditorBrowsableState.Never)]
510 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
512 var view = (View)bindable;
513 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
515 defaultValueCreator: (bindable) =>
517 var view = (View)bindable;
518 return view.IsKeyboardFocusable();
520 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
521 [EditorBrowsable(EditorBrowsableState.Never)]
522 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
524 var view = (View)bindable;
525 if (newValue != null)
527 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
530 defaultValueCreator: (bindable) =>
532 var view = (View)bindable;
533 Size temp = new Size(0.0f, 0.0f, 0.0f);
534 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
535 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
538 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
539 [EditorBrowsable(EditorBrowsableState.Never)]
540 public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
542 var view = (View)bindable;
543 if (newValue != null)
545 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
548 defaultValueCreator: (bindable) =>
550 var view = (View)bindable;
552 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
555 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
556 [EditorBrowsable(EditorBrowsableState.Never)]
557 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
559 var view = (View)bindable;
560 if (newValue != null)
562 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
565 defaultValueCreator: (bindable) =>
567 var view = (View)bindable;
568 Position temp = new Position(0.0f, 0.0f, 0.0f);
569 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
570 return new Position2D(temp);
572 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
573 [EditorBrowsable(EditorBrowsableState.Never)]
574 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
576 var view = (View)bindable;
577 if (newValue != null)
579 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
582 defaultValueCreator: (bindable) =>
584 var view = (View)bindable;
586 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
589 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
590 [EditorBrowsable(EditorBrowsableState.Never)]
591 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
593 var view = (View)bindable;
595 if (newValue != null)
597 value = (int)newValue;
600 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
603 var siblings = view.GetParent()?.Children;
604 if (siblings != null)
606 int currentOrder = siblings.IndexOf(view);
607 if (value != currentOrder)
609 if (value == 0) { view.LowerToBottom(); }
610 else if (value < siblings.Count - 1)
612 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
613 else { view.LowerBelow(siblings[value]); }
615 else { view.RaiseToTop(); }
620 defaultValueCreator: (bindable) =>
622 var view = (View)bindable;
623 var parentChildren = view.GetParent()?.Children;
624 int currentOrder = 0;
625 if (parentChildren != null)
627 currentOrder = parentChildren.IndexOf(view);
629 if (currentOrder < 0) { return 0; }
630 else if (currentOrder < parentChildren.Count) { return currentOrder; }
635 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
636 [EditorBrowsable(EditorBrowsableState.Never)]
637 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
639 var view = (View)bindable;
640 if (newValue != null)
642 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
645 defaultValueCreator: (bindable) =>
647 var view = (View)bindable;
648 Position temp = new Position(0.0f, 0.0f, 0.0f);
649 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
653 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
654 [EditorBrowsable(EditorBrowsableState.Never)]
655 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
657 var view = (View)bindable;
658 if (newValue != null)
660 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
663 defaultValueCreator: (bindable) =>
665 var view = (View)bindable;
666 Position temp = new Position(0.0f, 0.0f, 0.0f);
667 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
670 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
671 [EditorBrowsable(EditorBrowsableState.Never)]
672 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
674 var view = (View)bindable;
675 if (newValue != null)
677 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
680 defaultValueCreator: (bindable) =>
682 var view = (View)bindable;
684 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
687 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
688 [EditorBrowsable(EditorBrowsableState.Never)]
689 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
691 var view = (View)bindable;
692 if (newValue != null)
694 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
697 defaultValueCreator: (bindable) =>
699 var view = (View)bindable;
701 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
704 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
705 [EditorBrowsable(EditorBrowsableState.Never)]
706 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
708 var view = (View)bindable;
709 if (newValue != null)
711 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
714 defaultValueCreator: (bindable) =>
716 var view = (View)bindable;
717 Position temp = new Position(0.0f, 0.0f, 0.0f);
718 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
721 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
722 [EditorBrowsable(EditorBrowsableState.Never)]
723 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
725 var view = (View)bindable;
726 if (newValue != null)
728 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_X, new Tizen.NUI.PropertyValue((float)newValue));
731 defaultValueCreator: (bindable) =>
733 var view = (View)bindable;
735 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
738 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
739 [EditorBrowsable(EditorBrowsableState.Never)]
740 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
742 var view = (View)bindable;
743 if (newValue != null)
745 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Y, new Tizen.NUI.PropertyValue((float)newValue));
748 defaultValueCreator: (bindable) =>
750 var view = (View)bindable;
752 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
755 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
756 [EditorBrowsable(EditorBrowsableState.Never)]
757 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
759 var view = (View)bindable;
760 if (newValue != null)
762 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
765 defaultValueCreator: (bindable) =>
767 var view = (View)bindable;
769 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
772 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
773 [EditorBrowsable(EditorBrowsableState.Never)]
774 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
776 var view = (View)bindable;
777 if (newValue != null)
779 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
782 defaultValueCreator: (bindable) =>
784 var view = (View)bindable;
785 Rotation temp = new Rotation();
786 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
789 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
790 [EditorBrowsable(EditorBrowsableState.Never)]
791 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
793 var view = (View)bindable;
794 if (newValue != null)
796 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
799 defaultValueCreator: (bindable) =>
801 var view = (View)bindable;
802 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
803 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
806 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
807 [EditorBrowsable(EditorBrowsableState.Never)]
808 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
810 var view = (View)bindable;
811 if (newValue != null)
813 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_X, new Tizen.NUI.PropertyValue((float)newValue));
816 defaultValueCreator: (bindable) =>
818 var view = (View)bindable;
820 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
823 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
824 [EditorBrowsable(EditorBrowsableState.Never)]
825 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
827 var view = (View)bindable;
828 if (newValue != null)
830 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Y, new Tizen.NUI.PropertyValue((float)newValue));
833 defaultValueCreator: (bindable) =>
835 var view = (View)bindable;
837 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
840 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
841 [EditorBrowsable(EditorBrowsableState.Never)]
842 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
844 var view = (View)bindable;
845 if (newValue != null)
847 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
850 defaultValueCreator: (bindable) =>
852 var view = (View)bindable;
854 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
857 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
858 [EditorBrowsable(EditorBrowsableState.Never)]
859 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
861 var view = (View)bindable;
862 if (newValue != null)
864 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
867 defaultValueCreator: (bindable) =>
869 var view = (View)bindable;
871 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
874 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
875 [EditorBrowsable(EditorBrowsableState.Never)]
876 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
878 var view = (View)bindable;
879 if (newValue != null)
881 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
884 defaultValueCreator: (bindable) =>
886 var view = (View)bindable;
888 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
891 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
892 [EditorBrowsable(EditorBrowsableState.Never)]
893 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
895 var view = (View)bindable;
896 if (newValue != null)
898 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
901 defaultValueCreator: (bindable) =>
903 var view = (View)bindable;
905 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
908 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
909 [EditorBrowsable(EditorBrowsableState.Never)]
910 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
912 var view = (View)bindable;
913 if (newValue != null)
915 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
918 defaultValueCreator: (bindable) =>
920 var view = (View)bindable;
922 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
925 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
926 [EditorBrowsable(EditorBrowsableState.Never)]
927 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
929 var view = (View)bindable;
930 if (newValue != null)
932 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
935 defaultValueCreator: (bindable) =>
937 var view = (View)bindable;
939 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
942 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
943 [EditorBrowsable(EditorBrowsableState.Never)]
944 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
946 var view = (View)bindable;
947 if (newValue != null)
949 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
952 defaultValueCreator: (bindable) =>
954 var view = (View)bindable;
956 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
958 NUILog.Error("DrawMode get error!");
962 case "NORMAL": return DrawModeType.Normal;
963 case "OVERLAY_2D": return DrawModeType.Overlay2D;
964 #pragma warning disable CS0618 // Disable deprecated warning as we do need to use the deprecated API here.
965 case "STENCIL": return DrawModeType.Stencil;
966 #pragma warning restore CS0618
967 default: return DrawModeType.Normal;
970 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
971 [EditorBrowsable(EditorBrowsableState.Never)]
972 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
974 var view = (View)bindable;
975 if (newValue != null)
977 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
980 defaultValueCreator: (bindable) =>
982 var view = (View)bindable;
983 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
984 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
987 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
988 [EditorBrowsable(EditorBrowsableState.Never)]
989 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
991 var view = (View)bindable;
992 if (newValue != null)
994 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
997 defaultValueCreator: (bindable) =>
999 var view = (View)bindable;
1001 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
1003 NUILog.Error("WidthResizePolicy get error!");
1007 case "FIXED": return ResizePolicyType.Fixed;
1008 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1009 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1010 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1011 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1012 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1013 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1014 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1015 default: return ResizePolicyType.Fixed;
1018 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1019 [EditorBrowsable(EditorBrowsableState.Never)]
1020 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1022 var view = (View)bindable;
1023 if (newValue != null)
1025 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1028 defaultValueCreator: (bindable) =>
1030 var view = (View)bindable;
1032 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1034 NUILog.Error("HeightResizePolicy get error!");
1038 case "FIXED": return ResizePolicyType.Fixed;
1039 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1040 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1041 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1042 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1043 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1044 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1045 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1046 default: return ResizePolicyType.Fixed;
1049 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1050 [EditorBrowsable(EditorBrowsableState.Never)]
1051 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
1053 var view = (View)bindable;
1054 string valueToString = "";
1055 if (newValue != null)
1057 switch ((SizeScalePolicyType)newValue)
1059 case SizeScalePolicyType.UseSizeSet: { valueToString = "USE_SIZE_SET"; break; }
1060 case SizeScalePolicyType.FitWithAspectRatio: { valueToString = "FIT_WITH_ASPECT_RATIO"; break; }
1061 case SizeScalePolicyType.FillWithAspectRatio: { valueToString = "FILL_WITH_ASPECT_RATIO"; break; }
1062 default: { valueToString = "USE_SIZE_SET"; break; }
1064 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1067 defaultValueCreator: (bindable) =>
1069 var view = (View)bindable;
1071 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1073 NUILog.Error("SizeScalePolicy get error!");
1077 case "USE_SIZE_SET": return SizeScalePolicyType.UseSizeSet;
1078 case "FIT_WITH_ASPECT_RATIO": return SizeScalePolicyType.FitWithAspectRatio;
1079 case "FILL_WITH_ASPECT_RATIO": return SizeScalePolicyType.FillWithAspectRatio;
1080 default: return SizeScalePolicyType.UseSizeSet;
1083 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1084 [EditorBrowsable(EditorBrowsableState.Never)]
1085 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1087 var view = (View)bindable;
1088 if (newValue != null)
1090 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue((bool)newValue));
1093 defaultValueCreator: (bindable) =>
1095 var view = (View)bindable;
1097 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
1100 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1101 [EditorBrowsable(EditorBrowsableState.Never)]
1102 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1104 var view = (View)bindable;
1105 if (newValue != null)
1107 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue((bool)newValue));
1110 defaultValueCreator: (bindable) =>
1112 var view = (View)bindable;
1114 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
1117 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1118 [EditorBrowsable(EditorBrowsableState.Never)]
1119 public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1121 var view = (View)bindable;
1122 if (newValue != null)
1124 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1127 defaultValueCreator: (bindable) =>
1129 var view = (View)bindable;
1130 Extents temp = new Extents(0, 0, 0, 0);
1131 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PADDING).Get(temp);
1134 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1135 [EditorBrowsable(EditorBrowsableState.Never)]
1136 public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1138 var view = (View)bindable;
1139 if (newValue != null)
1141 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue((Size)newValue));
1144 defaultValueCreator: (bindable) =>
1146 var view = (View)bindable;
1147 Size temp = new Size(0, 0, 0);
1148 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
1151 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1152 [EditorBrowsable(EditorBrowsableState.Never)]
1153 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1155 var view = (View)bindable;
1156 if (newValue != null)
1158 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1161 defaultValueCreator: (bindable) =>
1163 var view = (View)bindable;
1164 Size2D temp = new Size2D(0, 0);
1165 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1168 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1169 [EditorBrowsable(EditorBrowsableState.Never)]
1170 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1172 var view = (View)bindable;
1173 if (newValue != null)
1175 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1178 defaultValueCreator: (bindable) =>
1180 var view = (View)bindable;
1181 Size2D temp = new Size2D(0, 0);
1182 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1185 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1186 [EditorBrowsable(EditorBrowsableState.Never)]
1187 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1189 var view = (View)bindable;
1190 if (newValue != null)
1192 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1195 defaultValueCreator: (bindable) =>
1197 var view = (View)bindable;
1199 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1202 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1203 [EditorBrowsable(EditorBrowsableState.Never)]
1204 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1206 var view = (View)bindable;
1207 if (newValue != null)
1209 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1212 defaultValueCreator: (bindable) =>
1214 var view = (View)bindable;
1216 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1218 NUILog.Error("ClippingMode get error!");
1220 return (ClippingModeType)temp;
1222 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1223 [EditorBrowsable(EditorBrowsableState.Never)]
1224 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1226 var view = (View)bindable;
1227 if (newValue != null)
1229 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1232 defaultValueCreator: (bindable) =>
1234 var view = (View)bindable;
1236 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1239 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1240 [EditorBrowsable(EditorBrowsableState.Never)]
1241 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1243 var view = (View)bindable;
1244 if (newValue != null)
1246 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1249 defaultValueCreator: (bindable) =>
1251 var view = (View)bindable;
1253 if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1255 NUILog.Error("LAYOUT_DIRECTION get error!");
1257 return (ViewLayoutDirectionType)temp;
1259 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1260 [EditorBrowsable(EditorBrowsableState.Never)]
1261 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1263 var view = (View)bindable;
1264 if (newValue != null)
1266 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1269 defaultValueCreator: (bindable) =>
1271 var view = (View)bindable;
1272 Extents temp = new Extents(0, 0, 0, 0);
1273 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1276 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1277 [EditorBrowsable(EditorBrowsableState.Never)]
1278 public static readonly BindableProperty StyleProperty = BindableProperty.Create("Style", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);
1281 /// Flag to indicate if layout set explicitly via API call or View was automatically given a Layout.
1283 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1284 [EditorBrowsable(EditorBrowsableState.Never)]
1285 public bool layoutSet = false;
1288 /// Flag to allow Layouting to be disabled for Views.
1289 /// Once a View has a Layout set then any children added to Views from then on will receive
1290 /// automatic Layouts.
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 static bool layoutingDisabled{get; set;} = true;
1296 internal readonly MergedStyle _mergedStyle;
1297 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1298 private LayoutItem _layout; // Exclusive layout assigned to this View.
1299 private int _widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
1300 private int _heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
1301 private float _weight = 0.0f; // Weighting of child View in a Layout
1302 private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
1303 private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
1304 private bool _backgroundImageSynchronosLoading = false;
1305 private EventHandler _offWindowEventHandler;
1306 private OffWindowEventCallbackType _offWindowEventCallback;
1307 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
1308 private WheelEventCallbackType _wheelEventCallback;
1309 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
1310 private KeyCallbackType _keyCallback;
1311 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
1312 private TouchDataCallbackType _touchDataCallback;
1313 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
1314 private HoverEventCallbackType _hoverEventCallback;
1315 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
1316 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
1317 private EventHandler _keyInputFocusGainedEventHandler;
1318 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
1319 private EventHandler _keyInputFocusLostEventHandler;
1320 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
1321 private EventHandler _onRelayoutEventHandler;
1322 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
1323 private EventHandler _onWindowEventHandler;
1324 private OnWindowEventCallbackType _onWindowEventCallback;
1325 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
1326 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
1327 // Resource Ready Signal
1328 private EventHandler _resourcesLoadedEventHandler;
1329 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1330 private EventHandler<BackgroundResourceLoadedEventArgs> _backgroundResourceLoadedEventHandler;
1331 private _backgroundResourceLoadedCallbackType _backgroundResourceLoadedCallback;
1333 private OnWindowEventCallbackType _onWindowSendEventCallback;
1335 private void SendViewAddedEventToWindow(IntPtr data)
1337 Window.Instance?.SendViewAdded(this);
1341 /// Creates a new instance of a view.
1343 /// <since_tizen> 3 </since_tizen>
1344 public View() : this(Interop.View.View_New(), true)
1346 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1348 internal View(View uiControl) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1350 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1353 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
1355 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1358 PositionUsesPivotPoint = false;
1360 _mergedStyle = new MergedStyle(GetType(), this);
1362 _onWindowSendEventCallback = SendViewAddedEventToWindow;
1363 this.OnWindowSignal().Connect(_onWindowSendEventCallback);
1366 internal View(ViewImpl implementation) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1368 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1371 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1372 private delegate void OffWindowEventCallbackType(IntPtr control);
1373 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1374 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
1375 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1376 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
1377 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1378 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
1379 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1380 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
1381 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1382 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
1383 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1384 private delegate void ResourcesLoadedCallbackType(IntPtr control);
1385 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1386 private delegate void _backgroundResourceLoadedCallbackType(IntPtr view);
1387 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1388 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
1389 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1390 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
1391 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1392 private delegate void OnRelayoutEventCallbackType(IntPtr control);
1393 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1394 private delegate void OnWindowEventCallbackType(IntPtr control);
1395 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1396 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
1399 /// Event when a child is removed.
1401 /// <since_tizen> 5 </since_tizen>
1402 public new event EventHandler<ChildRemovedEventArgs> ChildRemoved;
1404 /// Event when a child is added.
1406 /// <since_tizen> 5 </since_tizen>
1407 public new event EventHandler<ChildAddedEventArgs> ChildAdded;
1410 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1411 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
1413 /// <since_tizen> 3 </since_tizen>
1414 public event EventHandler FocusGained
1418 if (_keyInputFocusGainedEventHandler == null)
1420 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
1421 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
1424 _keyInputFocusGainedEventHandler += value;
1429 _keyInputFocusGainedEventHandler -= value;
1431 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
1433 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
1439 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1440 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
1442 /// <since_tizen> 3 </since_tizen>
1443 public event EventHandler FocusLost
1447 if (_keyInputFocusLostEventHandler == null)
1449 _keyInputFocusLostCallback = OnKeyInputFocusLost;
1450 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
1453 _keyInputFocusLostEventHandler += value;
1458 _keyInputFocusLostEventHandler -= value;
1460 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
1462 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
1468 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1469 /// The KeyPressed signal is emitted when the key event is received.<br />
1471 /// <since_tizen> 3 </since_tizen>
1472 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
1476 if (_keyEventHandler == null)
1478 _keyCallback = OnKeyEvent;
1479 this.KeyEventSignal().Connect(_keyCallback);
1482 _keyEventHandler += value;
1487 _keyEventHandler -= value;
1489 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
1491 this.KeyEventSignal().Disconnect(_keyCallback);
1497 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
1498 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
1500 /// <since_tizen> 3 </since_tizen>
1501 public event EventHandler Relayout
1505 if (_onRelayoutEventHandler == null)
1507 _onRelayoutEventCallback = OnRelayout;
1508 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
1511 _onRelayoutEventHandler += value;
1516 _onRelayoutEventHandler -= value;
1518 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
1520 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
1527 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1528 /// The touched signal is emitted when the touch input is received.<br />
1530 /// <since_tizen> 3 </since_tizen>
1531 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
1535 if (_touchDataEventHandler == null)
1537 _touchDataCallback = OnTouch;
1538 this.TouchSignal().Connect(_touchDataCallback);
1541 _touchDataEventHandler += value;
1546 _touchDataEventHandler -= value;
1548 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
1550 this.TouchSignal().Disconnect(_touchDataCallback);
1557 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1558 /// The hovered signal is emitted when the hover input is received.<br />
1560 /// <since_tizen> 3 </since_tizen>
1561 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
1565 if (_hoverEventHandler == null)
1567 _hoverEventCallback = OnHoverEvent;
1568 this.HoveredSignal().Connect(_hoverEventCallback);
1571 _hoverEventHandler += value;
1576 _hoverEventHandler -= value;
1578 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
1580 this.HoveredSignal().Disconnect(_hoverEventCallback);
1587 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1588 /// The WheelMoved signal is emitted when the wheel event is received.<br />
1590 /// <since_tizen> 3 </since_tizen>
1591 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
1595 if (_wheelEventHandler == null)
1597 _wheelEventCallback = OnWheelEvent;
1598 this.WheelEventSignal().Connect(_wheelEventCallback);
1601 _wheelEventHandler += value;
1606 _wheelEventHandler -= value;
1608 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
1610 this.WheelEventSignal().Disconnect(_wheelEventCallback);
1617 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
1618 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
1620 /// <since_tizen> 3 </since_tizen>
1621 public event EventHandler AddedToWindow
1625 if (_onWindowEventHandler == null)
1627 _onWindowEventCallback = OnWindow;
1628 this.OnWindowSignal().Connect(_onWindowEventCallback);
1631 _onWindowEventHandler += value;
1636 _onWindowEventHandler -= value;
1638 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
1640 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
1646 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
1647 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
1649 /// <since_tizen> 3 </since_tizen>
1650 public event EventHandler RemovedFromWindow
1654 if (_offWindowEventHandler == null)
1656 _offWindowEventCallback = OffWindow;
1657 this.OffWindowSignal().Connect(_offWindowEventCallback);
1660 _offWindowEventHandler += value;
1665 _offWindowEventHandler -= value;
1667 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
1669 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
1675 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
1676 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
1678 /// <since_tizen> 3 </since_tizen>
1679 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
1683 if (_visibilityChangedEventHandler == null)
1685 _visibilityChangedEventCallback = OnVisibilityChanged;
1686 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
1689 _visibilityChangedEventHandler += value;
1694 _visibilityChangedEventHandler -= value;
1696 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
1698 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
1704 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
1705 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
1707 /// <since_tizen> 4 </since_tizen>
1708 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
1712 if (_layoutDirectionChangedEventHandler == null)
1714 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
1715 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
1718 _layoutDirectionChangedEventHandler += value;
1723 _layoutDirectionChangedEventHandler -= value;
1725 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
1727 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
1733 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1734 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1736 /// <since_tizen> 3 </since_tizen>
1737 public event EventHandler ResourcesLoaded
1741 if (_resourcesLoadedEventHandler == null)
1743 _ResourcesLoadedCallback = OnResourcesLoaded;
1744 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1747 _resourcesLoadedEventHandler += value;
1752 _resourcesLoadedEventHandler -= value;
1754 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1756 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1761 internal event EventHandler<BackgroundResourceLoadedEventArgs> BackgroundResourceLoaded
1765 if (_backgroundResourceLoadedEventHandler == null)
1767 _backgroundResourceLoadedCallback = OnBackgroundResourceLoaded;
1768 this.ResourcesLoadedSignal().Connect(_backgroundResourceLoadedCallback);
1771 _backgroundResourceLoadedEventHandler += value;
1775 _backgroundResourceLoadedEventHandler -= value;
1777 if (_backgroundResourceLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1779 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
1785 /// Enumeration for describing the states of the view.
1787 /// <since_tizen> 3 </since_tizen>
1791 /// The normal state.
1795 /// The focused state.
1799 /// The disabled state.
1805 /// Describes the direction to move the focus towards.
1807 /// <since_tizen> 3 </since_tizen>
1808 public enum FocusDirection
1811 /// Move keyboard focus towards the left direction.
1813 /// <since_tizen> 3 </since_tizen>
1816 /// Move keyboard focus towards the right direction.
1818 /// <since_tizen> 3 </since_tizen>
1821 /// Move keyboard focus towards the up direction.
1823 /// <since_tizen> 3 </since_tizen>
1826 /// Move keyboard focus towards the down direction.
1828 /// <since_tizen> 3 </since_tizen>
1831 /// Move keyboard focus towards the previous page direction.
1833 /// <since_tizen> 3 </since_tizen>
1836 /// Move keyboard focus towards the next page direction.
1838 /// <since_tizen> 3 </since_tizen>
1842 internal enum PropertyRange
1844 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1845 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1846 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1849 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1850 [EditorBrowsable(EditorBrowsableState.Never)]
1851 public bool IsResourcesCreated
1855 return Application.Current.IsResourcesCreated;
1859 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1860 [EditorBrowsable(EditorBrowsableState.Never)]
1861 public ResourceDictionary XamlResources
1865 return Application.Current.XamlResources;
1869 Application.Current.XamlResources = value;
1874 /// The StyleName, type string.
1876 /// <since_tizen> 3 </since_tizen>
1877 public string StyleName
1881 return (string)GetValue(StyleNameProperty);
1885 SetValue(StyleNameProperty, value);
1886 NotifyPropertyChanged();
1891 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1893 /// <since_tizen> 3 </since_tizen>
1894 public Color BackgroundColor
1898 return (Color)GetValue(BackgroundColorProperty);
1902 SetValue(BackgroundColorProperty, value);
1903 NotifyPropertyChanged();
1908 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1910 /// <since_tizen> 3 </since_tizen>
1911 public string BackgroundImage
1915 return (string)GetValue(BackgroundImageProperty);
1919 SetValue(BackgroundImageProperty, value);
1920 NotifyPropertyChanged();
1925 /// The background of view.
1927 /// <since_tizen> 3 </since_tizen>
1928 public Tizen.NUI.PropertyMap Background
1932 return (PropertyMap)GetValue(BackgroundProperty);
1936 SetValue(BackgroundProperty, value);
1937 NotifyPropertyChanged();
1943 /// The current state of the view.
1945 /// <since_tizen> 3 </since_tizen>
1950 return (States)GetValue(StateProperty);
1954 SetValue(StateProperty, value);
1955 NotifyPropertyChanged();
1960 /// The current sub state of the view.
1962 /// <since_tizen> 3 </since_tizen>
1963 public States SubState
1967 return (States)GetValue(SubStateProperty);
1971 SetValue(SubStateProperty, value);
1972 NotifyPropertyChanged();
1977 /// Displays a tooltip
1979 /// <since_tizen> 3 </since_tizen>
1980 public Tizen.NUI.PropertyMap Tooltip
1984 return (PropertyMap)GetValue(TooltipProperty);
1988 SetValue(TooltipProperty, value);
1989 NotifyPropertyChanged();
1994 /// Displays a tooltip as a text.
1996 /// <since_tizen> 3 </since_tizen>
1997 public string TooltipText
2001 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
2002 NotifyPropertyChanged();
2007 /// The Child property of FlexContainer.<br />
2008 /// The proportion of the free space in the container, the flex item will receive.<br />
2009 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
2011 /// <since_tizen> 3 </since_tizen>
2016 return (float)GetValue(FlexProperty);
2020 SetValue(FlexProperty, value);
2021 NotifyPropertyChanged();
2026 /// The Child property of FlexContainer.<br />
2027 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
2029 /// <since_tizen> 3 </since_tizen>
2030 public int AlignSelf
2034 return (int)GetValue(AlignSelfProperty);
2038 SetValue(AlignSelfProperty, value);
2039 NotifyPropertyChanged();
2044 /// The Child property of FlexContainer.<br />
2045 /// The space around the flex item.<br />
2047 /// <since_tizen> 3 </since_tizen>
2048 public Vector4 FlexMargin
2052 return (Vector4)GetValue(FlexMarginProperty);
2056 SetValue(FlexMarginProperty, value);
2057 NotifyPropertyChanged();
2062 /// The top-left cell this child occupies, if not set, the first available cell is used.
2064 /// <since_tizen> 3 </since_tizen>
2065 public Vector2 CellIndex
2069 return (Vector2)GetValue(CellIndexProperty);
2073 SetValue(CellIndexProperty, value);
2074 NotifyPropertyChanged();
2079 /// The number of rows this child occupies, if not set, the default value is 1.
2081 /// <since_tizen> 3 </since_tizen>
2082 public float RowSpan
2086 return (float)GetValue(RowSpanProperty);
2090 SetValue(RowSpanProperty, value);
2091 NotifyPropertyChanged();
2096 /// The number of columns this child occupies, if not set, the default value is 1.
2098 /// <since_tizen> 3 </since_tizen>
2099 public float ColumnSpan
2103 return (float)GetValue(ColumnSpanProperty);
2107 SetValue(ColumnSpanProperty, value);
2108 NotifyPropertyChanged();
2113 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
2115 /// <since_tizen> 3 </since_tizen>
2116 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
2120 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
2124 SetValue(CellHorizontalAlignmentProperty, value);
2125 NotifyPropertyChanged();
2130 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
2132 /// <since_tizen> 3 </since_tizen>
2133 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
2137 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
2141 SetValue(CellVerticalAlignmentProperty, value);
2142 NotifyPropertyChanged();
2147 /// The left focusable view.<br />
2148 /// This will return null if not set.<br />
2149 /// This will also return null if the specified left focusable view is not on a window.<br />
2151 /// <since_tizen> 3 </since_tizen>
2152 public View LeftFocusableView
2154 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2157 return (View)GetValue(LeftFocusableViewProperty);
2161 SetValue(LeftFocusableViewProperty, value);
2162 NotifyPropertyChanged();
2167 /// The right focusable view.<br />
2168 /// This will return null if not set.<br />
2169 /// This will also return null if the specified right focusable view is not on a window.<br />
2171 /// <since_tizen> 3 </since_tizen>
2172 public View RightFocusableView
2174 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2177 return (View)GetValue(RightFocusableViewProperty);
2181 SetValue(RightFocusableViewProperty, value);
2182 NotifyPropertyChanged();
2187 /// The up focusable view.<br />
2188 /// This will return null if not set.<br />
2189 /// This will also return null if the specified up focusable view is not on a window.<br />
2191 /// <since_tizen> 3 </since_tizen>
2192 public View UpFocusableView
2194 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2197 return (View)GetValue(UpFocusableViewProperty);
2201 SetValue(UpFocusableViewProperty, value);
2202 NotifyPropertyChanged();
2207 /// The down focusable view.<br />
2208 /// This will return null if not set.<br />
2209 /// This will also return null if the specified down focusable view is not on a window.<br />
2211 /// <since_tizen> 3 </since_tizen>
2212 public View DownFocusableView
2214 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2217 return (View)GetValue(DownFocusableViewProperty);
2221 SetValue(DownFocusableViewProperty, value);
2222 NotifyPropertyChanged();
2227 /// Whether the view should be focusable by keyboard navigation.
2229 /// <since_tizen> 3 </since_tizen>
2230 public bool Focusable
2234 SetValue(FocusableProperty, value);
2235 NotifyPropertyChanged();
2239 return (bool)GetValue(FocusableProperty);
2244 /// Retrieves the position of the view.<br />
2245 /// The coordinates are relative to the view's parent.<br />
2247 /// <since_tizen> 3 </since_tizen>
2248 public Position CurrentPosition
2252 return GetCurrentPosition();
2257 /// Sets the size of a view for the width and the height.<br />
2258 /// Geometry can be scaled to fit within this area.<br />
2259 /// This does not interfere with the view's scale factor.<br />
2260 /// The views default depth is the minimum of width and height.<br />
2263 /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
2264 /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
2265 /// Please note that this multi-cascade setting is especially possible for this NUI object (Size2D). <br />
2266 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2267 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2268 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2269 /// It may not match the current value in some cases, i.e. when the animation is progressing or the maximum or minimu size is set. <br />
2271 /// <since_tizen> 3 </since_tizen>
2272 public Size2D Size2D
2276 Size2D temp = (Size2D)GetValue(Size2DProperty);
2277 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
2281 SetValue(Size2DProperty, value);
2282 // Set Specification so when layouts measure this View it matches the value set here.
2283 // All Views are currently Layouts.
2284 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
2285 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
2286 NotifyPropertyChanged();
2291 /// Retrieves the size of the view.<br />
2292 /// The coordinates are relative to the view's parent.<br />
2294 /// <since_tizen> 3 </since_tizen>
2295 public Size2D CurrentSize
2299 return GetCurrentSize();
2304 /// Retrieves and sets the view's opacity.<br />
2306 /// <since_tizen> 3 </since_tizen>
2307 public float Opacity
2311 return (float)GetValue(OpacityProperty);
2315 SetValue(OpacityProperty, value);
2316 NotifyPropertyChanged();
2321 /// Sets the position of the view for X and Y.<br />
2322 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2323 /// If the position inheritance is disabled, sets the world position.<br />
2326 /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
2327 /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
2328 /// Please note that this multi-cascade setting is especially possible for this NUI object (Position2D). <br />
2329 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2330 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2331 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2333 /// <since_tizen> 3 </since_tizen>
2334 public Position2D Position2D
2338 Position2D temp = (Position2D)GetValue(Position2DProperty);
2339 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
2343 SetValue(Position2DProperty, value);
2344 NotifyPropertyChanged();
2349 /// Retrieves the screen postion of the view.<br />
2351 /// <since_tizen> 3 </since_tizen>
2352 public Vector2 ScreenPosition
2356 Vector2 temp = new Vector2(0.0f, 0.0f);
2357 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2363 /// Determines whether the pivot point should be used to determine the position of the view.
2364 /// This is true by default.
2366 /// <remarks>If false, then the top-left of the view is used for the position.
2367 /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
2369 /// <since_tizen> 3 </since_tizen>
2370 public bool PositionUsesPivotPoint
2374 return (bool)GetValue(PositionUsesPivotPointProperty);
2378 SetValue(PositionUsesPivotPointProperty, value);
2379 NotifyPropertyChanged();
2384 /// Please do not use! this will be deprecated.
2386 /// Please do not use! this will be deprecated!
2387 /// Instead please use PositionUsesPivotPoint.
2388 /// <since_tizen> 3 </since_tizen>
2389 [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " +
2391 "View view = new View(); " +
2392 "view.PivotPoint = PivotPoint.Center; " +
2393 "view.PositionUsesPivotPoint = true;")]
2394 [EditorBrowsable(EditorBrowsableState.Never)]
2395 public bool PositionUsesAnchorPoint
2400 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2405 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2406 NotifyPropertyChanged();
2411 /// Queries whether the view is connected to the stage.<br />
2412 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2414 /// <since_tizen> 3 </since_tizen>
2415 public bool IsOnWindow
2424 /// Gets the depth in the hierarchy for the view.
2426 /// <since_tizen> 3 </since_tizen>
2427 public int HierarchyDepth
2431 return GetHierarchyDepth();
2436 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2439 /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
2440 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2441 /// The values set by this property will likely change.
2443 /// <since_tizen> 3 </since_tizen>
2444 public int SiblingOrder
2448 return (int)GetValue(SiblingOrderProperty);
2452 SetValue(SiblingOrderProperty, value);
2453 NotifyPropertyChanged();
2458 /// Returns the natural size of the view.
2461 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2463 /// <since_tizen> 5 </since_tizen>
2464 public Vector3 NaturalSize
2468 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2469 if (NDalicPINVOKE.SWIGPendingException.Pending)
2470 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2476 /// Returns the natural size (Size2D) of the view.
2479 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2481 /// <since_tizen> 4 </since_tizen>
2482 public Size2D NaturalSize2D
2486 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2487 if (NDalicPINVOKE.SWIGPendingException.Pending)
2488 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2490 return new Size2D((int)temp.Width, (int)temp.Height);
2495 /// Gets or sets the origin of a view within its parent's area.<br />
2496 /// 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 />
2497 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
2498 /// A view's position is the distance between this origin and the view's anchor-point.<br />
2500 /// <pre>The view has been initialized.</pre>
2501 /// <since_tizen> 3 </since_tizen>
2502 public Position ParentOrigin
2506 return (Position)GetValue(ParentOriginProperty);
2510 SetValue(ParentOriginProperty, value);
2511 NotifyPropertyChanged();
2516 /// Gets or sets the anchor-point of a view.<br />
2517 /// 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 />
2518 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
2519 /// A view position is the distance between its parent-origin and this anchor-point.<br />
2520 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
2521 /// <pre>The view has been initialized.</pre>
2523 /// <since_tizen> 3 </since_tizen>
2524 public Position PivotPoint
2528 return (Position)GetValue(PivotPointProperty);
2532 SetValue(PivotPointProperty, value);
2533 NotifyPropertyChanged();
2538 /// Gets or sets the size width of the view.
2540 /// <since_tizen> 3 </since_tizen>
2541 public float SizeWidth
2545 return (float)GetValue(SizeWidthProperty);
2549 SetValue(SizeWidthProperty, value);
2550 WidthSpecification = (int)Math.Ceiling(value);
2551 NotifyPropertyChanged();
2556 /// Gets or sets the size height of the view.
2558 /// <since_tizen> 3 </since_tizen>
2559 public float SizeHeight
2563 return (float)GetValue(SizeHeightProperty);
2567 SetValue(SizeHeightProperty, value);
2568 HeightSpecification = (int)Math.Ceiling(value);
2569 NotifyPropertyChanged();
2574 /// Gets or sets the position of the view.<br />
2575 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
2576 /// If the position inheritance is disabled, sets the world position.<br />
2578 /// <since_tizen> 3 </since_tizen>
2579 public Position Position
2583 return (Position)GetValue(PositionProperty);
2587 SetValue(PositionProperty, value);
2588 NotifyPropertyChanged();
2593 /// Gets or sets the position X of the view.
2595 /// <since_tizen> 3 </since_tizen>
2596 public float PositionX
2600 return (float)GetValue(PositionXProperty);
2604 SetValue(PositionXProperty, value);
2605 NotifyPropertyChanged();
2610 /// Gets or sets the position Y of the view.
2612 /// <since_tizen> 3 </since_tizen>
2613 public float PositionY
2617 return (float)GetValue(PositionYProperty);
2621 SetValue(PositionYProperty, value);
2622 NotifyPropertyChanged();
2627 /// Gets or sets the position Z of the view.
2629 /// <since_tizen> 3 </since_tizen>
2630 public float PositionZ
2634 return (float)GetValue(PositionZProperty);
2638 SetValue(PositionZProperty, value);
2639 NotifyPropertyChanged();
2644 /// Gets or sets the world position of the view.
2646 /// <since_tizen> 3 </since_tizen>
2647 public Vector3 WorldPosition
2651 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2652 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2658 /// Gets or sets the orientation of the view.<br />
2659 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
2661 /// <remarks>This is an asynchronous method.</remarks>
2662 /// <since_tizen> 3 </since_tizen>
2663 public Rotation Orientation
2667 return (Rotation)GetValue(OrientationProperty);
2671 SetValue(OrientationProperty, value);
2672 NotifyPropertyChanged();
2677 /// Gets or sets the world orientation of the view.<br />
2679 /// <since_tizen> 3 </since_tizen>
2680 public Rotation WorldOrientation
2684 Rotation temp = new Rotation();
2685 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2691 /// Gets or sets the scale factor applied to the view.<br />
2693 /// <since_tizen> 3 </since_tizen>
2694 public Vector3 Scale
2698 return (Vector3)GetValue(ScaleProperty);
2702 SetValue(ScaleProperty, value);
2703 NotifyPropertyChanged();
2708 /// Gets or sets the scale X factor applied to the view.
2710 /// <since_tizen> 3 </since_tizen>
2715 return (float)GetValue(ScaleXProperty);
2719 SetValue(ScaleXProperty, value);
2720 NotifyPropertyChanged();
2725 /// Gets or sets the scale Y factor applied to the view.
2727 /// <since_tizen> 3 </since_tizen>
2732 return (float)GetValue(ScaleYProperty);
2736 SetValue(ScaleYProperty, value);
2737 NotifyPropertyChanged();
2742 /// Gets or sets the scale Z factor applied to the view.
2744 /// <since_tizen> 3 </since_tizen>
2749 return (float)GetValue(ScaleZProperty);
2753 SetValue(ScaleZProperty, value);
2754 NotifyPropertyChanged();
2759 /// Gets the world scale of the view.
2761 /// <since_tizen> 3 </since_tizen>
2762 public Vector3 WorldScale
2766 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2767 GetProperty(View.Property.WORLD_SCALE).Get(temp);
2773 /// Retrieves the visibility flag of the view.
2776 /// If the view is not visible, then the view and its children will not be rendered.
2777 /// 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.
2779 /// <since_tizen> 3 </since_tizen>
2780 public bool Visibility
2785 GetProperty(View.Property.VISIBLE).Get(out temp);
2791 /// Gets the view's world color.
2793 /// <since_tizen> 3 </since_tizen>
2794 public Vector4 WorldColor
2798 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2799 GetProperty(View.Property.WORLD_COLOR).Get(temp);
2805 /// Gets or sets the view's name.
2807 /// <since_tizen> 3 </since_tizen>
2812 return (string)GetValue(NameProperty);
2816 SetValue(NameProperty, value);
2817 NotifyPropertyChanged();
2822 /// Get the number of children held by the view.
2824 /// <since_tizen> 3 </since_tizen>
2825 public new uint ChildCount
2829 return GetChildCount();
2834 /// Gets the view's ID.
2837 /// <since_tizen> 3 </since_tizen>
2847 /// Gets or sets the status of whether the view should emit touch or hover signals.
2849 /// <since_tizen> 3 </since_tizen>
2850 public bool Sensitive
2854 return (bool)GetValue(SensitiveProperty);
2858 SetValue(SensitiveProperty, value);
2859 NotifyPropertyChanged();
2864 /// 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.
2866 /// <since_tizen> 3 </since_tizen>
2867 public bool LeaveRequired
2871 return (bool)GetValue(LeaveRequiredProperty);
2875 SetValue(LeaveRequiredProperty, value);
2876 NotifyPropertyChanged();
2881 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
2883 /// <since_tizen> 3 </since_tizen>
2884 public bool InheritOrientation
2888 return (bool)GetValue(InheritOrientationProperty);
2892 SetValue(InheritOrientationProperty, value);
2893 NotifyPropertyChanged();
2898 /// Gets or sets the status of whether a child view inherits it's parent's scale.
2900 /// <since_tizen> 3 </since_tizen>
2901 public bool InheritScale
2905 return (bool)GetValue(InheritScaleProperty);
2909 SetValue(InheritScaleProperty, value);
2910 NotifyPropertyChanged();
2915 /// Gets or sets the status of how the view and its children should be drawn.<br />
2916 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
2917 /// 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 />
2918 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
2919 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
2920 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
2922 /// <since_tizen> 3 </since_tizen>
2923 public DrawModeType DrawMode
2927 return (DrawModeType)GetValue(DrawModeProperty);
2931 SetValue(DrawModeProperty, value);
2932 NotifyPropertyChanged();
2937 /// Gets or sets the relative to parent size factor of the view.<br />
2938 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
2939 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
2941 /// <since_tizen> 3 </since_tizen>
2942 public Vector3 SizeModeFactor
2946 return (Vector3)GetValue(SizeModeFactorProperty);
2950 SetValue(SizeModeFactorProperty, value);
2951 NotifyPropertyChanged();
2956 /// Gets or sets the width resize policy to be used.
2958 /// <since_tizen> 3 </since_tizen>
2959 public ResizePolicyType WidthResizePolicy
2963 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
2967 SetValue(WidthResizePolicyProperty, value);
2968 // Match ResizePolicy to new Layouting.
2969 // Parent relative policies can not be mapped at this point as parent size unknown.
2972 case ResizePolicyType.UseNaturalSize:
2974 WidthSpecification = LayoutParamPolicies.WrapContent;
2977 case ResizePolicyType.FillToParent:
2979 WidthSpecification = LayoutParamPolicies.MatchParent;
2982 case ResizePolicyType.FitToChildren:
2984 WidthSpecification = LayoutParamPolicies.WrapContent;
2990 NotifyPropertyChanged();
2995 /// Gets or sets the height resize policy to be used.
2997 /// <since_tizen> 3 </since_tizen>
2998 public ResizePolicyType HeightResizePolicy
3002 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
3006 SetValue(HeightResizePolicyProperty, value);
3007 // Match ResizePolicy to new Layouting.
3008 // Parent relative policies can not be mapped at this point as parent size unknown.
3011 case ResizePolicyType.UseNaturalSize:
3013 HeightSpecification = LayoutParamPolicies.WrapContent;
3016 case ResizePolicyType.FillToParent:
3018 HeightSpecification = LayoutParamPolicies.MatchParent;
3021 case ResizePolicyType.FitToChildren:
3023 HeightSpecification = LayoutParamPolicies.WrapContent;
3029 NotifyPropertyChanged();
3034 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3035 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3037 /// <since_tizen> 3 </since_tizen>
3038 public SizeScalePolicyType SizeScalePolicy
3042 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
3046 SetValue(SizeScalePolicyProperty, value);
3047 NotifyPropertyChanged();
3052 /// Gets or sets the status of whether the width size is dependent on the height size.
3054 /// <since_tizen> 3 </since_tizen>
3055 public bool WidthForHeight
3059 return (bool)GetValue(WidthForHeightProperty);
3063 SetValue(WidthForHeightProperty, value);
3064 NotifyPropertyChanged();
3069 /// Gets or sets the status of whether the height size is dependent on the width size.
3071 /// <since_tizen> 3 </since_tizen>
3072 public bool HeightForWidth
3076 return (bool)GetValue(HeightForWidthProperty);
3080 SetValue(HeightForWidthProperty, value);
3081 NotifyPropertyChanged();
3086 /// Gets or sets the padding for use in layout.
3088 /// <since_tizen> 5 </since_tizen>
3089 public Extents Padding
3093 // If View has a Layout then padding in stored in the base Layout class
3096 return Layout.Padding;
3100 return (Extents)GetValue(PaddingProperty);
3102 // Two return points to prevent creating a zeroed Extent native object before assignment
3106 Extents padding = value;
3109 // Layout set so store Padding in LayoutItem instead of in View.
3110 // If View stores the Padding value then Legacy Size Negotiation will overwrite
3111 // the position and sizes measure in the Layouting.
3112 Layout.Padding = value;
3113 // If Layout is a LayoutItem then it could be a View that handles it's own padding.
3114 // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.
3115 if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
3117 padding = new Extents(0,0,0,0); // Reset value stored in View.
3119 _layout?.RequestLayout();
3121 SetValue(PaddingProperty, padding);
3122 NotifyPropertyChanged();
3123 _layout?.RequestLayout();
3128 /// Gets or sets the minimum size the view can be assigned in size negotiation.
3130 /// <since_tizen> 3 </since_tizen>
3131 public Size2D MinimumSize
3135 return (Size2D)GetValue(MinimumSizeProperty);
3139 if (_layout != null)
3141 // Note: it only works if minimum size is >= than natural size.
3142 // To force the size it should be done through the width&height spec or Size2D.
3143 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
3144 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
3145 _layout.RequestLayout();
3147 SetValue(MinimumSizeProperty, value);
3148 NotifyPropertyChanged();
3153 /// Gets or sets the maximum size the view can be assigned in size negotiation.
3155 /// <since_tizen> 3 </since_tizen>
3156 public Size2D MaximumSize
3160 return (Size2D)GetValue(MaximumSizeProperty);
3164 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
3165 // MATCH_PARENT spec + parent container size can be used to limit
3166 if (_layout != null)
3168 // Note: it only works if minimum size is >= than natural size.
3169 // To force the size it should be done through the width&height spec or Size2D.
3170 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
3171 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
3172 _layout.RequestLayout();
3174 SetValue(MaximumSizeProperty, value);
3175 NotifyPropertyChanged();
3180 /// Gets or sets whether a child view inherits it's parent's position.<br />
3181 /// Default is to inherit.<br />
3182 /// 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 />
3184 /// <since_tizen> 3 </since_tizen>
3185 public bool InheritPosition
3189 return (bool)GetValue(InheritPositionProperty);
3193 SetValue(InheritPositionProperty, value);
3194 NotifyPropertyChanged();
3199 /// Gets or sets the clipping behavior (mode) of it's children.
3201 /// <since_tizen> 3 </since_tizen>
3202 public ClippingModeType ClippingMode
3206 return (ClippingModeType)GetValue(ClippingModeProperty);
3210 SetValue(ClippingModeProperty, value);
3211 NotifyPropertyChanged();
3216 /// Gets the number of renderers held by the view.
3218 /// <since_tizen> 3 </since_tizen>
3219 public uint RendererCount
3223 return GetRendererCount();
3228 /// [Obsolete("Please do not use! this will be deprecated")]
3230 /// <since_tizen> 3 </since_tizen>
3231 /// Please do not use! this will be deprecated!
3232 /// Instead please use PivotPoint.
3233 [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " +
3235 "View view = new View(); " +
3236 "view.PivotPoint = PivotPoint.Center; " +
3237 "view.PositionUsesPivotPoint = true;")]
3238 [EditorBrowsable(EditorBrowsableState.Never)]
3239 public Position AnchorPoint
3243 Position temp = new Position(0.0f, 0.0f, 0.0f);
3244 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3249 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3250 NotifyPropertyChanged();
3255 /// Sets the size of a view for the width, the height and the depth.<br />
3256 /// Geometry can be scaled to fit within this area.<br />
3257 /// This does not interfere with the view's scale factor.<br />
3258 /// The views default depth is the minimum of width and height.<br />
3261 /// Please note that multi-cascade setting is not possible for this NUI object. <br />
3262 /// It is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
3263 /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f); <br />
3264 /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f; <br />
3265 /// 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 />
3267 /// <since_tizen> 5 </since_tizen>
3272 return (Size)GetValue(SizeProperty);
3276 SetValue(SizeProperty, value);
3277 // Set Specification so when layouts measure this View it matches the value set here.
3278 // All Views are currently Layouts.
3279 WidthSpecification = (int)Math.Ceiling(value.Width);
3280 HeightSpecification = (int)Math.Ceiling(value.Height);
3281 NotifyPropertyChanged();
3286 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
3288 /// <since_tizen> 3 </since_tizen>
3289 [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " +
3291 "Container parent = view.GetParent(); " +
3292 "View view = parent as View;")]
3293 [EditorBrowsable(EditorBrowsableState.Never)]
3294 public new View Parent
3299 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
3300 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
3301 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
3303 if (basehandle is Layer layer)
3305 ret = new View(Layer.getCPtr(layer).Handle, false);
3306 NUILog.Error("This Parent property is deprecated, shoud do not be used");
3310 ret = basehandle as View;
3313 Interop.BaseHandle.delete_BaseHandle(CPtr);
3314 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
3316 if (NDalicPINVOKE.SWIGPendingException.Pending)
3317 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3323 /// Gets/Sets whether inherit parent's the layout Direction.
3325 /// <since_tizen> 4 </since_tizen>
3326 public bool InheritLayoutDirection
3330 return (bool)GetValue(InheritLayoutDirectionProperty);
3334 SetValue(InheritLayoutDirectionProperty, value);
3335 NotifyPropertyChanged();
3340 /// Gets/Sets the layout Direction.
3342 /// <since_tizen> 4 </since_tizen>
3343 public ViewLayoutDirectionType LayoutDirection
3347 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
3351 SetValue(LayoutDirectionProperty, value);
3352 NotifyPropertyChanged();
3353 _layout?.RequestLayout();
3358 /// Gets or sets the Margin for use in layout.
3361 /// Margin property is supported by Layout algorithms and containers.
3362 /// Please Set Layout if you want to use Margin property.
3364 /// <since_tizen> 4 </since_tizen>
3365 public Extents Margin
3369 // If View has a Layout then margin is stored in Layout.
3372 return Layout.Margin;
3376 // If Layout not set then return margin stored in View.
3377 return (Extents)GetValue(MarginProperty);
3379 // Two return points to prevent creating a zeroed Extent native object before assignment
3385 // Layout set so store Margin in LayoutItem instead of View.
3386 // If View stores the Margin too then the Legacy Size Negotiation will
3387 // overwrite the position and size values measured in the Layouting.
3388 Layout.Margin = value;
3389 SetValue(MarginProperty, new Extents(0,0,0,0));
3390 _layout?.RequestLayout();
3394 SetValue(MarginProperty, value);
3396 NotifyPropertyChanged();
3397 _layout?.RequestLayout();
3402 /// The required policy for this dimension, ChildLayoutData enum or exact value.
3404 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3405 [EditorBrowsable(EditorBrowsableState.Never)]
3406 public int WidthSpecification
3410 return _widthPolicy;
3414 _widthPolicy = value;
3415 if (_widthPolicy >= 0)
3417 _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3418 Size2D.Width = _widthPolicy;
3420 _layout?.RequestLayout();
3425 /// The required policy for this dimension, ChildLayoutData enum or exact value.
3427 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3428 [EditorBrowsable(EditorBrowsableState.Never)]
3429 public int HeightSpecification
3433 return _heightPolicy;
3437 _heightPolicy = value;
3438 if (_heightPolicy >= 0)
3440 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3441 Size2D.Height = _heightPolicy;
3443 _layout?.RequestLayout();
3449 /// [Obsolete("Please do not use! this will be deprecated")]
3451 /// Please do not use! this will be deprecated!
3452 /// Instead please use Padding.
3453 /// <since_tizen> 4 </since_tizen>
3454 [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
3455 [EditorBrowsable(EditorBrowsableState.Never)]
3456 public Extents PaddingEX
3460 Extents temp = new Extents(0, 0, 0, 0);
3461 GetProperty(View.Property.PADDING).Get(temp);
3466 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3467 NotifyPropertyChanged();
3468 _layout?.RequestLayout();
3472 internal Style Style
3476 return (Style)GetValue(StyleProperty);
3480 SetValue(StyleProperty, value);
3485 /// Child property to specify desired width
3487 internal int LayoutWidthSpecificationFixed
3491 return _widthPolicy;
3495 _widthPolicy = value;
3496 _measureSpecificationWidth = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
3497 Size2D.Width = value;
3498 _layout?.RequestLayout();
3503 /// Child property to specify desired height
3505 internal int LayoutHeightSpecificationFixed
3509 return _heightPolicy;
3513 _heightPolicy = value;
3514 _measureSpecificationHeight = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
3515 Size2D.Height = value;
3516 _layout?.RequestLayout();
3521 /// Child property to specify desired width, use MatchParent/WrapContent)
3523 internal ChildLayoutData LayoutWidthSpecification
3527 return (ChildLayoutData)_widthPolicy;
3531 _widthPolicy = (int)value;
3536 /// Child property to specify desired height, use MatchParent/WrapContent)
3538 internal ChildLayoutData LayoutHeightSpecification
3542 return (ChildLayoutData)_heightPolicy;
3546 _heightPolicy = (int)value;
3550 internal float Weight
3559 _layout.RequestLayout();
3563 internal bool BackgroundImageSynchronosLoading
3567 return _backgroundImageSynchronosLoading;
3571 if (value != _backgroundImageSynchronosLoading)
3574 PropertyMap bgMap = this.Background;
3576 bgMap.Find(Visual.Property.Type)?.Get(out visualType);
3577 if (visualType == (int)Visual.Type.Image)
3579 bgMap.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3581 if (bgUrl.Length != 0)
3583 _backgroundImageSynchronosLoading = value;
3584 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3585 this.Background = bgMap;
3591 internal float WorldPositionX
3596 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3601 internal float WorldPositionY
3606 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3611 internal float WorldPositionZ
3616 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3621 internal bool FocusState
3625 return IsKeyboardFocusable();
3629 SetKeyboardFocusable(value);
3634 /// Set the layout on this View. Replaces any existing Layout.
3638 internal LayoutItem Layout
3646 // Do nothing if layout provided is already set on this View.
3647 if (value == _layout)
3652 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3653 layoutingDisabled = false;
3656 // If new layout being set already has a owner then that owner receives a replacement default layout.
3657 // First check if the layout to be set already has a owner.
3658 if (value?.Owner != null)
3660 Log.Info("NUI", "Set layout already in use by another View: " + value.Owner.Name + "will get a LayoutGroup\n");
3661 // Previous owner of the layout gets a default layout as a replacement.
3662 value.Owner.Layout = new LayoutGroup();
3664 // Copy Margin and Padding to replacement LayoutGroup.
3665 value.Owner.Layout.Margin = value.Margin;
3666 value.Owner.Layout.Padding = value.Padding;
3669 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3670 // View if no replacement. Previously margin and padding values would have been moved from
3671 // the View to the layout.
3672 if (_layout != null ) // Existing layout
3676 // Existing layout being replaced so copy over margin and padding values.
3677 value.Margin = _layout.Margin;
3678 value.Padding = _layout.Padding;
3682 // Layout not being replaced so restore margin and padding to View.
3683 SetValue(MarginProperty, _layout.Margin);
3684 SetValue(PaddingProperty, _layout.Padding);
3685 NotifyPropertyChanged();
3690 // First Layout to be added to the View hence copy
3692 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3695 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3697 // If View already has a margin set then store it in Layout instead.
3698 value.Margin = Margin;
3699 SetValue(MarginProperty, new Extents(0,0,0,0));
3700 NotifyPropertyChanged();
3703 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3705 // If View already has a padding set then store it in Layout instead.
3706 value.Padding = Padding;
3707 SetValue(PaddingProperty, new Extents(0,0,0,0));
3708 NotifyPropertyChanged();
3713 // Remove existing layout from it's parent layout group.
3714 _layout?.Unparent();
3716 // Set layout to this view
3721 internal void SetLayout(LayoutItem layout)
3724 _layout?.AttachToOwner(this);
3725 _layout?.RequestLayout();
3729 /// Stores the calculated width value and its ModeType. Width component.
3731 internal MeasureSpecification MeasureSpecificationWidth
3735 _measureSpecificationWidth = value;
3736 _layout?.RequestLayout();
3740 return _measureSpecificationWidth;
3745 /// Stores the calculated width value and its ModeType. Height component.
3747 internal MeasureSpecification MeasureSpecificationHeight
3751 _measureSpecificationHeight = value;
3752 _layout?.RequestLayout();
3756 return _measureSpecificationHeight;
3760 internal float ParentOriginX
3765 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3770 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3771 NotifyPropertyChanged();
3775 internal float ParentOriginY
3780 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3785 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3786 NotifyPropertyChanged();
3790 internal float ParentOriginZ
3795 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3800 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3801 NotifyPropertyChanged();
3805 internal float PivotPointX
3810 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3815 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3819 internal float PivotPointY
3824 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3829 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3833 internal float PivotPointZ
3838 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3843 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3847 internal Matrix WorldMatrix
3851 Matrix temp = new Matrix();
3852 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3857 private int LeftFocusableViewId
3862 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
3867 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3871 private int RightFocusableViewId
3876 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
3881 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3885 private int UpFocusableViewId
3890 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
3895 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3899 private int DownFocusableViewId
3904 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
3909 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3914 /// Perform an action on a visual registered to this view. <br />
3915 /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
3917 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
3918 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
3919 /// <param name="attributes">Optional attributes for the action.</param>
3920 /// <since_tizen> 5 </since_tizen>
3921 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
3923 Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
3924 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3928 /// Creates an animation to animate the background color visual. If there is no
3929 /// background visual, creates one with transparent black as it's mixColor.
3931 /// <since_tizen> 3 </since_tizen>
3932 public Animation AnimateBackgroundColor(object destinationValue,
3935 AlphaFunction.BuiltinFunctions? alphaFunction = null,
3936 object initialValue = null)
3938 Tizen.NUI.PropertyMap background = Background;
3940 if (background.Empty())
3942 // If there is no background yet, ensure there is a transparent
3944 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
3945 background = Background;
3947 return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
3951 /// Creates an animation to animate the mixColor of the named visual.
3953 /// <since_tizen> 3 </since_tizen>
3954 public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
3956 Animation animation = null;
3958 PropertyMap _animator = new PropertyMap();
3959 if (alphaFunction != null)
3961 _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
3964 PropertyMap _timePeriod = new PropertyMap();
3965 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
3966 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
3967 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
3969 PropertyMap _transition = new PropertyMap();
3970 _transition.Add("animator", new PropertyValue(_animator));
3971 _transition.Add("target", new PropertyValue(targetVisual));
3972 _transition.Add("property", new PropertyValue("mixColor"));
3974 if (initialColor != null)
3976 PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
3977 _transition.Add("initialValue", initValue);
3980 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
3981 _transition.Add("targetValue", destValue);
3982 TransitionData _transitionData = new TransitionData(_transition);
3984 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
3985 if (NDalicPINVOKE.SWIGPendingException.Pending)
3986 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3991 // From Container Base class
3993 /// Adds a child view to this view.
3995 /// <seealso cref="Container.Add" />
3996 /// <since_tizen> 4 </since_tizen>
3997 public override void Add(View child)
3999 bool hasLayout = (_layout != null);
4000 Log.Info("NUI", "Add:" + child.Name + " to View:" + Name + "which has layout[" + hasLayout + "] + \n");
4004 Tizen.Log.Fatal("NUI", "Child is null");
4008 Container oldParent = child.GetParent();
4009 if (oldParent != this)
4011 // If child already has a parent then re-parent child
4012 if (oldParent != null)
4014 oldParent.Remove(child);
4016 child.InternalParent = this;
4018 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4020 if (NDalicPINVOKE.SWIGPendingException.Pending)
4021 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4022 Children.Add(child);
4024 if (ChildAdded != null)
4026 ChildAddedEventArgs e = new ChildAddedEventArgs
4030 ChildAdded(this, e);
4036 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4038 /// <seealso cref="Container.Remove" />
4039 /// <since_tizen> 4 </since_tizen>
4040 public override void Remove(View child)
4042 bool hasLayout = (_layout != null);
4043 Log.Info("NUI","Removing View:" + child.Name + "layout[" + hasLayout.ToString() +"]\n");
4045 Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
4046 if (NDalicPINVOKE.SWIGPendingException.Pending)
4047 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4049 Children.Remove(child);
4050 child.InternalParent = null;
4052 if (ChildRemoved != null)
4054 ChildRemovedEventArgs e = new ChildRemovedEventArgs
4058 ChildRemoved(this, e);
4063 /// Retrieves a child view by index.
4065 /// <seealso cref="Container.GetChildAt" />
4066 /// <since_tizen> 4 </since_tizen>
4067 public override View GetChildAt(uint index)
4069 if (index < Children.Count)
4071 return Children[Convert.ToInt32(index)];
4080 /// Retrieves the number of children held by the view.
4082 /// <seealso cref="Container.GetChildCount" />
4083 /// <since_tizen> 4 </since_tizen>
4084 public override uint GetChildCount()
4086 return Convert.ToUInt32(Children.Count);
4090 /// Gets the views parent.
4092 /// <seealso cref="Container.GetParent()" />
4093 /// <since_tizen> 4 </since_tizen>
4094 public override Container GetParent()
4096 return this.InternalParent as Container;
4100 /// Queries whether the view has a focus.
4102 /// <returns>True if this view has a focus.</returns>
4103 /// <since_tizen> 3 </since_tizen>
4104 public bool HasFocus()
4107 if (swigCPtr.Handle != global::System.IntPtr.Zero)
4109 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4110 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4114 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4120 /// Sets the name of the style to be applied to the view.
4122 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4123 /// <since_tizen> 3 </since_tizen>
4124 public void SetStyleName(string styleName)
4126 Interop.View.View_SetStyleName(swigCPtr, styleName);
4127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4131 /// Retrieves the name of the style to be applied to the view (if any).
4133 /// <returns>A string matching a style, or an empty string.</returns>
4134 /// <since_tizen> 3 </since_tizen>
4135 public string GetStyleName()
4137 string ret = Interop.View.View_GetStyleName(swigCPtr);
4138 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4143 /// Clears the background.
4145 /// <since_tizen> 3 </since_tizen>
4146 public void ClearBackground()
4148 Interop.View.View_ClearBackground(swigCPtr);
4149 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4156 /// This is an asynchronous method.
4158 /// <since_tizen> 3 </since_tizen>
4168 /// This is an asynchronous method.
4169 /// If the view is hidden, then the view and its children will not be rendered.
4170 /// 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.
4172 /// <since_tizen> 3 </since_tizen>
4179 /// Raises the view above all other views.
4182 /// Sibling order of views within the parent will be updated automatically.
4183 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4185 /// <since_tizen> 3 </since_tizen>
4186 public void RaiseToTop()
4188 var parentChildren = GetParent()?.Children;
4190 if (parentChildren != null)
4192 parentChildren.Remove(this);
4193 parentChildren.Add(this);
4195 Interop.NDalic.RaiseToTop(swigCPtr);
4196 if (NDalicPINVOKE.SWIGPendingException.Pending)
4197 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4203 /// Lowers the view to the bottom of all views.
4206 /// The sibling order of views within the parent will be updated automatically.
4207 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4209 /// <since_tizen> 3 </since_tizen>
4210 public void LowerToBottom()
4212 var parentChildren = GetParent()?.Children;
4214 if (parentChildren != null)
4216 parentChildren.Remove(this);
4217 parentChildren.Insert(0, this);
4219 Interop.NDalic.LowerToBottom(swigCPtr);
4220 if (NDalicPINVOKE.SWIGPendingException.Pending)
4221 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4226 /// Queries if all resources required by a view are loaded and ready.
4228 /// <remarks>Most resources are only loaded when the control is placed on the stage.
4230 /// <since_tizen> 3 </since_tizen>
4231 public bool IsResourceReady()
4233 bool ret = Interop.View.IsResourceReady(swigCPtr);
4234 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4239 /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4241 /// <pre>The view has been initialized. </pre>
4242 /// <returns>The parent layer of view </returns>
4243 /// <since_tizen> 5 </since_tizen>
4244 public Layer GetLayer()
4246 //to fix memory leak issue, match the handle count with native side.
4247 IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4248 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4249 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4250 Interop.BaseHandle.delete_BaseHandle(CPtr);
4251 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4253 if (NDalicPINVOKE.SWIGPendingException.Pending)
4254 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4259 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4261 /// <pre>The (child) view has been initialized. </pre>
4262 /// <since_tizen> 4 </since_tizen>
4263 public void Unparent()
4265 GetParent()?.Remove(this);
4269 /// Search through this view's hierarchy for a view with the given name.
4270 /// The view itself is also considered in the search.
4272 /// <pre>The view has been initialized.</pre>
4273 /// <param name="viewName">The name of the view to find.</param>
4274 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4275 /// <since_tizen> 3 </since_tizen>
4276 public View FindChildByName(string viewName)
4278 //to fix memory leak issue, match the handle count with native side.
4279 IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4280 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4281 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4282 Interop.BaseHandle.delete_BaseHandle(CPtr);
4283 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4285 if (NDalicPINVOKE.SWIGPendingException.Pending)
4286 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4291 /// Converts screen coordinates into the view's coordinate system using the default camera.
4293 /// <pre>The view has been initialized.</pre>
4294 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4295 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4296 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4297 /// <param name="screenX">The screen X-coordinate.</param>
4298 /// <param name="screenY">The screen Y-coordinate.</param>
4299 /// <returns>True if the conversion succeeded.</returns>
4300 /// <since_tizen> 3 </since_tizen>
4301 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4303 bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4304 if (NDalicPINVOKE.SWIGPendingException.Pending)
4305 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4310 /// Sets the relative to parent size factor of the view.<br />
4311 /// This factor is only used when ResizePolicy is set to either:
4312 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4313 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4315 /// <pre>The view has been initialized.</pre>
4316 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4317 /// <since_tizen> 3 </since_tizen>
4318 public void SetSizeModeFactor(Vector3 factor)
4320 Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4321 if (NDalicPINVOKE.SWIGPendingException.Pending)
4322 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4325 /// Calculates the height of the view given a width.<br />
4326 /// The natural size is used for default calculation.<br />
4327 /// Size 0 is treated as aspect ratio 1:1.<br />
4329 /// <param name="width">The width to use.</param>
4330 /// <returns>The height based on the width.</returns>
4331 /// <since_tizen> 3 </since_tizen>
4332 public float GetHeightForWidth(float width)
4334 float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4335 if (NDalicPINVOKE.SWIGPendingException.Pending)
4336 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4341 /// Calculates the width of the view given a height.<br />
4342 /// The natural size is used for default calculation.<br />
4343 /// Size 0 is treated as aspect ratio 1:1.<br />
4345 /// <param name="height">The height to use.</param>
4346 /// <returns>The width based on the height.</returns>
4347 /// <since_tizen> 3 </since_tizen>
4348 public float GetWidthForHeight(float height)
4350 float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4351 if (NDalicPINVOKE.SWIGPendingException.Pending)
4352 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4357 /// Return the amount of size allocated for relayout.
4359 /// <param name="dimension">The dimension to retrieve.</param>
4360 /// <returns>Return the size.</returns>
4361 /// <since_tizen> 3 </since_tizen>
4362 public float GetRelayoutSize(DimensionType dimension)
4364 float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4365 if (NDalicPINVOKE.SWIGPendingException.Pending)
4366 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4371 /// Set the padding for the view.
4373 /// <param name="padding">Padding for the view.</param>
4374 /// <since_tizen> 3 </since_tizen>
4375 public void SetPadding(PaddingType padding)
4377 Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4378 if (NDalicPINVOKE.SWIGPendingException.Pending)
4379 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4383 /// Return the value of padding for the view.
4385 /// <param name="paddingOut">the value of padding for the view</param>
4386 /// <since_tizen> 3 </since_tizen>
4387 public void GetPadding(PaddingType paddingOut)
4389 Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4390 if (NDalicPINVOKE.SWIGPendingException.Pending)
4391 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4394 /// <since_tizen> 3 </since_tizen>
4395 public uint AddRenderer(Renderer renderer)
4397 uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4398 if (NDalicPINVOKE.SWIGPendingException.Pending)
4399 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4403 /// <since_tizen> 3 </since_tizen>
4404 public Renderer GetRendererAt(uint index)
4406 //to fix memory leak issue, match the handle count with native side.
4407 IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4408 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4409 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4410 if (cPtr != null && ret == null)
4412 ret = new Renderer(cPtr, false);
4413 if (NDalicPINVOKE.SWIGPendingException.Pending)
4414 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4417 Interop.BaseHandle.delete_BaseHandle(CPtr);
4418 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4420 if (NDalicPINVOKE.SWIGPendingException.Pending)
4421 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4425 /// <since_tizen> 3 </since_tizen>
4426 public void RemoveRenderer(Renderer renderer)
4428 Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4429 if (NDalicPINVOKE.SWIGPendingException.Pending)
4430 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4433 /// <since_tizen> 3 </since_tizen>
4434 public void RemoveRenderer(uint index)
4436 Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4437 if (NDalicPINVOKE.SWIGPendingException.Pending)
4438 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4441 internal void Raise()
4443 var parentChildren = GetParent()?.Children;
4445 if (parentChildren != null)
4447 int currentIndex = parentChildren.IndexOf(this);
4449 // If the view is not already the last item in the list.
4450 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4452 View temp = parentChildren[currentIndex + 1];
4453 parentChildren[currentIndex + 1] = this;
4454 parentChildren[currentIndex] = temp;
4456 Interop.NDalic.Raise(swigCPtr);
4457 if (NDalicPINVOKE.SWIGPendingException.Pending)
4458 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4463 internal void Lower()
4465 var parentChildren = GetParent()?.Children;
4467 if (parentChildren != null)
4469 int currentIndex = parentChildren.IndexOf(this);
4471 // If the view is not already the first item in the list.
4472 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4474 View temp = parentChildren[currentIndex - 1];
4475 parentChildren[currentIndex - 1] = this;
4476 parentChildren[currentIndex] = temp;
4478 Interop.NDalic.Lower(swigCPtr);
4479 if (NDalicPINVOKE.SWIGPendingException.Pending)
4480 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4486 /// Raises the view to above the target view.
4488 /// <remarks>The sibling order of views within the parent will be updated automatically.
4489 /// Views on the level above the target view will still be shown above this view.
4490 /// Raising this view above views with the same sibling order as each other will raise this view above them.
4491 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4493 /// <param name="target">Will be raised above this view.</param>
4494 internal void RaiseAbove(View target)
4496 var parentChildren = GetParent()?.Children;
4498 if (parentChildren != null)
4500 int currentIndex = parentChildren.IndexOf(this);
4501 int targetIndex = parentChildren.IndexOf(target);
4503 if (currentIndex < 0 || targetIndex < 0 ||
4504 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4506 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4509 // If the currentIndex is less than the target index and the target has the same parent.
4510 if (currentIndex < targetIndex)
4512 parentChildren.Remove(this);
4513 parentChildren.Insert(targetIndex, this);
4515 Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4516 if (NDalicPINVOKE.SWIGPendingException.Pending)
4517 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4524 /// Lowers the view to below the target view.
4526 /// <remarks>The sibling order of views within the parent will be updated automatically.
4527 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4528 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4530 /// <param name="target">Will be lowered below this view.</param>
4531 internal void LowerBelow(View target)
4533 var parentChildren = GetParent()?.Children;
4535 if (parentChildren != null)
4537 int currentIndex = parentChildren.IndexOf(this);
4538 int targetIndex = parentChildren.IndexOf(target);
4539 if (currentIndex < 0 || targetIndex < 0 ||
4540 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4542 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4546 // If the currentIndex is not already the 0th index and the target has the same parent.
4547 if ((currentIndex != 0) && (targetIndex != -1) &&
4548 (currentIndex > targetIndex))
4550 parentChildren.Remove(this);
4551 parentChildren.Insert(targetIndex, this);
4553 Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4554 if (NDalicPINVOKE.SWIGPendingException.Pending)
4555 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4561 internal string GetName()
4563 string ret = Interop.Actor.Actor_GetName(swigCPtr);
4564 if (NDalicPINVOKE.SWIGPendingException.Pending)
4565 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4569 internal void SetName(string name)
4571 Interop.Actor.Actor_SetName(swigCPtr, name);
4572 if (NDalicPINVOKE.SWIGPendingException.Pending)
4573 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4576 internal uint GetId()
4578 uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4579 if (NDalicPINVOKE.SWIGPendingException.Pending)
4580 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4584 internal bool IsRoot()
4586 bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4591 internal bool OnWindow()
4593 bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4594 if (NDalicPINVOKE.SWIGPendingException.Pending)
4595 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4599 internal View FindChildById(uint id)
4601 //to fix memory leak issue, match the handle count with native side.
4602 IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4603 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4604 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4605 Interop.BaseHandle.delete_BaseHandle(CPtr);
4606 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4608 if (NDalicPINVOKE.SWIGPendingException.Pending)
4609 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4613 internal void SetParentOrigin(Vector3 origin)
4615 Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4616 if (NDalicPINVOKE.SWIGPendingException.Pending)
4617 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4620 internal Vector3 GetCurrentParentOrigin()
4622 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4623 if (NDalicPINVOKE.SWIGPendingException.Pending)
4624 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4628 internal void SetAnchorPoint(Vector3 anchorPoint)
4630 Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4631 if (NDalicPINVOKE.SWIGPendingException.Pending)
4632 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4635 internal Vector3 GetCurrentAnchorPoint()
4637 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4638 if (NDalicPINVOKE.SWIGPendingException.Pending)
4639 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4643 internal void SetSize(float width, float height)
4645 Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4646 if (NDalicPINVOKE.SWIGPendingException.Pending)
4647 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4650 internal void SetSize(float width, float height, float depth)
4652 Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4653 if (NDalicPINVOKE.SWIGPendingException.Pending)
4654 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4657 internal void SetSize(Vector2 size)
4659 Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4660 if (NDalicPINVOKE.SWIGPendingException.Pending)
4661 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4664 internal void SetSize(Vector3 size)
4666 Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4667 if (NDalicPINVOKE.SWIGPendingException.Pending)
4668 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4671 internal Vector3 GetTargetSize()
4673 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4674 if (NDalicPINVOKE.SWIGPendingException.Pending)
4675 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4679 internal Size2D GetCurrentSize()
4681 Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4682 if (NDalicPINVOKE.SWIGPendingException.Pending)
4683 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4684 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4688 internal Vector3 GetNaturalSize()
4690 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4691 if (NDalicPINVOKE.SWIGPendingException.Pending)
4692 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4696 internal void SetPosition(float x, float y)
4698 Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4699 if (NDalicPINVOKE.SWIGPendingException.Pending)
4700 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4703 internal void SetPosition(float x, float y, float z)
4705 Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4706 if (NDalicPINVOKE.SWIGPendingException.Pending)
4707 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4710 internal void SetPosition(Vector3 position)
4712 Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4713 if (NDalicPINVOKE.SWIGPendingException.Pending)
4714 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4717 internal void SetX(float x)
4719 Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4720 if (NDalicPINVOKE.SWIGPendingException.Pending)
4721 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4724 internal void SetY(float y)
4726 Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4727 if (NDalicPINVOKE.SWIGPendingException.Pending)
4728 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4731 internal void SetZ(float z)
4733 Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4734 if (NDalicPINVOKE.SWIGPendingException.Pending)
4735 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4738 internal void TranslateBy(Vector3 distance)
4740 Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4741 if (NDalicPINVOKE.SWIGPendingException.Pending)
4742 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4745 internal Position GetCurrentPosition()
4747 Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4748 if (NDalicPINVOKE.SWIGPendingException.Pending)
4749 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4753 internal Vector3 GetCurrentWorldPosition()
4755 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4756 if (NDalicPINVOKE.SWIGPendingException.Pending)
4757 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4761 internal void SetInheritPosition(bool inherit)
4763 Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4764 if (NDalicPINVOKE.SWIGPendingException.Pending)
4765 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4768 internal bool IsPositionInherited()
4770 bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4771 if (NDalicPINVOKE.SWIGPendingException.Pending)
4772 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4776 internal void SetOrientation(Degree angle, Vector3 axis)
4778 Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4779 if (NDalicPINVOKE.SWIGPendingException.Pending)
4780 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4783 internal void SetOrientation(Radian angle, Vector3 axis)
4785 Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4786 if (NDalicPINVOKE.SWIGPendingException.Pending)
4787 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4790 internal void SetOrientation(Rotation orientation)
4792 Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4793 if (NDalicPINVOKE.SWIGPendingException.Pending)
4794 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4797 internal void RotateBy(Degree angle, Vector3 axis)
4799 Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4800 if (NDalicPINVOKE.SWIGPendingException.Pending)
4801 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4804 internal void RotateBy(Radian angle, Vector3 axis)
4806 Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4807 if (NDalicPINVOKE.SWIGPendingException.Pending)
4808 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4811 internal void RotateBy(Rotation relativeRotation)
4813 Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4814 if (NDalicPINVOKE.SWIGPendingException.Pending)
4815 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4818 internal Rotation GetCurrentOrientation()
4820 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4821 if (NDalicPINVOKE.SWIGPendingException.Pending)
4822 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4826 internal void SetInheritOrientation(bool inherit)
4828 Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4829 if (NDalicPINVOKE.SWIGPendingException.Pending)
4830 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4833 internal bool IsOrientationInherited()
4835 bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
4836 if (NDalicPINVOKE.SWIGPendingException.Pending)
4837 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4841 internal Rotation GetCurrentWorldOrientation()
4843 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
4844 if (NDalicPINVOKE.SWIGPendingException.Pending)
4845 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4849 internal void SetScale(float scale)
4851 Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
4852 if (NDalicPINVOKE.SWIGPendingException.Pending)
4853 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4856 internal void SetScale(float scaleX, float scaleY, float scaleZ)
4858 Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
4859 if (NDalicPINVOKE.SWIGPendingException.Pending)
4860 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4863 internal void SetScale(Vector3 scale)
4865 Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
4866 if (NDalicPINVOKE.SWIGPendingException.Pending)
4867 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4870 internal void ScaleBy(Vector3 relativeScale)
4872 Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
4873 if (NDalicPINVOKE.SWIGPendingException.Pending)
4874 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4877 internal Vector3 GetCurrentScale()
4879 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
4880 if (NDalicPINVOKE.SWIGPendingException.Pending)
4881 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4885 internal Vector3 GetCurrentWorldScale()
4887 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
4888 if (NDalicPINVOKE.SWIGPendingException.Pending)
4889 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4893 internal void SetInheritScale(bool inherit)
4895 Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
4896 if (NDalicPINVOKE.SWIGPendingException.Pending)
4897 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4900 internal bool IsScaleInherited()
4902 bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
4903 if (NDalicPINVOKE.SWIGPendingException.Pending)
4904 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4908 internal Matrix GetCurrentWorldMatrix()
4910 Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
4911 if (NDalicPINVOKE.SWIGPendingException.Pending)
4912 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4916 internal void SetVisible(bool visible)
4918 Interop.Actor.Actor_SetVisible(swigCPtr, visible);
4919 if (NDalicPINVOKE.SWIGPendingException.Pending)
4920 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4923 internal bool IsVisible()
4925 bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
4926 if (NDalicPINVOKE.SWIGPendingException.Pending)
4927 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4931 internal void SetOpacity(float opacity)
4933 Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
4934 if (NDalicPINVOKE.SWIGPendingException.Pending)
4935 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4938 internal float GetCurrentOpacity()
4940 float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
4941 if (NDalicPINVOKE.SWIGPendingException.Pending)
4942 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4946 internal void SetColor(Vector4 color)
4948 Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
4949 if (NDalicPINVOKE.SWIGPendingException.Pending)
4950 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4953 internal Vector4 GetCurrentColor()
4955 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
4956 if (NDalicPINVOKE.SWIGPendingException.Pending)
4957 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4961 internal void SetColorMode(ColorMode colorMode)
4963 Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
4964 if (NDalicPINVOKE.SWIGPendingException.Pending)
4965 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4968 internal ColorMode GetColorMode()
4970 ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
4971 if (NDalicPINVOKE.SWIGPendingException.Pending)
4972 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4976 internal Vector4 GetCurrentWorldColor()
4978 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
4979 if (NDalicPINVOKE.SWIGPendingException.Pending)
4980 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4984 internal void SetDrawMode(DrawModeType drawMode)
4986 Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
4987 if (NDalicPINVOKE.SWIGPendingException.Pending)
4988 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4991 internal DrawModeType GetDrawMode()
4993 DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
4994 if (NDalicPINVOKE.SWIGPendingException.Pending)
4995 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4999 internal void SetKeyboardFocusable(bool focusable)
5001 Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5002 if (NDalicPINVOKE.SWIGPendingException.Pending)
5003 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5006 internal bool IsKeyboardFocusable()
5008 bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5009 if (NDalicPINVOKE.SWIGPendingException.Pending)
5010 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5014 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5016 Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5017 if (NDalicPINVOKE.SWIGPendingException.Pending)
5018 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5021 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5023 ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5024 if (NDalicPINVOKE.SWIGPendingException.Pending)
5025 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5029 internal Vector3 GetSizeModeFactor()
5031 Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5032 if (NDalicPINVOKE.SWIGPendingException.Pending)
5033 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5037 internal void SetMinimumSize(Vector2 size)
5039 Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5040 if (NDalicPINVOKE.SWIGPendingException.Pending)
5041 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5044 internal Vector2 GetMinimumSize()
5046 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5047 if (NDalicPINVOKE.SWIGPendingException.Pending)
5048 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5052 internal void SetMaximumSize(Vector2 size)
5054 Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5055 if (NDalicPINVOKE.SWIGPendingException.Pending)
5056 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5059 internal Vector2 GetMaximumSize()
5061 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5062 if (NDalicPINVOKE.SWIGPendingException.Pending)
5063 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5067 internal int GetHierarchyDepth()
5069 int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5070 if (NDalicPINVOKE.SWIGPendingException.Pending)
5071 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5075 internal uint GetRendererCount()
5077 uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5078 if (NDalicPINVOKE.SWIGPendingException.Pending)
5079 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5083 internal TouchDataSignal TouchSignal()
5085 TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5086 if (NDalicPINVOKE.SWIGPendingException.Pending)
5087 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5091 internal HoverSignal HoveredSignal()
5093 HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5094 if (NDalicPINVOKE.SWIGPendingException.Pending)
5095 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5099 internal WheelSignal WheelEventSignal()
5101 WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5102 if (NDalicPINVOKE.SWIGPendingException.Pending)
5103 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5107 internal ViewSignal OnWindowSignal()
5109 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5110 if (NDalicPINVOKE.SWIGPendingException.Pending)
5111 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5115 internal ViewSignal OffWindowSignal()
5117 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5118 if (NDalicPINVOKE.SWIGPendingException.Pending)
5119 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5123 internal ViewSignal OnRelayoutSignal()
5125 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5126 if (NDalicPINVOKE.SWIGPendingException.Pending)
5127 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5131 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5133 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5134 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5138 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5140 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5145 internal ViewSignal ResourcesLoadedSignal()
5147 ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5152 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5154 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5157 internal bool IsTopLevelView()
5159 if (GetParent() is Layer)
5166 internal void SetKeyInputFocus()
5168 Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5169 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5172 internal void ClearKeyInputFocus()
5174 Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5175 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5178 internal PinchGestureDetector GetPinchGestureDetector()
5180 PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5181 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5185 internal PanGestureDetector GetPanGestureDetector()
5187 PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5188 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5192 internal TapGestureDetector GetTapGestureDetector()
5194 TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5195 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5199 internal LongPressGestureDetector GetLongPressGestureDetector()
5201 LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5206 internal void SetBackgroundColor(Vector4 color)
5208 Interop.ViewInternal.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
5209 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5212 internal Vector4 GetBackgroundColor()
5214 Vector4 ret = new Vector4(Interop.ViewInternal.View_GetBackgroundColor(swigCPtr), true);
5215 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5219 internal void SetBackgroundImage(Image image)
5221 Interop.ViewInternal.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
5222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5225 internal ControlKeySignal KeyEventSignal()
5227 ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5232 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5234 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5235 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5239 internal KeyInputFocusSignal KeyInputFocusLostSignal()
5241 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5242 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5246 internal IntPtr GetPtrfromView()
5248 return (IntPtr)swigCPtr;
5252 /// Removes the layout from this View.
5254 internal void ResetLayout()
5259 internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5261 return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5265 /// you can override it to clean-up your own resources.
5267 /// <param name="type">DisposeTypes</param>
5268 /// <since_tizen> 3 </since_tizen>
5269 protected override void Dispose(DisposeTypes type)
5276 if (type == DisposeTypes.Explicit)
5279 //Release your own managed resources here.
5280 //You should release all of your own disposable objects here.
5283 //Release your own unmanaged resources here.
5284 //You should not access any managed member here except static instance.
5285 //because the execution order of Finalizes is non-deterministic.
5288 DisConnectFromSignals();
5291 if (swigCPtr.Handle != global::System.IntPtr.Zero)
5295 swigCMemOwn = false;
5296 Interop.View.delete_View(swigCPtr);
5298 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5301 foreach (View view in Children)
5303 view.InternalParent = null;
5310 private void OnSize2DChanged(int width, int height)
5312 Size2D = new Size2D(width, height);
5315 private void OnPosition2DChanged(int x, int y)
5317 Position2D = new Position2D(x, y);
5320 private void DisConnectFromSignals()
5322 // Save current CPtr.
5323 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5325 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5326 swigCPtr = GetBaseHandleCPtrHandleRef;
5328 if (_onRelayoutEventCallback != null)
5330 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5333 if (_offWindowEventCallback != null)
5335 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5338 if (_onWindowEventCallback != null)
5340 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5343 if (_wheelEventCallback != null)
5345 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5348 if (_hoverEventCallback != null)
5350 this.HoveredSignal().Disconnect(_hoverEventCallback);
5353 if (_touchDataCallback != null)
5355 this.TouchSignal().Disconnect(_touchDataCallback);
5358 if (_ResourcesLoadedCallback != null)
5360 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5363 if (_offWindowEventCallback != null)
5365 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5368 if (_onWindowEventCallback != null)
5370 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5373 if (_wheelEventCallback != null)
5375 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5378 if (_hoverEventCallback != null)
5380 this.HoveredSignal().Disconnect(_hoverEventCallback);
5383 if (_touchDataCallback != null)
5385 this.TouchSignal().Disconnect(_touchDataCallback);
5388 if (_onRelayoutEventCallback != null)
5390 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5393 if (_keyCallback != null)
5395 this.KeyEventSignal().Disconnect(_keyCallback);
5398 if (_keyInputFocusLostCallback != null)
5400 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5403 if (_keyInputFocusGainedCallback != null)
5405 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5408 if (_backgroundResourceLoadedCallback != null)
5410 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5413 if (_onWindowSendEventCallback != null)
5415 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5418 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5419 // Restore current CPtr.
5420 swigCPtr = currentCPtr;
5423 private void OnKeyInputFocusGained(IntPtr view)
5425 if (_keyInputFocusGainedEventHandler != null)
5427 _keyInputFocusGainedEventHandler(this, null);
5431 private void OnKeyInputFocusLost(IntPtr view)
5433 if (_keyInputFocusLostEventHandler != null)
5435 _keyInputFocusLostEventHandler(this, null);
5439 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5441 if (keyEvent == global::System.IntPtr.Zero)
5443 NUILog.Error("keyEvent should not be null!");
5447 KeyEventArgs e = new KeyEventArgs();
5449 bool result = false;
5451 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5453 if (_keyEventHandler != null)
5455 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5457 // Oring the result of each callback.
5458 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5460 result |= del(this, e);
5467 // Callback for View OnRelayout signal
5468 private void OnRelayout(IntPtr data)
5470 if (_onRelayoutEventHandler != null)
5472 _onRelayoutEventHandler(this, null);
5476 // Callback for View TouchSignal
5477 private bool OnTouch(IntPtr view, IntPtr touchData)
5479 if (touchData == global::System.IntPtr.Zero)
5481 NUILog.Error("touchData should not be null!");
5485 TouchEventArgs e = new TouchEventArgs();
5487 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5489 if (_touchDataEventHandler != null)
5491 return _touchDataEventHandler(this, e);
5496 // Callback for View Hover signal
5497 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5499 if (hoverEvent == global::System.IntPtr.Zero)
5501 NUILog.Error("hoverEvent should not be null!");
5505 HoverEventArgs e = new HoverEventArgs();
5507 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5509 if (_hoverEventHandler != null)
5511 return _hoverEventHandler(this, e);
5516 // Callback for View Wheel signal
5517 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5519 if (wheelEvent == global::System.IntPtr.Zero)
5521 NUILog.Error("wheelEvent should not be null!");
5525 WheelEventArgs e = new WheelEventArgs();
5527 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5529 if (_wheelEventHandler != null)
5531 return _wheelEventHandler(this, e);
5536 // Callback for View OnWindow signal
5537 private void OnWindow(IntPtr data)
5539 if (_onWindowEventHandler != null)
5541 _onWindowEventHandler(this, null);
5545 // Callback for View OffWindow signal
5546 private void OffWindow(IntPtr data)
5548 if (_offWindowEventHandler != null)
5550 _offWindowEventHandler(this, null);
5554 // Callback for View visibility change signal
5555 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5557 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5560 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5562 e.Visibility = visibility;
5565 if (_visibilityChangedEventHandler != null)
5567 _visibilityChangedEventHandler(this, e);
5571 // Callback for View layout direction change signal
5572 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5574 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5577 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5581 if (_layoutDirectionChangedEventHandler != null)
5583 _layoutDirectionChangedEventHandler(this, e);
5587 private void OnResourcesLoaded(IntPtr view)
5589 if (_resourcesLoadedEventHandler != null)
5591 _resourcesLoadedEventHandler(this, null);
5595 private View ConvertIdToView(uint id)
5598 if (GetParent() is View)
5600 View parentView = GetParent() as View;
5601 view = parentView.FindChildById(id);
5606 view = Window.Instance.GetRootLayer().FindChildById(id);
5612 private void OnBackgroundResourceLoaded(IntPtr view)
5614 BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5615 e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5617 if (_backgroundResourceLoadedEventHandler != null)
5619 _backgroundResourceLoadedEventHandler(this, e);
5624 /// Event argument passed through the ChildAdded event.
5626 /// <since_tizen> 5 </since_tizen>
5627 public class ChildAddedEventArgs : EventArgs
5630 /// Added child view at moment.
5632 /// <since_tizen> 5 </since_tizen>
5633 public View Added { get; set; }
5637 /// Event argument passed through the ChildRemoved event.
5639 /// <since_tizen> 5 </since_tizen>
5640 public class ChildRemovedEventArgs : EventArgs
5643 /// Removed child view at moment.
5645 /// <since_tizen> 5 </since_tizen>
5646 public View Removed { get; set; }
5650 /// Event arguments that passed via the KeyEvent signal.
5652 /// <since_tizen> 3 </since_tizen>
5653 public class KeyEventArgs : EventArgs
5658 /// Key - is the key sent to the view.
5660 /// <since_tizen> 3 </since_tizen>
5675 /// Event arguments that passed via the touch signal.
5677 /// <since_tizen> 3 </since_tizen>
5678 public class TouchEventArgs : EventArgs
5680 private Touch _touch;
5683 /// Touch - contains the information of touch points.
5685 /// <since_tizen> 3 </since_tizen>
5700 /// Event arguments that passed via the hover signal.
5702 /// <since_tizen> 3 </since_tizen>
5703 public class HoverEventArgs : EventArgs
5705 private Hover _hover;
5708 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5710 /// <since_tizen> 3 </since_tizen>
5725 /// Event arguments that passed via the wheel signal.
5727 /// <since_tizen> 3 </since_tizen>
5728 public class WheelEventArgs : EventArgs
5730 private Wheel _wheel;
5733 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5735 /// <since_tizen> 3 </since_tizen>
5750 /// Event arguments of visibility changed.
5752 /// <since_tizen> 3 </since_tizen>
5753 public class VisibilityChangedEventArgs : EventArgs
5756 private bool _visibility;
5757 private VisibilityChangeType _type;
5760 /// The view, or child of view, whose visibility has changed.
5762 /// <since_tizen> 3 </since_tizen>
5776 /// Whether the view is now visible or not.
5778 /// <since_tizen> 3 </since_tizen>
5779 public bool Visibility
5787 _visibility = value;
5792 /// Whether the view's visible property has changed or a parent's.
5794 /// <since_tizen> 3 </since_tizen>
5795 public VisibilityChangeType Type
5809 /// Event arguments of layout direction changed.
5811 /// <since_tizen> 4 </since_tizen>
5812 public class LayoutDirectionChangedEventArgs : EventArgs
5815 private ViewLayoutDirectionType _type;
5818 /// The view, or child of view, whose layout direction has changed.
5820 /// <since_tizen> 4 </since_tizen>
5834 /// Whether the view's layout direction property has changed or a parent's.
5836 /// <since_tizen> 4 </since_tizen>
5837 public ViewLayoutDirectionType Type
5851 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
5853 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5854 [EditorBrowsable(EditorBrowsableState.Never)]
5855 public Transition GetTransition(string transitionName)
5857 Transition trans = null;
5858 transDictionary.TryGetValue(transitionName, out trans);
5862 private void LoadTransitions()
5864 foreach (string str in transitionNames)
5866 string resourceName = str + ".xaml";
5867 Transition trans = null;
5869 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
5871 string likelyResourcePath = resource + "animation/" + resourceName;
5873 if (File.Exists(likelyResourcePath))
5875 trans = Extensions.LoadObject<Transition>(likelyResourcePath);
5879 transDictionary.Add(trans.Name, trans);
5884 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5885 [EditorBrowsable(EditorBrowsableState.Never)]
5886 public string[] TransitionNames
5890 return transitionNames;
5894 transitionNames = value;
5898 private string[] transitionNames;
5900 internal class BackgroundResourceLoadedEventArgs : EventArgs
5902 private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
5903 public ResourceLoadingStatusType Status
5916 internal class Property
5918 internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
5919 internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
5920 internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
5921 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
5922 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
5923 internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
5924 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
5925 internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
5926 internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
5927 internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
5928 internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
5929 internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
5930 internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
5931 internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
5932 internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
5933 internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
5934 internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
5935 internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
5936 internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
5937 internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
5938 internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
5939 internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
5940 internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
5941 internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
5942 internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
5943 internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
5944 internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
5945 internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
5946 internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
5947 internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
5948 internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
5949 internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
5950 internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
5951 internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
5952 internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
5953 internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
5954 internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
5955 internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
5956 internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
5957 internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
5958 internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
5959 internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
5960 internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
5961 internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
5962 internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
5963 internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
5964 internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
5965 internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
5966 internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
5967 internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
5968 internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
5969 internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
5970 internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
5971 internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
5972 internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
5973 internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
5974 internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
5975 internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
5976 internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
5977 internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
5978 internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
5979 internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
5980 internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();