forked from enlightenment/efl
Elm : fix the svn after devilhorns made a re-indent. And add 2 new methods in the slideshow, thank to captainigloo
SVN revision: 43043
This commit is contained in:
parent
14f5ca63eb
commit
1df3d50ea1
|
@ -829,18 +829,34 @@ extern "C" {
|
|||
/* smart callbacks called:
|
||||
*/
|
||||
|
||||
EAPI Evas_Object *elm_slideshow_add(Evas_Object *parent);
|
||||
EAPI void elm_slideshow_item_add(Evas_Object *obj, Evas_Object *item);
|
||||
EAPI void elm_slideshow_goto(Evas_Object *obj, int pos);
|
||||
EAPI void elm_slideshow_next(Evas_Object *obj);
|
||||
EAPI void elm_slideshow_previous(Evas_Object *obj);
|
||||
typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class;
|
||||
typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func;
|
||||
typedef struct _Elm_Slideshow_Item Elm_Slideshow_Item;
|
||||
typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj);
|
||||
typedef void (*SlideshowItemDelFunc) (void *data, Evas_Object *obj);
|
||||
|
||||
struct _Elm_Slideshow_Item_Class
|
||||
{
|
||||
struct _Elm_Slideshow_Item_Class_Func {
|
||||
SlideshowItemGetFunc get;
|
||||
SlideshowItemDelFunc del;
|
||||
} func;
|
||||
};
|
||||
|
||||
EAPI Evas_Object * elm_slideshow_add(Evas_Object *parent);
|
||||
EAPI Elm_Slideshow_Item* elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data);
|
||||
EAPI void elm_slideshow_show(Elm_Slideshow_Item *item);
|
||||
EAPI void elm_slideshow_next(Evas_Object *obj);
|
||||
EAPI void elm_slideshow_previous(Evas_Object *obj);
|
||||
EAPI const Eina_List *elm_slideshow_transitions_get(Evas_Object *obj);
|
||||
EAPI void elm_slideshow_transition_set(Evas_Object *obj, const char *);
|
||||
EAPI void elm_slideshow_timeout_set(Evas_Object *obj ,int timeout);
|
||||
EAPI int elm_slideshow_timeout_get(Evas_Object *obj);
|
||||
EAPI void elm_slideshow_loop_set(Evas_Object *obj, int loop);
|
||||
EAPI void elm_slideshow_clear(Evas_Object *obj);
|
||||
EAPI void elm_slideshow_item_del(Elm_Slideshow_Item *item);
|
||||
EAPI void elm_slideshow_transition_set(Evas_Object *obj, const char *);
|
||||
EAPI void elm_slideshow_timeout_set(Evas_Object *obj ,int timeout);
|
||||
EAPI int elm_slideshow_timeout_get(Evas_Object *obj);
|
||||
EAPI void elm_slideshow_loop_set(Evas_Object *obj, int loop);
|
||||
EAPI void elm_slideshow_clear(Evas_Object *obj);
|
||||
EAPI void elm_slideshow_item_del(Elm_Slideshow_Item *item);
|
||||
EAPI Elm_Slideshow_Item* elm_slideshow_item_current_get(Evas_Object *obj);
|
||||
EAPI Evas_Object* elm_slideshow_item_object_get(Elm_Slideshow_Item* item);
|
||||
/* smart callbacks called:
|
||||
*/
|
||||
|
||||
|
|
|
@ -481,3 +481,31 @@ elm_slideshow_item_del(Elm_Slideshow_Item *item)
|
|||
free(item);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current item displayed
|
||||
*
|
||||
* @param obj The slideshow object
|
||||
* @return Returns the current item displayed
|
||||
*/
|
||||
EAPI Elm_Slideshow_Item*
|
||||
elm_slideshow_item_current_get(Evas_Object *obj)
|
||||
{
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
|
||||
if (!wd) return NULL;
|
||||
return wd->current;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the evas object associated to an item
|
||||
*
|
||||
* @param item The slideshow item
|
||||
* @return Returns the evas object associated to this item
|
||||
*/
|
||||
EAPI Evas_Object*
|
||||
elm_slideshow_item_object_get(Elm_Slideshow_Item * item)
|
||||
{
|
||||
if (!item) return NULL;
|
||||
return item->o;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue