extern Evas_Object *livebox_snapshot_window_add(const char *id, int size_type);
extern int livebox_snapshot_window_flush(Evas_Object *snapshot_win, double timeout, void (*flush_cb)(Evas_Object *snapshot_window, const char *id, int status, void *data), void *data);
extern int livebox_snapshot_window_del(Evas_Object *snapshot_win);
-extern Evas_Object *livebox_virtual_window_add(const char *id, int width, int height);
-extern int livebox_virtual_window_del(Evas_Object *virtual_win);
*/
/*!
+ * \brief Create an Evas_Object to create a elm_win object
+ * \details Creating a new Evas_Object using livebox frame buffer.
+ * \remarks N/A
+ * \param[in] id Instance Id
+ * \param[in] width Width of buffer
+ * \param[in] height Height of buffer
+ * \return Evas_Object* Evas Object
+ * \retval Address Valid evas object
+ * \retval NULL failed to create
+ * \post N/A
+ * \see livebox_set_elm_window
+ */
+extern Evas_Object *livebox_get_evas_object(const char *id, int width, int height);
+
+/*!
+ * \brief Make the relationship between evas_object and elm_win.
+ * \details If the elm_win changes, the evas_object needs to know
+ * \remarks N/A
+ * \param[in] lb_evas_object Livebox Evas Object
+ * \param[in] window Elm_Win
+ * \param[in] height Height of buffer
+ * \return Integer
+ * \retval
+ * \retval
+ * \post N/A
+ * \see livebox_set_elm_window
+ */
+extern int livebox_set_elm_window(Evas_Object *lb_evas_object, Evas_Object *window);
+
+/*!
* \}
*/
case BUFFER_EVENT_KEY_DOWN:
case BUFFER_EVENT_KEY_FOCUS_IN:
case BUFFER_EVENT_KEY_FOCUS_OUT:
+ DbgPrint("Key event: %d\n", event_info->type);
if (ret < 0) {
(void)provider_send_key_status(pkgname, id, LB_KEY_STATUS_ERROR);
} else {
/*!
* Acquire a buffer for canvas.
*/
- info->handle = livebox_acquire_buffer(info->id, IS_PD,
+ info->handle = livebox_acquire_buffer_NEW(info->id, IS_PD,
info->width, info->height,
event_handler_cb, info);