From 2e86249f591c49530e20e6d4d740e4e9334e58d6 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Sun, 4 Dec 2011 05:02:02 +0000 Subject: [PATCH] header and docs for elm_win_center got lost in an earlier merge I guess git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65866 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/Elementary.h.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 6d2cedb..cfff393 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -4188,6 +4188,16 @@ extern "C" { */ EAPI void elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1); /** + * Center a window on its screen + * + * This function centers window @p obj horizontally and/or vertically based on the values + * of @p h and @v. + * @param obj The window object + * @param h If true, center horizontally. If false, do not change horizontal location. + * @param v If true, center vertically. If false, do not change vertical location. + */ + EAPI void elm_win_center(Evas_Object *obj, Eina_Bool h, Eina_Bool v) EINA_ARG_NONNULL(1); + /** * Set the borderless state of a window. * * This function requests the Window Manager to not draw any decoration -- 2.7.4