~unity-team/unity/trusty-1066971

« back to all changes in this revision

Viewing changes to unity-shared/CoverArt.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:
58
58
 
59
59
  void SetFont(std::string const& font);
60
60
 
 
61
  nux::Property<double> scale;
 
62
 
61
63
protected:
62
64
  virtual void Draw(nux::GraphicsEngine& gfx_engine, bool force_draw);
63
65
  virtual void DrawContent(nux::GraphicsEngine& gfx_engine, bool force_draw);
80
82
  virtual void AddProperties(debug::IntrospectionData&);
81
83
 
82
84
private:
 
85
  void UpdateScale(double scale);
 
86
 
83
87
  nux::ObjectPtr<nux::BaseTexture> texture_screenshot_;
84
88
  StaticCairoText* overlay_text_;
85
89