summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorJonas M. Gastal <jgastal@profusion.mobi>2012-09-25 19:43:24 +0000
committerJonas M. Gastal <jgastal@profusion.mobi>2012-09-25 19:43:24 +0000
commit5f448b1e8f87596538becc471375d41d079ac93a (patch)
tree1b623d4f90eadf53077672f8cc7daa9eae034cfc /legacy
parent80a162d31903b2ad338747b7dd3313fa751bec5f (diff)
edje: Part Swallow Group created in documentation.
Author: Lucas Joia <lucasjoia@profusion.mobi> SVN revision: 77055
Diffstat (limited to 'legacy')
-rw-r--r--legacy/edje/src/lib/Edje.h115
1 files changed, 69 insertions, 46 deletions
diff --git a/legacy/edje/src/lib/Edje.h b/legacy/edje/src/lib/Edje.h
index 023a8e9d34..327bb62742 100644
--- a/legacy/edje/src/lib/Edje.h
+++ b/legacy/edje/src/lib/Edje.h
@@ -1232,15 +1232,6 @@ EAPI Eina_Bool edje_object_preload (Evas_Object *obj, Eina_Bool c
1232 * @{ 1232 * @{
1233 */ 1233 */
1234 1234
1235typedef enum _Edje_Aspect_Control
1236{
1237 EDJE_ASPECT_CONTROL_NONE = 0,
1238 EDJE_ASPECT_CONTROL_NEITHER = 1,
1239 EDJE_ASPECT_CONTROL_HORIZONTAL = 2,
1240 EDJE_ASPECT_CONTROL_VERTICAL = 3,
1241 EDJE_ASPECT_CONTROL_BOTH = 4
1242} Edje_Aspect_Control;
1243
1244typedef enum _Edje_Text_Effect 1235typedef enum _Edje_Text_Effect
1245{ 1236{
1246#define EDJE_TEXT_EFFECT_MASK_BASIC 0xf 1237#define EDJE_TEXT_EFFECT_MASK_BASIC 0xf
@@ -1814,43 +1805,6 @@ EAPI Eina_Bool edje_object_text_class_set (Evas_Object *obj, const c
1814 */ 1805 */
1815 1806
1816/** 1807/**
1817 * @brief Set the object minimum size.
1818 *
1819 * @param obj A valid Evas_Object handle
1820 * @param minw The minimum width
1821 * @param minh The minimum height
1822 *
1823 * This sets the minimum size restriction for the object.
1824 */
1825EAPI void edje_extern_object_min_size_set (Evas_Object *obj, Evas_Coord minw, Evas_Coord minh);
1826
1827/**
1828 * @brief Set the object maximum size.
1829 *
1830 * @param obj A valid Evas_Object handle
1831 * @param maxw The maximum width
1832 * @param maxh The maximum height
1833 *
1834 * This sets the maximum size restriction for the object.
1835 */
1836EAPI void edje_extern_object_max_size_set (Evas_Object *obj, Evas_Coord maxw, Evas_Coord maxh);
1837
1838/**
1839 * @brief Set the object aspect size.
1840 *
1841 * @param obj A valid Evas_Object handle
1842 * @param aspect The aspect control axes
1843 * @param aw The aspect radio width
1844 * @param ah The aspect ratio height
1845 *
1846 * This sets the desired aspect ratio to keep an object that will be
1847 * swallowed by Edje. The width and height define a preferred size
1848 * ASPECT and the object may be scaled to be larger or smaller, but
1849 * retaining the relative scale of both aspect width and height.
1850 */
1851EAPI void edje_extern_object_aspect_set (Evas_Object *obj, Edje_Aspect_Control aspect, Evas_Coord aw, Evas_Coord ah);
1852
1853/**
1854 * @brief Registers a custom layout to be used in edje boxes. 1808 * @brief Registers a custom layout to be used in edje boxes.
1855 * 1809 *
1856 * @param name The name of the layout 1810 * @param name The name of the layout
@@ -3632,6 +3586,75 @@ EAPI void *edje_object_text_markup_filter_callback_del(Evas_Object *obj, const c
3632EAPI void *edje_object_text_markup_filter_callback_del_full(Evas_Object *obj, const char *part, Edje_Markup_Filter_Cb func, void *data); 3586EAPI void *edje_object_text_markup_filter_callback_del_full(Evas_Object *obj, const char *part, Edje_Markup_Filter_Cb func, void *data);
3633 3587
3634/** 3588/**
3589 * @}
3590 */
3591
3592/**
3593 * @defgroup Edje_Part_Swallow Edje Swallow Part
3594 *
3595 * @brief Functions that deal with parts of type swallow and swallowed objects.
3596 *
3597 * A important feature of Edje is to be able to create Evas_Objects
3598 * in code and place them in a layout. And that is what swallowing
3599 * is all about.
3600 *
3601 * Swallow parts are place holders defined in the EDC file for
3602 * objects that one may want to include in the layout later, or for
3603 * objects that are not native of Edje. In this last case, Edje will
3604 * only treat the Evas_Object properties of the swallowed objects.
3605 *
3606 * @ingroup Edje_Object_Part
3607 *
3608 * @{
3609 */
3610
3611typedef enum _Edje_Aspect_Control
3612{
3613 EDJE_ASPECT_CONTROL_NONE = 0,
3614 EDJE_ASPECT_CONTROL_NEITHER = 1,
3615 EDJE_ASPECT_CONTROL_HORIZONTAL = 2,
3616 EDJE_ASPECT_CONTROL_VERTICAL = 3,
3617 EDJE_ASPECT_CONTROL_BOTH = 4
3618} Edje_Aspect_Control;
3619
3620/**
3621 * @brief Set the object minimum size.
3622 *
3623 * @param obj A valid Evas_Object handle
3624 * @param minw The minimum width
3625 * @param minh The minimum height
3626 *
3627 * This sets the minimum size restriction for the object.
3628 */
3629EAPI void edje_extern_object_min_size_set (Evas_Object *obj, Evas_Coord minw, Evas_Coord minh);
3630
3631/**
3632 * @brief Set the object maximum size.
3633 *
3634 * @param obj A valid Evas_Object handle
3635 * @param maxw The maximum width
3636 * @param maxh The maximum height
3637 *
3638 * This sets the maximum size restriction for the object.
3639 */
3640EAPI void edje_extern_object_max_size_set (Evas_Object *obj, Evas_Coord maxw, Evas_Coord maxh);
3641
3642/**
3643 * @brief Set the object aspect size.
3644 *
3645 * @param obj A valid Evas_Object handle
3646 * @param aspect The aspect control axes
3647 * @param aw The aspect radio width
3648 * @param ah The aspect ratio height
3649 *
3650 * This sets the desired aspect ratio to keep an object that will be
3651 * swallowed by Edje. The width and height define a preferred size
3652 * ASPECT and the object may be scaled to be larger or smaller, but
3653 * retaining the relative scale of both aspect width and height.
3654 */
3655EAPI void edje_extern_object_aspect_set (Evas_Object *obj, Edje_Aspect_Control aspect, Evas_Coord aw, Evas_Coord ah);
3656
3657/**
3635 * @brief "Swallows" an object into one of the Edje object @c SWALLOW 3658 * @brief "Swallows" an object into one of the Edje object @c SWALLOW
3636 * parts. 3659 * parts.
3637 * 3660 *