~unity-team/unity/trusty-1066971

« back to all changes in this revision

Viewing changes to unity-shared/SearchBarSpinner.h

  • Committer: Chris Townsend
  • Author(s): Marco Trevisan (Treviño), Eleni Maria Stea
  • Date: 2014-07-24 13:49:53 UTC
  • mto: This revision was merged to the branch mainline in revision 3802.
  • Revision ID: christopher.townsend@canonical.com-20140724134953-x8gokrnrm3ypo5kx
Previews: scale the dash preview contents to match current monitor scaling
  
Improved also the scaling of search-bar, spinner, categories and many other components.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
public:
45
45
  SearchBarSpinner();
46
46
 
 
47
  nux::Property<double> scale;
 
48
 
47
49
  void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
48
50
  void DrawContent(nux::GraphicsEngine& GfxContext, bool force_draw);
49
51
 
62
64
 
63
65
private:
64
66
  bool OnFrameTimeout();
 
67
  void UpdateScale(double);
65
68
 
66
69
  SpinnerState state_;
67
70