1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
20 // This file was automatically generated by SWIG (http://www.swig.org).
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
30 public class TableView : View
32 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
34 internal TableView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TableView_SWIGUpcast(cPtr), cMemoryOwn)
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
39 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj)
41 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
46 DisposeQueue.Instance.Add(this);
49 public override void Dispose()
51 if (!Stage.IsInstalled())
53 DisposeQueue.Instance.Add(this);
59 if (swigCPtr.Handle != global::System.IntPtr.Zero)
64 NDalicPINVOKE.delete_TableView(swigCPtr);
66 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
68 global::System.GC.SuppressFinalize(this);
74 internal class Property : global::System.IDisposable
76 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
77 protected bool swigCMemOwn;
79 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
81 swigCMemOwn = cMemoryOwn;
82 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
85 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
87 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
95 public virtual void Dispose()
99 if (swigCPtr.Handle != global::System.IntPtr.Zero)
104 NDalicPINVOKE.delete_TableView_Property(swigCPtr);
106 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
108 global::System.GC.SuppressFinalize(this);
112 public Property() : this(NDalicPINVOKE.new_TableView_Property(), true)
114 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117 internal static readonly int ROWS = NDalicPINVOKE.TableView_Property_ROWS_get();
118 internal static readonly int COLUMNS = NDalicPINVOKE.TableView_Property_COLUMNS_get();
119 internal static readonly int CELL_PADDING = NDalicPINVOKE.TableView_Property_CELL_PADDING_get();
120 internal static readonly int LAYOUT_ROWS = NDalicPINVOKE.TableView_Property_LAYOUT_ROWS_get();
121 internal static readonly int LAYOUT_COLUMNS = NDalicPINVOKE.TableView_Property_LAYOUT_COLUMNS_get();
125 internal class ChildProperty : global::System.IDisposable
127 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
128 protected bool swigCMemOwn;
130 internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn)
132 swigCMemOwn = cMemoryOwn;
133 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
136 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ChildProperty obj)
138 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
146 public virtual void Dispose()
150 if (swigCPtr.Handle != global::System.IntPtr.Zero)
155 NDalicPINVOKE.delete_TableView_ChildProperty(swigCPtr);
157 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
159 global::System.GC.SuppressFinalize(this);
163 public ChildProperty() : this(NDalicPINVOKE.new_TableView_ChildProperty(), true)
165 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
168 internal static readonly int CELL_INDEX = NDalicPINVOKE.TableView_ChildProperty_CELL_INDEX_get();
169 internal static readonly int ROW_SPAN = NDalicPINVOKE.TableView_ChildProperty_ROW_SPAN_get();
170 internal static readonly int COLUMN_SPAN = NDalicPINVOKE.TableView_ChildProperty_COLUMN_SPAN_get();
171 internal static readonly int CELL_HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_HORIZONTAL_ALIGNMENT_get();
172 internal static readonly int CELL_VERTICAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_VERTICAL_ALIGNMENT_get();
176 public class CellPosition : global::System.IDisposable
178 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
179 protected bool swigCMemOwn;
181 internal CellPosition(global::System.IntPtr cPtr, bool cMemoryOwn)
183 swigCMemOwn = cMemoryOwn;
184 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
187 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CellPosition obj)
189 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
197 public virtual void Dispose()
201 if (swigCPtr.Handle != global::System.IntPtr.Zero)
206 NDalicPINVOKE.delete_TableView_CellPosition(swigCPtr);
208 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
210 global::System.GC.SuppressFinalize(this);
214 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan, uint columnSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_0(rowIndex, columnIndex, rowSpan, columnSpan), true)
216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
219 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_1(rowIndex, columnIndex, rowSpan), true)
221 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
224 public CellPosition(uint rowIndex, uint columnIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_2(rowIndex, columnIndex), true)
226 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
229 public CellPosition(uint rowIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_3(rowIndex), true)
231 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234 public CellPosition() : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_4(), true)
236 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
243 NDalicPINVOKE.TableView_CellPosition_rowIndex_set(swigCPtr, value);
244 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
248 uint ret = NDalicPINVOKE.TableView_CellPosition_rowIndex_get(swigCPtr);
249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
254 public uint columnIndex
258 NDalicPINVOKE.TableView_CellPosition_columnIndex_set(swigCPtr, value);
259 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
263 uint ret = NDalicPINVOKE.TableView_CellPosition_columnIndex_get(swigCPtr);
264 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
273 NDalicPINVOKE.TableView_CellPosition_rowSpan_set(swigCPtr, value);
274 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
278 uint ret = NDalicPINVOKE.TableView_CellPosition_rowSpan_get(swigCPtr);
279 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284 public uint columnSpan
288 NDalicPINVOKE.TableView_CellPosition_columnSpan_set(swigCPtr, value);
289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
293 uint ret = NDalicPINVOKE.TableView_CellPosition_columnSpan_get(swigCPtr);
294 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
301 public TableView(uint initialRows, uint initialColumns) : this(NDalicPINVOKE.TableView_New(initialRows, initialColumns), true)
303 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
306 public TableView(TableView handle) : this(NDalicPINVOKE.new_TableView__SWIG_1(TableView.getCPtr(handle)), true)
308 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
311 public TableView Assign(TableView handle)
313 TableView ret = new TableView(NDalicPINVOKE.TableView_Assign(swigCPtr, TableView.getCPtr(handle)), false);
314 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
318 public new static TableView DownCast(BaseHandle handle)
320 TableView ret = new TableView(NDalicPINVOKE.TableView_DownCast(BaseHandle.getCPtr(handle)), true);
321 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
325 public bool AddChild(Actor child, TableView.CellPosition position)
327 bool ret = NDalicPINVOKE.TableView_AddChild(swigCPtr, Actor.getCPtr(child), TableView.CellPosition.getCPtr(position));
328 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
332 public Actor GetChildAt(TableView.CellPosition position)
334 Actor ret = new Actor(NDalicPINVOKE.TableView_GetChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
335 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
339 public Actor RemoveChildAt(TableView.CellPosition position)
341 Actor ret = new Actor(NDalicPINVOKE.TableView_RemoveChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
342 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
346 public bool FindChildPosition(Actor child, TableView.CellPosition position)
348 bool ret = NDalicPINVOKE.TableView_FindChildPosition(swigCPtr, Actor.getCPtr(child), TableView.CellPosition.getCPtr(position));
349 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353 public void InsertRow(uint rowIndex)
355 NDalicPINVOKE.TableView_InsertRow(swigCPtr, rowIndex);
356 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
359 public void DeleteRow(uint rowIndex)
361 NDalicPINVOKE.TableView_DeleteRow__SWIG_0(swigCPtr, rowIndex);
362 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
365 internal void DeleteRow(uint rowIndex, ActorContainer removed)
367 NDalicPINVOKE.TableView_DeleteRow__SWIG_1(swigCPtr, rowIndex, ActorContainer.getCPtr(removed));
368 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
371 public void InsertColumn(uint columnIndex)
373 NDalicPINVOKE.TableView_InsertColumn(swigCPtr, columnIndex);
374 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
377 public void DeleteColumn(uint columnIndex)
379 NDalicPINVOKE.TableView_DeleteColumn__SWIG_0(swigCPtr, columnIndex);
380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
383 internal void DeleteColumn(uint columnIndex, ActorContainer removed)
385 NDalicPINVOKE.TableView_DeleteColumn__SWIG_1(swigCPtr, columnIndex, ActorContainer.getCPtr(removed));
386 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
389 public void Resize(uint rows, uint columns)
391 NDalicPINVOKE.TableView_Resize__SWIG_0(swigCPtr, rows, columns);
392 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
395 internal void Resize(uint rows, uint columns, ActorContainer removed)
397 NDalicPINVOKE.TableView_Resize__SWIG_1(swigCPtr, rows, columns, ActorContainer.getCPtr(removed));
398 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
401 public void SetCellPadding(Size2D padding)
403 NDalicPINVOKE.TableView_SetCellPadding(swigCPtr, Size2D.getCPtr(padding));
404 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
407 public Vector2 GetCellPadding()
409 Vector2 ret = new Vector2(NDalicPINVOKE.TableView_GetCellPadding(swigCPtr), true);
410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
414 public void SetFitHeight(uint rowIndex)
416 NDalicPINVOKE.TableView_SetFitHeight(swigCPtr, rowIndex);
417 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
420 public bool IsFitHeight(uint rowIndex)
422 bool ret = NDalicPINVOKE.TableView_IsFitHeight(swigCPtr, rowIndex);
423 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
427 public void SetFitWidth(uint columnIndex)
429 NDalicPINVOKE.TableView_SetFitWidth(swigCPtr, columnIndex);
430 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
433 public bool IsFitWidth(uint columnIndex)
435 bool ret = NDalicPINVOKE.TableView_IsFitWidth(swigCPtr, columnIndex);
436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
440 public void SetFixedHeight(uint rowIndex, float height)
442 NDalicPINVOKE.TableView_SetFixedHeight(swigCPtr, rowIndex, height);
443 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
446 public float GetFixedHeight(uint rowIndex)
448 float ret = NDalicPINVOKE.TableView_GetFixedHeight(swigCPtr, rowIndex);
449 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
453 public void SetRelativeHeight(uint rowIndex, float heightPercentage)
455 NDalicPINVOKE.TableView_SetRelativeHeight(swigCPtr, rowIndex, heightPercentage);
456 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
459 public float GetRelativeHeight(uint rowIndex)
461 float ret = NDalicPINVOKE.TableView_GetRelativeHeight(swigCPtr, rowIndex);
462 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
466 public void SetFixedWidth(uint columnIndex, float width)
468 NDalicPINVOKE.TableView_SetFixedWidth(swigCPtr, columnIndex, width);
469 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
472 public float GetFixedWidth(uint columnIndex)
474 float ret = NDalicPINVOKE.TableView_GetFixedWidth(swigCPtr, columnIndex);
475 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
479 public void SetRelativeWidth(uint columnIndex, float widthPercentage)
481 NDalicPINVOKE.TableView_SetRelativeWidth(swigCPtr, columnIndex, widthPercentage);
482 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
485 public float GetRelativeWidth(uint columnIndex)
487 float ret = NDalicPINVOKE.TableView_GetRelativeWidth(swigCPtr, columnIndex);
488 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
492 public uint GetRows()
494 uint ret = NDalicPINVOKE.TableView_GetRows(swigCPtr);
495 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
499 public uint GetColumns()
501 uint ret = NDalicPINVOKE.TableView_GetColumns(swigCPtr);
502 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
506 public void SetCellAlignment(TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical)
508 NDalicPINVOKE.TableView_SetCellAlignment(swigCPtr, TableView.CellPosition.getCPtr(position), (int)horizontal, (int)vertical);
509 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
512 internal enum PropertyRange
514 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
515 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000,
516 CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
517 CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX + 1000
520 public enum LayoutPolicy
533 GetProperty(TableView.Property.ROWS).Get(ref temp);
538 SetProperty(TableView.Property.ROWS, new Tizen.NUI.PropertyValue(value));
546 GetProperty(TableView.Property.COLUMNS).Get(ref temp);
551 SetProperty(TableView.Property.COLUMNS, new Tizen.NUI.PropertyValue(value));
554 public Vector2 CellPadding
558 Vector2 temp = new Vector2(0.0f, 0.0f);
559 GetProperty(TableView.Property.CELL_PADDING).Get(temp);
564 SetProperty(TableView.Property.CELL_PADDING, new Tizen.NUI.PropertyValue(value));
567 public PropertyMap LayoutRows
571 PropertyMap temp = new PropertyMap();
572 GetProperty(TableView.Property.LAYOUT_ROWS).Get(temp);
577 SetProperty(TableView.Property.LAYOUT_ROWS, new Tizen.NUI.PropertyValue(value));
580 public PropertyMap LayoutColumns
584 PropertyMap temp = new PropertyMap();
585 GetProperty(TableView.Property.LAYOUT_COLUMNS).Get(temp);
590 SetProperty(TableView.Property.LAYOUT_COLUMNS, new Tizen.NUI.PropertyValue(value));
595 public enum HorizontalAlignmentType
601 public enum VerticalAlignmentType