summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVorobiov Vitalii <vi.vorobiov@samsung.com>2013-10-30 22:14:42 +0900
committerCedric Bail <cedric.bail@free.fr>2013-10-30 22:30:16 +0900
commita4e1a2e80ac89ddf75e6b7f4f10f8d2df2c4a7a2 (patch)
treefef731dab5a537d47b73377a5d56b64f5a5748bb /src
parent919c51de088fb7a3e352e467caf774b20fceb70a (diff)
edje: make function "edje_edit_state_min/max..." return Eina_Bool.
Make the following function return Eina_Bool so the caller can detect errors : List of updated functions: edje_edit_state_min_h_set edje_edit_state_min_w_set edje_edit_state_max_h_set edje_edit_state_max_w_set Reviewers: cedric, seoz CC: reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D299 Signed-off-by: Cedric Bail <cedric.bail@free.fr>
Diffstat (limited to 'src')
-rw-r--r--src/lib/edje/Edje_Edit.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/edje/Edje_Edit.h b/src/lib/edje/Edje_Edit.h
index 70621bedb4..ca521b5af2 100644
--- a/src/lib/edje/Edje_Edit.h
+++ b/src/lib/edje/Edje_Edit.h
@@ -1637,12 +1637,15 @@ EAPI void edje_edit_state_align_y_set(Evas_Object *obj, const char *part, const
1637EAPI int edje_edit_state_min_w_get(Evas_Object *obj, const char *part, const char *state, double value); 1637EAPI int edje_edit_state_min_w_get(Evas_Object *obj, const char *part, const char *state, double value);
1638 1638
1639/** Set the minimum width value of a part state. 1639/** Set the minimum width value of a part state.
1640 * The minimum width should be greater than 0.
1640 * 1641 *
1641 * @param obj Object being edited. 1642 * @param obj Object being edited.
1642 * @param part Part that contain state. 1643 * @param part Part that contain state.
1643 * @param state The name of the state to set minimum width (not including the state value). 1644 * @param state The name of the state to set minimum width (not including the state value).
1644 * @param value The state value. 1645 * @param value The state value.
1645 * @param min_w Minimum width value. 1646 * @param min_w Minimum width value.
1647 *
1648 * @return EINA_TRUE if successful, EINA_FALSE otherwise.
1646 */ 1649 */
1647EAPI Eina_Bool edje_edit_state_min_w_set(Evas_Object *obj, const char *part, const char *state, double value, int min_w); 1650EAPI Eina_Bool edje_edit_state_min_w_set(Evas_Object *obj, const char *part, const char *state, double value, int min_w);
1648 1651
@@ -1658,12 +1661,15 @@ EAPI Eina_Bool edje_edit_state_min_w_set(Evas_Object *obj, const char *part, con
1658EAPI int edje_edit_state_min_h_get(Evas_Object *obj, const char *part, const char *state, double value); 1661EAPI int edje_edit_state_min_h_get(Evas_Object *obj, const char *part, const char *state, double value);
1659 1662
1660/** Set the minimum height value of a part state. 1663/** Set the minimum height value of a part state.
1664 * The minimum height should be greater than 0.
1661 * 1665 *
1662 * @param obj Object being edited. 1666 * @param obj Object being edited.
1663 * @param part Part that contain state. 1667 * @param part Part that contain state.
1664 * @param state The name of the state to set minimum height (not including the state value). 1668 * @param state The name of the state to set minimum height (not including the state value).
1665 * @param value The state value. 1669 * @param value The state value.
1666 * @param min_h Minimum height value. 1670 * @param min_h Minimum height value.
1671 *
1672 * @return EINA_TRUE if successful, EINA_FALSE otherwise.
1667 */ 1673 */
1668EAPI Eina_Bool edje_edit_state_min_h_set(Evas_Object *obj, const char *part, const char *state, double value, int min_h); 1674EAPI Eina_Bool edje_edit_state_min_h_set(Evas_Object *obj, const char *part, const char *state, double value, int min_h);
1669 1675
@@ -1679,12 +1685,17 @@ EAPI Eina_Bool edje_edit_state_min_h_set(Evas_Object *obj, const char *part, con
1679EAPI int edje_edit_state_max_w_get(Evas_Object *obj, const char *part, const char *state, double value); 1685EAPI int edje_edit_state_max_w_get(Evas_Object *obj, const char *part, const char *state, double value);
1680 1686
1681/** Set the maximum width value of a part state. 1687/** Set the maximum width value of a part state.
1688 * The maximum width should be greater than -1.
1689 * The value -1 means that state doesn't have any boundaries on width direction.
1690 * (it can be any size that is bigger than it's min)
1682 * 1691 *
1683 * @param obj Object being edited. 1692 * @param obj Object being edited.
1684 * @param part Part that contain state. 1693 * @param part Part that contain state.
1685 * @param state The name of the state to set maximum width (not including the state value). 1694 * @param state The name of the state to set maximum width (not including the state value).
1686 * @param value The state value. 1695 * @param value The state value.
1687 * @param max_w Maximum width value. 1696 * @param max_w Maximum width value.
1697 *
1698 * @return EINA_TRUE if successful, EINA_FALSE otherwise.
1688 */ 1699 */
1689EAPI Eina_Bool edje_edit_state_max_w_set(Evas_Object *obj, const char *part, const char *state, double value, int max_w); 1700EAPI Eina_Bool edje_edit_state_max_w_set(Evas_Object *obj, const char *part, const char *state, double value, int max_w);
1690 1701
@@ -1700,12 +1711,17 @@ EAPI Eina_Bool edje_edit_state_max_w_set(Evas_Object *obj, const char *part, con
1700EAPI int edje_edit_state_max_h_get(Evas_Object *obj, const char *part, const char *state, double value); 1711EAPI int edje_edit_state_max_h_get(Evas_Object *obj, const char *part, const char *state, double value);
1701 1712
1702/** Set the maximum height value of a part state. 1713/** Set the maximum height value of a part state.
1714 * The maximum height should be greater than -1.
1715 * The value -1 means that state doesn't have any boundaries on height direction.
1716 * (it can be any size that is bigger than it's min)
1703 * 1717 *
1704 * @param obj Object being edited. 1718 * @param obj Object being edited.
1705 * @param part Part that contain state. 1719 * @param part Part that contain state.
1706 * @param state The name of the state to set maximum height (not including the state value). 1720 * @param state The name of the state to set maximum height (not including the state value).
1707 * @param value The state value. 1721 * @param value The state value.
1708 * @param max_h Maximum height value. 1722 * @param max_h Maximum height value.
1723 *
1724 * @return EINA_TRUE if successful, EINA_FALSE otherwise.
1709 */ 1725 */
1710EAPI Eina_Bool edje_edit_state_max_h_set(Evas_Object *obj, const char *part, const char *state, double value, int max_h); 1726EAPI Eina_Bool edje_edit_state_max_h_set(Evas_Object *obj, const char *part, const char *state, double value, int max_h);
1711 1727