From: Shilpa Singh Date: Mon, 5 Sep 2011 02:31:53 +0000 (+0900) Subject: [Password_last_show]: Password show last set feature's set/get APIs merged from opens... X-Git-Tag: REL_F_I9200_20110909_1~6^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8c54517d8d8312956b91001cd7891537a03485c;p=framework%2Fuifw%2Felementary.git [Password_last_show]: Password show last set feature's set/get APIs merged from opensource. Change-Id: I657119215b89b6b0df25b7d0fe662e0ae7aa6827 --- diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 8bb0f2f..a63c307 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -766,6 +766,69 @@ extern "C" { * @ingroup Scaling */ EAPI double elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); + + /** + * @defgroup Password_last_show Password last input show + * + * Last show feature of password mode enables user to view + * the last input entered for few seconds before masking it. + * These functions allow to set this feature in password mode + * of entry widget and also allow to manipulate the duration + * for which the input has to be visible. + * + * @{ + */ + + /** + * Get show last setting of password mode. + * + * This gets the show last input setting of password mode which might be + * enabled or disabled. + * + * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE + * if it's disabled. + * @ingroup Password_last_show + */ + EAPI Eina_Bool elm_password_show_last_get(void); + + /** + * Set show last setting in password mode. + * + * This enables or disables show last setting of password mode. + * + * @param password_show_last If EINA_TRUE enable's last input show in password mode. + * @see elm_password_show_last_timeout_set() + * @ingroup Password_last_show + */ + EAPI void elm_password_show_last_set(Eina_Bool password_show_last); + + /** + * Get's the timeout value in last show password mode. + * + * This gets the time out value for which the last input entered in password + * mode will be visible. + * + * @return The timeout value of last show password mode. + * @ingroup Password_last_show + */ + EAPI double elm_password_show_last_timeout_get(void); + + /** + * Set's the timeout value in last show password mode. + * + * This sets the time out value for which the last input entered in password + * mode will be visible. + * + * @param password_show_last_timeout The timeout value. + * @see elm_password_show_last_set() + * @ingroup Password_last_show + */ + EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout); + + /** + * @} + */ + EAPI Eina_Bool elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); EAPI void elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1); EAPI Eina_Bool elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index 4bd783b..c404a7e 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -1271,6 +1271,34 @@ elm_scale_all_set(double scale) #endif } +EAPI Eina_Bool +elm_password_show_last_get(void) +{ + return _elm_config->password_show_last; +} + +EAPI void +elm_password_show_last_set(Eina_Bool password_show_last) +{ + if (_elm_config->password_show_last == password_show_last) return; + _elm_config->password_show_last = password_show_last; + edje_password_show_last_set(_elm_config->password_show_last); +} + +EAPI double +elm_password_show_last_timeout_get(void) +{ + return _elm_config->password_show_last_timeout; +} + +EAPI void +elm_password_show_last_timeout_set(double password_show_last_timeout) +{ + if (_elm_config->password_show_last_timeout == password_show_last_timeout) return; + _elm_config->password_show_last_timeout = password_show_last_timeout; + edje_password_show_last_timeout_set(_elm_config->password_show_last_timeout); +} + EAPI void elm_object_style_set(Evas_Object *obj, const char *style)