~amaranth/+junk/nux-pkg

« back to all changes in this revision

Viewing changes to Nux/GridVLayout.cpp

  • Committer: Didier Roche
  • Date: 2011-07-04 15:30:29 UTC
  • mfrom: (159.101.37 nux)
  • mto: This revision was merged to the branch mainline in revision 251.
  • Revision ID: didier.roche@canonical.com-20110704153029-4es95dij4bif1gwd
Tags: upstream-1.0.4
ImportĀ upstreamĀ versionĀ 1.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
    {
111
111
      if ( (*it)->IsView() )
112
112
      {
113
 
        View *ic = NUX_STATIC_CAST (View *, (*it) );
 
113
        View *ic = static_cast<View *>(*it);
114
114
        ViewList->push_back (ic);
115
115
      }
116
116
      else if ( (*it)->IsLayout() )
117
117
      {
118
 
        Layout *layout = NUX_STATIC_CAST (Layout *, (*it) );
 
118
        Layout *layout = static_cast<Layout *>(*it);
119
119
        layout->GetCompositeList (ViewList);
120
120
      }
121
121
    }
164
164
      int Y = base.y + m_v_out_margin;
165
165
 
166
166
      bool first_element_of_column = true;
167
 
      bool first_column = true;
168
167
 
169
 
      for(int i = 0; i < num_elements; i++) 
 
168
      for(int i = 0; i < num_elements; i++)
170
169
      {
171
170
        if (num_column == 1)
172
171
          num_row++;
173
172
 
174
173
        if(first_element_of_column)
175
174
        {
176
 
          first_column = false;
177
 
          
178
175
          first_element_of_column = false;
179
176
        }
180
177
 
306
303
          GfxContext.PushClippingRectangle (Geometry (X, Y, _children_size.width, _children_size.height));
307
304
          if ((*it)->IsView ())
308
305
          {
309
 
            View *ic = NUX_STATIC_CAST (View *, (*it) );
 
306
            View *ic = static_cast<View *>(*it);
310
307
            ic->ProcessDraw (GfxContext, force_draw);
311
308
          }
312
309
          else if ((*it)->IsLayout ())
313
310
          {
314
 
            Layout *layout = NUX_STATIC_CAST (Layout *, (*it));
 
311
            Layout *layout = static_cast<Layout *>(*it);
315
312
            layout->ProcessDraw (GfxContext, force_draw);
316
313
          }
317
314