X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Ftable-view%2Ftable-view.cpp;h=126c25480fb98e49782cc82ac7671bef4dbb8d55;hb=bea7b708b28cb38349ff99c3a656d40c065a8c54;hp=4d24415c1d1c61a91d021e26e18c59127bc14cfe;hpb=e2eda444afbe82e9591fe198eef339227f90a616;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 4d24415..126c254 100644 --- a/dali-toolkit/public-api/controls/table-view/table-view.cpp +++ b/dali-toolkit/public-api/controls/table-view/table-view.cpp @@ -1,18 +1,19 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // CLASS HEADER #include @@ -130,6 +131,26 @@ Size TableView::GetCellPadding() return GetImpl(*this).GetCellPadding(); } +void TableView::SetFitHeight( unsigned int rowIndex ) +{ + GetImpl(*this).SetFitHeight( rowIndex ); +} + +bool TableView::IsFitHeight( unsigned int rowIndex ) const +{ + return GetImpl(*this).IsFitHeight( rowIndex ); +} + +void TableView::SetFitWidth( unsigned int columnIndex ) +{ + GetImpl(*this).SetFitWidth( columnIndex ); +} + +bool TableView::IsFitWidth( unsigned int columnIndex ) const +{ + return GetImpl(*this).IsFitWidth( columnIndex ); +} + void TableView::SetFixedHeight( unsigned int rowIndex, float height ) { GetImpl(*this).SetFixedHeight( rowIndex, height ); @@ -170,16 +191,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(); @@ -190,6 +201,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) {