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=7c77387e99f722ce8985d7f086f2c470b63b8bfa;hb=61be2f8d3c96e01da8e6ade2a76a192ff6ab6945;hpb=3b16ae16f01bd50a26e6c44e6e20ebb8499b4f91 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 7c77387..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 ); @@ -185,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) {