X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Ftable-view%2Ftable-view.cpp;h=c92f36edfc88caf0ddfa73392acf4db68e361f3b;hp=06c18a99d18d131f7d98c80f9695663e20573659;hb=68106e2cbb8541c18a77f39770ea7759f44e02a0;hpb=2ddfbb9e23a7c3fc30e604236c41e0ef6d2ed6a2 diff --git a/dali-toolkit/public-api/controls/table-view/table-view.cpp b/dali-toolkit/public-api/controls/table-view/table-view.cpp index 06c18a9..c92f36e 100644 --- a/dali-toolkit/public-api/controls/table-view/table-view.cpp +++ b/dali-toolkit/public-api/controls/table-view/table-view.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2015 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -135,6 +135,26 @@ Size TableView::GetCellPadding() return GetImpl(*this).GetCellPadding(); } +void TableView::SetFitHeight( unsigned int rowIndex ) +{ + GetImpl(*this).SetRowPolicy( rowIndex, Internal::TableView::FIT ); +} + +bool TableView::IsFitHeight( unsigned int rowIndex ) const +{ + return ( GetImpl(*this).GetRowPolicy( rowIndex ) == Internal::TableView::FIT ); +} + +void TableView::SetFitWidth( unsigned int columnIndex ) +{ + GetImpl(*this).SetColumnPolicy( columnIndex, Internal::TableView::FIT ); +} + +bool TableView::IsFitWidth( unsigned int columnIndex ) const +{ + return ( GetImpl(*this).GetColumnPolicy( columnIndex ) == Internal::TableView::FIT ); +} + void TableView::SetFixedHeight( unsigned int rowIndex, float height ) { GetImpl(*this).SetFixedHeight( rowIndex, height ); @@ -175,16 +195,6 @@ float TableView::GetRelativeWidth( unsigned int columnIndex ) const return GetImpl(*this).GetRelativeWidth( columnIndex ); } -void TableView::SetLayoutAnimationDuration( float duration ) -{ - GetImpl(*this).SetLayoutAnimationDuration( duration ); -} - -float TableView::GetLayoutAnimationDuration() -{ - return GetImpl(*this).GetLayoutAnimationDuration(); -} - unsigned int TableView::GetRows() { return GetImpl(*this).GetRows(); @@ -195,6 +205,11 @@ unsigned int TableView::GetColumns() return GetImpl(*this).GetColumns(); } +void TableView::SetCellAlignment( CellPosition position, HorizontalAlignment::Type horizontal, VerticalAlignment::Type vertical ) +{ + GetImpl(*this).SetCellAlignment( position, horizontal, vertical ); +} + TableView::TableView(Internal::TableView& implementation) : Control(implementation) {