~unity-team/nux/nux.armel-fixes

« back to all changes in this revision

Viewing changes to Nux/AbstractButton.cpp

  • Committer: Tarmac
  • Author(s): Michi Henning
  • Date: 2012-10-02 01:05:45 UTC
  • mfrom: (667.2.5 1056633)
  • Revision ID: tarmac-20121002010545-jphizk30nj3oe9ui
Added -Wextra to compiler flags and removed a large number of warnings about unused parameters. Code compiles clean now without warnings, except for one remaining warning (see bug #1052765).. Fixes: https://bugs.launchpad.net/bugs/1056633. Approved by Michi Henning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    return visual_state_;
72
72
  }
73
73
 
74
 
  void AbstractButton::RecvMouseUp(int x, int y, unsigned long button_flags, unsigned long key_flags)
 
74
  void AbstractButton::RecvMouseUp(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)
75
75
  {
76
76
    if (IsMousePointerInside())
77
77
    {
87
87
    QueueDraw();
88
88
  }
89
89
 
90
 
  void AbstractButton::RecvMouseDown(int x, int y, unsigned long button_flags, unsigned long key_flags)
 
90
  void AbstractButton::RecvMouseDown(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)
91
91
  {
92
92
    visual_state_ = VISUAL_STATE_PRESSED;
93
93
    mouse_pressed_ = true;
95
95
    QueueDraw();
96
96
  }
97
97
 
98
 
  void AbstractButton::RecvMouseMove(int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags)
 
98
  void AbstractButton::RecvMouseMove(int /* x */, int /* y */, int /* dx */, int /* dy */, unsigned long /* button_flags */, unsigned long /* key_flags */)
99
99
  {
100
100
 
101
101
  }
102
102
 
103
 
  void AbstractButton::RecvMouseEnter(int x, int y, unsigned long button_flags, unsigned long key_flags)
 
103
  void AbstractButton::RecvMouseEnter(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)
104
104
  {
105
105
    if (mouse_pressed_)
106
106
    {
115
115
    QueueDraw();
116
116
  }
117
117
 
118
 
  void AbstractButton::RecvMouseLeave(int x, int y, unsigned long button_flags, unsigned long key_flags)
 
118
  void AbstractButton::RecvMouseLeave(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)
119
119
  {
120
120
    visual_state_ = VISUAL_STATE_NORMAL;
121
121
    visual_state_change.emit(this);