1 #ifndef _FUI_NATIVE_OBJECT_HANDLER_H_
2 #define _FUI_NATIVE_OBJECT_HANDLER_H_
4 #include <FBaseTypes.h>
6 namespace Tizen { namespace Ui { namespace Animations {
11 namespace Tizen { namespace Ui {
14 * @class _NativeObjectHandler
15 * @brief This class provides utility methods for helping to handle a native image object.
19 * @final This class is not intended for extension.
21 * The %_NativeObjectHandler class provides utility methods for helping to handle a native image object.
23 class _OSP_EXPORT_ _NativeObjectHandler
27 * Creates a native image object.
31 * @return The native image object handle.@n
32 * else @c 0 if an error occurs.
33 * @param[in] pDisplayContext The display context of the window
34 * @param[in] width The width of the native image object
35 * @param[in] height The height of the native image object
36 * @exception E_SUCCESS The method is successful.
37 * @exception E_INVALID_ARG The specified @c pDisplayContext is invalid.
38 * @exception E_UNSUPPORTED_OPERATION This operation is not supported.
39 * @remarks The specific error code can be accessed using the GetLastResult() method.
41 static Handle CreateNativeImageObjectN(const Tizen::Ui::Animations::DisplayContext* pDisplayContext, int width, int height);
44 * Sets a native image object to the visual element.
48 * @return An error code
49 * @param[in] pVisualElement The visual element to set the native image object
50 * @param[in] nativeObjectHandle The handle of native image object
51 * @exception E_SUCCESS The method is successful.
52 * @exception E_INVALID_ARG The specified @c pVisualElement or @c pNativeObject is invalid.
53 * @exception E_UNSUPPORTED_OPERATION This operation is not supported.
55 static result SetNativeObjectToVisualElement(Tizen::Ui::Animations::VisualElement* pVisualElement, Handle nativeObjectHandle);
58 * Sets the show state of the native image object.
62 * @return An error code
63 * @param[in] pNativeObject The native image object
64 * @param[in] show The new show state
65 * @exception E_SUCCESS The method is successful.
66 * @exception E_INVALID_ARG The specified @c pNativeObject is @c null.
67 * @exception E_UNSUPPORTED_OPERATION This operation is not supported.
69 static result SetNativeObjectShowState(Handle nativeObjectHandle, bool show);
72 * Deallocates the native image object.
76 * @return An error code
77 * @param[in] pVisualElement The display context
78 * @param[in] pNativeObject The native image object
79 * @exception E_SUCCESS The method is successful.
80 * @exception E_INVALID_ARG The specified @c pVisualElement or @c pNativeObject is invalid.
81 * @exception E_UNSUPPORTED_OPERATION This operation is not supported.
83 static result DestroyNativeObject(Tizen::Ui::Animations::VisualElement* pVisualElement, Handle nativeObjectHandle);
88 // This default constructor is intentionally declared as private because this class cannot be constructed.
90 _NativeObjectHandler(void);
93 // This destructor is intentionally declared as private because this class cannot be constructed.
95 virtual ~_NativeObjectHandler(void);
98 // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
100 // @param[in] rhs An instance of %_NativeObjectHandler
102 _NativeObjectHandler(const _NativeObjectHandler& rhs);
105 // The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
107 // @param[in] rhs An instance of %_NativeObjectHandler
109 _NativeObjectHandler& operator =(const _NativeObjectHandler& rhs);
110 }; //_NativeObjectHandler
111 }} // namespace Tizen { namespace Ui {
113 #endif //_FUI_NATIVE_OBJECT_HANDLER_H_