summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas.h
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2013-02-10 07:52:17 +0000
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2013-02-10 07:52:17 +0000
commitec7a42b2041a7fdb887b76c28c2858c21b4236ea (patch)
treef6b1608f23c75402667a84b55cca35bfdcdd569a /src/lib/evas/Evas.h
parent825df518a98d16d86c3c1a2d4c610cc867b2eccd (diff)
Replace supported_types
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com> SVN revision: 83802
Diffstat (limited to 'src/lib/evas/Evas.h')
-rw-r--r--src/lib/evas/Evas.h48
1 files changed, 27 insertions, 21 deletions
diff --git a/src/lib/evas/Evas.h b/src/lib/evas/Evas.h
index 5131da9..c1f418b 100644
--- a/src/lib/evas/Evas.h
+++ b/src/lib/evas/Evas.h
@@ -13583,10 +13583,11 @@ EAPI Evas_Object *evas_object_smart_parent_get(const Evas_Object *obj) EINA_WARN
13583 * type, @c EINA_FALSE otherwise 13583 * type, @c EINA_FALSE otherwise
13584 * 13584 *
13585 * If @p obj is not a smart object, this call will fail 13585 * If @p obj is not a smart object, this call will fail
13586 * immediately. Otherwise, make sure evas_smart_class_inherit() or its 13586 * immediately.
13587 * sibling functions were used correctly when creating the smart 13587 *
13588 * object's class, so it has a valid @b parent smart class pointer 13588 * This function supports Eo and legacy inheritance mechanisms. However,
13589 * set. 13589 * it is recommended to use eo_isa instead if your object is using Eo from
13590 * top to bottom.
13590 * 13591 *
13591 * The checks use smart classes names and <b>string 13592 * The checks use smart classes names and <b>string
13592 * comparison</b>. There is a version of this same check using 13593 * comparison</b>. There is a version of this same check using
@@ -13594,7 +13595,7 @@ EAPI Evas_Object *evas_object_smart_parent_get(const Evas_Object *obj) EINA_WARN
13594 * string in Evas. 13595 * string in Evas.
13595 * 13596 *
13596 * @see evas_object_smart_type_check_ptr() 13597 * @see evas_object_smart_type_check_ptr()
13597 * @see #EVAS_SMART_SUBCLASS_NEW 13598 * @see eo_isa
13598 * 13599 *
13599 * @ingroup Evas_Smart_Object_Group 13600 * @ingroup Evas_Smart_Object_Group
13600 */ 13601 */
@@ -13610,12 +13611,33 @@ EAPI Eina_Bool evas_object_smart_type_check(const Evas_Object *obj, const cha
13610 * type, @c EINA_FALSE otherwise 13611 * type, @c EINA_FALSE otherwise
13611 * 13612 *
13612 * @see evas_object_smart_type_check() for more details 13613 * @see evas_object_smart_type_check() for more details
13614 * @see eo_isa
13613 * 13615 *
13614 * @ingroup Evas_Smart_Object_Group 13616 * @ingroup Evas_Smart_Object_Group
13615 */ 13617 */
13616EAPI Eina_Bool evas_object_smart_type_check_ptr(const Evas_Object *obj, const char *type) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1, 2); 13618EAPI Eina_Bool evas_object_smart_type_check_ptr(const Evas_Object *obj, const char *type) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1, 2);
13617 13619
13618/** 13620/**
13621 * Registers an object type and its associated class. LEGACY MECHANISM SUPPORT.
13622 *
13623 * This function is invoked in the class constructor of smart classes. It will
13624 * add the type and the class into a hash table that will then be used to check
13625 * the type of an object.
13626 * This function has been implemented to support legacy mechanism that checks
13627 * objects types by name.
13628 * USE IT ONLY FOR LEGACY SUPPORT.
13629 * Otherwise, it is HIGHLY recommended to use eo_isa.
13630 *
13631 * @param type The type (name string) to add.
13632 * @param klass The class to associate to the type.
13633 *
13634 * @see eo_isa
13635 *
13636 * @ingroup Evas_Smart_Object_Group
13637 */
13638EAPI void evas_smart_legacy_type_register(const char *type, const Eo_Class *klass) EINA_ARG_NONNULL(1, 2);
13639
13640/**
13619 * Get the #Evas_Smart from which @p obj smart object was created. 13641 * Get the #Evas_Smart from which @p obj smart object was created.
13620 * 13642 *
13621 * @param obj a smart object 13643 * @param obj a smart object
@@ -17434,7 +17456,6 @@ enum
17434 EVAS_OBJ_SUB_ID_STACK_BELOW, 17456 EVAS_OBJ_SUB_ID_STACK_BELOW,
17435 EVAS_OBJ_SUB_ID_ABOVE_GET, 17457 EVAS_OBJ_SUB_ID_ABOVE_GET,
17436 EVAS_OBJ_SUB_ID_BELOW_GET, 17458 EVAS_OBJ_SUB_ID_BELOW_GET,
17437 EVAS_OBJ_SUB_ID_TYPE_CHECK,
17438 EVAS_OBJ_SUB_ID_LAST 17459 EVAS_OBJ_SUB_ID_LAST
17439}; 17460};
17440 17461
@@ -18399,21 +18420,6 @@ enum
18399 */ 18420 */
18400#define evas_obj_below_get(ret) EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_BELOW_GET), EO_TYPECHECK(Evas_Object **, ret) 18421#define evas_obj_below_get(ret) EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_BELOW_GET), EO_TYPECHECK(Evas_Object **, ret)
18401 18422
18402/**
18403 * @def evas_obj_type_check
18404 * @since 1.8
18405 *
18406 * Checks whether a given object is of a given class.
18407 *
18408 * @param[in] type in
18409 * @param[out] type_check out
18410 *
18411 * This function has been implemented to support legacy smart inheritance
18412 * and needs to be removed when all the objects are Eo objects (inc. Edje and ELM)
18413 * @see evas_object_smart_type_check
18414 */
18415#define evas_obj_type_check(type, type_check) EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_TYPE_CHECK), EO_TYPECHECK(const char *, type), EO_TYPECHECK(Eina_Bool *, type_check)
18416
18417#define EVAS_OBJ_CLASS evas_object_class_get() 18423#define EVAS_OBJ_CLASS evas_object_class_get()
18418 18424
18419const Eo_Class *evas_object_class_get(void) EINA_CONST; 18425const Eo_Class *evas_object_class_get(void) EINA_CONST;