1 /** Copyright (c) 2016 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 //------------------------------------------------------------------------------
29 public class TableView : View {
30 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
32 internal TableView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TableView_SWIGUpcast(cPtr), cMemoryOwn) {
33 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
36 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj) {
37 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
44 public override void Dispose() {
46 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
49 NDalicPINVOKE.delete_TableView(swigCPtr);
51 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
53 global::System.GC.SuppressFinalize(this);
58 public class Property : global::System.IDisposable {
59 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
60 protected bool swigCMemOwn;
62 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
63 swigCMemOwn = cMemoryOwn;
64 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
67 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
68 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
75 public virtual void Dispose() {
77 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
80 NDalicPINVOKE.delete_TableView_Property(swigCPtr);
82 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
84 global::System.GC.SuppressFinalize(this);
88 public Property() : this(NDalicPINVOKE.new_TableView_Property(), true) {
89 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92 public static readonly int ROWS = NDalicPINVOKE.TableView_Property_ROWS_get();
93 public static readonly int COLUMNS = NDalicPINVOKE.TableView_Property_COLUMNS_get();
94 public static readonly int CELL_PADDING = NDalicPINVOKE.TableView_Property_CELL_PADDING_get();
95 public static readonly int LAYOUT_ROWS = NDalicPINVOKE.TableView_Property_LAYOUT_ROWS_get();
96 public static readonly int LAYOUT_COLUMNS = NDalicPINVOKE.TableView_Property_LAYOUT_COLUMNS_get();
100 public class ChildProperty : global::System.IDisposable {
101 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
102 protected bool swigCMemOwn;
104 internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn) {
105 swigCMemOwn = cMemoryOwn;
106 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
109 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ChildProperty obj) {
110 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
117 public virtual void Dispose() {
119 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
122 NDalicPINVOKE.delete_TableView_ChildProperty(swigCPtr);
124 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
126 global::System.GC.SuppressFinalize(this);
130 public ChildProperty() : this(NDalicPINVOKE.new_TableView_ChildProperty(), true) {
131 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
134 public static readonly int CELL_INDEX = NDalicPINVOKE.TableView_ChildProperty_CELL_INDEX_get();
135 public static readonly int ROW_SPAN = NDalicPINVOKE.TableView_ChildProperty_ROW_SPAN_get();
136 public static readonly int COLUMN_SPAN = NDalicPINVOKE.TableView_ChildProperty_COLUMN_SPAN_get();
137 public static readonly int CELL_HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_HORIZONTAL_ALIGNMENT_get();
138 public static readonly int CELL_VERTICAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_VERTICAL_ALIGNMENT_get();
142 public class CellPosition : global::System.IDisposable {
143 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
144 protected bool swigCMemOwn;
146 internal CellPosition(global::System.IntPtr cPtr, bool cMemoryOwn) {
147 swigCMemOwn = cMemoryOwn;
148 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
151 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CellPosition obj) {
152 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
159 public virtual void Dispose() {
161 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
164 NDalicPINVOKE.delete_TableView_CellPosition(swigCPtr);
166 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
168 global::System.GC.SuppressFinalize(this);
172 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan, uint columnSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_0(rowIndex, columnIndex, rowSpan, columnSpan), true) {
173 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
176 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_1(rowIndex, columnIndex, rowSpan), true) {
177 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
180 public CellPosition(uint rowIndex, uint columnIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_2(rowIndex, columnIndex), true) {
181 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
184 public CellPosition(uint rowIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_3(rowIndex), true) {
185 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
188 public CellPosition() : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_4(), true) {
189 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
192 public uint rowIndex {
194 NDalicPINVOKE.TableView_CellPosition_rowIndex_set(swigCPtr, value);
195 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
198 uint ret = NDalicPINVOKE.TableView_CellPosition_rowIndex_get(swigCPtr);
199 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204 public uint columnIndex {
206 NDalicPINVOKE.TableView_CellPosition_columnIndex_set(swigCPtr, value);
207 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
210 uint ret = NDalicPINVOKE.TableView_CellPosition_columnIndex_get(swigCPtr);
211 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
216 public uint rowSpan {
218 NDalicPINVOKE.TableView_CellPosition_rowSpan_set(swigCPtr, value);
219 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
222 uint ret = NDalicPINVOKE.TableView_CellPosition_rowSpan_get(swigCPtr);
223 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
228 public uint columnSpan {
230 NDalicPINVOKE.TableView_CellPosition_columnSpan_set(swigCPtr, value);
231 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234 uint ret = NDalicPINVOKE.TableView_CellPosition_columnSpan_get(swigCPtr);
235 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
242 public TableView (uint initialRows, uint initialColumns) : this (NDalicPINVOKE.TableView_New(initialRows, initialColumns), true) {
243 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
246 public TableView(TableView handle) : this(NDalicPINVOKE.new_TableView__SWIG_1(TableView.getCPtr(handle)), true) {
247 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
250 public TableView Assign(TableView handle) {
251 TableView ret = new TableView(NDalicPINVOKE.TableView_Assign(swigCPtr, TableView.getCPtr(handle)), false);
252 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
256 public new static TableView DownCast(BaseHandle handle) {
257 TableView ret = new TableView(NDalicPINVOKE.TableView_DownCast(BaseHandle.getCPtr(handle)), true);
258 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
262 public bool AddChild(Actor child, TableView.CellPosition position) {
263 bool ret = NDalicPINVOKE.TableView_AddChild(swigCPtr, Actor.getCPtr(child), TableView.CellPosition.getCPtr(position));
264 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
268 public Actor GetChildAt(TableView.CellPosition position) {
269 Actor ret = new Actor(NDalicPINVOKE.TableView_GetChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
270 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
274 public Actor RemoveChildAt(TableView.CellPosition position) {
275 Actor ret = new Actor(NDalicPINVOKE.TableView_RemoveChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
280 public bool FindChildPosition(Actor child, TableView.CellPosition position) {
281 bool ret = NDalicPINVOKE.TableView_FindChildPosition(swigCPtr, Actor.getCPtr(child), TableView.CellPosition.getCPtr(position));
282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
286 public void InsertRow(uint rowIndex) {
287 NDalicPINVOKE.TableView_InsertRow(swigCPtr, rowIndex);
288 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
291 public void DeleteRow(uint rowIndex) {
292 NDalicPINVOKE.TableView_DeleteRow__SWIG_0(swigCPtr, rowIndex);
293 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
296 public void DeleteRow(uint rowIndex, ActorContainer removed) {
297 NDalicPINVOKE.TableView_DeleteRow__SWIG_1(swigCPtr, rowIndex, ActorContainer.getCPtr(removed));
298 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
301 public void InsertColumn(uint columnIndex) {
302 NDalicPINVOKE.TableView_InsertColumn(swigCPtr, columnIndex);
303 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
306 public void DeleteColumn(uint columnIndex) {
307 NDalicPINVOKE.TableView_DeleteColumn__SWIG_0(swigCPtr, columnIndex);
308 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
311 public void DeleteColumn(uint columnIndex, ActorContainer removed) {
312 NDalicPINVOKE.TableView_DeleteColumn__SWIG_1(swigCPtr, columnIndex, ActorContainer.getCPtr(removed));
313 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
316 public void Resize(uint rows, uint columns) {
317 NDalicPINVOKE.TableView_Resize__SWIG_0(swigCPtr, rows, columns);
318 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
321 public void Resize(uint rows, uint columns, ActorContainer removed) {
322 NDalicPINVOKE.TableView_Resize__SWIG_1(swigCPtr, rows, columns, ActorContainer.getCPtr(removed));
323 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
326 public void SetCellPadding(Vector2 padding) {
327 NDalicPINVOKE.TableView_SetCellPadding(swigCPtr, Vector2.getCPtr(padding));
328 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
331 public Vector2 GetCellPadding() {
332 Vector2 ret = new Vector2(NDalicPINVOKE.TableView_GetCellPadding(swigCPtr), true);
333 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
337 public void SetFitHeight(uint rowIndex) {
338 NDalicPINVOKE.TableView_SetFitHeight(swigCPtr, rowIndex);
339 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
342 public bool IsFitHeight(uint rowIndex) {
343 bool ret = NDalicPINVOKE.TableView_IsFitHeight(swigCPtr, rowIndex);
344 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
348 public void SetFitWidth(uint columnIndex) {
349 NDalicPINVOKE.TableView_SetFitWidth(swigCPtr, columnIndex);
350 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353 public bool IsFitWidth(uint columnIndex) {
354 bool ret = NDalicPINVOKE.TableView_IsFitWidth(swigCPtr, columnIndex);
355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
359 public void SetFixedHeight(uint rowIndex, float height) {
360 NDalicPINVOKE.TableView_SetFixedHeight(swigCPtr, rowIndex, height);
361 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
364 public float GetFixedHeight(uint rowIndex) {
365 float ret = NDalicPINVOKE.TableView_GetFixedHeight(swigCPtr, rowIndex);
366 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370 public void SetRelativeHeight(uint rowIndex, float heightPercentage) {
371 NDalicPINVOKE.TableView_SetRelativeHeight(swigCPtr, rowIndex, heightPercentage);
372 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
375 public float GetRelativeHeight(uint rowIndex) {
376 float ret = NDalicPINVOKE.TableView_GetRelativeHeight(swigCPtr, rowIndex);
377 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
381 public void SetFixedWidth(uint columnIndex, float width) {
382 NDalicPINVOKE.TableView_SetFixedWidth(swigCPtr, columnIndex, width);
383 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
386 public float GetFixedWidth(uint columnIndex) {
387 float ret = NDalicPINVOKE.TableView_GetFixedWidth(swigCPtr, columnIndex);
388 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
392 public void SetRelativeWidth(uint columnIndex, float widthPercentage) {
393 NDalicPINVOKE.TableView_SetRelativeWidth(swigCPtr, columnIndex, widthPercentage);
394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
397 public float GetRelativeWidth(uint columnIndex) {
398 float ret = NDalicPINVOKE.TableView_GetRelativeWidth(swigCPtr, columnIndex);
399 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403 public uint GetRows() {
404 uint ret = NDalicPINVOKE.TableView_GetRows(swigCPtr);
405 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409 public uint GetColumns() {
410 uint ret = NDalicPINVOKE.TableView_GetColumns(swigCPtr);
411 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
415 public void SetCellAlignment(TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical) {
416 NDalicPINVOKE.TableView_SetCellAlignment(swigCPtr, TableView.CellPosition.getCPtr(position), (int)horizontal, (int)vertical);
417 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
420 public enum PropertyRange {
421 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
422 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
423 CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
424 CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX+1000
427 public enum LayoutPolicy {
439 GetProperty( TableView.Property.ROWS).Get( ref temp );
444 SetProperty( TableView.Property.ROWS, new Dali.Property.Value( value ) );
452 GetProperty( TableView.Property.COLUMNS).Get( ref temp );
457 SetProperty( TableView.Property.COLUMNS, new Dali.Property.Value( value ) );
460 public Vector2 CellPadding
464 Vector2 temp = new Vector2(0.0f,0.0f);
465 GetProperty( TableView.Property.CELL_PADDING).Get( temp );
470 SetProperty( TableView.Property.CELL_PADDING, new Dali.Property.Value( value ) );
473 public Dali.Property.Map LayoutRows
477 Dali.Property.Map temp = new Dali.Property.Map();
478 GetProperty( TableView.Property.LAYOUT_ROWS).Get( temp );
483 SetProperty( TableView.Property.LAYOUT_ROWS, new Dali.Property.Value( value ) );
486 public Dali.Property.Map LayoutColumns
490 Dali.Property.Map temp = new Dali.Property.Map();
491 GetProperty( TableView.Property.LAYOUT_COLUMNS).Get( temp );
496 SetProperty( TableView.Property.LAYOUT_COLUMNS, new Dali.Property.Value( value ) );