~unity-team/unity/trusty-1332509

« back to all changes in this revision

Viewing changes to dash/FilterBasicButton.h

  • Committer: CI bot
  • Author(s): Stephen M. Webb, Marco Trevisan (Treviño), Andrea Azzarone, Pawel Szubert, Chris Townsend, Andrea Azzarone, Eleni Maria Stea
  • Date: 2014-08-26 13:48:28 UTC
  • mfrom: (3800.1.24 prepare-7.2.3-SRU)
  • Revision ID: ps-jenkins@lists.canonical.com-20140826134828-fkev1oisyfl9kbt3
Prepare fixes for upstream micro-release 7.2.3. Fixes: 1283415, 1292391, 1306211, 1312107, 1320051, 1320071, 1324114, 1339629, 1340171, 1340394, 1340477, 1340992, 1340996, 1342208, 1342731, 1347735

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  FilterBasicButton(std::string const& label, NUX_FILE_LINE_PROTO);
40
40
  FilterBasicButton(std::string const& label, nux::TextureArea* image, NUX_FILE_LINE_PROTO);
41
41
  FilterBasicButton(NUX_FILE_LINE_PROTO);
42
 
  virtual ~FilterBasicButton();
43
 
 
44
 
  void SetClearBeforeDraw(bool clear_before_draw);
 
42
 
 
43
  nux::Property<double> scale;
 
44
 
45
45
protected:
46
46
  virtual long ComputeContentSize();
47
47
  virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
48
48
 
49
 
  void Init();
50
49
  void InitTheme();
 
50
  void SetClearBeforeDraw(bool clear_before_draw);
51
51
  void RedrawTheme(nux::Geometry const& geom, cairo_t* cr, nux::ButtonVisualState faked_state);
52
52
  void RedrawFocusOverlay(nux::Geometry const& geom, cairo_t* cr);
53
53
 
61
61
  nux::Geometry cached_geometry_;
62
62
 
63
63
private:
 
64
  void UpdateScale(double);
 
65
 
64
66
  std::string label_;
65
67
  bool clear_before_draw_;
66
68
};