~veebers/unity/expo-ap-test-fix

« back to all changes in this revision

Viewing changes to dash/FilterBar.cpp

  • Committer: Tarmac
  • Author(s): Neil Jagdish Patel, Jay Taoko, Neil Jagdish Patel
  • Date: 2012-09-19 13:58:01 UTC
  • mfrom: (2708.2.4 unity.dash-to-preview)
  • Revision ID: tarmac-20120919135801-xqqohqo5oifanfda
This branch introduces dash to preview transitions. I relies on this nux branch: https://code.launchpad.net/~unity-team/nux/nux.redirected-views/+merge/124661

Animation from Dash to Preview slides out elements of the dash to make room for the previews. The process happens in 250ms. 

Many changes were necessary to create this effects. It has to be said that the changes have an impact on the rendering engine and the way elements are drawn in the dash. Efforts are being made to reduce this impact.. Fixes: https://bugs.launchpad.net/bugs/1049593. Approved by Neil J. Patel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
  }
100
100
}
101
101
 
102
 
void FilterBar::Draw(nux::GraphicsEngine& GfxContext, bool force_draw)
 
102
void FilterBar::Draw(nux::GraphicsEngine& graphics_engine, bool force_draw)
103
103
{
104
 
  nux::Geometry const& geo = GetGeometry();
105
104
 
106
 
  GfxContext.PushClippingRectangle(geo);
107
 
  nux::GetPainter().PaintBackground(GfxContext, geo);
108
 
  GfxContext.PopClippingRectangle();
109
105
}
110
106
 
111
 
void FilterBar::DrawContent(nux::GraphicsEngine& GfxContext, bool force_draw)
 
107
void FilterBar::DrawContent(nux::GraphicsEngine& graphics_engine, bool force_draw)
112
108
{
113
 
  GfxContext.PushClippingRectangle(GetGeometry());
114
 
  GetLayout()->ProcessDraw(GfxContext, force_draw);
115
 
 
116
 
  GfxContext.PopClippingRectangle();
 
109
  graphics_engine.PushClippingRectangle(GetGeometry());
 
110
  GetLayout()->ProcessDraw(graphics_engine, force_draw);
 
111
  graphics_engine.PopClippingRectangle();
117
112
}
118
113
 
119
114
//