forked from enlightenment/efl
panel, video, web, web2: added focused, unfocused smart callback documentation.
This commit is contained in:
parent
6cf684f02a
commit
a5066a5747
|
@ -13,6 +13,12 @@ EAPI Eo_Op ELM_OBJ_PANEL_BASE_ID = EO_NOOP;
|
||||||
|
|
||||||
#define MY_CLASS_NAME "elm_panel"
|
#define MY_CLASS_NAME "elm_panel"
|
||||||
|
|
||||||
|
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||||
|
{"focused", ""}, /**< handled by elm_widget */
|
||||||
|
{"unfocused", ""}, /**< handled by elm_widget */
|
||||||
|
{NULL, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_mirrored_set(Evas_Object *obj,
|
_mirrored_set(Evas_Object *obj,
|
||||||
Eina_Bool rtl)
|
Eina_Bool rtl)
|
||||||
|
@ -415,7 +421,8 @@ _constructor(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
|
||||||
{
|
{
|
||||||
eo_do_super(obj, MY_CLASS, eo_constructor());
|
eo_do_super(obj, MY_CLASS, eo_constructor());
|
||||||
eo_do(obj,
|
eo_do(obj,
|
||||||
evas_obj_type_set(MY_CLASS_NAME));
|
evas_obj_type_set(MY_CLASS_NAME),
|
||||||
|
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
|
||||||
|
|
||||||
elm_widget_sub_object_add(eo_parent_get(obj), obj);
|
elm_widget_sub_object_add(eo_parent_get(obj), obj);
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,11 @@
|
||||||
* This widget inherits from the @ref Layout one, so that all the
|
* This widget inherits from the @ref Layout one, so that all the
|
||||||
* functions acting on it also work for panel objects (@since 1.8).
|
* functions acting on it also work for panel objects (@since 1.8).
|
||||||
*
|
*
|
||||||
|
* This widget emits the following signals, besides the ones sent from
|
||||||
|
* @ref Layout:
|
||||||
|
* @li @c "focused" : When the panel has received focus. (since 1.8)
|
||||||
|
* @li @c "unfocused" : When the panel has lost focus. (since 1.8)
|
||||||
|
*
|
||||||
* Default content parts of the panel widget that you can use are:
|
* Default content parts of the panel widget that you can use are:
|
||||||
* @li @c "default" - A content of the panel
|
* @li @c "default" - A content of the panel
|
||||||
*
|
*
|
||||||
|
|
|
@ -21,6 +21,12 @@ EAPI Eo_Op ELM_OBJ_VIDEO_BASE_ID = EO_NOOP;
|
||||||
|
|
||||||
#define MY_CLASS_NAME "elm_video"
|
#define MY_CLASS_NAME "elm_video"
|
||||||
|
|
||||||
|
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||||
|
{"focused", ""}, /**< handled by elm_widget */
|
||||||
|
{"unfocused", ""}, /**< handled by elm_widget */
|
||||||
|
{NULL, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_elm_video_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
_elm_video_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
||||||
{
|
{
|
||||||
|
@ -311,7 +317,8 @@ _constructor(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
|
||||||
#ifdef HAVE_EMOTION
|
#ifdef HAVE_EMOTION
|
||||||
eo_do_super(obj, MY_CLASS, eo_constructor());
|
eo_do_super(obj, MY_CLASS, eo_constructor());
|
||||||
eo_do(obj,
|
eo_do(obj,
|
||||||
evas_obj_type_set(MY_CLASS_NAME));
|
evas_obj_type_set(MY_CLASS_NAME),
|
||||||
|
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
|
||||||
|
|
||||||
elm_widget_sub_object_add(eo_parent_get(obj), obj);
|
elm_widget_sub_object_add(eo_parent_get(obj), obj);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -29,6 +29,11 @@
|
||||||
* Both widgets inherit from the @ref Layout one, so that all the
|
* Both widgets inherit from the @ref Layout one, so that all the
|
||||||
* functions acting on it also work for video objects.
|
* functions acting on it also work for video objects.
|
||||||
*
|
*
|
||||||
|
* This widget emits the following signals, besides the ones sent from
|
||||||
|
* @ref Layout:
|
||||||
|
* @li @c "focused" : When the video has received focus. (since 1.8)
|
||||||
|
* @li @c "unfocused" : When the video has lost focus. (since 1.8)
|
||||||
|
*
|
||||||
* The player widget emits the following signals, besides the ones
|
* The player widget emits the following signals, besides the ones
|
||||||
* sent from @ref Layout:
|
* sent from @ref Layout:
|
||||||
* - @c "forward,clicked" - the user clicked the forward button.
|
* - @c "forward,clicked" - the user clicked the forward button.
|
||||||
|
|
|
@ -74,6 +74,8 @@ static const Evas_Smart_Cb_Description _elm_web_smart_callbacks[] = {
|
||||||
{ "view,resized", "" },
|
{ "view,resized", "" },
|
||||||
{ "windows,close,request", ""},
|
{ "windows,close,request", ""},
|
||||||
{ "zoom,animated,end", "" },
|
{ "zoom,animated,end", "" },
|
||||||
|
{ "focused", ""}, /**< handled by elm_widget */
|
||||||
|
{ "unfocused", ""}, /**< handled by elm_widget */
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,8 @@
|
||||||
* @li "windows,close,request": A JavaScript request to close the current
|
* @li "windows,close,request": A JavaScript request to close the current
|
||||||
* window was requested
|
* window was requested
|
||||||
* @li "zoom,animated,end": Animated zoom finished
|
* @li "zoom,animated,end": Animated zoom finished
|
||||||
|
* @li "focused" : When the web has received focus. (since 1.8)
|
||||||
|
* @li "unfocused" : When the web has lost focus. (since 1.8)
|
||||||
*
|
*
|
||||||
* available styles:
|
* available styles:
|
||||||
* - default
|
* - default
|
||||||
|
|
|
@ -21,6 +21,8 @@ static Ewk_View_Smart_Class _ewk_view_parent_sc =
|
||||||
|
|
||||||
static const Evas_Smart_Cb_Description _elm_web_smart_callbacks[] = {
|
static const Evas_Smart_Cb_Description _elm_web_smart_callbacks[] = {
|
||||||
{ "url,changed", "s" },
|
{ "url,changed", "s" },
|
||||||
|
{ "focused", ""}, /**< handled by elm_widget */
|
||||||
|
{ "unfocused", ""}, /**< handled by elm_widget */
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue