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 //------------------------------------------------------------------------------
27 using Tizen.NUI.BaseComponents;
31 using Tizen.NUI.BaseComponents;
33 /// TableView is a layout container for aligning child actors in a grid like layout.<br>
34 /// TableView constrains the x and y position and width and height of the child actors.<br>
35 /// z position and depth are left intact so that 3D model actors can also be laid out
36 /// in a grid without loosing their depth scaling.<br>
38 public class TableView : View
40 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
42 internal TableView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TableView_SWIGUpcast(cPtr), cMemoryOwn)
44 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
45 // By default, we do not want the position to use the anchor point
46 PositionUsesAnchorPoint = false;
49 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj)
51 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
54 protected override void Dispose(DisposeTypes type)
61 if(type == DisposeTypes.Explicit)
64 //Release your own managed resources here.
65 //You should release all of your own disposable objects here.
68 //Release your own unmanaged resources here.
69 //You should not access any managed member here except static instance.
70 //because the execution order of Finalizes is non-deterministic.
72 if (swigCPtr.Handle != global::System.IntPtr.Zero)
77 NDalicPINVOKE.delete_TableView(swigCPtr);
79 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
86 internal class Property : global::System.IDisposable
88 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
89 protected bool swigCMemOwn;
91 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
93 swigCMemOwn = cMemoryOwn;
94 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
97 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
99 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
102 //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
104 //A Flag to check who called Dispose(). (By User or DisposeQueue)
105 private bool isDisposeQueued = false;
106 //A Flat to check if it is already disposed.
107 protected bool disposed = false;
113 isDisposeQueued = true;
114 DisposeQueue.Instance.Add(this);
118 public void Dispose()
120 //Throw excpetion if Dispose() is called in separate thread.
121 if (!Window.IsInstalled())
123 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
128 Dispose(DisposeTypes.Implicit);
132 Dispose(DisposeTypes.Explicit);
133 System.GC.SuppressFinalize(this);
137 protected virtual void Dispose(DisposeTypes type)
144 if(type == DisposeTypes.Explicit)
147 //Release your own managed resources here.
148 //You should release all of your own disposable objects here.
151 //Release your own unmanaged resources here.
152 //You should not access any managed member here except static instance.
153 //because the execution order of Finalizes is non-deterministic.
155 if (swigCPtr.Handle != global::System.IntPtr.Zero)
160 NDalicPINVOKE.delete_TableView_Property(swigCPtr);
162 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
167 public Property() : this(NDalicPINVOKE.new_TableView_Property(), true)
169 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
172 internal static readonly int ROWS = NDalicPINVOKE.TableView_Property_ROWS_get();
173 internal static readonly int COLUMNS = NDalicPINVOKE.TableView_Property_COLUMNS_get();
174 internal static readonly int CELL_PADDING = NDalicPINVOKE.TableView_Property_CELL_PADDING_get();
175 internal static readonly int LAYOUT_ROWS = NDalicPINVOKE.TableView_Property_LAYOUT_ROWS_get();
176 internal static readonly int LAYOUT_COLUMNS = NDalicPINVOKE.TableView_Property_LAYOUT_COLUMNS_get();
180 internal class ChildProperty : global::System.IDisposable
182 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
183 protected bool swigCMemOwn;
185 internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn)
187 swigCMemOwn = cMemoryOwn;
188 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
191 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ChildProperty obj)
193 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
196 //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
198 //A Flag to check who called Dispose(). (By User or DisposeQueue)
199 private bool isDisposeQueued = false;
200 //A Flat to check if it is already disposed.
201 protected bool disposed = false;
207 isDisposeQueued = true;
208 DisposeQueue.Instance.Add(this);
212 public void Dispose()
214 //Throw excpetion if Dispose() is called in separate thread.
215 if (!Window.IsInstalled())
217 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
222 Dispose(DisposeTypes.Implicit);
226 Dispose(DisposeTypes.Explicit);
227 System.GC.SuppressFinalize(this);
231 protected virtual void Dispose(DisposeTypes type)
238 if(type == DisposeTypes.Explicit)
241 //Release your own managed resources here.
242 //You should release all of your own disposable objects here.
245 //Release your own unmanaged resources here.
246 //You should not access any managed member here except static instance.
247 //because the execution order of Finalizes is non-deterministic.
249 if (swigCPtr.Handle != global::System.IntPtr.Zero)
254 NDalicPINVOKE.delete_TableView_ChildProperty(swigCPtr);
256 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
261 public ChildProperty() : this(NDalicPINVOKE.new_TableView_ChildProperty(), true)
263 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
266 internal static readonly int CELL_INDEX = NDalicPINVOKE.TableView_ChildProperty_CELL_INDEX_get();
267 internal static readonly int ROW_SPAN = NDalicPINVOKE.TableView_ChildProperty_ROW_SPAN_get();
268 internal static readonly int COLUMN_SPAN = NDalicPINVOKE.TableView_ChildProperty_COLUMN_SPAN_get();
269 internal static readonly int CELL_HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_HORIZONTAL_ALIGNMENT_get();
270 internal static readonly int CELL_VERTICAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_VERTICAL_ALIGNMENT_get();
275 /// Class to specify layout position for child view.
277 public class CellPosition : global::System.IDisposable
279 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
280 protected bool swigCMemOwn;
282 internal CellPosition(global::System.IntPtr cPtr, bool cMemoryOwn)
284 swigCMemOwn = cMemoryOwn;
285 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
288 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CellPosition obj)
290 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
293 //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
295 //A Flag to check who called Dispose(). (By User or DisposeQueue)
296 private bool isDisposeQueued = false;
297 //A Flat to check if it is already disposed.
298 protected bool disposed = false;
304 isDisposeQueued = true;
305 DisposeQueue.Instance.Add(this);
309 public void Dispose()
311 //Throw excpetion if Dispose() is called in separate thread.
312 if (!Window.IsInstalled())
314 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
319 Dispose(DisposeTypes.Implicit);
323 Dispose(DisposeTypes.Explicit);
324 System.GC.SuppressFinalize(this);
328 protected virtual void Dispose(DisposeTypes type)
335 if(type == DisposeTypes.Explicit)
338 //Release your own managed resources here.
339 //You should release all of your own disposable objects here.
342 //Release your own unmanaged resources here.
343 //You should not access any managed member here except static instance.
344 //because the execution order of Finalizes is non-deterministic.
346 if (swigCPtr.Handle != global::System.IntPtr.Zero)
351 NDalicPINVOKE.delete_TableView_CellPosition(swigCPtr);
353 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
361 /// <param name="rowIndex">The row index initialized</param>
362 /// <param name="columnIndex">The column index initialized</param>
363 /// <param name="rowSpan">The row span initialized</param>
364 /// <param name="columnSpan">The column span initialized</param>
365 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan, uint columnSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_0(rowIndex, columnIndex, rowSpan, columnSpan), true)
367 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
371 /// Constructor to initialise values to defaults for convenience.
373 /// <param name="rowIndex">The row index initialized</param>
374 /// <param name="columnIndex">The column index initialized</param>
375 /// <param name="rowSpan">The row span initialized</param>
376 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_1(rowIndex, columnIndex, rowSpan), true)
378 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
382 /// Constructor to initialise values to defaults for convenience.
384 /// <param name="rowIndex">The row index initialized</param>
385 /// <param name="columnIndex">The column index initialized</param>
386 public CellPosition(uint rowIndex, uint columnIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_2(rowIndex, columnIndex), true)
388 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
392 /// Constructor to initialise values to defaults for convenience.
394 /// <param name="rowIndex">The row index initialized</param>
395 public CellPosition(uint rowIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_3(rowIndex), true)
397 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
401 /// Default constructor
403 public CellPosition() : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_4(), true)
405 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
415 NDalicPINVOKE.TableView_CellPosition_rowIndex_set(swigCPtr, value);
416 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
420 uint ret = NDalicPINVOKE.TableView_CellPosition_rowIndex_get(swigCPtr);
421 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
429 public uint columnIndex
433 NDalicPINVOKE.TableView_CellPosition_columnIndex_set(swigCPtr, value);
434 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
438 uint ret = NDalicPINVOKE.TableView_CellPosition_columnIndex_get(swigCPtr);
439 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
451 NDalicPINVOKE.TableView_CellPosition_rowSpan_set(swigCPtr, value);
452 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
456 uint ret = NDalicPINVOKE.TableView_CellPosition_rowSpan_get(swigCPtr);
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
465 public uint columnSpan
469 NDalicPINVOKE.TableView_CellPosition_columnSpan_set(swigCPtr, value);
470 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
474 uint ret = NDalicPINVOKE.TableView_CellPosition_columnSpan_get(swigCPtr);
475 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
483 /// Creates the TableView view.
485 /// <param name="initialRows">initialRows for the table</param>
486 /// <param name="initialColumns">initialColumns for the table</param>
487 public TableView(uint initialRows, uint initialColumns) : this(NDalicPINVOKE.TableView_New(initialRows, initialColumns), true)
489 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494 /// Copy constructor. Creates another handle that points to the same real object.
496 /// <param name="handle">Handle to copy from</param>
497 public TableView(TableView handle) : this(NDalicPINVOKE.new_TableView__SWIG_1(TableView.getCPtr(handle)), true)
499 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
503 /// Changes this handle to point to another real object.
505 /// <param name="handle">Handle to an object</param>
506 /// <returns>A reference to this</returns>
507 public TableView Assign(TableView handle)
509 TableView ret = new TableView(NDalicPINVOKE.TableView_Assign(swigCPtr, TableView.getCPtr(handle)), false);
510 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
515 /// Downcasts a handle to TableView handle.<br>
516 /// If handle points to a TableView, the downcast produces valid handle.<br>
517 /// If not, the returned handle is left uninitialized.<br>
519 /// <param name="handle">Handle to an object</param>
520 /// <returns>Handle to a TableView or an uninitialized handle</returns>
521 public new static TableView DownCast(BaseHandle handle)
523 TableView ret = new TableView(NDalicPINVOKE.TableView_DownCast(BaseHandle.getCPtr(handle)), true);
524 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
529 /// Adds a child to the table.<br>
530 /// If the row or column index is outside the table, the table gets resized bigger.<br>
532 /// <param name="child">The child to add</param>
533 /// <param name="position">The position for the child</param>
534 /// <returns>Tue if the addition succeeded and false if the cell is already occupied</returns>
535 public bool AddChild(View child, TableView.CellPosition position)
537 bool ret = NDalicPINVOKE.TableView_AddChild(swigCPtr, View.getCPtr(child), TableView.CellPosition.getCPtr(position));
538 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
543 /// Returns a child from the given layout position.
545 /// <param name="position">The position in the table</param>
546 /// <returns>Child that was in the cell or an uninitialized handle</returns>
547 public View GetChildAt(TableView.CellPosition position)
549 View ret = new View(NDalicPINVOKE.TableView_GetChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
550 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
555 /// Removes a child from the given layout position.
557 /// <param name="position">The position for the child to remove</param>
558 /// <returns>Child that was removed or an uninitialized handle</returns>
559 public View RemoveChildAt(TableView.CellPosition position)
561 View ret = new View(NDalicPINVOKE.TableView_RemoveChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
562 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
567 /// Finds the child's layout position.
569 /// <param name="child">The child to search for</param>
570 /// <param name="position">The position for the child</param>
571 /// <returns>true if the child was included in this TableView</returns>
572 public bool FindChildPosition(View child, TableView.CellPosition position)
574 bool ret = NDalicPINVOKE.TableView_FindChildPosition(swigCPtr, View.getCPtr(child), TableView.CellPosition.getCPtr(position));
575 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580 /// Inserts a new row to given index.
582 /// <param name="rowIndex">The rowIndex of the new row</param>
583 public void InsertRow(uint rowIndex)
585 NDalicPINVOKE.TableView_InsertRow(swigCPtr, rowIndex);
586 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
590 /// Deletes a row from the given index.<br>
591 /// Removed elements are deleted.<br>
593 /// <param name="rowIndex">The rowIndex of the row to delete</param>
594 public void DeleteRow(uint rowIndex)
596 NDalicPINVOKE.TableView_DeleteRow__SWIG_0(swigCPtr, rowIndex);
597 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
601 /// Inserts a new column to the given index.
603 /// <param name="columnIndex">The columnIndex of the new column</param>
604 public void InsertColumn(uint columnIndex)
606 NDalicPINVOKE.TableView_InsertColumn(swigCPtr, columnIndex);
607 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
611 /// Deletes a column from the given index.<br>
612 /// Removed elements are deleted.<br>
614 /// <param name="columnIndex">The columnIndex of the column to delete</param>
615 public void DeleteColumn(uint columnIndex)
617 NDalicPINVOKE.TableView_DeleteColumn__SWIG_0(swigCPtr, columnIndex);
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
622 /// Resizes the TableView.
624 /// <param name="rows">The rows for the table</param>
625 /// <param name="columns">The columns for the table</param>
626 public void Resize(uint rows, uint columns)
628 NDalicPINVOKE.TableView_Resize__SWIG_0(swigCPtr, rows, columns);
629 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
633 /// Sets horizontal and vertical padding between cells.
635 /// <param name="padding">Width and height</param>
636 public void SetCellPadding(Size2D padding)
638 NDalicPINVOKE.TableView_SetCellPadding(swigCPtr, Size2D.getCPtr(padding));
639 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
643 /// Gets the current padding as width and height.
645 /// <returns>The current padding as width and height</returns>
646 public Vector2 GetCellPadding()
648 Vector2 ret = new Vector2(NDalicPINVOKE.TableView_GetCellPadding(swigCPtr), true);
649 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 /// Specifies this row as fitting its height to its children.
656 /// <param name="rowIndex">The row to set</param>
657 public void SetFitHeight(uint rowIndex)
659 NDalicPINVOKE.TableView_SetFitHeight(swigCPtr, rowIndex);
660 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
664 /// Checks if the row is a fit row.
666 /// <param name="rowIndex">The row to check</param>
667 /// <returns>true if the row is fit</returns>
668 public bool IsFitHeight(uint rowIndex)
670 bool ret = NDalicPINVOKE.TableView_IsFitHeight(swigCPtr, rowIndex);
671 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
676 /// Specifies this column as fitting its width to its children.
678 /// <param name="columnIndex">The column to set</param>
679 public void SetFitWidth(uint columnIndex)
681 NDalicPINVOKE.TableView_SetFitWidth(swigCPtr, columnIndex);
682 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
686 /// Checks if the column is a fit column.
688 /// <param name="columnIndex">The column to check</param>
689 /// <returns>true if the column is fit</returns>
690 public bool IsFitWidth(uint columnIndex)
692 bool ret = NDalicPINVOKE.TableView_IsFitWidth(swigCPtr, columnIndex);
693 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
698 /// Sets a row to have fixed height.<br>
699 /// Setting a fixed height of 0 has no effect.<br>
701 /// <param name="rowIndex">The rowIndex for row with fixed height</param>
702 /// <param name="height">The height in world coordinate units</param>
703 public void SetFixedHeight(uint rowIndex, float height)
705 NDalicPINVOKE.TableView_SetFixedHeight(swigCPtr, rowIndex, height);
706 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
710 /// Gets a row's fixed height.
712 /// <param name="rowIndex">The row index with fixed height</param>
713 /// <returns>height The height in world coordinate units</returns>
714 public float GetFixedHeight(uint rowIndex)
716 float ret = NDalicPINVOKE.TableView_GetFixedHeight(swigCPtr, rowIndex);
717 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
722 /// Sets a row to have relative height. Relative height means percentage of
723 /// the remainder of the table height after subtracting Padding and Fixed height rows.<br>
724 /// Setting a relative height of 0 has no effect.<br>
726 /// <param name="rowIndex">The rowIndex for row with relative height</param>
727 /// <param name="heightPercentage">The height percentage between 0.0f and 1.0f</param>
728 public void SetRelativeHeight(uint rowIndex, float heightPercentage)
730 NDalicPINVOKE.TableView_SetRelativeHeight(swigCPtr, rowIndex, heightPercentage);
731 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
735 /// Gets a row's relative height.
737 /// <param name="rowIndex">The row index with relative height</param>
738 /// <returns>Height in percentage units, between 0.0f and 1.0f</returns>
739 public float GetRelativeHeight(uint rowIndex)
741 float ret = NDalicPINVOKE.TableView_GetRelativeHeight(swigCPtr, rowIndex);
742 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
747 /// Sets a column to have fixed width.<br>
748 /// Setting a fixed width of 0 has no effect.<br>
750 /// <param name="columnIndex">The columnIndex for column with fixed width</param>
751 /// <param name="width">The width in world coordinate units</param>
752 public void SetFixedWidth(uint columnIndex, float width)
754 NDalicPINVOKE.TableView_SetFixedWidth(swigCPtr, columnIndex, width);
755 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
759 /// Gets a column's fixed width.
761 /// <param name="columnIndex">The column index with fixed width</param>
762 /// <returns>Width in world coordinate units</returns>
763 public float GetFixedWidth(uint columnIndex)
765 float ret = NDalicPINVOKE.TableView_GetFixedWidth(swigCPtr, columnIndex);
766 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
771 /// Sets a column to have relative width. Relative width means percentage of
772 /// the remainder of table width after subtracting Padding and Fixed width columns.<br>
773 /// Setting a relative width of 0 has no effect.<br>
775 /// <param name="columnIndex">The columnIndex for column with fixed width</param>
776 /// <param name="widthPercentage">The widthPercentage between 0.0f and 1.0f</param>
777 public void SetRelativeWidth(uint columnIndex, float widthPercentage)
779 NDalicPINVOKE.TableView_SetRelativeWidth(swigCPtr, columnIndex, widthPercentage);
780 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
784 /// Gets a column's relative width.
786 /// <param name="columnIndex">The column index with relative width</param>
787 /// <returns>Width in percentage units, between 0.0f and 1.0f</returns>
788 public float GetRelativeWidth(uint columnIndex)
790 float ret = NDalicPINVOKE.TableView_GetRelativeWidth(swigCPtr, columnIndex);
791 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
796 /// Gets the amount of rows in the table.
798 /// <returns>The amount of rows in the table</returns>
799 public uint GetRows()
801 uint ret = NDalicPINVOKE.TableView_GetRows(swigCPtr);
802 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
807 /// Gets the amount of columns in the table.
809 /// <returns>The amount of columns in the table</returns>
810 public uint GetColumns()
812 uint ret = NDalicPINVOKE.TableView_GetColumns(swigCPtr);
813 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
818 /// Sets the alignment on a cell.<br>
819 /// Cells without calling this function have the default values of LEFT and TOP respectively.<br>
821 /// <param name="position">The cell to set alignment on</param>
822 /// <param name="horizontal">The horizontal alignment</param>
823 /// <param name="vertical">The vertical alignment</param>
824 public void SetCellAlignment(TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical)
826 NDalicPINVOKE.TableView_SetCellAlignment(swigCPtr, TableView.CellPosition.getCPtr(position), (int)horizontal, (int)vertical);
827 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
830 internal enum PropertyRange
832 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
833 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000,
834 CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
835 CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX + 1000
839 /// Enumeration for describing how the size of a row / column has been set.
841 public enum LayoutPolicy
850 /// the amount of rows in the table.
857 GetProperty(TableView.Property.ROWS).Get(ref temp);
862 SetProperty(TableView.Property.ROWS, new Tizen.NUI.PropertyValue(value));
866 /// the amount of columns in the table.
873 GetProperty(TableView.Property.COLUMNS).Get(ref temp);
878 SetProperty(TableView.Property.COLUMNS, new Tizen.NUI.PropertyValue(value));
882 /// padding between cells.
884 public Vector2 CellPadding
888 Vector2 temp = new Vector2(0.0f, 0.0f);
889 GetProperty(TableView.Property.CELL_PADDING).Get(temp);
894 SetProperty(TableView.Property.CELL_PADDING, new Tizen.NUI.PropertyValue(value));
899 /// The number of layout rows
901 public PropertyMap LayoutRows
905 PropertyMap temp = new PropertyMap();
906 GetProperty(TableView.Property.LAYOUT_ROWS).Get(temp);
911 SetProperty(TableView.Property.LAYOUT_ROWS, new Tizen.NUI.PropertyValue(value));
916 /// The number of layout columns
918 public PropertyMap LayoutColumns
922 PropertyMap temp = new PropertyMap();
923 GetProperty(TableView.Property.LAYOUT_COLUMNS).Get(temp);
928 SetProperty(TableView.Property.LAYOUT_COLUMNS, new Tizen.NUI.PropertyValue(value));