#ifndef __WIDGET_VIEWER_EVAS_H
#define __WIDGET_VIEWER_EVAS_H
+#include <tizen_type.h>
+
#include "widget_service.h"
#ifdef __cplusplus
* @brief Check whether the widget is faulted.
* @since_tizen 2.3.1
* @param[in] widget a widget object
- * @return faulted state of the widget
- * @retval 1 for faulted state
- * @retval 0 for not faulted state
+ * @return faulted state of the widget and you can get the result state of this function by using get_last_result()
+ * @retval true for faulted state
+ * @retval false for not faulted state
*/
-extern int widget_viewer_evas_is_faulted(Evas_Object *widget);
+extern bool widget_viewer_evas_is_faulted(Evas_Object *widget);
/**
- * @brief Fixes visibility of the widget
+ * @brief Freezes visibility of the widget
* @details If you don't want to change the visibility automatically, freeze it.\n
* The visibility will not be changed even though a box disappeared(hidden)/displayed(shown) from/on the screen.
* @since_tizen 2.3.1
extern int widget_viewer_evas_freeze_visibility(Evas_Object *widget, widget_visibility_status_e status);
/**
- * @brief Unfixes visibility of the widget
+ * @brief Thaws visibility of the widget
* @details If you want to let the visibility change automatically again, call this function.
* @since_tizen 2.3.1
* @param[in] widget a widget object
extern int widget_viewer_evas_thaw_visibility(Evas_Object *widget);
/**
- * @brief Get the fixed state of visibility option.
+ * @brief Get the frozen state of visibility option.
* @since_tizen 2.3.1
* @param[in] widget a widget object
- * @return fixed state of visibility
- * @retval 1 for fixed state
- * @retval 0 for not fixed state
+ * @return fixed state of visibility and you can get the result state of this function by using get_last_result()
+ * @retval true for frozen state
+ * @retval false for not frozen state
*/
-extern int widget_viewer_evas_get_freeze_visibility(Evas_Object *widget);
+extern bool widget_viewer_evas_is_visibility_frozen(Evas_Object *widget);
/**
* @brief Validate the object, whether it is a widget object or not
* @since_tizen 2.3.1
* @param[in] widget a widget object
- * @return result of validation
- * @retval 1 this is a widget
- * @retval 0 this is not a widget
+ * @return result of validation and you can get the result state of this function by using get_last_result()
+ * @retval true this is a widget
+ * @retval false this is not a widget
*/
-extern int widget_viewer_evas_is_widget(Evas_Object *widget);
+extern bool widget_viewer_evas_is_widget(Evas_Object *widget);
/**
* @brief Before delete a widget, set the deletion mode
}
}
-EAPI int widget_viewer_evas_is_faulted(Evas_Object *widget)
+EAPI bool widget_viewer_evas_is_faulted(Evas_Object *widget)
{
struct widget_data *data;
return 0;
}
- return data->is.field.faulted;
+ return (bool)data->is.field.faulted;
}
EAPI int widget_viewer_evas_set_raw_event_callback(widget_evas_raw_event_type_e type, raw_event_cb cb, void *data)
return WIDGET_ERROR_NONE;
}
-EAPI int widget_viewer_evas_get_freeze_visibility(Evas_Object *widget)
+EAPI bool widget_viewer_evas_is_visibility_frozen(Evas_Object *widget)
{
struct widget_data *data;
return 0;
}
- return data->is.field.freeze_visibility;
+ return (bool)data->is.field.freeze_visibility;
}
EAPI int widget_viewer_evas_dump_to_file(Evas_Object *widget, const char *filename)
return WIDGET_ERROR_NONE;
}
-EAPI int widget_viewer_evas_is_widget(Evas_Object *widget)
+EAPI bool widget_viewer_evas_is_widget(Evas_Object *widget)
{
struct widget_data *data;
data = get_smart_data(widget);
if (!data) {
ErrPrint("Invalid object\n");
- return 0;
+ return false;
}
- return 1;
+ return true;
}
EAPI void widget_viewer_evas_set_permanent_delete(Evas_Object *widget, int flag)