2 * Copyright 2013 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include <widget_service.h>
21 #ifndef __WIDGET_UILITY_H
22 #define __WIDGET_UILITY_H
30 * @brief This file declares API of libwidget library
35 * @addtogroup CAPI_WIDGET_UTILITY_MODULE
40 * @brief Creates an Evas to draw widget contents
41 * @details Creating a new Object using widget frame buffer.
43 * @param[in] widget_intance_id widget instance id from widget from widget_provider_event_callback_s functions
45 * @privilege %http://tizen.org/privilege/widget.provider
46 * @feature http://tizen.org/feature/shell.appwidget
47 * @return instance of Evas
48 * @retval Valid pointer of Evas instance on success,
49 * @retval @c NULL failed to create, get_last_result() will returns reason of failure
51 extern Evas *widget_get_evas(const char *widget_intance_id);
54 * @brief Requests to schedule the update operation to a provider.
55 * @detail Insert a update event to event queue and it will be handled by update callback function.
57 * @param[in] widget_intance_id A instance id of the widget to be updated
58 * @feature http://tizen.org/feature/shell.appwidget
59 * @return If succes returns 0 or return less than 0
60 * @retval #WIDGET_ERROR_NONE Successfully triggered
61 * @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid argument
62 * @retval #WIDGET_ERROR_OUT_OF_MEMORY Not enough memory
63 * @retval #WIDGET_ERROR_NOT_EXIST Given id instance is not exist
64 * @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
65 * @retval #WIDGET_ERROR_DISABLED in case of direct request for updating is disabled
67 extern int widget_request_update(const char *widget_intance_id);