aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-07-03 13:19:56 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-07-03 13:20:01 +0900
commit71341d5005d8c5c17bfad10a2906b8a55c99abce (patch)
tree02c446bec2f81b8cdd74832b934f7ef19d70b958 /legacy/elementary/src/lib/elm_win.c
parent[Entry] Avoid showing multiple popups on one entry. (diff)
downloadefl-71341d5005d8c5c17bfad10a2906b8a55c99abce.tar.gz
elm_win.c: added comments for internal functions.
_elm_win_resize_objects_eval() _window_layout_stack()
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 3795aa676c..7b00a986b8 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1842,6 +1842,18 @@ _elm_win_xwin_update(Elm_Win_Smart_Data *sd)
#endif
+/**
+ * @internal
+ *
+ * Resize the window according to window layout's min and weight.
+ * If the window layout's weight is 0.0, the window max is limited to layout's
+ * min size.
+ *
+ * This is called when the window layout's weight hint is changed or when the
+ * window is rotated.
+ *
+ * @param obj window object
+ */
static void
_elm_win_resize_objects_eval(Evas_Object *obj)
{
@@ -2544,6 +2556,17 @@ _elm_win_cb_show(void *data __UNUSED__,
_elm_win_state_eval_queue();
}
+/**
+ * @internal
+ *
+ * Recalculate the size of window considering its resize objects' weight and
+ * min size. If any of its resize objects' weight equals to 0.0, window
+ * layout's weight will be set to 0.0.
+ *
+ * @param o box object
+ * @param p box's private data
+ * @param data window object
+ */
static void
_window_layout_stack(Evas_Object *o, Evas_Object_Box_Data *p, void *data)
{