2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUi_Dimensionf.h
20 * @brief Header file of _Dimensionf class
22 * This file contains declarations _Dimensionf class.
25 #ifndef _FUI_ANIM_INTERNAL_DIMENSIONF_H_
26 #define _FUI_ANIM_INTERNAL_DIMENSIONF_H_
28 #include <FGrpDimension.h>
30 namespace Tizen { namespace Ui { namespace Animations
39 _Dimensionf(float width, float height)
42 _Dimensionf(const _Dimensionf& dim)
43 : __width(dim.__width)
44 , __height(dim.__height) {}
45 virtual ~_Dimensionf(void) {}
47 _Dimensionf& SetSize(float width, float height) { __width = width;__height = height; return *this; }
49 float Width(void) const { return __width;}
50 float Height(void) const { return __height;}
51 float& Width(void) { return __width;}
52 float& Height(void) { return __height;}
54 bool operator !=(const _Dimensionf& dim) const
56 // CHECKME: need float compare ???
57 return (__width != dim.__width) || (__height != dim.__height);
60 bool operator ==(const _Dimensionf& dim) const
62 // CHECKME: need float compare ???
63 return (__width == dim.__width) && (__height == dim.__height);
66 _Dimensionf& operator =(const _Dimensionf& dim)
70 __width = dim.__width;
71 __height = dim.__height;
82 }}} // Tizen::Ui::Animations
84 #endif //_FUI_ANIM_INTERNAL_DIMENSIONF_H_