* Functions to deal with objects with rotation properties (see @ref edcref).
*/ //@{
+/** Get the flag which enables mapping for the part.
+ *
+ * @param obj Object being edited.
+ * @param part The name of the part.
+ * @param state The name of the state (not including the state value).
+ * @param value The state value.
+ *
+ * @return @cEINA_TRUE in case if mapping allowed or @cEINA_FALSE otherwise.
+ * @since 1.11
+ **/
+EAPI Eina_Bool
+edje_edit_state_map_on_get(Evas_Object *obj, const char *part, const char *state, double value);
+
+/** This enables mapping for the part. Default is 0.
+ *
+ * @param obj Object being edited.
+ * @param part The name of the part.
+ * @param state The name of the state (not including the state value).
+ * @param value The state value.
+ * @param on The flag which allow mapping for the part.
+ *
+ * @return @cEINA_TRUE in case of success, @cEINA_FALSE otherwise.
+ * @since 1.11
+ **/
+EAPI Eina_Bool
+edje_edit_state_map_on_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool on);
+
/** Get the part's name that is used as the 'perspective point'.
*
* @param obj Object being edited.
return pd->limit;
}
+/**************/
+/* MAP API */
+/**************/
EAPI const char *
edje_edit_state_map_light_get(Evas_Object *obj, const char *part, const char *state, double value)
return EINA_TRUE;
}
-/**************/
-/* MAP API */
-/**************/
-
EAPI const char *
edje_edit_state_map_perspective_get(Evas_Object *obj, const char *part, const char *state, double value)
{
return EINA_TRUE;
}
+EAPI Eina_Bool
+edje_edit_state_map_on_get(Evas_Object *obj, const char *part, const char *state, double value)
+{
+ GET_PD_OR_RETURN(EINA_FALSE);
+
+ return pd->map.on;
+}
+
+EAPI Eina_Bool
+edje_edit_state_map_on_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool on)
+{
+ GET_PD_OR_RETURN(EINA_FALSE);
+
+ pd->map.on = on;
+
+ edje_object_calc_force(obj);
+ return EINA_TRUE;
+}
/**************/
/* TEXT API */