~unity-team/unity/trusty-1066971

« back to all changes in this revision

Viewing changes to dash/previews/SocialPreviewContent.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:
46
46
  NUX_DECLARE_OBJECT_TYPE(SocialPreviewContent, nux::View);
47
47
 
48
48
  SocialPreviewContent(std::string const& text, NUX_FILE_LINE_PROTO);
49
 
  virtual ~SocialPreviewContent();
 
49
 
 
50
  nux::Property<double> scale;
50
51
 
51
52
  void SetText(std::string const& text);
52
53
 
76
77
  virtual void AddProperties(debug::IntrospectionData&);
77
78
 
78
79
private:
 
80
  void UpdateScale(double scale);
 
81
 
79
82
  nux::ObjectPtr<StaticCairoText> text_;
80
83
 
81
84
  typedef std::unique_ptr<nux::CairoWrapper> NuxCairoPtr;