forked from enlightenment/efl
Improve documentation for Evas, Ecore, Edje and Elementary.
Work by: - Thiago R. Masaki (mostly) - Fabiano Fidencio - Gustavo Lima SVN revision: 42553
This commit is contained in:
parent
fb7a90d7a4
commit
e8bf64d566
|
@ -1,6 +1,15 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_priv.h"
|
||||
|
||||
/**
|
||||
* @defgroup Bubble Bubble
|
||||
*
|
||||
* The Bubble is an widget used to show a text in a frame as speach is
|
||||
* represented in comics.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
typedef struct _Widget_Data Widget_Data;
|
||||
|
||||
struct _Widget_Data
|
||||
|
@ -79,6 +88,16 @@ _sub_del(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new bubble to the parent
|
||||
*
|
||||
* @param parent The parent object
|
||||
* @return The new object or NULL if it cannot be created
|
||||
*
|
||||
* This function adds a text bubble to the given parent evas object.
|
||||
*
|
||||
* @ingroup Bubble
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_bubble_add(Evas_Object *parent)
|
||||
{
|
||||
|
@ -105,6 +124,17 @@ elm_bubble_add(Evas_Object *parent)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the label of the bubble
|
||||
*
|
||||
* @param obj The given evas pointer
|
||||
* @param label The string to set in the label
|
||||
*
|
||||
* This function sets the title of the bubble that is showed on top of
|
||||
* the bubble.
|
||||
*
|
||||
* @ingroup Bubble
|
||||
*/
|
||||
EAPI void
|
||||
elm_bubble_label_set(Evas_Object *obj, const char *label)
|
||||
{
|
||||
|
@ -125,6 +155,19 @@ elm_bubble_label_get(Evas_Object *obj)
|
|||
return wd->label;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the info of the bubble
|
||||
*
|
||||
* @param obj The given evas pointer
|
||||
* @param info The given info about the bubble
|
||||
*
|
||||
* This function sets the text showed on the top right of bubble In
|
||||
* the Anchorblock example of the Elementary tests application it
|
||||
* shows time.
|
||||
*
|
||||
* @ingroup Bubble
|
||||
*
|
||||
*/
|
||||
EAPI void
|
||||
elm_bubble_info_set(Evas_Object *obj, const char *info)
|
||||
{
|
||||
|
@ -135,7 +178,18 @@ elm_bubble_info_set(Evas_Object *obj, const char *info)
|
|||
edje_object_part_text_set(wd->bbl, "elm.info", info);
|
||||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the text to be showed in the bubble
|
||||
*
|
||||
* @param obj The given evas pointer
|
||||
* @param content The given info about the bubble
|
||||
*
|
||||
* This function sets the text showed on the top right of bubble. In
|
||||
* the Anchorblock example of the Elementary tests application it
|
||||
* shows time.
|
||||
*
|
||||
* @ingroup Bubble
|
||||
*/
|
||||
EAPI void
|
||||
elm_bubble_content_set(Evas_Object *obj, Evas_Object *content)
|
||||
{
|
||||
|
@ -153,6 +207,16 @@ elm_bubble_content_set(Evas_Object *obj, Evas_Object *content)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the icon of the bubble
|
||||
*
|
||||
* @param obj The given evas pointer
|
||||
* @param icon The given icon for the bubble
|
||||
*
|
||||
* This function sets the icon showed on the top left of bubble.
|
||||
*
|
||||
* @ingroup Bubble
|
||||
*/
|
||||
EAPI void
|
||||
elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon)
|
||||
{
|
||||
|
@ -178,6 +242,16 @@ elm_bubble_icon_get(Evas_Object *obj)
|
|||
return wd->icon;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the corner of the bubble
|
||||
*
|
||||
* @param obj The given evas pointer.
|
||||
* @param corner The given corner for the bubble.
|
||||
*
|
||||
* This function sets the corner of the bubble.
|
||||
*
|
||||
* @ingroup Bubble
|
||||
*/
|
||||
EAPI void
|
||||
elm_bubble_corner_set(Evas_Object *obj, const char *corner)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_priv.h"
|
||||
|
||||
/**
|
||||
* @defgroup Button Button
|
||||
*
|
||||
* This is a push-button. Press it and run some function. It can contain
|
||||
* a simple label and icon object.
|
||||
*/
|
||||
|
||||
typedef struct _Widget_Data Widget_Data;
|
||||
|
||||
struct _Widget_Data
|
||||
|
@ -108,6 +115,13 @@ _signal_clicked(void *data, Evas_Object *obj, const char *emission, const char *
|
|||
evas_object_smart_callback_call(data, "clicked", NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new button to the parent
|
||||
* @param parent The parent object
|
||||
* @return The new object or NULL if it cannot be created
|
||||
*
|
||||
* @ingroup Button
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_button_add(Evas_Object *parent)
|
||||
{
|
||||
|
@ -136,6 +150,14 @@ elm_button_add(Evas_Object *parent)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the label used in the button
|
||||
*
|
||||
* @param obj The button object
|
||||
* @param label The text will be written on the button
|
||||
*
|
||||
* @ingroup Button
|
||||
*/
|
||||
EAPI void
|
||||
elm_button_label_set(Evas_Object *obj, const char *label)
|
||||
{
|
||||
|
@ -169,6 +191,14 @@ elm_button_label_get(Evas_Object *obj)
|
|||
return wd->label;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the icon used for the button
|
||||
*
|
||||
* @param obj The button object
|
||||
* @param icon The image for the button
|
||||
*
|
||||
* @ingroup Button
|
||||
*/
|
||||
EAPI void
|
||||
elm_button_icon_set(Evas_Object *obj, Evas_Object *icon)
|
||||
{
|
||||
|
@ -199,6 +229,14 @@ elm_button_icon_get(Evas_Object *obj)
|
|||
return wd->icon;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the button style
|
||||
*
|
||||
* @param obj The button object
|
||||
* @param style The style for the button
|
||||
*
|
||||
* @ingroup Button
|
||||
*/
|
||||
EAPI void
|
||||
elm_button_style_set(Evas_Object *obj, const char *style)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_priv.h"
|
||||
|
||||
/**
|
||||
* @defgroup Clock Clock
|
||||
*
|
||||
* It's a widget to show clock with animation. The update of time is
|
||||
* showed in an animation like a flip of a sheet.
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct _Widget_Data Widget_Data;
|
||||
|
||||
struct _Widget_Data
|
||||
|
@ -358,6 +366,16 @@ _time_update(Evas_Object *obj)
|
|||
wd->cur.ampm = -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new clock to the parent
|
||||
*
|
||||
* @param parent The parent object
|
||||
*
|
||||
* This function inserts a clock widget on a given canvas to show a
|
||||
* animated clock.
|
||||
*
|
||||
* @ingroup Clock
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_clock_add(Evas_Object *parent)
|
||||
{
|
||||
|
@ -388,6 +406,18 @@ elm_clock_add(Evas_Object *parent)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the clock time
|
||||
*
|
||||
* @param obj The clock object
|
||||
* @param hrs The hours to set
|
||||
* @param min The minutes to set
|
||||
* @param sec The secondes to set
|
||||
*
|
||||
* This function updates the time that is showed by the clock widget
|
||||
*
|
||||
* @ingroup Clock
|
||||
*/
|
||||
EAPI void
|
||||
elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec)
|
||||
{
|
||||
|
@ -398,6 +428,22 @@ elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec)
|
|||
_time_update(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get clock time
|
||||
*
|
||||
* @param obj The clock object
|
||||
* @param hrs Pointer to the variable to get the hour of this clock
|
||||
* object
|
||||
* @param min Pointer to the variable to get the minute of this clock
|
||||
* object
|
||||
* @param sec Pointer to the variable to get the second of this clock
|
||||
* object
|
||||
*
|
||||
* This function gets the time set of the clock widget and returns it
|
||||
* on the variables passed as the arguments to function
|
||||
*
|
||||
* @ingroup Clock
|
||||
*/
|
||||
EAPI void
|
||||
elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec)
|
||||
{
|
||||
|
@ -407,6 +453,16 @@ elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec)
|
|||
if (sec) *sec = wd->sec;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if the clock settings can be edited
|
||||
*
|
||||
* @param obj The clock object
|
||||
* @param edit Bool option for edited (1 = yes, 0 = no)
|
||||
*
|
||||
* This function sets if the clock settings can be edited or not.
|
||||
*
|
||||
* @ingroup Clock
|
||||
*/
|
||||
EAPI void
|
||||
elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit)
|
||||
{
|
||||
|
@ -415,6 +471,20 @@ elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit)
|
|||
_time_update(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if the clock show hours in military or am/pm mode
|
||||
*
|
||||
* @param obj The clock object
|
||||
* @param am_pm Bool option for the hours mode
|
||||
* (1 = am/pm, 0 = military)
|
||||
*
|
||||
* This function sets the clock to show hours in military or am/pm
|
||||
* mode. Some countries like Brazil the military mode (00-24h-format)
|
||||
* is used in opposition to the USA where the am/pm mode is more
|
||||
* common used.
|
||||
*
|
||||
* @ingroup Clock
|
||||
*/
|
||||
EAPI void
|
||||
elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm)
|
||||
{
|
||||
|
@ -423,6 +493,18 @@ elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm)
|
|||
_time_update(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if the clock show hour with the seconds
|
||||
*
|
||||
* @param obj The clock object
|
||||
* @param seconds Bool option for the show seconds
|
||||
* (1 = show seconds, 0 = not show seconds)
|
||||
*
|
||||
* This function sets the clock to show or not to show the elapsed
|
||||
* seconds.
|
||||
*
|
||||
* @ingroup Clock
|
||||
*/
|
||||
EAPI void
|
||||
elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_priv.h"
|
||||
|
||||
/**
|
||||
* @defgroup Frame Frame
|
||||
*
|
||||
* This holds some content and has a title. Looks like a frame, but
|
||||
* supports styles so multple frames are avaible
|
||||
*/
|
||||
|
||||
typedef struct _Widget_Data Widget_Data;
|
||||
|
||||
struct _Widget_Data
|
||||
|
@ -66,6 +73,14 @@ _sub_del(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new frame to the parent
|
||||
*
|
||||
* @param parent The parent object
|
||||
* @return The new object or NULL if it cannot be created
|
||||
*
|
||||
* @ingroup Frame
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_frame_add(Evas_Object *parent)
|
||||
{
|
||||
|
@ -92,6 +107,14 @@ elm_frame_add(Evas_Object *parent)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the frame label
|
||||
*
|
||||
* @param obj The frame object
|
||||
* @param label The label of this frame object
|
||||
*
|
||||
* @ingroup Frame
|
||||
*/
|
||||
EAPI void
|
||||
elm_frame_label_set(Evas_Object *obj, const char *label)
|
||||
{
|
||||
|
@ -100,6 +123,15 @@ elm_frame_label_set(Evas_Object *obj, const char *label)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the frame label
|
||||
*
|
||||
* @param obj The frame object
|
||||
*
|
||||
* @return The label of this frame objet or NULL if unable to get frame
|
||||
*
|
||||
* @ingroup Frame
|
||||
*/
|
||||
EAPI const char*
|
||||
elm_frame_label_get(Evas_Object *obj)
|
||||
{
|
||||
|
@ -108,6 +140,14 @@ elm_frame_label_get(Evas_Object *obj)
|
|||
return edje_object_part_text_get(wd->frm, "elm.text");
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the frame content
|
||||
*
|
||||
* @param obj The frame object
|
||||
* @param content The content will be filled in this frame object
|
||||
*
|
||||
* @ingroup Frame
|
||||
*/
|
||||
EAPI void
|
||||
elm_frame_content_set(Evas_Object *obj, Evas_Object *content)
|
||||
{
|
||||
|
@ -125,6 +165,14 @@ elm_frame_content_set(Evas_Object *obj, Evas_Object *content)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the frame style
|
||||
*
|
||||
* @param obj The frame object
|
||||
* @param style The style will be applied in this frame
|
||||
*
|
||||
* @ingroup Frame
|
||||
*/
|
||||
EAPI void
|
||||
elm_frame_style_set(Evas_Object *obj, const char *style)
|
||||
{
|
||||
|
|
|
@ -1998,7 +1998,7 @@ elm_genlist_item_subitems_clear(Elm_Genlist_Item *it)
|
|||
* item @p it.
|
||||
*
|
||||
* @param it The item
|
||||
* @param selcted The slected state
|
||||
* @param selected The slected state
|
||||
*
|
||||
* @ingroup Genlist
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_priv.h"
|
||||
|
||||
/**
|
||||
* @defgroup Icon Icon
|
||||
*
|
||||
* A standard icon that may be provided by the theme (delete, edit,
|
||||
* arrows etc.) or a custom file (PNG, JPG, EDJE etc.) used for an
|
||||
* icon. The Icon may scale or not and of course... support alpha
|
||||
* channels.
|
||||
*/
|
||||
|
||||
typedef struct _Widget_Data Widget_Data;
|
||||
|
||||
struct _Widget_Data
|
||||
|
@ -78,6 +87,14 @@ _mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
evas_object_smart_callback_call(data, "clicked", event_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new icon to the parent
|
||||
*
|
||||
* @param parent The parent object
|
||||
* @return The new object or NULL if it cannot be created
|
||||
*
|
||||
* @ingroup Icon
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_icon_add(Evas_Object *parent)
|
||||
{
|
||||
|
@ -109,6 +126,17 @@ elm_icon_add(Evas_Object *parent)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the file that will be used as icon
|
||||
*
|
||||
* @param obj The icon object
|
||||
* @param file The path to file that will be used as icon
|
||||
* @param group The group that the icon belongs in edje file
|
||||
*
|
||||
* @return (1 = sucess, 0 = error)
|
||||
*
|
||||
* @ingroup Icon
|
||||
*/
|
||||
EAPI Eina_Bool
|
||||
elm_icon_file_set(Evas_Object *obj, const char *file, const char *group)
|
||||
{
|
||||
|
@ -128,6 +156,14 @@ elm_icon_file_set(Evas_Object *obj, const char *file, const char *group)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the theme, as standard, for a icon
|
||||
*
|
||||
* @param obj The icon object
|
||||
* @param name The theme name
|
||||
*
|
||||
* @ingroup Icon
|
||||
*/
|
||||
EAPI void
|
||||
elm_icon_standard_set(Evas_Object *obj, const char *name)
|
||||
{
|
||||
|
@ -141,6 +177,15 @@ elm_icon_standard_set(Evas_Object *obj, const char *name)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the smooth effect for a icon
|
||||
*
|
||||
* @param obj The icon object
|
||||
* @param smooth A bool to set (or no) smooth effect
|
||||
* (1 = smooth, 0 = not smooth)
|
||||
*
|
||||
* @ingroup Icon
|
||||
*/
|
||||
EAPI void
|
||||
elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth)
|
||||
{
|
||||
|
@ -150,6 +195,15 @@ elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if the object are scalable
|
||||
*
|
||||
* @param obj The icon object
|
||||
* @param no_scale A bool to set scale (or no)
|
||||
* (1 = no_scale, 0 = scale)
|
||||
*
|
||||
* @ingroup Icon
|
||||
*/
|
||||
EAPI void
|
||||
elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale)
|
||||
{
|
||||
|
@ -159,6 +213,15 @@ elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if the object is (up/down) scalable
|
||||
*
|
||||
* @param obj The icon object
|
||||
* @param scale_up A bool to set if the object is scalable up
|
||||
* @param scale_down A bool to set if the object is scalable down
|
||||
*
|
||||
* @ingroup Icon
|
||||
*/
|
||||
EAPI void
|
||||
elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down)
|
||||
{
|
||||
|
@ -169,6 +232,15 @@ elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if the object is filled outside
|
||||
*
|
||||
* @param obj The icon object
|
||||
* @param fill_outside A bool to set if the object is filled outside
|
||||
* (1 = filled, 0 = no filled)
|
||||
*
|
||||
* @ingroup Icon
|
||||
*/
|
||||
EAPI void
|
||||
elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside)
|
||||
{
|
||||
|
@ -178,6 +250,15 @@ elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the prescale size for the icon
|
||||
*
|
||||
* @param obj The icon object
|
||||
* @param size The prescale size
|
||||
*
|
||||
* @ingroup Icon
|
||||
*/
|
||||
EAPI void
|
||||
elm_icon_prescale_set(Evas_Object *obj, int size)
|
||||
{
|
||||
|
|
|
@ -4,6 +4,15 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_priv.h"
|
||||
|
||||
/**
|
||||
* @defgroup Image Image
|
||||
*
|
||||
* A standard image that may be provided by the theme (delete, edit,
|
||||
* arrows etc.) or a custom file (PNG, JPG, EDJE etc.) used for an
|
||||
* icon. The Icon may scale or not and of course... support alpha
|
||||
* channels.
|
||||
*/
|
||||
|
||||
typedef struct _Widget_Data Widget_Data;
|
||||
|
||||
struct _Widget_Data
|
||||
|
@ -77,6 +86,14 @@ _mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
evas_object_smart_callback_call(data, "clicked", NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new image to the parent
|
||||
*
|
||||
* @param parent The parent object
|
||||
* @return The new object or NULL if it cannot be created
|
||||
*
|
||||
* @ingroup Image
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_image_add(Evas_Object *parent)
|
||||
{
|
||||
|
@ -110,6 +127,17 @@ elm_image_add(Evas_Object *parent)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the file that will be used as image
|
||||
*
|
||||
* @param obj The image object
|
||||
* @param file The path to file that will be used as image
|
||||
* @param group The group that the image belongs in edje file
|
||||
*
|
||||
* @return (1 = sucess, 0 = error)
|
||||
*
|
||||
* @ingroup Image
|
||||
*/
|
||||
EAPI Eina_Bool
|
||||
elm_image_file_set(Evas_Object *obj, const char *file, const char *group)
|
||||
{
|
||||
|
@ -127,6 +155,15 @@ elm_image_file_set(Evas_Object *obj, const char *file, const char *group)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the smooth effect for a image
|
||||
*
|
||||
* @param obj The image object
|
||||
* @param smooth A bool to set (or no) smooth effect
|
||||
* (1 = smooth, 0 = not smooth)
|
||||
*
|
||||
* @ingroup Image
|
||||
*/
|
||||
EAPI void
|
||||
elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth)
|
||||
{
|
||||
|
@ -143,6 +180,15 @@ elm_image_object_size_get(const Evas_Object *obj, int *w, int *h)
|
|||
_els_smart_icon_size_get(wd->img, w, h);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if the object are scalable
|
||||
*
|
||||
* @param obj The image object.
|
||||
* @param no_scale A bool to set scale (or no).
|
||||
* (1 = no_scale, 0 = scale)
|
||||
*
|
||||
* @ingroup Image
|
||||
*/
|
||||
EAPI void
|
||||
elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale)
|
||||
{
|
||||
|
@ -150,8 +196,18 @@ elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale)
|
|||
if (!wd) return;
|
||||
wd->no_scale = no_scale;
|
||||
_sizing_eval(obj);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if the object is (up/down) scalable
|
||||
*
|
||||
* @param obj The image object
|
||||
* @param scale_up A bool to set if the object is scalable up
|
||||
* @param scale_down A bool to set if the object is scalable down
|
||||
*
|
||||
* @ingroup Image
|
||||
*/
|
||||
EAPI void
|
||||
elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down)
|
||||
{
|
||||
|
@ -162,6 +218,15 @@ elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if the object is filled outside
|
||||
*
|
||||
* @param obj The image object
|
||||
* @param fill_outside A bool to set if the object is filled outside
|
||||
* (1 = filled, 0 = no filled)
|
||||
*
|
||||
* @ingroup Image
|
||||
*/
|
||||
EAPI void
|
||||
elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside)
|
||||
{
|
||||
|
@ -171,6 +236,14 @@ elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the prescale size for the image
|
||||
*
|
||||
* @param obj The image object
|
||||
* @param size The prescale size
|
||||
*
|
||||
* @ingroup Image
|
||||
*/
|
||||
EAPI void
|
||||
elm_image_prescale_set(Evas_Object *obj, int size)
|
||||
{
|
||||
|
@ -180,6 +253,18 @@ elm_image_prescale_set(Evas_Object *obj, int size)
|
|||
_els_smart_icon_scale_size_set(wd->img, size);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the image orient
|
||||
*
|
||||
* @param obj The image object
|
||||
* @param orient The image orient
|
||||
* (ELM_IMAGE_ORIENT_NONE, ELM_IMAGE_ROTATE_90_CW,
|
||||
* ELM_IMAGE_ROTATE_180_CW, ELM_IMAGE_ROTATE_90_CCW,
|
||||
* ELM_IMAGE_FLIP_HORIZONTAL,ELM_IMAGE_FLIP_VERTICAL,
|
||||
* ELM_IMAGE_FLIP_TRANSPOSE, ELM_IMAGE_FLIP_TRANSVERSE)
|
||||
*
|
||||
* @ingroup Image
|
||||
*/
|
||||
EAPI void
|
||||
elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient)
|
||||
{
|
||||
|
|
|
@ -582,9 +582,10 @@ elm_index_active_set(Evas_Object *obj, Eina_Bool active)
|
|||
}
|
||||
|
||||
/**
|
||||
* XXX
|
||||
* @brief To be documented.
|
||||
*
|
||||
* @param obj The index object
|
||||
* @param obj The index object.
|
||||
* @param level To be documented.
|
||||
*
|
||||
* @ingroup Index
|
||||
*/
|
||||
|
@ -598,7 +599,7 @@ elm_index_item_level_set(Evas_Object *obj, int level)
|
|||
}
|
||||
|
||||
/**
|
||||
* XXX
|
||||
* @brief To be documented.
|
||||
*
|
||||
* @param obj The index object
|
||||
*
|
||||
|
@ -613,9 +614,10 @@ elm_index_item_level_get(Evas_Object *obj)
|
|||
}
|
||||
|
||||
/**
|
||||
* XXX
|
||||
* @brief To be documented.
|
||||
*
|
||||
* @param obj The index object
|
||||
* @param obj The index object.
|
||||
* @param level to be documented.
|
||||
*
|
||||
* @ingroup Index
|
||||
*/
|
||||
|
@ -634,9 +636,11 @@ elm_index_item_selected_get(Evas_Object *obj, int level)
|
|||
}
|
||||
|
||||
/**
|
||||
* XXX
|
||||
* @brief To be documented.
|
||||
*
|
||||
* @param obj The index object
|
||||
* @param obj The index object.
|
||||
* @param letter to be documented.
|
||||
* @param item to be documented.
|
||||
*
|
||||
* @ingroup Index
|
||||
*/
|
||||
|
@ -653,9 +657,11 @@ elm_index_item_append(Evas_Object *obj, const char *letter, const void *item)
|
|||
}
|
||||
|
||||
/**
|
||||
* XXX
|
||||
* @brief To be documented.
|
||||
*
|
||||
* @param obj The index object
|
||||
* @param obj The index object.
|
||||
* @param letter to be documented.
|
||||
* @param item to be documented.
|
||||
*
|
||||
* @ingroup Index
|
||||
*/
|
||||
|
@ -672,9 +678,12 @@ elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item)
|
|||
}
|
||||
|
||||
/**
|
||||
* XXX
|
||||
* @brief To be documented.
|
||||
*
|
||||
* @param obj The index object
|
||||
* @param letter to be documented.
|
||||
* @param item to be documented.
|
||||
* @param relative to be documented.
|
||||
*
|
||||
* @ingroup Index
|
||||
*/
|
||||
|
@ -702,9 +711,12 @@ elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void
|
|||
}
|
||||
|
||||
/**
|
||||
* XXX
|
||||
* @brief To be documented.
|
||||
*
|
||||
* @param obj The index object
|
||||
* @param obj The index object.
|
||||
* @param letter to be documented.
|
||||
* @param item to be documented.
|
||||
* @param relative to be documented.
|
||||
*
|
||||
* @ingroup Index
|
||||
*/
|
||||
|
@ -732,9 +744,10 @@ elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void
|
|||
}
|
||||
|
||||
/**
|
||||
* XXX
|
||||
* @brief To be documented.
|
||||
*
|
||||
* @param obj The index object
|
||||
* @param item To be documented.
|
||||
*
|
||||
* @ingroup Index
|
||||
*/
|
||||
|
@ -751,9 +764,9 @@ elm_index_item_del(Evas_Object *obj, const void *item)
|
|||
}
|
||||
|
||||
/**
|
||||
* XXX
|
||||
* @brief To be documented.
|
||||
*
|
||||
* @param obj The index object
|
||||
* @param obj The index object.
|
||||
*
|
||||
* @ingroup Index
|
||||
*/
|
||||
|
@ -777,9 +790,10 @@ elm_index_item_clear(Evas_Object *obj)
|
|||
}
|
||||
|
||||
/**
|
||||
* XXX
|
||||
* @brief To be documented.
|
||||
*
|
||||
* @param obj The index object
|
||||
* @param level To be documented.
|
||||
*
|
||||
* @ingroup Index
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_priv.h"
|
||||
|
||||
/**
|
||||
* @defgroup Label Label
|
||||
*
|
||||
* Display text, with simple html-like markup. The theme of course
|
||||
* can invent new markup tags and style them any way it likes
|
||||
*/
|
||||
|
||||
typedef struct _Widget_Data Widget_Data;
|
||||
|
||||
struct _Widget_Data
|
||||
|
@ -42,6 +49,14 @@ _sizing_eval(Evas_Object *obj)
|
|||
evas_object_size_hint_max_set(obj, maxw, maxh);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new label to the parent
|
||||
*
|
||||
* @param parent The parent object
|
||||
* @return The new object or NULL if it cannot be created
|
||||
*
|
||||
* @ingroup Label
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_label_add(Evas_Object *parent)
|
||||
{
|
||||
|
@ -68,6 +83,14 @@ elm_label_add(Evas_Object *parent)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the label on the label object
|
||||
*
|
||||
* @param obj The label object
|
||||
* @param label The label will be used on the label object
|
||||
*
|
||||
* @ingroup Label
|
||||
*/
|
||||
EAPI void
|
||||
elm_label_label_set(Evas_Object *obj, const char *label)
|
||||
{
|
||||
|
@ -79,6 +102,13 @@ elm_label_label_set(Evas_Object *obj, const char *label)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the label used on the label object
|
||||
*
|
||||
* @param obj The label object
|
||||
*
|
||||
* @ingroup Label
|
||||
*/
|
||||
EAPI const char*
|
||||
elm_label_label_get(Evas_Object *obj)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_priv.h"
|
||||
|
||||
/**
|
||||
* @defgroup Layout Layout
|
||||
*
|
||||
* This takes a standard Edje design file and wraps it very thinly
|
||||
* in a widget and handles swallowing widgets into swallow regions
|
||||
* in the Edje object, allowing Edje to be used as a design and
|
||||
* layout tool
|
||||
*/
|
||||
|
||||
typedef struct _Widget_Data Widget_Data;
|
||||
typedef struct _Subinfo Subinfo;
|
||||
|
||||
|
@ -92,6 +101,14 @@ _sub_del(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new layout to the parent
|
||||
*
|
||||
* @param parent The parent object
|
||||
* @return The new object or NULL if it cannot be created
|
||||
*
|
||||
* @ingroup Layout
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_layout_add(Evas_Object *parent)
|
||||
{
|
||||
|
@ -117,6 +134,17 @@ elm_layout_add(Evas_Object *parent)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the file that will be used as layout
|
||||
*
|
||||
* @param obj The layout object
|
||||
* @param file The path to file (edj) that will be used as layout
|
||||
* @param group The group that the layout belongs in edje file
|
||||
*
|
||||
* @return (1 = sucess, 0 = error)
|
||||
*
|
||||
* @ingroup Layout
|
||||
*/
|
||||
EAPI Eina_Bool
|
||||
elm_layout_file_set(Evas_Object *obj, const char *file, const char *group)
|
||||
{
|
||||
|
@ -127,6 +155,15 @@ elm_layout_file_set(Evas_Object *obj, const char *file, const char *group)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the layout content
|
||||
*
|
||||
* @param obj The layout object
|
||||
* @param swallow The swallow group name in the edje file
|
||||
* @param content The content will be filled in this layout object
|
||||
*
|
||||
* @ingroup Layout
|
||||
*/
|
||||
EAPI void
|
||||
elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content)
|
||||
{
|
||||
|
@ -157,6 +194,16 @@ elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *conte
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the edje layout
|
||||
*
|
||||
* @param obj The layout object
|
||||
*
|
||||
* @return A Evas_Object with the edje layout settings loaded
|
||||
* with function elm_layout_file_set
|
||||
*
|
||||
* @ingroup Layout
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_layout_edje_get(const Evas_Object *obj)
|
||||
{
|
||||
|
|
|
@ -1174,7 +1174,7 @@ elm_finger_size_get(void)
|
|||
*
|
||||
* This sets the globally configured finger size in pixels
|
||||
*
|
||||
* @paramsize The finger size
|
||||
* @param size The finger size
|
||||
* @ingroup Fingers
|
||||
*/
|
||||
EAPI void
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_priv.h"
|
||||
|
||||
/**
|
||||
* @defgroup Photo Photo
|
||||
*
|
||||
* For displaying the photo of a person (contact). Simple yet
|
||||
* with a very specific purpose.
|
||||
*/
|
||||
|
||||
typedef struct _Widget_Data Widget_Data;
|
||||
|
||||
struct _Widget_Data
|
||||
|
@ -55,6 +62,14 @@ _mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
evas_object_smart_callback_call(data, "clicked", NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new photo to the parent
|
||||
*
|
||||
* @param parent The parent object
|
||||
* @return The new object or NULL if it cannot be created
|
||||
*
|
||||
* @ingroup Photo
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_photo_add(Evas_Object *parent)
|
||||
{
|
||||
|
@ -95,6 +110,16 @@ elm_photo_add(Evas_Object *parent)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the file that will be used as photo
|
||||
*
|
||||
* @param obj The photo object
|
||||
* @param file The path to file that will be used as photo
|
||||
*
|
||||
* @return (1 = sucess, 0 = error)
|
||||
*
|
||||
* @ingroup Photo
|
||||
*/
|
||||
EAPI Eina_Bool
|
||||
elm_photo_file_set(Evas_Object *obj, const char *file)
|
||||
{
|
||||
|
@ -105,6 +130,14 @@ elm_photo_file_set(Evas_Object *obj, const char *file)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the size that will be used on the photo
|
||||
*
|
||||
* @param obj The photo object
|
||||
* @param size The size that the photo will be
|
||||
*
|
||||
* @ingroup Photo
|
||||
*/
|
||||
EAPI void
|
||||
elm_photo_size_set(Evas_Object *obj, int size)
|
||||
{
|
||||
|
|
|
@ -255,7 +255,7 @@ elm_progressbar_pulse_set (Evas_Object *obj, Eina_Bool pulse)
|
|||
* (the cursor pulse right to left and left to right, and loop) if pulse is set to 1.
|
||||
*
|
||||
* @param obj The progressbar object
|
||||
* @param pulse The pulse flag. 1 == pulse, 0 == normal
|
||||
* @param state The pulse flag. 1 == pulse, 0 == normal
|
||||
*
|
||||
* @ingroup Progressbar
|
||||
*/
|
||||
|
|
|
@ -378,13 +378,13 @@ elm_radio_state_value_set(Evas_Object *obj, int value)
|
|||
}
|
||||
|
||||
/**
|
||||
* Set the value the radio
|
||||
* Set the value of the radio.
|
||||
*
|
||||
* This sets the value of the radio group and will also set the value if
|
||||
* pointed to, to the value supplied, but will not call any callbacks.
|
||||
*
|
||||
* @param obj The radio object
|
||||
* @param state The value to use for the group
|
||||
* @param value The value to use for the group
|
||||
*
|
||||
* @ingroup Radio
|
||||
*/
|
||||
|
|
|
@ -458,7 +458,7 @@ elm_slider_unit_format_set(Evas_Object *obj, const char *units)
|
|||
* information on how this works.
|
||||
*
|
||||
* @param obj The slider object
|
||||
* @param units The format string for the indicator display
|
||||
* @param indicator The format string for the indicator display
|
||||
*
|
||||
* @ingroup Slider
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_priv.h"
|
||||
|
||||
/**
|
||||
* @defgroup Table Table
|
||||
*
|
||||
* Arranges widgets in a table where items can also span multiple
|
||||
* columns or rows - even overlap (and then be raised or lowered
|
||||
* accordingly to adjust stacking if they do overlap).
|
||||
*/
|
||||
|
||||
typedef struct _Widget_Data Widget_Data;
|
||||
|
||||
struct _Widget_Data
|
||||
|
@ -55,6 +63,14 @@ _sub_del(void *data, Evas_Object *obj, void *event_info)
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new table to the parent
|
||||
*
|
||||
* @param parent The parent object
|
||||
* @return The new object or NULL if it cannot be created
|
||||
*
|
||||
* @ingroup Table
|
||||
*/
|
||||
EAPI Evas_Object *
|
||||
elm_table_add(Evas_Object *parent)
|
||||
{
|
||||
|
@ -80,6 +96,16 @@ elm_table_add(Evas_Object *parent)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the homogenous layout in the table
|
||||
*
|
||||
* @param obj The layout object
|
||||
* @param homogenous A boolean to set (or no) layout homogenous
|
||||
* in the table
|
||||
* (1 = homogenous, 0 = no homogenous)
|
||||
*
|
||||
* @ingroup Table
|
||||
*/
|
||||
EAPI void
|
||||
elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous)
|
||||
{
|
||||
|
@ -87,6 +113,18 @@ elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous)
|
|||
_els_smart_table_homogenous_set(wd->tbl, homogenous);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a subobject on the table with the coordinates passed
|
||||
*
|
||||
* @param obj The table object
|
||||
* @param subobj The subobject to be added to the table
|
||||
* @param x Coordinate to X axis
|
||||
* @param y Coordinate to Y axis
|
||||
* @param w Horizontal length
|
||||
* @param h Vertical length
|
||||
*
|
||||
* @ingroup Table
|
||||
*/
|
||||
EAPI void
|
||||
elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue