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();
600 internal void DeleteRow(uint rowIndex, ViewContainer removed)
602 NDalicPINVOKE.TableView_DeleteRow__SWIG_1(swigCPtr, rowIndex, ViewContainer.getCPtr(removed));
603 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
607 /// Inserts a new column to the given index.
609 /// <param name="columnIndex">The columnIndex of the new column</param>
610 public void InsertColumn(uint columnIndex)
612 NDalicPINVOKE.TableView_InsertColumn(swigCPtr, columnIndex);
613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
617 /// Deletes a column from the given index.<br>
618 /// Removed elements are deleted.<br>
620 /// <param name="columnIndex">The columnIndex of the column to delete</param>
621 public void DeleteColumn(uint columnIndex)
623 NDalicPINVOKE.TableView_DeleteColumn__SWIG_0(swigCPtr, columnIndex);
624 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
627 internal void DeleteColumn(uint columnIndex, ViewContainer removed)
629 NDalicPINVOKE.TableView_DeleteColumn__SWIG_1(swigCPtr, columnIndex, ViewContainer.getCPtr(removed));
630 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
634 /// Resizes the TableView.
636 /// <param name="rows">The rows for the table</param>
637 /// <param name="columns">The columns for the table</param>
638 public void Resize(uint rows, uint columns)
640 NDalicPINVOKE.TableView_Resize__SWIG_0(swigCPtr, rows, columns);
641 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
644 internal void Resize(uint rows, uint columns, ViewContainer removed)
646 NDalicPINVOKE.TableView_Resize__SWIG_1(swigCPtr, rows, columns, ViewContainer.getCPtr(removed));
647 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
651 /// Sets horizontal and vertical padding between cells.
653 /// <param name="padding">Width and height</param>
654 public void SetCellPadding(Size2D padding)
656 NDalicPINVOKE.TableView_SetCellPadding(swigCPtr, Size2D.getCPtr(padding));
657 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
661 /// Gets the current padding as width and height.
663 /// <returns>The current padding as width and height</returns>
664 public Vector2 GetCellPadding()
666 Vector2 ret = new Vector2(NDalicPINVOKE.TableView_GetCellPadding(swigCPtr), true);
667 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
672 /// Specifies this row as fitting its height to its children.
674 /// <param name="rowIndex">The row to set</param>
675 public void SetFitHeight(uint rowIndex)
677 NDalicPINVOKE.TableView_SetFitHeight(swigCPtr, rowIndex);
678 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
682 /// Checks if the row is a fit row.
684 /// <param name="rowIndex">The row to check</param>
685 /// <returns>true if the row is fit</returns>
686 public bool IsFitHeight(uint rowIndex)
688 bool ret = NDalicPINVOKE.TableView_IsFitHeight(swigCPtr, rowIndex);
689 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
694 /// Specifies this column as fitting its width to its children.
696 /// <param name="columnIndex">The column to set</param>
697 public void SetFitWidth(uint columnIndex)
699 NDalicPINVOKE.TableView_SetFitWidth(swigCPtr, columnIndex);
700 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
704 /// Checks if the column is a fit column.
706 /// <param name="columnIndex">The column to check</param>
707 /// <returns>true if the column is fit</returns>
708 public bool IsFitWidth(uint columnIndex)
710 bool ret = NDalicPINVOKE.TableView_IsFitWidth(swigCPtr, columnIndex);
711 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
716 /// Sets a row to have fixed height.<br>
717 /// Setting a fixed height of 0 has no effect.<br>
719 /// <param name="rowIndex">The rowIndex for row with fixed height</param>
720 /// <param name="height">The height in world coordinate units</param>
721 public void SetFixedHeight(uint rowIndex, float height)
723 NDalicPINVOKE.TableView_SetFixedHeight(swigCPtr, rowIndex, height);
724 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
728 /// Gets a row's fixed height.
730 /// <param name="rowIndex">The row index with fixed height</param>
731 /// <returns>height The height in world coordinate units</returns>
732 public float GetFixedHeight(uint rowIndex)
734 float ret = NDalicPINVOKE.TableView_GetFixedHeight(swigCPtr, rowIndex);
735 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
740 /// Sets a row to have relative height. Relative height means percentage of
741 /// the remainder of the table height after subtracting Padding and Fixed height rows.<br>
742 /// Setting a relative height of 0 has no effect.<br>
744 /// <param name="rowIndex">The rowIndex for row with relative height</param>
745 /// <param name="heightPercentage">The height percentage between 0.0f and 1.0f</param>
746 public void SetRelativeHeight(uint rowIndex, float heightPercentage)
748 NDalicPINVOKE.TableView_SetRelativeHeight(swigCPtr, rowIndex, heightPercentage);
749 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
753 /// Gets a row's relative height.
755 /// <param name="rowIndex">The row index with relative height</param>
756 /// <returns>Height in percentage units, between 0.0f and 1.0f</returns>
757 public float GetRelativeHeight(uint rowIndex)
759 float ret = NDalicPINVOKE.TableView_GetRelativeHeight(swigCPtr, rowIndex);
760 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
765 /// Sets a column to have fixed width.<br>
766 /// Setting a fixed width of 0 has no effect.<br>
768 /// <param name="columnIndex">The columnIndex for column with fixed width</param>
769 /// <param name="width">The width in world coordinate units</param>
770 public void SetFixedWidth(uint columnIndex, float width)
772 NDalicPINVOKE.TableView_SetFixedWidth(swigCPtr, columnIndex, width);
773 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
777 /// Gets a column's fixed width.
779 /// <param name="columnIndex">The column index with fixed width</param>
780 /// <returns>Width in world coordinate units</returns>
781 public float GetFixedWidth(uint columnIndex)
783 float ret = NDalicPINVOKE.TableView_GetFixedWidth(swigCPtr, columnIndex);
784 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
789 /// Sets a column to have relative width. Relative width means percentage of
790 /// the remainder of table width after subtracting Padding and Fixed width columns.<br>
791 /// Setting a relative width of 0 has no effect.<br>
793 /// <param name="columnIndex">The columnIndex for column with fixed width</param>
794 /// <param name="widthPercentage">The widthPercentage between 0.0f and 1.0f</param>
795 public void SetRelativeWidth(uint columnIndex, float widthPercentage)
797 NDalicPINVOKE.TableView_SetRelativeWidth(swigCPtr, columnIndex, widthPercentage);
798 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
802 /// Gets a column's relative width.
804 /// <param name="columnIndex">The column index with relative width</param>
805 /// <returns>Width in percentage units, between 0.0f and 1.0f</returns>
806 public float GetRelativeWidth(uint columnIndex)
808 float ret = NDalicPINVOKE.TableView_GetRelativeWidth(swigCPtr, columnIndex);
809 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
814 /// Gets the amount of rows in the table.
816 /// <returns>The amount of rows in the table</returns>
817 public uint GetRows()
819 uint ret = NDalicPINVOKE.TableView_GetRows(swigCPtr);
820 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
825 /// Gets the amount of columns in the table.
827 /// <returns>The amount of columns in the table</returns>
828 public uint GetColumns()
830 uint ret = NDalicPINVOKE.TableView_GetColumns(swigCPtr);
831 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
836 /// Sets the alignment on a cell.<br>
837 /// Cells without calling this function have the default values of LEFT and TOP respectively.<br>
839 /// <param name="position">The cell to set alignment on</param>
840 /// <param name="horizontal">The horizontal alignment</param>
841 /// <param name="vertical">The vertical alignment</param>
842 public void SetCellAlignment(TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical)
844 NDalicPINVOKE.TableView_SetCellAlignment(swigCPtr, TableView.CellPosition.getCPtr(position), (int)horizontal, (int)vertical);
845 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
848 internal enum PropertyRange
850 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
851 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000,
852 CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
853 CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX + 1000
857 /// Enumeration for describing how the size of a row / column has been set.
859 public enum LayoutPolicy
868 /// the amount of rows in the table.
875 GetProperty(TableView.Property.ROWS).Get(ref temp);
880 SetProperty(TableView.Property.ROWS, new Tizen.NUI.PropertyValue(value));
884 /// the amount of columns in the table.
891 GetProperty(TableView.Property.COLUMNS).Get(ref temp);
896 SetProperty(TableView.Property.COLUMNS, new Tizen.NUI.PropertyValue(value));
900 /// padding between cells.
902 public Vector2 CellPadding
906 Vector2 temp = new Vector2(0.0f, 0.0f);
907 GetProperty(TableView.Property.CELL_PADDING).Get(temp);
912 SetProperty(TableView.Property.CELL_PADDING, new Tizen.NUI.PropertyValue(value));
917 /// The number of layout rows
919 public PropertyMap LayoutRows
923 PropertyMap temp = new PropertyMap();
924 GetProperty(TableView.Property.LAYOUT_ROWS).Get(temp);
929 SetProperty(TableView.Property.LAYOUT_ROWS, new Tizen.NUI.PropertyValue(value));
934 /// The number of layout columns
936 public PropertyMap LayoutColumns
940 PropertyMap temp = new PropertyMap();
941 GetProperty(TableView.Property.LAYOUT_COLUMNS).Get(temp);
946 SetProperty(TableView.Property.LAYOUT_COLUMNS, new Tizen.NUI.PropertyValue(value));