~azzar1/unity/lp-1226116

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/FilterRatingsButton.h

  • Committer: Daniel van Vugt
  • Date: 2012-03-14 06:24:18 UTC
  • mfrom: (2108 unity)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: daniel.van.vugt@canonical.com-20120314062418-nprucpbr0m7qky5e
MergedĀ latestĀ lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
  std::string GetFilterType();
46
46
 
47
47
protected:
48
 
  virtual long ComputeContentSize();
49
48
  virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
50
49
 
51
 
  void InitTheme();
52
 
  void RedrawTheme(nux::Geometry const& geom, cairo_t* cr, int type, nux::ButtonVisualState faked_state);
 
50
  // Key-nav
 
51
  virtual bool AcceptKeyNavFocus();
 
52
  virtual bool InspectKeyEvent(unsigned int eventType, unsigned int keysym, const char* character);
 
53
 
 
54
private:
 
55
  void OnKeyDown(unsigned long event_type, unsigned long event_keysym,
 
56
                 unsigned long event_state, const TCHAR* character,
 
57
                 unsigned short key_repeat_count);
53
58
 
54
59
  void RecvMouseUp(int x, int y, unsigned long button_flags, unsigned long key_flags);
55
60
  void RecvMouseDrag(int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags);
 
61
  void RecvMouseMove(int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags);
56
62
  void OnRatingsChanged(int rating);
57
63
 
58
 
  typedef std::unique_ptr<nux::CairoWrapper> NuxCairoPtr;
59
 
 
60
 
  NuxCairoPtr active_empty_;
61
 
  NuxCairoPtr normal_empty_;
62
 
  NuxCairoPtr prelight_empty_;
63
 
  NuxCairoPtr active_half_;
64
 
  NuxCairoPtr normal_half_;
65
 
  NuxCairoPtr prelight_half_;
66
 
  NuxCairoPtr active_full_;
67
 
  NuxCairoPtr normal_full_;
68
 
  NuxCairoPtr prelight_full_;
69
 
  nux::Geometry cached_geometry_;
70
 
 
71
64
  dash::RatingsFilter::Ptr filter_;
 
65
  int focused_star_;
72
66
 
73
67
};
74
68