* @internal
* @brief Return values of widget programming interfaces for the plug-in type widgets
* @since_tizen 2.3.1
- * @feature http://tizen.org/feature/shell.appwidget
*/
typedef enum widget_api_result {
WIDGET_DONE = 0x00, /**< Operation is successfully done. */
* @internal
* @brief System event type for the plug-in type widgets
* @since_tizen 2.3.1
- * @feature http://tizen.org/feature/shell.appwidget
*/
typedef enum widget_system_event {
WIDGET_SYS_EVENT_FONT_CHANGED = 0x01, /**< System font is changed. */
* @param[in] gbar 1 for Glance Bar or 0
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
* @return Handle of desc instance
* @retval @c NULL Failed to create a desc instance, get_last_result() will returns reason of failure
* @pre Should be loaded by data-provider-slave.
* @param[in] handle Handle which is created by widget_desc_open() function
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_NONE If the flushing description data is successfully done
* @retval #WIDGET_ERROR_INVALID_PARAMETER If the given handle is not valid
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @param[in] handle Handle which is created by widget_desc_open() function
* @param[in] id Id string of target object
* @param[in] category Category string that will be used by layout object
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid handle
* @retval #WIDGET_ERROR_OUT_OF_MEMORY Memory is not enough to add this block
* @retval index Index(>=0) of added block, which can be used by widget_desc_set_id()
* @param[in] id Id string of target object
* @param[in] w Width in pixel
* @param[in] h Height in pixel
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid argument
* @retval #WIDGET_ERROR_OUT_OF_MEMORY Not enough memory to add a new block
* @retval index Index(>=0) of added block Successfully added
* @param[in] handle Handle which is created by widget_desc_open() function
* @param[in] idx Index of target block
* @param[in] id Id String which will be used by other widget_desc_XXX functions
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_NONE Id is successfully updated for given idx of desc block
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid argument
* @retval #WIDGET_ERROR_NOT_EXIST Given index of desc block is not exists
* @details If you discard the added desc block, use this API and the index of the created desc block.
* @param[in] handle Handle which is created by widget_desc_open() function
* @param[in] idx Index of added block, returned from widget_desc_add_block(), widget_desc_set_size(), widget_desc_set_category(), etc
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_NONE Successfully deleted
* @retval #WIDGET_ERROR_NOT_EXIST Given index of desc block is not exists
* @pre Index must be exists.
* @since_tizen 2.3.1
* @param[in] id Instance Id which is passed to you via the first parameter of every widget_XXXX interface functions
* @param[in] gbar 1 for updating content of Glance Bar or 0(for content of widget)
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_OUT_OF_MEMORY Not enough memory
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid argument
* @retval #WIDGET_ERROR_IO_ERROR I/O failed, Cannot access given resource file(id)
* @param[in] data User data for event handling callback
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
* @return Buffer handle
* @retval @c NULL Failed to acquire buffer, get_last_result() will returns reason of failure.
* @retval handler Handle object
* @param[in] pixels Pixel size in byte
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int status
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_NONE Successfully allocated
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #WIDGET_ERROR_FAULT Unrecoverable error occurred
* @param[in] idx Index of a buffer, #c WIDGET_PRIMARY_BUFFER is used for accessing the primary buffer
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int status
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid argument
* @retval #WIDGET_ERROR_NONE Successfully released
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @param[in] handle buffer handle
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int status
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_INVALID_PARAMTER Invalid argument
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @retval #WIDGET_ERROR_NONE Successfully destroyed
* @param[in] handle Buffer handle
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return void* address of the render buffer
* @retval @c NULL If it falis to get buffer address, get_last_result() will returns reason of failure.
* @retval address If it succeed to get the buffer address
* @see widget_unref_buffer()
* @param[in] buffer Address of render buffer
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid handle
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @retval #WIDGET_ERROR_NONE Successfully unreference
* @param[in] handle Buffer handle
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_NONE Successfully sync'd
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid argument
* @param[in] handle Buffer handle
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_ALREADY_EXIST H/W buffer is already created
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid argument
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @param[in] handle Buffer handle
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_NONE Successfully destroyed
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid argument
* @param[in] handle Buffer handle
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return void* type
* @retval @c NULL Failed to get H/W accelerated buffer address, get_last_result() will returns reason of failure.
* @retval addr H/W accelerated buffer address
* @see widget_create_hw_buffer()
* @param[in] handle Buffer handle
* @return int stride size
* @retval positive_value length of stride
- * @return #WIDGET_ERROR_INVALID_PARAMETER Invalid parameter
- * @return #WIDGET_ERROR_FAULT Unrecoverable error
+ * @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WIDGET_ERROR_FAULT Unrecoverable error
* @see widget_create_hw_buffer()
*/
extern int widget_buffer_stride(widget_buffer_h handle);
* @param[in] handle Buffer handle
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid handle
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @retval #WIDGET_ERROR_NONE Successfully done
* @param[in] handle Buffer handle
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return If succes returns 0 or return less than 0
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_NONE If succeed
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid argument
* @param[in] reason #WIDGET_ERROR_NONE(0)
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid parameters
* @retval #WIDGET_ERROR_OUT_OF_MEMORY Out of memory
* @since_tizen 2.3.1
* @param[in] id
* @param[in] size_type
- * @return void* window
* @retval @c NULL failed to create a snapshot window, get_last_result() will returns reason of failure.
* @retval Object window object (ex, elementary window)
* @see widget_snapshot_window_flush()
* @param[in] timeout After this, the image file will be created
* @param[in] flush_cb Right after flush an image file, this callback will be called
* @param[in] data Callback data for flush_cb
- * @return int status
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_NONE Successfully flushed (flush timer added)
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid paramter
* @retval #WIDGET_ERROR_FAULT Failed to create a flush timer
* @param[in] idx Index of a buffer
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return int status
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_NONE Successfully sent
*/
extern int widget_send_updated_by_idx(widget_buffer_h handle, int idx);
* provider will send those information to the viewer when the
* content is updated.
* @since_tizen 2.3.1
- * @privlevel N/P
- * @feature http://tizen.org/feature/shell.appwidget
- * @remarks This function only works with the buffer type inhouse provider.
+ * * @remarks This function only works with the buffer type inhouse provider.
* @param[in] id widget Instance Id
* @param[in] content Content string that will pass to a widget via widget_create interface when it is re-created.
* @param[in] title Human readable text for accessibility, summarized text for representing the content of a box.
* @param[in] icon Path of icon image file - alternative image content
* @param[in] name Name of a box - alternative text content
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_OUT_OF_MEMORY Out of memory
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid parameters
* @retval #WIDGET_ERROR_FAULT Unrecoverable error
* @param[in] id Instance Id which is passed to you via the first parameter of every widget_XXXX interface functions
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid parameters
* @retval #WIDGET_ERROR_OUT_OF_MEMORY Out of memory
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @param[in] id Instance Id which is passed to you via the first parameter of every widget_XXXX interface functions
* @privlevel public
* @privilege %http://tizen.org/privilege/widget.provider
- * @feature http://tizen.org/feature/shell.appwidget
- * @return #WIDGET_ERROR_NONE on success,
- * otherwise an error code (see #WIDGET_ERROR_XXX) on failure
+ * @return 0 on success, otherwise a negative error value
* @retval #WIDGET_ERROR_PERMISSION_DENIED Permission denied
* @retval #WIDGET_ERROR_INVALID_PARAMETER Invalid parameters
* @retval #WIDGET_ERROR_OUT_OF_MEMORY Out of memory