backend: add default clear animations
[platform/core/uifw/libpui.git] / include / PUI.h
index 16275c2..8e96370 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ * Copyright © 2019 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial
+ * portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
 #ifndef _LIBPUI_H_
 #define _LIBPUI_H_
 
@@ -13,13 +38,12 @@ extern PUI_API int PUI_EVENT_ANI_STOPPED;
 extern PUI_API int PUI_EVENT_ANI_PAUSED;
 extern PUI_API int PUI_EVENT_ANI_READY_TO_START;
 extern PUI_API int PUI_EVENT_ANI_READY_TO_RESUME;
-extern PUI_API int PUI_EVENT_ANI_FRAME_DONE;
-extern PUI_API int PUI_EVENT_ANI_BUFFER_RELEASED;
 
 struct _PUI_Event_Animation_Status
 {
-   unsigned int win;
-   pui_ani_status status;
+       pui_ani_h ani_h;
+       unsigned int win;
+       pui_ani_status status;
 };
 
 #ifdef __cplusplus
@@ -59,6 +83,27 @@ pui_ani_get_cmd(pui_ani_h ani_h);
 PUI_API int
 pui_ani_get_repeat(pui_ani_h ani_h);
 
+PUI_API pui_ani_control_buffer *
+pui_display_get_last_buffer(pui_h handle);
+
+PUI_API pui_ani_control_buffer *
+pui_display_get_buffer(pui_h handle);
+
+PUI_API pui_error
+pui_display_set_buffer(pui_h handle, pui_ani_control_buffer *buffer);
+
+PUI_API pui_error
+pui_display_update(pui_h handle);
+
+PUI_API pui_error
+pui_display_manual_render_set(pui_h handle, pui_bool set);
+
+PUI_API pui_bool
+pui_display_manual_render_get(pui_h handle);
+
+PUI_API pui_bool
+pui_display_geometry_get(pui_h handle, int *width, int *height);
+
 #ifdef __cplusplus
 }
 #endif