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 FGrp_BufferInfoImpl.h
20 * @brief This is the header file for the _BufferInfoImpl class.
22 * This header file contains the declarations of the %_BufferInfoImpl class.
26 #ifndef _FGRP_INTERNAL_BUFFERINFO_IMPL_H_
27 #define _FGRP_INTERNAL_BUFFERINFO_IMPL_H_
30 #include <FBaseTypes.h>
31 #include <FGrpRectangle.h>
34 namespace Tizen { namespace Graphics
38 class _OSP_EXPORT_ _BufferInfoImpl
43 INVALID_BUFFER_HANDLE = 0
49 ORIENTATION_LANDSCAPE,
50 ORIENTATION_PORTRAIT_REVERSE,
51 ORIENTATION_LANDSCAPE_REVERSE
57 HANDLE_TYPE_OVERLAY_REGION,
58 HANDLE_TYPE_VE_SURFACE,
59 HANDLE_TYPE_CANVAS_TEXTURE
71 * This is the default constructor for this class.
76 * This is the destructor for this class.
78 virtual ~_BufferInfoImpl();
81 * Gets the handle of the current instance of _BufferInfoImpl.
83 * @return The runtime handle
86 int GetHandle(HandleType handleType) const;
89 * Sets the handle of the current instance of _BufferInfoImpl.
92 void SetHandle(HandleType handleType, int handle);
95 * Gets the orientation of the current instance of _BufferInfoImpl.
98 Orientation GetOrientation(void) const;
101 * Sets the orientation of the current instance of _BufferInfoImpl.
104 void SetOrientation(Orientation orientation);
107 * Gets the bounds of the current instance of _BufferInfoImpl.
110 Rectangle GetBounds(void) const;
113 * Sets the bounds of the current instance of _BufferInfoImpl.
116 void SetBounds(const Rectangle& rect);
119 * Gets the rotation of the current instance of _BufferInfoImpl.
122 Rotation GetRotation(void) const;
125 * Sets the rotation of the current instance of _BufferInfoImpl.
128 void SetRotation(Rotation rotation);
130 static _BufferInfoImpl* GetInstance(BufferInfo& bufferInfo);
131 static const _BufferInfoImpl* GetInstance(const BufferInfo& bufferInfo);
135 * This is the default copy constructor for this class.
137 _BufferInfoImpl(const _BufferInfoImpl& src);
140 * This is the default assignment operator for this class.
142 _BufferInfoImpl& operator =(const _BufferInfoImpl& rhs);
144 friend class BufferInfo;
146 HandleType __handleType;
148 Orientation __orientation;
152 }; // _BufferInfoImpl
154 }} // Tizen::Graphics
156 #endif // _FGRP_INTERNAL_BUFFERINFO_IMPL_H_