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 XamlStyleProperty = BindableProperty.Create("XamlStyle", 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 private MergedStyle mergedStyle = null;
1297 internal MergedStyle _mergedStyle
1301 if (null == mergedStyle)
1303 mergedStyle = new MergedStyle(GetType(), this);
1310 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1311 private LayoutItem _layout; // Exclusive layout assigned to this View.
1312 private int _widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
1313 private int _heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
1314 private float _weight = 0.0f; // Weighting of child View in a Layout
1315 private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
1316 private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
1317 private bool _backgroundImageSynchronosLoading = false;
1318 private EventHandler _offWindowEventHandler;
1319 private OffWindowEventCallbackType _offWindowEventCallback;
1320 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
1321 private WheelEventCallbackType _wheelEventCallback;
1322 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
1323 private KeyCallbackType _keyCallback;
1324 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
1325 private TouchDataCallbackType _touchDataCallback;
1326 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
1327 private HoverEventCallbackType _hoverEventCallback;
1328 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
1329 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
1330 private EventHandler _keyInputFocusGainedEventHandler;
1331 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
1332 private EventHandler _keyInputFocusLostEventHandler;
1333 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
1334 private EventHandler _onRelayoutEventHandler;
1335 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
1336 private EventHandler _onWindowEventHandler;
1337 private OnWindowEventCallbackType _onWindowEventCallback;
1338 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
1339 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
1340 // Resource Ready Signal
1341 private EventHandler _resourcesLoadedEventHandler;
1342 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1343 private EventHandler<BackgroundResourceLoadedEventArgs> _backgroundResourceLoadedEventHandler;
1344 private _backgroundResourceLoadedCallbackType _backgroundResourceLoadedCallback;
1346 private OnWindowEventCallbackType _onWindowSendEventCallback;
1348 private void SendViewAddedEventToWindow(IntPtr data)
1350 Window.Instance?.SendViewAdded(this);
1354 /// Creates a new instance of a view.
1356 /// <since_tizen> 3 </since_tizen>
1357 public View() : this(Interop.View.View_New(), true)
1359 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1361 internal View(View uiControl) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1363 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1366 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
1368 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1371 PositionUsesPivotPoint = false;
1374 _onWindowSendEventCallback = SendViewAddedEventToWindow;
1375 this.OnWindowSignal().Connect(_onWindowSendEventCallback);
1378 internal View(ViewImpl implementation) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1383 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1384 private delegate void OffWindowEventCallbackType(IntPtr control);
1385 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1386 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
1387 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1388 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
1389 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1390 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
1391 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1392 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
1393 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1394 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
1395 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1396 private delegate void ResourcesLoadedCallbackType(IntPtr control);
1397 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1398 private delegate void _backgroundResourceLoadedCallbackType(IntPtr view);
1399 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1400 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
1401 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1402 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
1403 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1404 private delegate void OnRelayoutEventCallbackType(IntPtr control);
1405 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1406 private delegate void OnWindowEventCallbackType(IntPtr control);
1407 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1408 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
1411 /// Event when a child is removed.
1413 /// <since_tizen> 5 </since_tizen>
1414 public new event EventHandler<ChildRemovedEventArgs> ChildRemoved;
1416 /// Event when a child is added.
1418 /// <since_tizen> 5 </since_tizen>
1419 public new event EventHandler<ChildAddedEventArgs> ChildAdded;
1422 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1423 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
1425 /// <since_tizen> 3 </since_tizen>
1426 public event EventHandler FocusGained
1430 if (_keyInputFocusGainedEventHandler == null)
1432 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
1433 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
1436 _keyInputFocusGainedEventHandler += value;
1441 _keyInputFocusGainedEventHandler -= value;
1443 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
1445 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
1451 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1452 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
1454 /// <since_tizen> 3 </since_tizen>
1455 public event EventHandler FocusLost
1459 if (_keyInputFocusLostEventHandler == null)
1461 _keyInputFocusLostCallback = OnKeyInputFocusLost;
1462 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
1465 _keyInputFocusLostEventHandler += value;
1470 _keyInputFocusLostEventHandler -= value;
1472 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
1474 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
1480 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1481 /// The KeyPressed signal is emitted when the key event is received.<br />
1483 /// <since_tizen> 3 </since_tizen>
1484 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
1488 if (_keyEventHandler == null)
1490 _keyCallback = OnKeyEvent;
1491 this.KeyEventSignal().Connect(_keyCallback);
1494 _keyEventHandler += value;
1499 _keyEventHandler -= value;
1501 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
1503 this.KeyEventSignal().Disconnect(_keyCallback);
1509 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
1510 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
1512 /// <since_tizen> 3 </since_tizen>
1513 public event EventHandler Relayout
1517 if (_onRelayoutEventHandler == null)
1519 _onRelayoutEventCallback = OnRelayout;
1520 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
1523 _onRelayoutEventHandler += value;
1528 _onRelayoutEventHandler -= value;
1530 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
1532 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
1539 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1540 /// The touched signal is emitted when the touch input is received.<br />
1542 /// <since_tizen> 3 </since_tizen>
1543 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
1547 if (_touchDataEventHandler == null)
1549 _touchDataCallback = OnTouch;
1550 this.TouchSignal().Connect(_touchDataCallback);
1553 _touchDataEventHandler += value;
1558 _touchDataEventHandler -= value;
1560 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
1562 this.TouchSignal().Disconnect(_touchDataCallback);
1569 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1570 /// The hovered signal is emitted when the hover input is received.<br />
1572 /// <since_tizen> 3 </since_tizen>
1573 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
1577 if (_hoverEventHandler == null)
1579 _hoverEventCallback = OnHoverEvent;
1580 this.HoveredSignal().Connect(_hoverEventCallback);
1583 _hoverEventHandler += value;
1588 _hoverEventHandler -= value;
1590 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
1592 this.HoveredSignal().Disconnect(_hoverEventCallback);
1599 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1600 /// The WheelMoved signal is emitted when the wheel event is received.<br />
1602 /// <since_tizen> 3 </since_tizen>
1603 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
1607 if (_wheelEventHandler == null)
1609 _wheelEventCallback = OnWheelEvent;
1610 this.WheelEventSignal().Connect(_wheelEventCallback);
1613 _wheelEventHandler += value;
1618 _wheelEventHandler -= value;
1620 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
1622 this.WheelEventSignal().Disconnect(_wheelEventCallback);
1629 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
1630 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
1632 /// <since_tizen> 3 </since_tizen>
1633 public event EventHandler AddedToWindow
1637 if (_onWindowEventHandler == null)
1639 _onWindowEventCallback = OnWindow;
1640 this.OnWindowSignal().Connect(_onWindowEventCallback);
1643 _onWindowEventHandler += value;
1648 _onWindowEventHandler -= value;
1650 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
1652 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
1658 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
1659 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
1661 /// <since_tizen> 3 </since_tizen>
1662 public event EventHandler RemovedFromWindow
1666 if (_offWindowEventHandler == null)
1668 _offWindowEventCallback = OffWindow;
1669 this.OffWindowSignal().Connect(_offWindowEventCallback);
1672 _offWindowEventHandler += value;
1677 _offWindowEventHandler -= value;
1679 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
1681 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
1687 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
1688 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
1690 /// <since_tizen> 3 </since_tizen>
1691 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
1695 if (_visibilityChangedEventHandler == null)
1697 _visibilityChangedEventCallback = OnVisibilityChanged;
1698 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
1701 _visibilityChangedEventHandler += value;
1706 _visibilityChangedEventHandler -= value;
1708 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
1710 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
1716 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
1717 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
1719 /// <since_tizen> 4 </since_tizen>
1720 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
1724 if (_layoutDirectionChangedEventHandler == null)
1726 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
1727 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
1730 _layoutDirectionChangedEventHandler += value;
1735 _layoutDirectionChangedEventHandler -= value;
1737 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
1739 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
1745 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1746 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1748 /// <since_tizen> 3 </since_tizen>
1749 public event EventHandler ResourcesLoaded
1753 if (_resourcesLoadedEventHandler == null)
1755 _ResourcesLoadedCallback = OnResourcesLoaded;
1756 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1759 _resourcesLoadedEventHandler += value;
1764 _resourcesLoadedEventHandler -= value;
1766 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1768 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1773 internal event EventHandler<BackgroundResourceLoadedEventArgs> BackgroundResourceLoaded
1777 if (_backgroundResourceLoadedEventHandler == null)
1779 _backgroundResourceLoadedCallback = OnBackgroundResourceLoaded;
1780 this.ResourcesLoadedSignal().Connect(_backgroundResourceLoadedCallback);
1783 _backgroundResourceLoadedEventHandler += value;
1787 _backgroundResourceLoadedEventHandler -= value;
1789 if (_backgroundResourceLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1791 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
1797 /// Enumeration for describing the states of the view.
1799 /// <since_tizen> 3 </since_tizen>
1803 /// The normal state.
1807 /// The focused state.
1811 /// The disabled state.
1817 /// Describes the direction to move the focus towards.
1819 /// <since_tizen> 3 </since_tizen>
1820 public enum FocusDirection
1823 /// Move keyboard focus towards the left direction.
1825 /// <since_tizen> 3 </since_tizen>
1828 /// Move keyboard focus towards the right direction.
1830 /// <since_tizen> 3 </since_tizen>
1833 /// Move keyboard focus towards the up direction.
1835 /// <since_tizen> 3 </since_tizen>
1838 /// Move keyboard focus towards the down direction.
1840 /// <since_tizen> 3 </since_tizen>
1843 /// Move keyboard focus towards the previous page direction.
1845 /// <since_tizen> 3 </since_tizen>
1848 /// Move keyboard focus towards the next page direction.
1850 /// <since_tizen> 3 </since_tizen>
1854 internal enum PropertyRange
1856 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1857 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1858 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1861 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1862 [EditorBrowsable(EditorBrowsableState.Never)]
1863 public bool IsResourcesCreated
1867 return Application.Current.IsResourcesCreated;
1871 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1872 [EditorBrowsable(EditorBrowsableState.Never)]
1873 public ResourceDictionary XamlResources
1877 return Application.Current.XamlResources;
1881 Application.Current.XamlResources = value;
1886 /// The StyleName, type string.
1888 /// <since_tizen> 3 </since_tizen>
1889 public string StyleName
1893 return (string)GetValue(StyleNameProperty);
1897 SetValue(StyleNameProperty, value);
1898 NotifyPropertyChanged();
1903 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1905 /// <since_tizen> 3 </since_tizen>
1906 public Color BackgroundColor
1910 return (Color)GetValue(BackgroundColorProperty);
1914 SetValue(BackgroundColorProperty, value);
1915 NotifyPropertyChanged();
1920 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1922 /// <since_tizen> 3 </since_tizen>
1923 public string BackgroundImage
1927 return (string)GetValue(BackgroundImageProperty);
1931 SetValue(BackgroundImageProperty, value);
1932 NotifyPropertyChanged();
1937 /// The background of view.
1939 /// <since_tizen> 3 </since_tizen>
1940 public Tizen.NUI.PropertyMap Background
1944 return (PropertyMap)GetValue(BackgroundProperty);
1948 SetValue(BackgroundProperty, value);
1949 NotifyPropertyChanged();
1955 /// The current state of the view.
1957 /// <since_tizen> 3 </since_tizen>
1962 return (States)GetValue(StateProperty);
1966 SetValue(StateProperty, value);
1967 NotifyPropertyChanged();
1972 /// The current sub state of the view.
1974 /// <since_tizen> 3 </since_tizen>
1975 public States SubState
1979 return (States)GetValue(SubStateProperty);
1983 SetValue(SubStateProperty, value);
1984 NotifyPropertyChanged();
1989 /// Displays a tooltip
1991 /// <since_tizen> 3 </since_tizen>
1992 public Tizen.NUI.PropertyMap Tooltip
1996 return (PropertyMap)GetValue(TooltipProperty);
2000 SetValue(TooltipProperty, value);
2001 NotifyPropertyChanged();
2006 /// Displays a tooltip as a text.
2008 /// <since_tizen> 3 </since_tizen>
2009 public string TooltipText
2013 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
2014 NotifyPropertyChanged();
2019 /// The Child property of FlexContainer.<br />
2020 /// The proportion of the free space in the container, the flex item will receive.<br />
2021 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
2023 /// <since_tizen> 3 </since_tizen>
2028 return (float)GetValue(FlexProperty);
2032 SetValue(FlexProperty, value);
2033 NotifyPropertyChanged();
2038 /// The Child property of FlexContainer.<br />
2039 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
2041 /// <since_tizen> 3 </since_tizen>
2042 public int AlignSelf
2046 return (int)GetValue(AlignSelfProperty);
2050 SetValue(AlignSelfProperty, value);
2051 NotifyPropertyChanged();
2056 /// The Child property of FlexContainer.<br />
2057 /// The space around the flex item.<br />
2059 /// <since_tizen> 3 </since_tizen>
2060 public Vector4 FlexMargin
2064 return (Vector4)GetValue(FlexMarginProperty);
2068 SetValue(FlexMarginProperty, value);
2069 NotifyPropertyChanged();
2074 /// The top-left cell this child occupies, if not set, the first available cell is used.
2076 /// <since_tizen> 3 </since_tizen>
2077 public Vector2 CellIndex
2081 return (Vector2)GetValue(CellIndexProperty);
2085 SetValue(CellIndexProperty, value);
2086 NotifyPropertyChanged();
2091 /// The number of rows this child occupies, if not set, the default value is 1.
2093 /// <since_tizen> 3 </since_tizen>
2094 public float RowSpan
2098 return (float)GetValue(RowSpanProperty);
2102 SetValue(RowSpanProperty, value);
2103 NotifyPropertyChanged();
2108 /// The number of columns this child occupies, if not set, the default value is 1.
2110 /// <since_tizen> 3 </since_tizen>
2111 public float ColumnSpan
2115 return (float)GetValue(ColumnSpanProperty);
2119 SetValue(ColumnSpanProperty, value);
2120 NotifyPropertyChanged();
2125 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
2127 /// <since_tizen> 3 </since_tizen>
2128 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
2132 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
2136 SetValue(CellHorizontalAlignmentProperty, value);
2137 NotifyPropertyChanged();
2142 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
2144 /// <since_tizen> 3 </since_tizen>
2145 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
2149 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
2153 SetValue(CellVerticalAlignmentProperty, value);
2154 NotifyPropertyChanged();
2159 /// The left focusable view.<br />
2160 /// This will return null if not set.<br />
2161 /// This will also return null if the specified left focusable view is not on a window.<br />
2163 /// <since_tizen> 3 </since_tizen>
2164 public View LeftFocusableView
2166 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2169 return (View)GetValue(LeftFocusableViewProperty);
2173 SetValue(LeftFocusableViewProperty, value);
2174 NotifyPropertyChanged();
2179 /// The right focusable view.<br />
2180 /// This will return null if not set.<br />
2181 /// This will also return null if the specified right focusable view is not on a window.<br />
2183 /// <since_tizen> 3 </since_tizen>
2184 public View RightFocusableView
2186 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2189 return (View)GetValue(RightFocusableViewProperty);
2193 SetValue(RightFocusableViewProperty, value);
2194 NotifyPropertyChanged();
2199 /// The up focusable view.<br />
2200 /// This will return null if not set.<br />
2201 /// This will also return null if the specified up focusable view is not on a window.<br />
2203 /// <since_tizen> 3 </since_tizen>
2204 public View UpFocusableView
2206 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2209 return (View)GetValue(UpFocusableViewProperty);
2213 SetValue(UpFocusableViewProperty, value);
2214 NotifyPropertyChanged();
2219 /// The down focusable view.<br />
2220 /// This will return null if not set.<br />
2221 /// This will also return null if the specified down focusable view is not on a window.<br />
2223 /// <since_tizen> 3 </since_tizen>
2224 public View DownFocusableView
2226 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2229 return (View)GetValue(DownFocusableViewProperty);
2233 SetValue(DownFocusableViewProperty, value);
2234 NotifyPropertyChanged();
2239 /// Whether the view should be focusable by keyboard navigation.
2241 /// <since_tizen> 3 </since_tizen>
2242 public bool Focusable
2246 SetValue(FocusableProperty, value);
2247 NotifyPropertyChanged();
2251 return (bool)GetValue(FocusableProperty);
2256 /// Retrieves the position of the view.<br />
2257 /// The coordinates are relative to the view's parent.<br />
2259 /// <since_tizen> 3 </since_tizen>
2260 public Position CurrentPosition
2264 return GetCurrentPosition();
2269 /// Sets the size of a view for the width and the height.<br />
2270 /// Geometry can be scaled to fit within this area.<br />
2271 /// This does not interfere with the view's scale factor.<br />
2272 /// The views default depth is the minimum of width and height.<br />
2275 /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
2276 /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
2277 /// Please note that this multi-cascade setting is especially possible for this NUI object (Size2D). <br />
2278 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2279 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2280 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2281 /// 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 />
2283 /// <since_tizen> 3 </since_tizen>
2284 public Size2D Size2D
2288 Size2D temp = (Size2D)GetValue(Size2DProperty);
2289 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
2293 SetValue(Size2DProperty, value);
2294 // Set Specification so when layouts measure this View it matches the value set here.
2295 // All Views are currently Layouts.
2296 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
2297 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
2298 NotifyPropertyChanged();
2303 /// Retrieves the size of the view.<br />
2304 /// The coordinates are relative to the view's parent.<br />
2306 /// <since_tizen> 3 </since_tizen>
2307 public Size2D CurrentSize
2311 return GetCurrentSize();
2316 /// Retrieves and sets the view's opacity.<br />
2318 /// <since_tizen> 3 </since_tizen>
2319 public float Opacity
2323 return (float)GetValue(OpacityProperty);
2327 SetValue(OpacityProperty, value);
2328 NotifyPropertyChanged();
2333 /// Sets the position of the view for X and Y.<br />
2334 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2335 /// If the position inheritance is disabled, sets the world position.<br />
2338 /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
2339 /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
2340 /// Please note that this multi-cascade setting is especially possible for this NUI object (Position2D). <br />
2341 /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2342 /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2343 /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2345 /// <since_tizen> 3 </since_tizen>
2346 public Position2D Position2D
2350 Position2D temp = (Position2D)GetValue(Position2DProperty);
2351 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
2355 SetValue(Position2DProperty, value);
2356 NotifyPropertyChanged();
2361 /// Retrieves the screen postion of the view.<br />
2363 /// <since_tizen> 3 </since_tizen>
2364 public Vector2 ScreenPosition
2368 Vector2 temp = new Vector2(0.0f, 0.0f);
2369 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2375 /// Determines whether the pivot point should be used to determine the position of the view.
2376 /// This is true by default.
2378 /// <remarks>If false, then the top-left of the view is used for the position.
2379 /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
2381 /// <since_tizen> 3 </since_tizen>
2382 public bool PositionUsesPivotPoint
2386 return (bool)GetValue(PositionUsesPivotPointProperty);
2390 SetValue(PositionUsesPivotPointProperty, value);
2391 NotifyPropertyChanged();
2396 /// Please do not use! this will be deprecated.
2398 /// Please do not use! this will be deprecated!
2399 /// Instead please use PositionUsesPivotPoint.
2400 /// <since_tizen> 3 </since_tizen>
2401 [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " +
2403 "View view = new View(); " +
2404 "view.PivotPoint = PivotPoint.Center; " +
2405 "view.PositionUsesPivotPoint = true;")]
2406 [EditorBrowsable(EditorBrowsableState.Never)]
2407 public bool PositionUsesAnchorPoint
2412 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2417 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2418 NotifyPropertyChanged();
2423 /// Queries whether the view is connected to the stage.<br />
2424 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2426 /// <since_tizen> 3 </since_tizen>
2427 public bool IsOnWindow
2436 /// Gets the depth in the hierarchy for the view.
2438 /// <since_tizen> 3 </since_tizen>
2439 public int HierarchyDepth
2443 return GetHierarchyDepth();
2448 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2451 /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
2452 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2453 /// The values set by this property will likely change.
2455 /// <since_tizen> 3 </since_tizen>
2456 public int SiblingOrder
2460 return (int)GetValue(SiblingOrderProperty);
2464 SetValue(SiblingOrderProperty, value);
2465 NotifyPropertyChanged();
2470 /// Returns the natural size of the view.
2473 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2475 /// <since_tizen> 5 </since_tizen>
2476 public Vector3 NaturalSize
2480 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2481 if (NDalicPINVOKE.SWIGPendingException.Pending)
2482 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2488 /// Returns the natural size (Size2D) of the view.
2491 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2493 /// <since_tizen> 4 </since_tizen>
2494 public Size2D NaturalSize2D
2498 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2499 if (NDalicPINVOKE.SWIGPendingException.Pending)
2500 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2502 return new Size2D((int)temp.Width, (int)temp.Height);
2507 /// Gets or sets the origin of a view within its parent's area.<br />
2508 /// 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 />
2509 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
2510 /// A view's position is the distance between this origin and the view's anchor-point.<br />
2512 /// <pre>The view has been initialized.</pre>
2513 /// <since_tizen> 3 </since_tizen>
2514 public Position ParentOrigin
2518 return (Position)GetValue(ParentOriginProperty);
2522 SetValue(ParentOriginProperty, value);
2523 NotifyPropertyChanged();
2528 /// Gets or sets the anchor-point of a view.<br />
2529 /// 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 />
2530 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
2531 /// A view position is the distance between its parent-origin and this anchor-point.<br />
2532 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
2533 /// <pre>The view has been initialized.</pre>
2535 /// <since_tizen> 3 </since_tizen>
2536 public Position PivotPoint
2540 return (Position)GetValue(PivotPointProperty);
2544 SetValue(PivotPointProperty, value);
2545 NotifyPropertyChanged();
2550 /// Gets or sets the size width of the view.
2552 /// <since_tizen> 3 </since_tizen>
2553 public float SizeWidth
2557 return (float)GetValue(SizeWidthProperty);
2561 SetValue(SizeWidthProperty, value);
2562 WidthSpecification = (int)Math.Ceiling(value);
2563 NotifyPropertyChanged();
2568 /// Gets or sets the size height of the view.
2570 /// <since_tizen> 3 </since_tizen>
2571 public float SizeHeight
2575 return (float)GetValue(SizeHeightProperty);
2579 SetValue(SizeHeightProperty, value);
2580 HeightSpecification = (int)Math.Ceiling(value);
2581 NotifyPropertyChanged();
2586 /// Gets or sets the position of the view.<br />
2587 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
2588 /// If the position inheritance is disabled, sets the world position.<br />
2590 /// <since_tizen> 3 </since_tizen>
2591 public Position Position
2595 return (Position)GetValue(PositionProperty);
2599 SetValue(PositionProperty, value);
2600 NotifyPropertyChanged();
2605 /// Gets or sets the position X of the view.
2607 /// <since_tizen> 3 </since_tizen>
2608 public float PositionX
2612 return (float)GetValue(PositionXProperty);
2616 SetValue(PositionXProperty, value);
2617 NotifyPropertyChanged();
2622 /// Gets or sets the position Y of the view.
2624 /// <since_tizen> 3 </since_tizen>
2625 public float PositionY
2629 return (float)GetValue(PositionYProperty);
2633 SetValue(PositionYProperty, value);
2634 NotifyPropertyChanged();
2639 /// Gets or sets the position Z of the view.
2641 /// <since_tizen> 3 </since_tizen>
2642 public float PositionZ
2646 return (float)GetValue(PositionZProperty);
2650 SetValue(PositionZProperty, value);
2651 NotifyPropertyChanged();
2656 /// Gets or sets the world position of the view.
2658 /// <since_tizen> 3 </since_tizen>
2659 public Vector3 WorldPosition
2663 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2664 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2670 /// Gets or sets the orientation of the view.<br />
2671 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
2673 /// <remarks>This is an asynchronous method.</remarks>
2674 /// <since_tizen> 3 </since_tizen>
2675 public Rotation Orientation
2679 return (Rotation)GetValue(OrientationProperty);
2683 SetValue(OrientationProperty, value);
2684 NotifyPropertyChanged();
2689 /// Gets or sets the world orientation of the view.<br />
2691 /// <since_tizen> 3 </since_tizen>
2692 public Rotation WorldOrientation
2696 Rotation temp = new Rotation();
2697 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2703 /// Gets or sets the scale factor applied to the view.<br />
2705 /// <since_tizen> 3 </since_tizen>
2706 public Vector3 Scale
2710 return (Vector3)GetValue(ScaleProperty);
2714 SetValue(ScaleProperty, value);
2715 NotifyPropertyChanged();
2720 /// Gets or sets the scale X factor applied to the view.
2722 /// <since_tizen> 3 </since_tizen>
2727 return (float)GetValue(ScaleXProperty);
2731 SetValue(ScaleXProperty, value);
2732 NotifyPropertyChanged();
2737 /// Gets or sets the scale Y factor applied to the view.
2739 /// <since_tizen> 3 </since_tizen>
2744 return (float)GetValue(ScaleYProperty);
2748 SetValue(ScaleYProperty, value);
2749 NotifyPropertyChanged();
2754 /// Gets or sets the scale Z factor applied to the view.
2756 /// <since_tizen> 3 </since_tizen>
2761 return (float)GetValue(ScaleZProperty);
2765 SetValue(ScaleZProperty, value);
2766 NotifyPropertyChanged();
2771 /// Gets the world scale of the view.
2773 /// <since_tizen> 3 </since_tizen>
2774 public Vector3 WorldScale
2778 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2779 GetProperty(View.Property.WORLD_SCALE).Get(temp);
2785 /// Retrieves the visibility flag of the view.
2788 /// If the view is not visible, then the view and its children will not be rendered.
2789 /// 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.
2791 /// <since_tizen> 3 </since_tizen>
2792 public bool Visibility
2797 GetProperty(View.Property.VISIBLE).Get(out temp);
2803 /// Gets the view's world color.
2805 /// <since_tizen> 3 </since_tizen>
2806 public Vector4 WorldColor
2810 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2811 GetProperty(View.Property.WORLD_COLOR).Get(temp);
2817 /// Gets or sets the view's name.
2819 /// <since_tizen> 3 </since_tizen>
2824 return (string)GetValue(NameProperty);
2828 SetValue(NameProperty, value);
2829 NotifyPropertyChanged();
2834 /// Get the number of children held by the view.
2836 /// <since_tizen> 3 </since_tizen>
2837 public new uint ChildCount
2841 return GetChildCount();
2846 /// Gets the view's ID.
2849 /// <since_tizen> 3 </since_tizen>
2859 /// Gets or sets the status of whether the view should emit touch or hover signals.
2861 /// <since_tizen> 3 </since_tizen>
2862 public bool Sensitive
2866 return (bool)GetValue(SensitiveProperty);
2870 SetValue(SensitiveProperty, value);
2871 NotifyPropertyChanged();
2876 /// 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.
2878 /// <since_tizen> 3 </since_tizen>
2879 public bool LeaveRequired
2883 return (bool)GetValue(LeaveRequiredProperty);
2887 SetValue(LeaveRequiredProperty, value);
2888 NotifyPropertyChanged();
2893 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
2895 /// <since_tizen> 3 </since_tizen>
2896 public bool InheritOrientation
2900 return (bool)GetValue(InheritOrientationProperty);
2904 SetValue(InheritOrientationProperty, value);
2905 NotifyPropertyChanged();
2910 /// Gets or sets the status of whether a child view inherits it's parent's scale.
2912 /// <since_tizen> 3 </since_tizen>
2913 public bool InheritScale
2917 return (bool)GetValue(InheritScaleProperty);
2921 SetValue(InheritScaleProperty, value);
2922 NotifyPropertyChanged();
2927 /// Gets or sets the status of how the view and its children should be drawn.<br />
2928 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
2929 /// 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 />
2930 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
2931 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
2932 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
2934 /// <since_tizen> 3 </since_tizen>
2935 public DrawModeType DrawMode
2939 return (DrawModeType)GetValue(DrawModeProperty);
2943 SetValue(DrawModeProperty, value);
2944 NotifyPropertyChanged();
2949 /// Gets or sets the relative to parent size factor of the view.<br />
2950 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
2951 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
2953 /// <since_tizen> 3 </since_tizen>
2954 public Vector3 SizeModeFactor
2958 return (Vector3)GetValue(SizeModeFactorProperty);
2962 SetValue(SizeModeFactorProperty, value);
2963 NotifyPropertyChanged();
2968 /// Gets or sets the width resize policy to be used.
2970 /// <since_tizen> 3 </since_tizen>
2971 public ResizePolicyType WidthResizePolicy
2975 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
2979 SetValue(WidthResizePolicyProperty, value);
2980 // Match ResizePolicy to new Layouting.
2981 // Parent relative policies can not be mapped at this point as parent size unknown.
2984 case ResizePolicyType.UseNaturalSize:
2986 WidthSpecification = LayoutParamPolicies.WrapContent;
2989 case ResizePolicyType.FillToParent:
2991 WidthSpecification = LayoutParamPolicies.MatchParent;
2994 case ResizePolicyType.FitToChildren:
2996 WidthSpecification = LayoutParamPolicies.WrapContent;
3002 NotifyPropertyChanged();
3007 /// Gets or sets the height resize policy to be used.
3009 /// <since_tizen> 3 </since_tizen>
3010 public ResizePolicyType HeightResizePolicy
3014 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
3018 SetValue(HeightResizePolicyProperty, value);
3019 // Match ResizePolicy to new Layouting.
3020 // Parent relative policies can not be mapped at this point as parent size unknown.
3023 case ResizePolicyType.UseNaturalSize:
3025 HeightSpecification = LayoutParamPolicies.WrapContent;
3028 case ResizePolicyType.FillToParent:
3030 HeightSpecification = LayoutParamPolicies.MatchParent;
3033 case ResizePolicyType.FitToChildren:
3035 HeightSpecification = LayoutParamPolicies.WrapContent;
3041 NotifyPropertyChanged();
3046 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3047 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3049 /// <since_tizen> 3 </since_tizen>
3050 public SizeScalePolicyType SizeScalePolicy
3054 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
3058 SetValue(SizeScalePolicyProperty, value);
3059 NotifyPropertyChanged();
3064 /// Gets or sets the status of whether the width size is dependent on the height size.
3066 /// <since_tizen> 3 </since_tizen>
3067 public bool WidthForHeight
3071 return (bool)GetValue(WidthForHeightProperty);
3075 SetValue(WidthForHeightProperty, value);
3076 NotifyPropertyChanged();
3081 /// Gets or sets the status of whether the height size is dependent on the width size.
3083 /// <since_tizen> 3 </since_tizen>
3084 public bool HeightForWidth
3088 return (bool)GetValue(HeightForWidthProperty);
3092 SetValue(HeightForWidthProperty, value);
3093 NotifyPropertyChanged();
3098 /// Gets or sets the padding for use in layout.
3100 /// <since_tizen> 5 </since_tizen>
3101 public Extents Padding
3105 // If View has a Layout then padding in stored in the base Layout class
3108 return Layout.Padding;
3112 return (Extents)GetValue(PaddingProperty);
3114 // Two return points to prevent creating a zeroed Extent native object before assignment
3118 Extents padding = value;
3121 // Layout set so store Padding in LayoutItem instead of in View.
3122 // If View stores the Padding value then Legacy Size Negotiation will overwrite
3123 // the position and sizes measure in the Layouting.
3124 Layout.Padding = value;
3125 // If Layout is a LayoutItem then it could be a View that handles it's own padding.
3126 // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.
3127 if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
3129 padding = new Extents(0,0,0,0); // Reset value stored in View.
3131 _layout?.RequestLayout();
3133 SetValue(PaddingProperty, padding);
3134 NotifyPropertyChanged();
3135 _layout?.RequestLayout();
3140 /// Gets or sets the minimum size the view can be assigned in size negotiation.
3142 /// <since_tizen> 3 </since_tizen>
3143 public Size2D MinimumSize
3147 return (Size2D)GetValue(MinimumSizeProperty);
3151 if (_layout != null)
3153 // Note: it only works if minimum size is >= than natural size.
3154 // To force the size it should be done through the width&height spec or Size2D.
3155 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
3156 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
3157 _layout.RequestLayout();
3159 SetValue(MinimumSizeProperty, value);
3160 NotifyPropertyChanged();
3165 /// Gets or sets the maximum size the view can be assigned in size negotiation.
3167 /// <since_tizen> 3 </since_tizen>
3168 public Size2D MaximumSize
3172 return (Size2D)GetValue(MaximumSizeProperty);
3176 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
3177 // MATCH_PARENT spec + parent container size can be used to limit
3178 if (_layout != null)
3180 // Note: it only works if minimum size is >= than natural size.
3181 // To force the size it should be done through the width&height spec or Size2D.
3182 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
3183 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
3184 _layout.RequestLayout();
3186 SetValue(MaximumSizeProperty, value);
3187 NotifyPropertyChanged();
3192 /// Gets or sets whether a child view inherits it's parent's position.<br />
3193 /// Default is to inherit.<br />
3194 /// 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 />
3196 /// <since_tizen> 3 </since_tizen>
3197 public bool InheritPosition
3201 return (bool)GetValue(InheritPositionProperty);
3205 SetValue(InheritPositionProperty, value);
3206 NotifyPropertyChanged();
3211 /// Gets or sets the clipping behavior (mode) of it's children.
3213 /// <since_tizen> 3 </since_tizen>
3214 public ClippingModeType ClippingMode
3218 return (ClippingModeType)GetValue(ClippingModeProperty);
3222 SetValue(ClippingModeProperty, value);
3223 NotifyPropertyChanged();
3228 /// Gets the number of renderers held by the view.
3230 /// <since_tizen> 3 </since_tizen>
3231 public uint RendererCount
3235 return GetRendererCount();
3240 /// [Obsolete("Please do not use! this will be deprecated")]
3242 /// <since_tizen> 3 </since_tizen>
3243 /// Please do not use! this will be deprecated!
3244 /// Instead please use PivotPoint.
3245 [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " +
3247 "View view = new View(); " +
3248 "view.PivotPoint = PivotPoint.Center; " +
3249 "view.PositionUsesPivotPoint = true;")]
3250 [EditorBrowsable(EditorBrowsableState.Never)]
3251 public Position AnchorPoint
3255 Position temp = new Position(0.0f, 0.0f, 0.0f);
3256 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3261 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3262 NotifyPropertyChanged();
3267 /// Sets the size of a view for the width, the height and the depth.<br />
3268 /// Geometry can be scaled to fit within this area.<br />
3269 /// This does not interfere with the view's scale factor.<br />
3270 /// The views default depth is the minimum of width and height.<br />
3273 /// Please note that multi-cascade setting is not possible for this NUI object. <br />
3274 /// It is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
3275 /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f); <br />
3276 /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f; <br />
3277 /// 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 />
3279 /// <since_tizen> 5 </since_tizen>
3284 return (Size)GetValue(SizeProperty);
3288 SetValue(SizeProperty, value);
3289 // Set Specification so when layouts measure this View it matches the value set here.
3290 // All Views are currently Layouts.
3291 WidthSpecification = (int)Math.Ceiling(value.Width);
3292 HeightSpecification = (int)Math.Ceiling(value.Height);
3293 NotifyPropertyChanged();
3298 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
3300 /// <since_tizen> 3 </since_tizen>
3301 [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " +
3303 "Container parent = view.GetParent(); " +
3304 "View view = parent as View;")]
3305 [EditorBrowsable(EditorBrowsableState.Never)]
3306 public new View Parent
3311 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
3312 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
3313 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
3315 if (basehandle is Layer layer)
3317 ret = new View(Layer.getCPtr(layer).Handle, false);
3318 NUILog.Error("This Parent property is deprecated, shoud do not be used");
3322 ret = basehandle as View;
3325 Interop.BaseHandle.delete_BaseHandle(CPtr);
3326 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
3328 if (NDalicPINVOKE.SWIGPendingException.Pending)
3329 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3335 /// Gets/Sets whether inherit parent's the layout Direction.
3337 /// <since_tizen> 4 </since_tizen>
3338 public bool InheritLayoutDirection
3342 return (bool)GetValue(InheritLayoutDirectionProperty);
3346 SetValue(InheritLayoutDirectionProperty, value);
3347 NotifyPropertyChanged();
3352 /// Gets/Sets the layout Direction.
3354 /// <since_tizen> 4 </since_tizen>
3355 public ViewLayoutDirectionType LayoutDirection
3359 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
3363 SetValue(LayoutDirectionProperty, value);
3364 NotifyPropertyChanged();
3365 _layout?.RequestLayout();
3370 /// Gets or sets the Margin for use in layout.
3373 /// Margin property is supported by Layout algorithms and containers.
3374 /// Please Set Layout if you want to use Margin property.
3376 /// <since_tizen> 4 </since_tizen>
3377 public Extents Margin
3381 // If View has a Layout then margin is stored in Layout.
3384 return Layout.Margin;
3388 // If Layout not set then return margin stored in View.
3389 return (Extents)GetValue(MarginProperty);
3391 // Two return points to prevent creating a zeroed Extent native object before assignment
3397 // Layout set so store Margin in LayoutItem instead of View.
3398 // If View stores the Margin too then the Legacy Size Negotiation will
3399 // overwrite the position and size values measured in the Layouting.
3400 Layout.Margin = value;
3401 SetValue(MarginProperty, new Extents(0,0,0,0));
3402 _layout?.RequestLayout();
3406 SetValue(MarginProperty, value);
3408 NotifyPropertyChanged();
3409 _layout?.RequestLayout();
3414 /// The required policy for this dimension, ChildLayoutData enum or exact value.
3416 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3417 [EditorBrowsable(EditorBrowsableState.Never)]
3418 public int WidthSpecification
3422 return _widthPolicy;
3426 _widthPolicy = value;
3427 if (_widthPolicy >= 0)
3429 _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3430 Size2D.Width = _widthPolicy;
3432 _layout?.RequestLayout();
3437 /// The required policy for this dimension, ChildLayoutData enum or exact value.
3439 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3440 [EditorBrowsable(EditorBrowsableState.Never)]
3441 public int HeightSpecification
3445 return _heightPolicy;
3449 _heightPolicy = value;
3450 if (_heightPolicy >= 0)
3452 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3453 Size2D.Height = _heightPolicy;
3455 _layout?.RequestLayout();
3461 /// [Obsolete("Please do not use! this will be deprecated")]
3463 /// Please do not use! this will be deprecated!
3464 /// Instead please use Padding.
3465 /// <since_tizen> 4 </since_tizen>
3466 [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
3467 [EditorBrowsable(EditorBrowsableState.Never)]
3468 public Extents PaddingEX
3472 Extents temp = new Extents(0, 0, 0, 0);
3473 GetProperty(View.Property.PADDING).Get(temp);
3478 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3479 NotifyPropertyChanged();
3480 _layout?.RequestLayout();
3484 /// <since_tizen> 6 </since_tizen>
3485 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
3486 [EditorBrowsable(EditorBrowsableState.Never)]
3487 public Style XamlStyle
3491 return (Style)GetValue(XamlStyleProperty);
3495 SetValue(XamlStyleProperty, value);
3500 /// The Color of View. This is an RGBA value.
3502 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3503 [EditorBrowsable(EditorBrowsableState.Never)]
3512 return GetCurrentColor();
3517 /// The color mode of View.
3518 /// This specifies whether the View uses its own color, or inherits its parent color.
3519 /// The default is ColorMode.UseOwnMultiplyParentColor.
3521 internal ColorMode ColorMode
3525 SetColorMode(value);
3529 return GetColorMode();
3534 /// Child property to specify desired width
3536 internal int LayoutWidthSpecificationFixed
3540 return _widthPolicy;
3544 _widthPolicy = value;
3545 _measureSpecificationWidth = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
3546 Size2D.Width = value;
3547 _layout?.RequestLayout();
3552 /// Child property to specify desired height
3554 internal int LayoutHeightSpecificationFixed
3558 return _heightPolicy;
3562 _heightPolicy = value;
3563 _measureSpecificationHeight = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
3564 Size2D.Height = value;
3565 _layout?.RequestLayout();
3570 /// Child property to specify desired width, use MatchParent/WrapContent)
3572 internal ChildLayoutData LayoutWidthSpecification
3576 return (ChildLayoutData)_widthPolicy;
3580 _widthPolicy = (int)value;
3585 /// Child property to specify desired height, use MatchParent/WrapContent)
3587 internal ChildLayoutData LayoutHeightSpecification
3591 return (ChildLayoutData)_heightPolicy;
3595 _heightPolicy = (int)value;
3599 internal float Weight
3608 _layout.RequestLayout();
3613 /// Whether to load the BackgroundImage synchronously.
3614 /// If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
3615 /// Note: For Normal Quad images only.
3617 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3618 [EditorBrowsable(EditorBrowsableState.Never)]
3619 public bool BackgroundImageSynchronosLoading
3623 return _backgroundImageSynchronosLoading;
3627 if (value != _backgroundImageSynchronosLoading)
3630 PropertyMap bgMap = this.Background;
3632 bgMap.Find(Visual.Property.Type)?.Get(out visualType);
3633 if (visualType == (int)Visual.Type.Image)
3635 bgMap.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3637 if (bgUrl.Length != 0)
3639 _backgroundImageSynchronosLoading = value;
3640 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3641 this.Background = bgMap;
3647 internal float WorldPositionX
3652 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3657 internal float WorldPositionY
3662 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3667 internal float WorldPositionZ
3672 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3677 internal bool FocusState
3681 return IsKeyboardFocusable();
3685 SetKeyboardFocusable(value);
3690 /// Set the layout on this View. Replaces any existing Layout.
3694 internal LayoutItem Layout
3702 // Do nothing if layout provided is already set on this View.
3703 if (value == _layout)
3708 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3709 layoutingDisabled = false;
3712 // If new layout being set already has a owner then that owner receives a replacement default layout.
3713 // First check if the layout to be set already has a owner.
3714 if (value?.Owner != null)
3716 Log.Info("NUI", "Set layout already in use by another View: " + value.Owner.Name + "will get a LayoutGroup\n");
3717 // Previous owner of the layout gets a default layout as a replacement.
3718 value.Owner.Layout = new LayoutGroup();
3720 // Copy Margin and Padding to replacement LayoutGroup.
3721 value.Owner.Layout.Margin = value.Margin;
3722 value.Owner.Layout.Padding = value.Padding;
3725 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3726 // View if no replacement. Previously margin and padding values would have been moved from
3727 // the View to the layout.
3728 if (_layout != null ) // Existing layout
3732 // Existing layout being replaced so copy over margin and padding values.
3733 value.Margin = _layout.Margin;
3734 value.Padding = _layout.Padding;
3738 // Layout not being replaced so restore margin and padding to View.
3739 SetValue(MarginProperty, _layout.Margin);
3740 SetValue(PaddingProperty, _layout.Padding);
3741 NotifyPropertyChanged();
3746 // First Layout to be added to the View hence copy
3748 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3751 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3753 // If View already has a margin set then store it in Layout instead.
3754 value.Margin = Margin;
3755 SetValue(MarginProperty, new Extents(0,0,0,0));
3756 NotifyPropertyChanged();
3759 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3761 // If View already has a padding set then store it in Layout instead.
3762 value.Padding = Padding;
3763 SetValue(PaddingProperty, new Extents(0,0,0,0));
3764 NotifyPropertyChanged();
3769 // Remove existing layout from it's parent layout group.
3770 _layout?.Unparent();
3772 // Set layout to this view
3777 internal void SetLayout(LayoutItem layout)
3780 _layout?.AttachToOwner(this);
3781 _layout?.RequestLayout();
3785 /// Stores the calculated width value and its ModeType. Width component.
3787 internal MeasureSpecification MeasureSpecificationWidth
3791 _measureSpecificationWidth = value;
3792 _layout?.RequestLayout();
3796 return _measureSpecificationWidth;
3801 /// Stores the calculated width value and its ModeType. Height component.
3803 internal MeasureSpecification MeasureSpecificationHeight
3807 _measureSpecificationHeight = value;
3808 _layout?.RequestLayout();
3812 return _measureSpecificationHeight;
3816 internal float ParentOriginX
3821 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3826 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3827 NotifyPropertyChanged();
3831 internal float ParentOriginY
3836 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3841 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3842 NotifyPropertyChanged();
3846 internal float ParentOriginZ
3851 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3856 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3857 NotifyPropertyChanged();
3861 internal float PivotPointX
3866 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3871 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3875 internal float PivotPointY
3880 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3885 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3889 internal float PivotPointZ
3894 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3899 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3903 internal Matrix WorldMatrix
3907 Matrix temp = new Matrix();
3908 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3913 private int LeftFocusableViewId
3918 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
3923 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3927 private int RightFocusableViewId
3932 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
3937 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3941 private int UpFocusableViewId
3946 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
3951 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3955 private int DownFocusableViewId
3960 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
3965 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3970 /// Perform an action on a visual registered to this view. <br />
3971 /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
3973 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
3974 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
3975 /// <param name="attributes">Optional attributes for the action.</param>
3976 /// <since_tizen> 5 </since_tizen>
3977 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
3979 Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
3980 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3984 /// Creates an animation to animate the background color visual. If there is no
3985 /// background visual, creates one with transparent black as it's mixColor.
3987 /// <since_tizen> 3 </since_tizen>
3988 public Animation AnimateBackgroundColor(object destinationValue,
3991 AlphaFunction.BuiltinFunctions? alphaFunction = null,
3992 object initialValue = null)
3994 Tizen.NUI.PropertyMap background = Background;
3996 if (background.Empty())
3998 // If there is no background yet, ensure there is a transparent
4000 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
4001 background = Background;
4003 return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
4007 /// Creates an animation to animate the mixColor of the named visual.
4009 /// <since_tizen> 3 </since_tizen>
4010 public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
4012 Animation animation = null;
4014 PropertyMap _animator = new PropertyMap();
4015 if (alphaFunction != null)
4017 _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
4020 PropertyMap _timePeriod = new PropertyMap();
4021 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
4022 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
4023 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
4025 PropertyMap _transition = new PropertyMap();
4026 _transition.Add("animator", new PropertyValue(_animator));
4027 _transition.Add("target", new PropertyValue(targetVisual));
4028 _transition.Add("property", new PropertyValue("mixColor"));
4030 if (initialColor != null)
4032 PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
4033 _transition.Add("initialValue", initValue);
4036 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
4037 _transition.Add("targetValue", destValue);
4038 TransitionData _transitionData = new TransitionData(_transition);
4040 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
4041 if (NDalicPINVOKE.SWIGPendingException.Pending)
4042 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4047 // From Container Base class
4049 /// Adds a child view to this view.
4051 /// <seealso cref="Container.Add" />
4052 /// <since_tizen> 4 </since_tizen>
4053 public override void Add(View child)
4055 bool hasLayout = (_layout != null);
4056 Log.Info("NUI", "Add:" + child.Name + " to View:" + Name + "which has layout[" + hasLayout + "] + \n");
4060 Tizen.Log.Fatal("NUI", "Child is null");
4064 Container oldParent = child.GetParent();
4065 if (oldParent != this)
4067 // If child already has a parent then re-parent child
4068 if (oldParent != null)
4070 oldParent.Remove(child);
4072 child.InternalParent = this;
4074 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4076 if (NDalicPINVOKE.SWIGPendingException.Pending)
4077 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4078 Children.Add(child);
4080 if (ChildAdded != null)
4082 ChildAddedEventArgs e = new ChildAddedEventArgs
4086 ChildAdded(this, e);
4088 BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
4093 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4095 /// <seealso cref="Container.Remove" />
4096 /// <since_tizen> 4 </since_tizen>
4097 public override void Remove(View child)
4099 bool hasLayout = (_layout != null);
4100 Log.Info("NUI","Removing View:" + child.Name + "layout[" + hasLayout.ToString() +"]\n");
4102 Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
4103 if (NDalicPINVOKE.SWIGPendingException.Pending)
4104 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4106 Children.Remove(child);
4107 child.InternalParent = null;
4109 if (ChildRemoved != null)
4111 ChildRemovedEventArgs e = new ChildRemovedEventArgs
4115 ChildRemoved(this, e);
4120 /// Retrieves a child view by index.
4122 /// <seealso cref="Container.GetChildAt" />
4123 /// <since_tizen> 4 </since_tizen>
4124 public override View GetChildAt(uint index)
4126 if (index < Children.Count)
4128 return Children[Convert.ToInt32(index)];
4137 /// Retrieves the number of children held by the view.
4139 /// <seealso cref="Container.GetChildCount" />
4140 /// <since_tizen> 4 </since_tizen>
4141 public override uint GetChildCount()
4143 return Convert.ToUInt32(Children.Count);
4147 /// Gets the views parent.
4149 /// <seealso cref="Container.GetParent()" />
4150 /// <since_tizen> 4 </since_tizen>
4151 public override Container GetParent()
4153 return this.InternalParent as Container;
4157 /// Queries whether the view has a focus.
4159 /// <returns>True if this view has a focus.</returns>
4160 /// <since_tizen> 3 </since_tizen>
4161 public bool HasFocus()
4164 if (swigCPtr.Handle != global::System.IntPtr.Zero)
4166 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4167 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4171 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4177 /// Sets the name of the style to be applied to the view.
4179 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4180 /// <since_tizen> 3 </since_tizen>
4181 public void SetStyleName(string styleName)
4183 Interop.View.View_SetStyleName(swigCPtr, styleName);
4184 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4188 /// Retrieves the name of the style to be applied to the view (if any).
4190 /// <returns>A string matching a style, or an empty string.</returns>
4191 /// <since_tizen> 3 </since_tizen>
4192 public string GetStyleName()
4194 string ret = Interop.View.View_GetStyleName(swigCPtr);
4195 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4200 /// Clears the background.
4202 /// <since_tizen> 3 </since_tizen>
4203 public void ClearBackground()
4205 Interop.View.View_ClearBackground(swigCPtr);
4206 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4213 /// This is an asynchronous method.
4215 /// <since_tizen> 3 </since_tizen>
4225 /// This is an asynchronous method.
4226 /// If the view is hidden, then the view and its children will not be rendered.
4227 /// 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.
4229 /// <since_tizen> 3 </since_tizen>
4236 /// Raises the view above all other views.
4239 /// Sibling order of views within the parent will be updated automatically.
4240 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4242 /// <since_tizen> 3 </since_tizen>
4243 public void RaiseToTop()
4245 var parentChildren = GetParent()?.Children;
4247 if (parentChildren != null)
4249 parentChildren.Remove(this);
4250 parentChildren.Add(this);
4252 Interop.NDalic.RaiseToTop(swigCPtr);
4253 if (NDalicPINVOKE.SWIGPendingException.Pending)
4254 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4260 /// Lowers the view to the bottom of all views.
4263 /// The sibling order of views within the parent will be updated automatically.
4264 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4266 /// <since_tizen> 3 </since_tizen>
4267 public void LowerToBottom()
4269 var parentChildren = GetParent()?.Children;
4271 if (parentChildren != null)
4273 parentChildren.Remove(this);
4274 parentChildren.Insert(0, this);
4276 Interop.NDalic.LowerToBottom(swigCPtr);
4277 if (NDalicPINVOKE.SWIGPendingException.Pending)
4278 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4283 /// Queries if all resources required by a view are loaded and ready.
4285 /// <remarks>Most resources are only loaded when the control is placed on the stage.
4287 /// <since_tizen> 3 </since_tizen>
4288 public bool IsResourceReady()
4290 bool ret = Interop.View.IsResourceReady(swigCPtr);
4291 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4296 /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4298 /// <pre>The view has been initialized. </pre>
4299 /// <returns>The parent layer of view </returns>
4300 /// <since_tizen> 5 </since_tizen>
4301 public Layer GetLayer()
4303 //to fix memory leak issue, match the handle count with native side.
4304 IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4305 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4306 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4307 Interop.BaseHandle.delete_BaseHandle(CPtr);
4308 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4310 if (NDalicPINVOKE.SWIGPendingException.Pending)
4311 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4316 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4318 /// <pre>The (child) view has been initialized. </pre>
4319 /// <since_tizen> 4 </since_tizen>
4320 public void Unparent()
4322 GetParent()?.Remove(this);
4326 /// Search through this view's hierarchy for a view with the given name.
4327 /// The view itself is also considered in the search.
4329 /// <pre>The view has been initialized.</pre>
4330 /// <param name="viewName">The name of the view to find.</param>
4331 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4332 /// <since_tizen> 3 </since_tizen>
4333 public View FindChildByName(string viewName)
4335 //to fix memory leak issue, match the handle count with native side.
4336 IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4337 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4338 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4339 Interop.BaseHandle.delete_BaseHandle(CPtr);
4340 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4342 if (NDalicPINVOKE.SWIGPendingException.Pending)
4343 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4348 /// Converts screen coordinates into the view's coordinate system using the default camera.
4350 /// <pre>The view has been initialized.</pre>
4351 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4352 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4353 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4354 /// <param name="screenX">The screen X-coordinate.</param>
4355 /// <param name="screenY">The screen Y-coordinate.</param>
4356 /// <returns>True if the conversion succeeded.</returns>
4357 /// <since_tizen> 3 </since_tizen>
4358 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4360 bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4361 if (NDalicPINVOKE.SWIGPendingException.Pending)
4362 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4367 /// Sets the relative to parent size factor of the view.<br />
4368 /// This factor is only used when ResizePolicy is set to either:
4369 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4370 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4372 /// <pre>The view has been initialized.</pre>
4373 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4374 /// <since_tizen> 3 </since_tizen>
4375 public void SetSizeModeFactor(Vector3 factor)
4377 Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4378 if (NDalicPINVOKE.SWIGPendingException.Pending)
4379 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4382 /// Calculates the height of the view given a width.<br />
4383 /// The natural size is used for default calculation.<br />
4384 /// Size 0 is treated as aspect ratio 1:1.<br />
4386 /// <param name="width">The width to use.</param>
4387 /// <returns>The height based on the width.</returns>
4388 /// <since_tizen> 3 </since_tizen>
4389 public float GetHeightForWidth(float width)
4391 float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4392 if (NDalicPINVOKE.SWIGPendingException.Pending)
4393 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4398 /// Calculates the width of the view given a height.<br />
4399 /// The natural size is used for default calculation.<br />
4400 /// Size 0 is treated as aspect ratio 1:1.<br />
4402 /// <param name="height">The height to use.</param>
4403 /// <returns>The width based on the height.</returns>
4404 /// <since_tizen> 3 </since_tizen>
4405 public float GetWidthForHeight(float height)
4407 float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4408 if (NDalicPINVOKE.SWIGPendingException.Pending)
4409 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4414 /// Return the amount of size allocated for relayout.
4416 /// <param name="dimension">The dimension to retrieve.</param>
4417 /// <returns>Return the size.</returns>
4418 /// <since_tizen> 3 </since_tizen>
4419 public float GetRelayoutSize(DimensionType dimension)
4421 float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4422 if (NDalicPINVOKE.SWIGPendingException.Pending)
4423 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4428 /// Set the padding for the view.
4430 /// <param name="padding">Padding for the view.</param>
4431 /// <since_tizen> 3 </since_tizen>
4432 public void SetPadding(PaddingType padding)
4434 Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4435 if (NDalicPINVOKE.SWIGPendingException.Pending)
4436 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4440 /// Return the value of padding for the view.
4442 /// <param name="paddingOut">the value of padding for the view</param>
4443 /// <since_tizen> 3 </since_tizen>
4444 public void GetPadding(PaddingType paddingOut)
4446 Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4447 if (NDalicPINVOKE.SWIGPendingException.Pending)
4448 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4451 /// <since_tizen> 3 </since_tizen>
4452 public uint AddRenderer(Renderer renderer)
4454 uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4455 if (NDalicPINVOKE.SWIGPendingException.Pending)
4456 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4460 /// <since_tizen> 3 </since_tizen>
4461 public Renderer GetRendererAt(uint index)
4463 //to fix memory leak issue, match the handle count with native side.
4464 IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4465 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4466 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4467 if (cPtr != null && ret == null)
4469 ret = new Renderer(cPtr, false);
4470 if (NDalicPINVOKE.SWIGPendingException.Pending)
4471 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4474 Interop.BaseHandle.delete_BaseHandle(CPtr);
4475 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4477 if (NDalicPINVOKE.SWIGPendingException.Pending)
4478 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4482 /// <since_tizen> 3 </since_tizen>
4483 public void RemoveRenderer(Renderer renderer)
4485 Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4486 if (NDalicPINVOKE.SWIGPendingException.Pending)
4487 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4490 /// <since_tizen> 3 </since_tizen>
4491 public void RemoveRenderer(uint index)
4493 Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4494 if (NDalicPINVOKE.SWIGPendingException.Pending)
4495 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4498 internal void Raise()
4500 var parentChildren = GetParent()?.Children;
4502 if (parentChildren != null)
4504 int currentIndex = parentChildren.IndexOf(this);
4506 // If the view is not already the last item in the list.
4507 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4509 View temp = parentChildren[currentIndex + 1];
4510 parentChildren[currentIndex + 1] = this;
4511 parentChildren[currentIndex] = temp;
4513 Interop.NDalic.Raise(swigCPtr);
4514 if (NDalicPINVOKE.SWIGPendingException.Pending)
4515 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4520 internal void Lower()
4522 var parentChildren = GetParent()?.Children;
4524 if (parentChildren != null)
4526 int currentIndex = parentChildren.IndexOf(this);
4528 // If the view is not already the first item in the list.
4529 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4531 View temp = parentChildren[currentIndex - 1];
4532 parentChildren[currentIndex - 1] = this;
4533 parentChildren[currentIndex] = temp;
4535 Interop.NDalic.Lower(swigCPtr);
4536 if (NDalicPINVOKE.SWIGPendingException.Pending)
4537 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4543 /// Raises the view to above the target view.
4545 /// <remarks>The sibling order of views within the parent will be updated automatically.
4546 /// Views on the level above the target view will still be shown above this view.
4547 /// Raising this view above views with the same sibling order as each other will raise this view above them.
4548 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4550 /// <param name="target">Will be raised above this view.</param>
4551 internal void RaiseAbove(View target)
4553 var parentChildren = GetParent()?.Children;
4555 if (parentChildren != null)
4557 int currentIndex = parentChildren.IndexOf(this);
4558 int targetIndex = parentChildren.IndexOf(target);
4560 if (currentIndex < 0 || targetIndex < 0 ||
4561 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4563 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4566 // If the currentIndex is less than the target index and the target has the same parent.
4567 if (currentIndex < targetIndex)
4569 parentChildren.Remove(this);
4570 parentChildren.Insert(targetIndex, this);
4572 Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4573 if (NDalicPINVOKE.SWIGPendingException.Pending)
4574 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4581 /// Lowers the view to below the target view.
4583 /// <remarks>The sibling order of views within the parent will be updated automatically.
4584 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4585 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4587 /// <param name="target">Will be lowered below this view.</param>
4588 internal void LowerBelow(View target)
4590 var parentChildren = GetParent()?.Children;
4592 if (parentChildren != null)
4594 int currentIndex = parentChildren.IndexOf(this);
4595 int targetIndex = parentChildren.IndexOf(target);
4596 if (currentIndex < 0 || targetIndex < 0 ||
4597 currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4599 NUILog.Error("index should be bigger than 0 and less than children of layer count");
4603 // If the currentIndex is not already the 0th index and the target has the same parent.
4604 if ((currentIndex != 0) && (targetIndex != -1) &&
4605 (currentIndex > targetIndex))
4607 parentChildren.Remove(this);
4608 parentChildren.Insert(targetIndex, this);
4610 Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4611 if (NDalicPINVOKE.SWIGPendingException.Pending)
4612 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4618 internal string GetName()
4620 string ret = Interop.Actor.Actor_GetName(swigCPtr);
4621 if (NDalicPINVOKE.SWIGPendingException.Pending)
4622 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4626 internal void SetName(string name)
4628 Interop.Actor.Actor_SetName(swigCPtr, name);
4629 if (NDalicPINVOKE.SWIGPendingException.Pending)
4630 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4633 internal uint GetId()
4635 uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4636 if (NDalicPINVOKE.SWIGPendingException.Pending)
4637 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4641 internal bool IsRoot()
4643 bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4644 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4648 internal bool OnWindow()
4650 bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4651 if (NDalicPINVOKE.SWIGPendingException.Pending)
4652 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4656 internal View FindChildById(uint id)
4658 //to fix memory leak issue, match the handle count with native side.
4659 IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4660 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4661 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4662 Interop.BaseHandle.delete_BaseHandle(CPtr);
4663 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4665 if (NDalicPINVOKE.SWIGPendingException.Pending)
4666 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4670 internal override View FindCurrentChildById(uint id)
4672 return FindChildById(id);
4675 internal void SetParentOrigin(Vector3 origin)
4677 Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4678 if (NDalicPINVOKE.SWIGPendingException.Pending)
4679 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4682 internal Vector3 GetCurrentParentOrigin()
4684 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4685 if (NDalicPINVOKE.SWIGPendingException.Pending)
4686 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4690 internal void SetAnchorPoint(Vector3 anchorPoint)
4692 Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4693 if (NDalicPINVOKE.SWIGPendingException.Pending)
4694 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4697 internal Vector3 GetCurrentAnchorPoint()
4699 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4700 if (NDalicPINVOKE.SWIGPendingException.Pending)
4701 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4705 internal void SetSize(float width, float height)
4707 Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4708 if (NDalicPINVOKE.SWIGPendingException.Pending)
4709 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4712 internal void SetSize(float width, float height, float depth)
4714 Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4715 if (NDalicPINVOKE.SWIGPendingException.Pending)
4716 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4719 internal void SetSize(Vector2 size)
4721 Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4722 if (NDalicPINVOKE.SWIGPendingException.Pending)
4723 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4726 internal void SetSize(Vector3 size)
4728 Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4729 if (NDalicPINVOKE.SWIGPendingException.Pending)
4730 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4733 internal Vector3 GetTargetSize()
4735 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4736 if (NDalicPINVOKE.SWIGPendingException.Pending)
4737 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4741 internal Size2D GetCurrentSize()
4743 Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4744 if (NDalicPINVOKE.SWIGPendingException.Pending)
4745 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4746 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4750 internal Vector3 GetNaturalSize()
4752 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4753 if (NDalicPINVOKE.SWIGPendingException.Pending)
4754 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4758 internal void SetPosition(float x, float y)
4760 Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4761 if (NDalicPINVOKE.SWIGPendingException.Pending)
4762 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4765 internal void SetPosition(float x, float y, float z)
4767 Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4768 if (NDalicPINVOKE.SWIGPendingException.Pending)
4769 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4772 internal void SetPosition(Vector3 position)
4774 Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4775 if (NDalicPINVOKE.SWIGPendingException.Pending)
4776 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4779 internal void SetX(float x)
4781 Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4782 if (NDalicPINVOKE.SWIGPendingException.Pending)
4783 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4786 internal void SetY(float y)
4788 Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4789 if (NDalicPINVOKE.SWIGPendingException.Pending)
4790 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4793 internal void SetZ(float z)
4795 Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4796 if (NDalicPINVOKE.SWIGPendingException.Pending)
4797 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4800 internal void TranslateBy(Vector3 distance)
4802 Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4803 if (NDalicPINVOKE.SWIGPendingException.Pending)
4804 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4807 internal Position GetCurrentPosition()
4809 Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4810 if (NDalicPINVOKE.SWIGPendingException.Pending)
4811 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4815 internal Vector3 GetCurrentWorldPosition()
4817 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4818 if (NDalicPINVOKE.SWIGPendingException.Pending)
4819 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4823 internal void SetInheritPosition(bool inherit)
4825 Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4826 if (NDalicPINVOKE.SWIGPendingException.Pending)
4827 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4830 internal bool IsPositionInherited()
4832 bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4833 if (NDalicPINVOKE.SWIGPendingException.Pending)
4834 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4838 internal void SetOrientation(Degree angle, Vector3 axis)
4840 Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4841 if (NDalicPINVOKE.SWIGPendingException.Pending)
4842 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4845 internal void SetOrientation(Radian angle, Vector3 axis)
4847 Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4848 if (NDalicPINVOKE.SWIGPendingException.Pending)
4849 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4852 internal void SetOrientation(Rotation orientation)
4854 Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4855 if (NDalicPINVOKE.SWIGPendingException.Pending)
4856 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4859 internal void RotateBy(Degree angle, Vector3 axis)
4861 Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4862 if (NDalicPINVOKE.SWIGPendingException.Pending)
4863 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4866 internal void RotateBy(Radian angle, Vector3 axis)
4868 Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4869 if (NDalicPINVOKE.SWIGPendingException.Pending)
4870 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4873 internal void RotateBy(Rotation relativeRotation)
4875 Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4876 if (NDalicPINVOKE.SWIGPendingException.Pending)
4877 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4880 internal Rotation GetCurrentOrientation()
4882 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4883 if (NDalicPINVOKE.SWIGPendingException.Pending)
4884 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4888 internal void SetInheritOrientation(bool inherit)
4890 Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4891 if (NDalicPINVOKE.SWIGPendingException.Pending)
4892 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4895 internal bool IsOrientationInherited()
4897 bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
4898 if (NDalicPINVOKE.SWIGPendingException.Pending)
4899 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4903 internal Rotation GetCurrentWorldOrientation()
4905 Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
4906 if (NDalicPINVOKE.SWIGPendingException.Pending)
4907 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4911 internal void SetScale(float scale)
4913 Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
4914 if (NDalicPINVOKE.SWIGPendingException.Pending)
4915 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4918 internal void SetScale(float scaleX, float scaleY, float scaleZ)
4920 Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
4921 if (NDalicPINVOKE.SWIGPendingException.Pending)
4922 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4925 internal void SetScale(Vector3 scale)
4927 Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
4928 if (NDalicPINVOKE.SWIGPendingException.Pending)
4929 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4932 internal void ScaleBy(Vector3 relativeScale)
4934 Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
4935 if (NDalicPINVOKE.SWIGPendingException.Pending)
4936 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4939 internal Vector3 GetCurrentScale()
4941 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
4942 if (NDalicPINVOKE.SWIGPendingException.Pending)
4943 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4947 internal Vector3 GetCurrentWorldScale()
4949 Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
4950 if (NDalicPINVOKE.SWIGPendingException.Pending)
4951 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4955 internal void SetInheritScale(bool inherit)
4957 Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
4958 if (NDalicPINVOKE.SWIGPendingException.Pending)
4959 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4962 internal bool IsScaleInherited()
4964 bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
4965 if (NDalicPINVOKE.SWIGPendingException.Pending)
4966 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4970 internal Matrix GetCurrentWorldMatrix()
4972 Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
4973 if (NDalicPINVOKE.SWIGPendingException.Pending)
4974 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4978 internal void SetVisible(bool visible)
4980 Interop.Actor.Actor_SetVisible(swigCPtr, visible);
4981 if (NDalicPINVOKE.SWIGPendingException.Pending)
4982 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4985 internal bool IsVisible()
4987 bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
4988 if (NDalicPINVOKE.SWIGPendingException.Pending)
4989 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4993 internal void SetOpacity(float opacity)
4995 Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
4996 if (NDalicPINVOKE.SWIGPendingException.Pending)
4997 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5000 internal float GetCurrentOpacity()
5002 float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
5003 if (NDalicPINVOKE.SWIGPendingException.Pending)
5004 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5008 internal void SetColor(Vector4 color)
5010 Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
5011 if (NDalicPINVOKE.SWIGPendingException.Pending)
5012 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5015 internal Vector4 GetCurrentColor()
5017 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
5018 if (NDalicPINVOKE.SWIGPendingException.Pending)
5019 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5023 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
5024 [EditorBrowsable(EditorBrowsableState.Never)]
5025 public void SetColorMode(ColorMode colorMode)
5027 Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
5028 if (NDalicPINVOKE.SWIGPendingException.Pending)
5029 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5032 internal ColorMode GetColorMode()
5034 ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
5035 if (NDalicPINVOKE.SWIGPendingException.Pending)
5036 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5040 internal Vector4 GetCurrentWorldColor()
5042 Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
5043 if (NDalicPINVOKE.SWIGPendingException.Pending)
5044 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5048 internal void SetDrawMode(DrawModeType drawMode)
5050 Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
5051 if (NDalicPINVOKE.SWIGPendingException.Pending)
5052 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5055 internal DrawModeType GetDrawMode()
5057 DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
5058 if (NDalicPINVOKE.SWIGPendingException.Pending)
5059 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5063 internal void SetKeyboardFocusable(bool focusable)
5065 Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5066 if (NDalicPINVOKE.SWIGPendingException.Pending)
5067 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5070 internal bool IsKeyboardFocusable()
5072 bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5073 if (NDalicPINVOKE.SWIGPendingException.Pending)
5074 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5078 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5080 Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5081 if (NDalicPINVOKE.SWIGPendingException.Pending)
5082 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5085 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5087 ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5088 if (NDalicPINVOKE.SWIGPendingException.Pending)
5089 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5093 internal Vector3 GetSizeModeFactor()
5095 Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5096 if (NDalicPINVOKE.SWIGPendingException.Pending)
5097 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5101 internal void SetMinimumSize(Vector2 size)
5103 Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5104 if (NDalicPINVOKE.SWIGPendingException.Pending)
5105 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5108 internal Vector2 GetMinimumSize()
5110 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5111 if (NDalicPINVOKE.SWIGPendingException.Pending)
5112 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5116 internal void SetMaximumSize(Vector2 size)
5118 Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5119 if (NDalicPINVOKE.SWIGPendingException.Pending)
5120 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5123 internal Vector2 GetMaximumSize()
5125 Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5126 if (NDalicPINVOKE.SWIGPendingException.Pending)
5127 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5131 internal int GetHierarchyDepth()
5133 int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5134 if (NDalicPINVOKE.SWIGPendingException.Pending)
5135 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5139 internal uint GetRendererCount()
5141 uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5142 if (NDalicPINVOKE.SWIGPendingException.Pending)
5143 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5147 internal TouchDataSignal TouchSignal()
5149 TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5150 if (NDalicPINVOKE.SWIGPendingException.Pending)
5151 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5155 internal HoverSignal HoveredSignal()
5157 HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5158 if (NDalicPINVOKE.SWIGPendingException.Pending)
5159 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5163 internal WheelSignal WheelEventSignal()
5165 WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5166 if (NDalicPINVOKE.SWIGPendingException.Pending)
5167 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5171 internal ViewSignal OnWindowSignal()
5173 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5174 if (NDalicPINVOKE.SWIGPendingException.Pending)
5175 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5179 internal ViewSignal OffWindowSignal()
5181 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5182 if (NDalicPINVOKE.SWIGPendingException.Pending)
5183 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5187 internal ViewSignal OnRelayoutSignal()
5189 ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5190 if (NDalicPINVOKE.SWIGPendingException.Pending)
5191 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5195 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5197 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5198 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5202 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5204 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5205 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5209 internal ViewSignal ResourcesLoadedSignal()
5211 ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5212 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5216 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5218 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5221 internal bool IsTopLevelView()
5223 if (GetParent() is Layer)
5230 internal void SetKeyInputFocus()
5232 Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5233 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5236 internal void ClearKeyInputFocus()
5238 Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5239 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5242 internal PinchGestureDetector GetPinchGestureDetector()
5244 PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5245 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5249 internal PanGestureDetector GetPanGestureDetector()
5251 PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5252 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5256 internal TapGestureDetector GetTapGestureDetector()
5258 TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5259 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5263 internal LongPressGestureDetector GetLongPressGestureDetector()
5265 LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5266 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5270 internal void SetBackgroundColor(Vector4 color)
5272 Interop.ViewInternal.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
5273 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5276 internal Vector4 GetBackgroundColor()
5278 Vector4 ret = new Vector4(Interop.ViewInternal.View_GetBackgroundColor(swigCPtr), true);
5279 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5283 internal void SetBackgroundImage(Image image)
5285 Interop.ViewInternal.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
5286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5289 internal ControlKeySignal KeyEventSignal()
5291 ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5292 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5296 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5298 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5299 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5303 internal KeyInputFocusSignal KeyInputFocusLostSignal()
5305 KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5306 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5310 internal IntPtr GetPtrfromView()
5312 return (IntPtr)swigCPtr;
5316 /// Removes the layout from this View.
5318 internal void ResetLayout()
5323 internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5325 return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5329 /// you can override it to clean-up your own resources.
5331 /// <param name="type">DisposeTypes</param>
5332 /// <since_tizen> 3 </since_tizen>
5333 protected override void Dispose(DisposeTypes type)
5340 //_mergedStyle = null;
5342 if (type == DisposeTypes.Explicit)
5345 //Release your own managed resources here.
5346 //You should release all of your own disposable objects here.
5349 //Release your own unmanaged resources here.
5350 //You should not access any managed member here except static instance.
5351 //because the execution order of Finalizes is non-deterministic.
5354 DisConnectFromSignals();
5357 if (swigCPtr.Handle != global::System.IntPtr.Zero)
5361 swigCMemOwn = false;
5362 Interop.View.delete_View(swigCPtr);
5364 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5367 foreach (View view in Children)
5369 view.InternalParent = null;
5376 private void OnSize2DChanged(int width, int height)
5378 Size2D = new Size2D(width, height);
5381 private void OnPosition2DChanged(int x, int y)
5383 Position2D = new Position2D(x, y);
5386 private void DisConnectFromSignals()
5388 // Save current CPtr.
5389 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5391 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5392 swigCPtr = GetBaseHandleCPtrHandleRef;
5394 if (_onRelayoutEventCallback != null)
5396 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5399 if (_offWindowEventCallback != null)
5401 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5404 if (_onWindowEventCallback != null)
5406 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5409 if (_wheelEventCallback != null)
5411 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5414 if (_hoverEventCallback != null)
5416 this.HoveredSignal().Disconnect(_hoverEventCallback);
5419 if (_touchDataCallback != null)
5421 this.TouchSignal().Disconnect(_touchDataCallback);
5424 if (_ResourcesLoadedCallback != null)
5426 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5429 if (_offWindowEventCallback != null)
5431 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5434 if (_onWindowEventCallback != null)
5436 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5439 if (_wheelEventCallback != null)
5441 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5444 if (_hoverEventCallback != null)
5446 this.HoveredSignal().Disconnect(_hoverEventCallback);
5449 if (_touchDataCallback != null)
5451 this.TouchSignal().Disconnect(_touchDataCallback);
5454 if (_onRelayoutEventCallback != null)
5456 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5459 if (_keyCallback != null)
5461 this.KeyEventSignal().Disconnect(_keyCallback);
5464 if (_keyInputFocusLostCallback != null)
5466 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5469 if (_keyInputFocusGainedCallback != null)
5471 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5474 if (_backgroundResourceLoadedCallback != null)
5476 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5479 if (_onWindowSendEventCallback != null)
5481 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5484 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5485 // Restore current CPtr.
5486 swigCPtr = currentCPtr;
5489 private void OnKeyInputFocusGained(IntPtr view)
5491 if (_keyInputFocusGainedEventHandler != null)
5493 _keyInputFocusGainedEventHandler(this, null);
5497 private void OnKeyInputFocusLost(IntPtr view)
5499 if (_keyInputFocusLostEventHandler != null)
5501 _keyInputFocusLostEventHandler(this, null);
5505 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5507 if (keyEvent == global::System.IntPtr.Zero)
5509 NUILog.Error("keyEvent should not be null!");
5513 KeyEventArgs e = new KeyEventArgs();
5515 bool result = false;
5517 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5519 if (_keyEventHandler != null)
5521 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5523 // Oring the result of each callback.
5524 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5526 result |= del(this, e);
5533 // Callback for View OnRelayout signal
5534 private void OnRelayout(IntPtr data)
5536 if (_onRelayoutEventHandler != null)
5538 _onRelayoutEventHandler(this, null);
5542 // Callback for View TouchSignal
5543 private bool OnTouch(IntPtr view, IntPtr touchData)
5545 if (touchData == global::System.IntPtr.Zero)
5547 NUILog.Error("touchData should not be null!");
5551 TouchEventArgs e = new TouchEventArgs();
5553 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5555 if (_touchDataEventHandler != null)
5557 return _touchDataEventHandler(this, e);
5562 // Callback for View Hover signal
5563 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5565 if (hoverEvent == global::System.IntPtr.Zero)
5567 NUILog.Error("hoverEvent should not be null!");
5571 HoverEventArgs e = new HoverEventArgs();
5573 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5575 if (_hoverEventHandler != null)
5577 return _hoverEventHandler(this, e);
5582 // Callback for View Wheel signal
5583 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5585 if (wheelEvent == global::System.IntPtr.Zero)
5587 NUILog.Error("wheelEvent should not be null!");
5591 WheelEventArgs e = new WheelEventArgs();
5593 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5595 if (_wheelEventHandler != null)
5597 return _wheelEventHandler(this, e);
5602 // Callback for View OnWindow signal
5603 private void OnWindow(IntPtr data)
5605 if (_onWindowEventHandler != null)
5607 _onWindowEventHandler(this, null);
5611 // Callback for View OffWindow signal
5612 private void OffWindow(IntPtr data)
5614 if (_offWindowEventHandler != null)
5616 _offWindowEventHandler(this, null);
5620 // Callback for View visibility change signal
5621 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5623 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5626 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5628 e.Visibility = visibility;
5631 if (_visibilityChangedEventHandler != null)
5633 _visibilityChangedEventHandler(this, e);
5637 // Callback for View layout direction change signal
5638 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5640 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5643 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5647 if (_layoutDirectionChangedEventHandler != null)
5649 _layoutDirectionChangedEventHandler(this, e);
5653 private void OnResourcesLoaded(IntPtr view)
5655 if (_resourcesLoadedEventHandler != null)
5657 _resourcesLoadedEventHandler(this, null);
5661 private View ConvertIdToView(uint id)
5663 View view = GetParent()?.FindCurrentChildById(id);
5665 //If we can't find the parent's children, find in the top layer.
5668 Container parent = GetParent();
5669 while ((parent is View) && (parent != null))
5671 parent = parent.GetParent();
5672 if (parent is Layer)
5674 view = parent.FindCurrentChildById(id);
5683 private void OnBackgroundResourceLoaded(IntPtr view)
5685 BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5686 e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5688 if (_backgroundResourceLoadedEventHandler != null)
5690 _backgroundResourceLoadedEventHandler(this, e);
5695 /// Event argument passed through the ChildAdded event.
5697 /// <since_tizen> 5 </since_tizen>
5698 public class ChildAddedEventArgs : EventArgs
5701 /// Added child view at moment.
5703 /// <since_tizen> 5 </since_tizen>
5704 public View Added { get; set; }
5708 /// Event argument passed through the ChildRemoved event.
5710 /// <since_tizen> 5 </since_tizen>
5711 public class ChildRemovedEventArgs : EventArgs
5714 /// Removed child view at moment.
5716 /// <since_tizen> 5 </since_tizen>
5717 public View Removed { get; set; }
5721 /// Event arguments that passed via the KeyEvent signal.
5723 /// <since_tizen> 3 </since_tizen>
5724 public class KeyEventArgs : EventArgs
5729 /// Key - is the key sent to the view.
5731 /// <since_tizen> 3 </since_tizen>
5746 /// Event arguments that passed via the touch signal.
5748 /// <since_tizen> 3 </since_tizen>
5749 public class TouchEventArgs : EventArgs
5751 private Touch _touch;
5754 /// Touch - contains the information of touch points.
5756 /// <since_tizen> 3 </since_tizen>
5771 /// Event arguments that passed via the hover signal.
5773 /// <since_tizen> 3 </since_tizen>
5774 public class HoverEventArgs : EventArgs
5776 private Hover _hover;
5779 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5781 /// <since_tizen> 3 </since_tizen>
5796 /// Event arguments that passed via the wheel signal.
5798 /// <since_tizen> 3 </since_tizen>
5799 public class WheelEventArgs : EventArgs
5801 private Wheel _wheel;
5804 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5806 /// <since_tizen> 3 </since_tizen>
5821 /// Event arguments of visibility changed.
5823 /// <since_tizen> 3 </since_tizen>
5824 public class VisibilityChangedEventArgs : EventArgs
5827 private bool _visibility;
5828 private VisibilityChangeType _type;
5831 /// The view, or child of view, whose visibility has changed.
5833 /// <since_tizen> 3 </since_tizen>
5847 /// Whether the view is now visible or not.
5849 /// <since_tizen> 3 </since_tizen>
5850 public bool Visibility
5858 _visibility = value;
5863 /// Whether the view's visible property has changed or a parent's.
5865 /// <since_tizen> 3 </since_tizen>
5866 public VisibilityChangeType Type
5880 /// Event arguments of layout direction changed.
5882 /// <since_tizen> 4 </since_tizen>
5883 public class LayoutDirectionChangedEventArgs : EventArgs
5886 private ViewLayoutDirectionType _type;
5889 /// The view, or child of view, whose layout direction has changed.
5891 /// <since_tizen> 4 </since_tizen>
5905 /// Whether the view's layout direction property has changed or a parent's.
5907 /// <since_tizen> 4 </since_tizen>
5908 public ViewLayoutDirectionType Type
5922 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
5924 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5925 [EditorBrowsable(EditorBrowsableState.Never)]
5926 public Transition GetTransition(string transitionName)
5928 Transition trans = null;
5929 transDictionary.TryGetValue(transitionName, out trans);
5933 private void LoadTransitions()
5935 foreach (string str in transitionNames)
5937 string resourceName = str + ".xaml";
5938 Transition trans = null;
5940 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
5942 string likelyResourcePath = resource + "animation/" + resourceName;
5944 if (File.Exists(likelyResourcePath))
5946 trans = Extensions.LoadObject<Transition>(likelyResourcePath);
5950 transDictionary.Add(trans.Name, trans);
5955 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5956 [EditorBrowsable(EditorBrowsableState.Never)]
5957 public string[] TransitionNames
5961 return transitionNames;
5965 transitionNames = value;
5969 private string[] transitionNames;
5971 internal class BackgroundResourceLoadedEventArgs : EventArgs
5973 private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
5974 public ResourceLoadingStatusType Status
5987 internal class Property
5989 internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
5990 internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
5991 internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
5992 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
5993 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
5994 internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
5995 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
5996 internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
5997 internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
5998 internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
5999 internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
6000 internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
6001 internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
6002 internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
6003 internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
6004 internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
6005 internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
6006 internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
6007 internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
6008 internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
6009 internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
6010 internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
6011 internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
6012 internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
6013 internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
6014 internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
6015 internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
6016 internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
6017 internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
6018 internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
6019 internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
6020 internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
6021 internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
6022 internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
6023 internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
6024 internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
6025 internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
6026 internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
6027 internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
6028 internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
6029 internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
6030 internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
6031 internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
6032 internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
6033 internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
6034 internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
6035 internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
6036 internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
6037 internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
6038 internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
6039 internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
6040 internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
6041 internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
6042 internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
6043 internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
6044 internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
6045 internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
6046 internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
6047 internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
6048 internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
6049 internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
6050 internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
6051 internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();