~unity-team/nux/nux.redirected-views

« back to all changes in this revision

Viewing changes to Nux/TextureArea.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:
47
47
      delete paint_layer_;
48
48
  }
49
49
 
50
 
  void TextureArea::Draw(GraphicsEngine &graphics_engine, bool force_draw)
 
50
  void TextureArea::Draw(GraphicsEngine &graphics_engine, bool /* force_draw */)
51
51
  {
52
52
    // Ability to rotate the widget around its center
53
53
    graphics_engine.PushModelViewMatrix(Matrix4::TRANSLATE(-GetBaseX() - GetBaseWidth() / 2, -GetBaseY() - GetBaseHeight() / 2, 0));
68
68
    graphics_engine.PopModelViewMatrix();
69
69
  }
70
70
 
71
 
  void TextureArea::DrawContent(GraphicsEngine &graphics_engine, bool force_draw)
 
71
  void TextureArea::DrawContent(GraphicsEngine & /* graphics_engine */, bool /* force_draw */)
72
72
  {
73
73
 
74
74
  }
75
75
 
76
 
  void TextureArea::PostDraw(GraphicsEngine &graphics_engine, bool force_draw)
 
76
  void TextureArea::PostDraw(GraphicsEngine & /* graphics_engine */, bool /* force_draw */)
77
77
  {
78
78
 
79
79
  }
147
147
//     QueueDraw();
148
148
// }
149
149
 
150
 
  void TextureArea::RecvMouseDown(int x, int y, long button_flags, long key_flags)
 
150
  void TextureArea::RecvMouseDown(int x, int y, long /* button_flags */, long /* key_flags */)
151
151
  {
152
152
    sigMouseDown.emit(x, y);
153
153
    QueueDraw();
154
154
  }
155
155
 
156
 
  void TextureArea::RecvMouseClick(int x, int y, long button_flags, long key_flags)
 
156
  void TextureArea::RecvMouseClick(int /* x */, int /* y */, long /* button_flags */, long /* key_flags */)
157
157
  {
158
158
 
159
159
  }
160
160
 
161
 
  void TextureArea::RecvMouseUp(int x, int y, long button_flags, long key_flags)
 
161
  void TextureArea::RecvMouseUp(int /* x */, int /* y */, long /* button_flags */, long /* key_flags */)
162
162
  {
163
163
    QueueDraw();
164
164
  }
165
165
 
166
 
  void TextureArea::RecvMouseEnter(int x, int y, long button_flags, long key_flags)
167
 
  {
168
 
 
169
 
  }
170
 
 
171
 
  void TextureArea::RecvMouseLeave(int x, int y, long button_flags, long key_flags)
172
 
  {
173
 
 
174
 
  }
175
 
 
176
 
  void TextureArea::RecvMouseDrag(int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags)
 
166
  void TextureArea::RecvMouseEnter(int /* x */, int /* y */, long /* button_flags */, long /* key_flags */)
 
167
  {
 
168
 
 
169
  }
 
170
 
 
171
  void TextureArea::RecvMouseLeave(int /* x */, int /* y */, long /* button_flags */, long /* key_flags */)
 
172
  {
 
173
 
 
174
  }
 
175
 
 
176
  void TextureArea::RecvMouseDrag(int x, int y, int /* dx */, int /* dy */, unsigned long /* button_flags */, unsigned long /* key_flags */)
177
177
  {
178
178
    sigMouseDrag.emit(x, y);
179
179
  }