seoz pushed a commit to branch master.

commit 028ce85127b38ae7dcd2dbde26f31e7853c238fe
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed Jul 3 13:19:56 2013 +0900

    elm_win.c: added comments for internal functions.
    
    _elm_win_resize_objects_eval()
    _window_layout_stack()
---
 src/lib/elm_win.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 3795aa6..7b00a98 100644
--- a/src/lib/elm_win.c
+++ b/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)
 {

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to