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 FUiAnimVisualElementSurface.h
20 * @brief This is the header file for the %VisualElementSurface class.
22 * This header file contains the declarations of the %VisualElementSurface class.
25 #ifndef _FUI_ANIM_VISUAL_ELEMENT_SURFACE_H_
26 #define _FUI_ANIM_VISUAL_ELEMENT_SURFACE_H_
28 #include <FOspConfig.h>
29 #include <FBaseObject.h>
30 #include <FGrpDimension.h>
32 namespace Tizen { namespace Graphics
37 namespace Tizen { namespace Ui { namespace Animations
41 class _VisualElementSurfaceImpl;
44 * @class VisualElementSurface
45 * @brief This class provides methods to control %VisualElementSurface.
49 * The %VisualElementSurface class provides methods to control %VisualElementSurface.
51 class _OSP_EXPORT_ VisualElementSurface
52 : public Tizen::Base::Object
57 * This is the default constructor for this class.
61 VisualElementSurface(void);
64 * This is the copy constructor for the %VisualElementSurface class.
68 * @param[in] rhs An instance of %VisualElementSurface
69 * @exception E_SUCCESS The method is successful.
70 * @remarks The specific error code can be accessed using the GetLastResult() method.
71 * @remarks It does not perform a deep copy (shared with the source).
73 VisualElementSurface(const VisualElementSurface& rhs);
76 * Assigns the value of the specified instance to the current instance of %VisualElementSurface.
80 * @param[in] rhs An instance of %VisualElementSurface
81 * @exception E_SUCCESS The method is successful.
82 * @remarks The specific error code can be accessed using the GetLastResult() method.
83 * @remarks It does not perform a deep copy (shared with the source).
85 VisualElementSurface& operator =(const VisualElementSurface& rhs);
88 * This is the default destructor for this class.
92 virtual ~VisualElementSurface(void);
97 * Initializes this instance of %VisualElementSurface with the specified parameters.
101 * @return An error code
102 * @param[in] displayContext The display context of the window
103 * @param[in] size The size of the %VisualElementSurface instance
104 * @exception E_SUCCESS The method is successful.
105 * @exception E_OUT_OF_RANGE The value of the argument is outside the valid range defined by the method.
106 * @exception E_INVALID_ARG The display context is invalid.
107 * @remarks The width and height of the @c size parameter is the logical size and must be greater than @c 0.
108 * @remarks If this condition is not satisfied, the E_OUT_OF_RANGE exception is returned.
109 * @see Tizen::Ui::Window::GetDisplayContext()
111 result Construct(const DisplayContext& displayContext, const Tizen::Graphics::Dimension& size);
114 * Gets the buffer-related information of the %VisualElementSurface instance.
118 * @return An error code
119 * @param[out] bufferInfo The buffer-related information of the surface
120 * @exception E_SUCCESS The method is successful.
121 * @exception E_OUT_OF_MEMORY The memory is insufficient.
123 result GetBufferInfo(Tizen::Graphics::BufferInfo& bufferInfo) const;
126 * Gets the size of the %VisualElementSurface instance.
130 * @return The size of the %VisualElementSurface instance
131 * @exception E_SUCCESS The method is successful.
132 * @remarks The specific error code can be accessed using the GetLastResult() method.
133 * @remarks If an error occurs, this method returns Tizen::Graphics:Dimension(0, 0).
135 Tizen::Graphics::Dimension GetSize(void) const;
138 * Compares the Tizen::Base::Object instance with the calling %VisualElementSurface instance for equivalence.
142 * @return @c true if the specified instance share the content with the current instance, @n
144 * @param[in] obj The object to compare with the current instance
147 virtual bool Equals(const Tizen::Base::Object& obj) const;
150 * Gets the hash value of the current instance.
154 * @return The hash value of the current instance
155 * @remarks The hash code of a buffer depends only upon its remaining elements.
157 virtual int GetHashCode(void) const;
162 // This method is for internal use only. Using this method can cause behavioral, security-related,
163 // and consistency-related issues in the application.
166 // This method is reserved and may change its name at any time without prior notice.
170 virtual void VisualElementSurface_Reserved1(void) {}
174 // This method is for internal use only. Using this method can cause behavioral, security-related,
175 // and consistency-related issues in the application.
178 // This method is reserved and may change its name at any time without prior notice.
182 virtual void VisualElementSurface_Reserved2(void) {}
186 // This method is for internal use only. Using this method can cause behavioral, security-related,
187 // and consistency-related issues in the application.
190 // This method is reserved and may change its name at any time without prior notice.
194 virtual void VisualElementSurface_Reserved3(void) {}
200 // This variable is for internal use only. Using this variable can cause behavioral, security-related,
201 // and consistency-related issues in the application.
206 _VisualElementSurfaceImpl* __pVisualElementSurfaceImpl;
208 friend class _VisualElementSurfaceImpl;
210 }; // VisualElementSurface
213 }}} // Tizen::Ui::Animations
215 #endif // _FUI_ANIM_VISUAL_ELEMENT_SURFACE_H_