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);
47 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj)
49 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
52 public override void Dispose()
54 if (!Window.IsInstalled())
56 DisposeQueue.Instance.Add(this);
62 if (swigCPtr.Handle != global::System.IntPtr.Zero)
67 NDalicPINVOKE.delete_TableView(swigCPtr);
69 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
71 global::System.GC.SuppressFinalize(this);
77 internal class Property : global::System.IDisposable
79 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
80 protected bool swigCMemOwn;
82 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
84 swigCMemOwn = cMemoryOwn;
85 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
88 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
90 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
95 DisposeQueue.Instance.Add(this);
98 public virtual void Dispose()
100 if (!Window.IsInstalled()) {
101 DisposeQueue.Instance.Add(this);
107 if (swigCPtr.Handle != global::System.IntPtr.Zero)
112 NDalicPINVOKE.delete_TableView_Property(swigCPtr);
114 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
116 global::System.GC.SuppressFinalize(this);
120 public Property() : this(NDalicPINVOKE.new_TableView_Property(), true)
122 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
125 internal static readonly int ROWS = NDalicPINVOKE.TableView_Property_ROWS_get();
126 internal static readonly int COLUMNS = NDalicPINVOKE.TableView_Property_COLUMNS_get();
127 internal static readonly int CELL_PADDING = NDalicPINVOKE.TableView_Property_CELL_PADDING_get();
128 internal static readonly int LAYOUT_ROWS = NDalicPINVOKE.TableView_Property_LAYOUT_ROWS_get();
129 internal static readonly int LAYOUT_COLUMNS = NDalicPINVOKE.TableView_Property_LAYOUT_COLUMNS_get();
133 internal class ChildProperty : global::System.IDisposable
135 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
136 protected bool swigCMemOwn;
138 internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn)
140 swigCMemOwn = cMemoryOwn;
141 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
144 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ChildProperty obj)
146 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
151 DisposeQueue.Instance.Add(this);
154 public virtual void Dispose()
156 if (!Window.IsInstalled()) {
157 DisposeQueue.Instance.Add(this);
163 if (swigCPtr.Handle != global::System.IntPtr.Zero)
168 NDalicPINVOKE.delete_TableView_ChildProperty(swigCPtr);
170 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
172 global::System.GC.SuppressFinalize(this);
176 public ChildProperty() : this(NDalicPINVOKE.new_TableView_ChildProperty(), true)
178 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
181 internal static readonly int CELL_INDEX = NDalicPINVOKE.TableView_ChildProperty_CELL_INDEX_get();
182 internal static readonly int ROW_SPAN = NDalicPINVOKE.TableView_ChildProperty_ROW_SPAN_get();
183 internal static readonly int COLUMN_SPAN = NDalicPINVOKE.TableView_ChildProperty_COLUMN_SPAN_get();
184 internal static readonly int CELL_HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_HORIZONTAL_ALIGNMENT_get();
185 internal static readonly int CELL_VERTICAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_VERTICAL_ALIGNMENT_get();
190 /// Class to specify layout position for child view.
192 public class CellPosition : global::System.IDisposable
194 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
195 protected bool swigCMemOwn;
197 internal CellPosition(global::System.IntPtr cPtr, bool cMemoryOwn)
199 swigCMemOwn = cMemoryOwn;
200 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
203 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CellPosition obj)
205 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
210 DisposeQueue.Instance.Add(this);
213 public virtual void Dispose()
215 if (!Window.IsInstalled()) {
216 DisposeQueue.Instance.Add(this);
222 if (swigCPtr.Handle != global::System.IntPtr.Zero)
227 NDalicPINVOKE.delete_TableView_CellPosition(swigCPtr);
229 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
231 global::System.GC.SuppressFinalize(this);
238 /// <param name="rowIndex">The row index initialized</param>
239 /// <param name="columnIndex">The column index initialized</param>
240 /// <param name="rowSpan">The row span initialized</param>
241 /// <param name="columnSpan">The column span initialized</param>
242 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan, uint columnSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_0(rowIndex, columnIndex, rowSpan, columnSpan), true)
244 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
248 /// Constructor to initialise values to defaults for convenience.
250 /// <param name="rowIndex">The row index initialized</param>
251 /// <param name="columnIndex">The column index initialized</param>
252 /// <param name="rowSpan">The row span initialized</param>
253 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_1(rowIndex, columnIndex, rowSpan), true)
255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
259 /// Constructor to initialise values to defaults for convenience.
261 /// <param name="rowIndex">The row index initialized</param>
262 /// <param name="columnIndex">The column index initialized</param>
263 public CellPosition(uint rowIndex, uint columnIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_2(rowIndex, columnIndex), true)
265 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
269 /// Constructor to initialise values to defaults for convenience.
271 /// <param name="rowIndex">The row index initialized</param>
272 public CellPosition(uint rowIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_3(rowIndex), true)
274 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
278 /// Default constructor
280 public CellPosition() : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_4(), true)
282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292 NDalicPINVOKE.TableView_CellPosition_rowIndex_set(swigCPtr, value);
293 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
297 uint ret = NDalicPINVOKE.TableView_CellPosition_rowIndex_get(swigCPtr);
298 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
306 public uint columnIndex
310 NDalicPINVOKE.TableView_CellPosition_columnIndex_set(swigCPtr, value);
311 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
315 uint ret = NDalicPINVOKE.TableView_CellPosition_columnIndex_get(swigCPtr);
316 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
328 NDalicPINVOKE.TableView_CellPosition_rowSpan_set(swigCPtr, value);
329 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
333 uint ret = NDalicPINVOKE.TableView_CellPosition_rowSpan_get(swigCPtr);
334 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
342 public uint columnSpan
346 NDalicPINVOKE.TableView_CellPosition_columnSpan_set(swigCPtr, value);
347 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
351 uint ret = NDalicPINVOKE.TableView_CellPosition_columnSpan_get(swigCPtr);
352 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 /// Creates the TableView view.
362 /// <param name="initialRows">initialRows for the table</param>
363 /// <param name="initialColumns">initialColumns for the table</param>
364 public TableView(uint initialRows, uint initialColumns) : this(NDalicPINVOKE.TableView_New(initialRows, initialColumns), true)
366 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
371 /// Copy constructor. Creates another handle that points to the same real object.
373 /// <param name="handle">Handle to copy from</param>
374 public TableView(TableView handle) : this(NDalicPINVOKE.new_TableView__SWIG_1(TableView.getCPtr(handle)), true)
376 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
380 /// Changes this handle to point to another real object.
382 /// <param name="handle">Handle to an object</param>
383 /// <returns>A reference to this</returns>
384 public TableView Assign(TableView handle)
386 TableView ret = new TableView(NDalicPINVOKE.TableView_Assign(swigCPtr, TableView.getCPtr(handle)), false);
387 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
392 /// Downcasts a handle to TableView handle.<br>
393 /// If handle points to a TableView, the downcast produces valid handle.<br>
394 /// If not, the returned handle is left uninitialized.<br>
396 /// <param name="handle">Handle to an object</param>
397 /// <returns>Handle to a TableView or an uninitialized handle</returns>
398 public new static TableView DownCast(BaseHandle handle)
400 TableView ret = new TableView(NDalicPINVOKE.TableView_DownCast(BaseHandle.getCPtr(handle)), true);
401 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
406 /// Adds a child to the table.<br>
407 /// If the row or column index is outside the table, the table gets resized bigger.<br>
409 /// <param name="child">The child to add</param>
410 /// <param name="position">The position for the child</param>
411 /// <returns>Tue if the addition succeeded and false if the cell is already occupied</returns>
412 public bool AddChild(View child, TableView.CellPosition position)
414 bool ret = NDalicPINVOKE.TableView_AddChild(swigCPtr, View.getCPtr(child), TableView.CellPosition.getCPtr(position));
415 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
420 /// Returns a child from the given layout position.
422 /// <param name="position">The position in the table</param>
423 /// <returns>Child that was in the cell or an uninitialized handle</returns>
424 public View GetChildAt(TableView.CellPosition position)
426 View ret = new View(NDalicPINVOKE.TableView_GetChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
427 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
432 /// Removes a child from the given layout position.
434 /// <param name="position">The position for the child to remove</param>
435 /// <returns>Child that was removed or an uninitialized handle</returns>
436 public View RemoveChildAt(TableView.CellPosition position)
438 View ret = new View(NDalicPINVOKE.TableView_RemoveChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
439 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444 /// Finds the child's layout position.
446 /// <param name="child">The child to search for</param>
447 /// <param name="position">The position for the child</param>
448 /// <returns>true if the child was included in this TableView</returns>
449 public bool FindChildPosition(View child, TableView.CellPosition position)
451 bool ret = NDalicPINVOKE.TableView_FindChildPosition(swigCPtr, View.getCPtr(child), TableView.CellPosition.getCPtr(position));
452 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457 /// Inserts a new row to given index.
459 /// <param name="rowIndex">The rowIndex of the new row</param>
460 public void InsertRow(uint rowIndex)
462 NDalicPINVOKE.TableView_InsertRow(swigCPtr, rowIndex);
463 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
467 /// Deletes a row from the given index.<br>
468 /// Removed elements are deleted.<br>
470 /// <param name="rowIndex">The rowIndex of the row to delete</param>
471 public void DeleteRow(uint rowIndex)
473 NDalicPINVOKE.TableView_DeleteRow__SWIG_0(swigCPtr, rowIndex);
474 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477 internal void DeleteRow(uint rowIndex, ViewContainer removed)
479 NDalicPINVOKE.TableView_DeleteRow__SWIG_1(swigCPtr, rowIndex, ViewContainer.getCPtr(removed));
480 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
484 /// Inserts a new column to the given index.
486 /// <param name="columnIndex">The columnIndex of the new column</param>
487 public void InsertColumn(uint columnIndex)
489 NDalicPINVOKE.TableView_InsertColumn(swigCPtr, columnIndex);
490 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494 /// Deletes a column from the given index.<br>
495 /// Removed elements are deleted.<br>
497 /// <param name="columnIndex">The columnIndex of the column to delete</param>
498 public void DeleteColumn(uint columnIndex)
500 NDalicPINVOKE.TableView_DeleteColumn__SWIG_0(swigCPtr, columnIndex);
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
504 internal void DeleteColumn(uint columnIndex, ViewContainer removed)
506 NDalicPINVOKE.TableView_DeleteColumn__SWIG_1(swigCPtr, columnIndex, ViewContainer.getCPtr(removed));
507 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
511 /// Resizes the TableView.
513 /// <param name="rows">The rows for the table</param>
514 /// <param name="columns">The columns for the table</param>
515 public void Resize(uint rows, uint columns)
517 NDalicPINVOKE.TableView_Resize__SWIG_0(swigCPtr, rows, columns);
518 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
521 internal void Resize(uint rows, uint columns, ViewContainer removed)
523 NDalicPINVOKE.TableView_Resize__SWIG_1(swigCPtr, rows, columns, ViewContainer.getCPtr(removed));
524 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
528 /// Sets horizontal and vertical padding between cells.
530 /// <param name="padding">Width and height</param>
531 public void SetCellPadding(Size2D padding)
533 NDalicPINVOKE.TableView_SetCellPadding(swigCPtr, Size2D.getCPtr(padding));
534 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538 /// Gets the current padding as width and height.
540 /// <returns>The current padding as width and height</returns>
541 public Vector2 GetCellPadding()
543 Vector2 ret = new Vector2(NDalicPINVOKE.TableView_GetCellPadding(swigCPtr), true);
544 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
549 /// Specifies this row as fitting its height to its children.
551 /// <param name="rowIndex">The row to set</param>
552 public void SetFitHeight(uint rowIndex)
554 NDalicPINVOKE.TableView_SetFitHeight(swigCPtr, rowIndex);
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
559 /// Checks if the row is a fit row.
561 /// <param name="rowIndex">The row to check</param>
562 /// <returns>true if the row is fit</returns>
563 public bool IsFitHeight(uint rowIndex)
565 bool ret = NDalicPINVOKE.TableView_IsFitHeight(swigCPtr, rowIndex);
566 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
571 /// Specifies this column as fitting its width to its children.
573 /// <param name="columnIndex">The column to set</param>
574 public void SetFitWidth(uint columnIndex)
576 NDalicPINVOKE.TableView_SetFitWidth(swigCPtr, columnIndex);
577 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
581 /// Checks if the column is a fit column.
583 /// <param name="columnIndex">The column to check</param>
584 /// <returns>true if the column is fit</returns>
585 public bool IsFitWidth(uint columnIndex)
587 bool ret = NDalicPINVOKE.TableView_IsFitWidth(swigCPtr, columnIndex);
588 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
593 /// Sets a row to have fixed height.<br>
594 /// Setting a fixed height of 0 has no effect.<br>
596 /// <param name="rowIndex">The rowIndex for row with fixed height</param>
597 /// <param name="height">The height in world coordinate units</param>
598 public void SetFixedHeight(uint rowIndex, float height)
600 NDalicPINVOKE.TableView_SetFixedHeight(swigCPtr, rowIndex, height);
601 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
605 /// Gets a row's fixed height.
607 /// <param name="rowIndex">The row index with fixed height</param>
608 /// <returns>height The height in world coordinate units</returns>
609 public float GetFixedHeight(uint rowIndex)
611 float ret = NDalicPINVOKE.TableView_GetFixedHeight(swigCPtr, rowIndex);
612 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
617 /// Sets a row to have relative height. Relative height means percentage of
618 /// the remainder of the table height after subtracting Padding and Fixed height rows.<br>
619 /// Setting a relative height of 0 has no effect.<br>
621 /// <param name="rowIndex">The rowIndex for row with relative height</param>
622 /// <param name="heightPercentage">The height percentage between 0.0f and 1.0f</param>
623 public void SetRelativeHeight(uint rowIndex, float heightPercentage)
625 NDalicPINVOKE.TableView_SetRelativeHeight(swigCPtr, rowIndex, heightPercentage);
626 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
630 /// Gets a row's relative height.
632 /// <param name="rowIndex">The row index with relative height</param>
633 /// <returns>Height in percentage units, between 0.0f and 1.0f</returns>
634 public float GetRelativeHeight(uint rowIndex)
636 float ret = NDalicPINVOKE.TableView_GetRelativeHeight(swigCPtr, rowIndex);
637 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
642 /// Sets a column to have fixed width.<br>
643 /// Setting a fixed width of 0 has no effect.<br>
645 /// <param name="columnIndex">The columnIndex for column with fixed width</param>
646 /// <param name="width">The width in world coordinate units</param>
647 public void SetFixedWidth(uint columnIndex, float width)
649 NDalicPINVOKE.TableView_SetFixedWidth(swigCPtr, columnIndex, width);
650 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 /// Gets a column's fixed width.
656 /// <param name="columnIndex">The column index with fixed width</param>
657 /// <returns>Width in world coordinate units</returns>
658 public float GetFixedWidth(uint columnIndex)
660 float ret = NDalicPINVOKE.TableView_GetFixedWidth(swigCPtr, columnIndex);
661 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
666 /// Sets a column to have relative width. Relative width means percentage of
667 /// the remainder of table width after subtracting Padding and Fixed width columns.<br>
668 /// Setting a relative width of 0 has no effect.<br>
670 /// <param name="columnIndex">The columnIndex for column with fixed width</param>
671 /// <param name="widthPercentage">The widthPercentage between 0.0f and 1.0f</param>
672 public void SetRelativeWidth(uint columnIndex, float widthPercentage)
674 NDalicPINVOKE.TableView_SetRelativeWidth(swigCPtr, columnIndex, widthPercentage);
675 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
679 /// Gets a column's relative width.
681 /// <param name="columnIndex">The column index with relative width</param>
682 /// <returns>Width in percentage units, between 0.0f and 1.0f</returns>
683 public float GetRelativeWidth(uint columnIndex)
685 float ret = NDalicPINVOKE.TableView_GetRelativeWidth(swigCPtr, columnIndex);
686 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
691 /// Gets the amount of rows in the table.
693 /// <returns>The amount of rows in the table</returns>
694 public uint GetRows()
696 uint ret = NDalicPINVOKE.TableView_GetRows(swigCPtr);
697 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
702 /// Gets the amount of columns in the table.
704 /// <returns>The amount of columns in the table</returns>
705 public uint GetColumns()
707 uint ret = NDalicPINVOKE.TableView_GetColumns(swigCPtr);
708 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
713 /// Sets the alignment on a cell.<br>
714 /// Cells without calling this function have the default values of LEFT and TOP respectively.<br>
716 /// <param name="position">The cell to set alignment on</param>
717 /// <param name="horizontal">The horizontal alignment</param>
718 /// <param name="vertical">The vertical alignment</param>
719 public void SetCellAlignment(TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical)
721 NDalicPINVOKE.TableView_SetCellAlignment(swigCPtr, TableView.CellPosition.getCPtr(position), (int)horizontal, (int)vertical);
722 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
725 internal enum PropertyRange
727 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
728 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000,
729 CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
730 CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX + 1000
734 /// Enumeration for describing how the size of a row / column has been set.
736 public enum LayoutPolicy
745 /// the amount of rows in the table.
752 GetProperty(TableView.Property.ROWS).Get(ref temp);
757 SetProperty(TableView.Property.ROWS, new Tizen.NUI.PropertyValue(value));
761 /// the amount of columns in the table.
768 GetProperty(TableView.Property.COLUMNS).Get(ref temp);
773 SetProperty(TableView.Property.COLUMNS, new Tizen.NUI.PropertyValue(value));
777 /// padding between cells.
779 public Vector2 CellPadding
783 Vector2 temp = new Vector2(0.0f, 0.0f);
784 GetProperty(TableView.Property.CELL_PADDING).Get(temp);
789 SetProperty(TableView.Property.CELL_PADDING, new Tizen.NUI.PropertyValue(value));
794 /// The number of layout rows
796 public PropertyMap LayoutRows
800 PropertyMap temp = new PropertyMap();
801 GetProperty(TableView.Property.LAYOUT_ROWS).Get(temp);
806 SetProperty(TableView.Property.LAYOUT_ROWS, new Tizen.NUI.PropertyValue(value));
811 /// The number of layout columns
813 public PropertyMap LayoutColumns
817 PropertyMap temp = new PropertyMap();
818 GetProperty(TableView.Property.LAYOUT_COLUMNS).Get(temp);
823 SetProperty(TableView.Property.LAYOUT_COLUMNS, new Tizen.NUI.PropertyValue(value));