~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to Nux/GridHLayout.cpp

  • Committer: Jay Taoko
  • Date: 2011-10-21 23:49:15 UTC
  • mfrom: (508.1.2 nux-20)
  • Revision ID: jay.taoko@canonical.com-20111021234915-hnzakb5ndebica8i
* Removed custom Nux types: t_u32, t_s32, t_bool, ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
      return eCompliantHeight | eCompliantWidth;
172
172
    }
173
173
 
174
 
    t_s32 num_elements = 0;
 
174
    int num_elements = 0;
175
175
 
176
176
    std::list<Area *>::iterator it;
177
177
    for (it = _layout_element_list.begin(); it != _layout_element_list.end(); it++)
185
185
      (*it)->SetLayoutDone(false);
186
186
    }
187
187
 
188
 
    t_s32 original_height = GetBaseHeight();
 
188
    int original_height = GetBaseHeight();
189
189
 
190
190
    // The grid layout goes through the child elements and assign them a size and position. Children are filled in the grid like this:
191
191
    //  0   1   2   3   4   5
321
321
      return eCompliantHeight | eCompliantWidth;
322
322
    }
323
323
 
324
 
    t_s32 num_elements = 0;
 
324
    int num_elements = 0;
325
325
 
326
326
    std::list<Area *>::iterator it;
327
327
    for (it = _layout_element_list.begin(); it != _layout_element_list.end(); it++)
335
335
      (*it)->SetLayoutDone(false);
336
336
    }
337
337
 
338
 
    t_s32 original_width = GetBaseWidth();
 
338
    int original_width = GetBaseWidth();
339
339
 
340
340
    nux::Geometry base = GetGeometry();
341
341
    it = elements.begin();